@hipay/hipay-material-ui 4.0.1-beta5 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAccordion/HiAccordion.js +8 -26
- package/HiAccordion/index.js +1 -5
- package/HiAccordionActions/HiAccordionActions.js +1 -14
- package/HiAccordionActions/index.js +1 -5
- package/HiAccordionSummary/HiAccordionSummary.js +1 -15
- package/HiAccordionSummary/index.js +1 -5
- package/HiAlertModal/HiAlertModal.js +7 -22
- package/HiAlertModal/index.js +1 -5
- package/HiAppBar/HiAppBar.js +17 -51
- package/HiAppBar/index.js +0 -2
- package/HiAvatar/HiAvatar.js +3 -12
- package/HiAvatar/index.js +0 -2
- package/HiBadge/HiBadge.js +8 -24
- package/HiBadge/index.js +0 -2
- package/HiBreadcrumb/HiBreadcrumb.js +12 -38
- package/HiBreadcrumb/HiStep.js +19 -53
- package/HiBreadcrumb/HiStepConnector.js +20 -59
- package/HiBreadcrumb/HiStepContent.js +12 -38
- package/HiBreadcrumb/HiStepIcon.js +16 -43
- package/HiBreadcrumb/HiStepLabel.js +20 -52
- package/HiBreadcrumb/HiStepper.js +12 -38
- package/HiBreadcrumb/index.js +0 -2
- package/HiButton/HiButton.js +8 -33
- package/HiButton/index.js +1 -5
- package/HiCell/CellAddress.js +18 -41
- package/HiCell/CellDate.js +16 -44
- package/HiCell/CellHiddenContent.js +8 -30
- package/HiCell/CellIcon.js +18 -44
- package/HiCell/CellImage.js +18 -42
- package/HiCell/CellNumeric.js +19 -48
- package/HiCell/CellPinToAction.js +15 -41
- package/HiCell/CellRate.js +19 -55
- package/HiCell/CellSentinel.js +18 -41
- package/HiCell/CellSentinelScore.js +15 -39
- package/HiCell/CellText.js +23 -62
- package/HiCell/CellTextStyled.js +13 -24
- package/HiCell/index.js +0 -10
- package/HiCheckbox/HiCheckbox.js +21 -61
- package/HiCheckbox/index.js +0 -2
- package/HiChip/HiChip.js +24 -47
- package/HiChip/HiChipSwitch.js +25 -71
- package/HiChip/index.js +0 -3
- package/HiColoredLabel/HiColoredLabel.js +15 -49
- package/HiColoredLabel/index.js +0 -2
- package/HiDatePicker/Caption.js +9 -21
- package/HiDatePicker/HiDatePicker.js +22 -96
- package/HiDatePicker/HiDatePickerMobile.js +24 -51
- package/HiDatePicker/HiDateRangePicker.js +44 -142
- package/HiDatePicker/HiDateRangeSelector.js +55 -138
- package/HiDatePicker/ListPicker.js +14 -46
- package/HiDatePicker/NavBar.js +12 -31
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +11 -36
- package/HiDatePicker/Overlays/Overlay.js +8 -25
- package/HiDatePicker/Overlays/TimePickerOverlay.js +16 -50
- package/HiDatePicker/Overlays/YearPickerOverlay.js +15 -42
- package/HiDatePicker/Overlays/index.js +0 -6
- package/HiDatePicker/Weekday.js +4 -9
- package/HiDatePicker/hiLocaleUtils.js +8 -20
- package/HiDatePicker/index.js +0 -2
- package/HiDatePicker/stylesheet.js +6 -13
- package/HiDialog/HiDialog.js +7 -19
- package/HiDialog/index.js +0 -2
- package/HiDotsStepper/HiDot.js +14 -45
- package/HiDotsStepper/HiDotsStepper.js +18 -48
- package/HiDotsStepper/index.js +0 -3
- package/HiExpansionPanel/HiExpansionPanel.js +16 -38
- package/HiExpansionPanel/index.js +1 -5
- package/HiForm/HiAddressField.js +20 -49
- package/HiForm/HiEmailField.js +11 -38
- package/HiForm/HiFormControl.js +37 -86
- package/HiForm/HiFormLabel.js +20 -48
- package/HiForm/HiInput.js +47 -109
- package/HiForm/HiPasswordField.js +18 -57
- package/HiForm/HiSearchField.js +12 -46
- package/HiForm/HiSlider.js +28 -65
- package/HiForm/HiTextField.js +30 -58
- package/HiForm/HiUpload.js +35 -97
- package/HiForm/HiUploadField.js +16 -40
- package/HiForm/HiUploadInput.js +27 -84
- package/HiForm/index.js +0 -12
- package/HiIcon/HiIcon.js +9 -34
- package/HiIcon/index.js +0 -2
- package/HiIconButton/HiIconButton.js +6 -21
- package/HiIconButton/index.js +0 -2
- package/HiListItemLink/HiListItemLink.js +6 -19
- package/HiListItemLink/index.js +0 -2
- package/HiLoader/HiLoader.js +6 -16
- package/HiLoader/index.js +0 -2
- package/HiNotice/HiKPI.js +23 -57
- package/HiNotice/HiKPINotice.js +6 -16
- package/HiNotice/index.js +0 -3
- package/HiPagination/HiPagination.js +1 -11
- package/HiPagination/index.js +0 -2
- package/HiPaymentMeans/HiPaymentMeans.js +31 -72
- package/HiPaymentMeans/index.js +0 -2
- package/HiPdfReader/HiPdfReader.js +29 -64
- package/HiPdfReader/index.js +0 -2
- package/HiPin/HiPin.js +7 -19
- package/HiPin/index.js +0 -2
- package/HiRadio/HiRadio.js +11 -22
- package/HiRadio/index.js +0 -2
- package/HiScrollStepper/HiScrollStepper.js +29 -67
- package/HiScrollStepper/index.js +0 -2
- package/HiSelect/HiDynamicSelect.js +39 -52
- package/HiSelect/HiDynamicSelectField.js +29 -55
- package/HiSelect/HiNestedSelect.js +71 -120
- package/HiSelect/HiNestedSelectContent.js +65 -93
- package/HiSelect/HiNestedSelectField.js +29 -55
- package/HiSelect/HiSelect.js +95 -195
- package/HiSelect/HiSelectContent.js +72 -110
- package/HiSelect/HiSelectField.js +30 -56
- package/HiSelect/HiSelectInput.js +27 -84
- package/HiSelect/HiSelectMobile.js +13 -52
- package/HiSelect/HiSuggestSelect.js +30 -88
- package/HiSelect/HiSuggestSelectField.js +20 -46
- package/HiSelect/index.js +2 -14
- package/HiSelectableList/HiSelectableList.js +40 -98
- package/HiSelectableList/HiSelectableListHierarchic.js +40 -68
- package/HiSelectableList/HiSelectableListItem.js +45 -88
- package/HiSelectableList/index.js +0 -4
- package/HiStepper/DefaultIndicator.js +1 -10
- package/HiStepper/HiStep.js +18 -48
- package/HiStepper/HiStepper.js +2 -15
- package/HiStepper/index.js +0 -3
- package/HiSwitch/HiSwitch.js +9 -33
- package/HiSwitch/HiSwitchState.js +15 -32
- package/HiSwitch/index.js +0 -3
- package/HiTable/HiCellBuilder.js +15 -72
- package/HiTable/HiTable.js +20 -48
- package/HiTable/HiTableBody.js +12 -31
- package/HiTable/HiTableHeader.js +23 -58
- package/HiTable/HiTableRow.js +18 -55
- package/HiTable/constants.js +48 -98
- package/HiTable/index.js +0 -2
- package/es/HiAccordion/HiAccordion.js +8 -26
- package/es/HiAccordion/index.js +1 -5
- package/es/HiAccordionActions/HiAccordionActions.js +1 -14
- package/es/HiAccordionActions/index.js +1 -5
- package/es/HiAccordionSummary/HiAccordionSummary.js +1 -15
- package/es/HiAccordionSummary/index.js +1 -5
- package/es/HiAlertModal/HiAlertModal.js +7 -22
- package/es/HiAlertModal/index.js +1 -5
- package/es/HiAppBar/HiAppBar.js +17 -51
- package/es/HiAppBar/index.js +0 -2
- package/es/HiAvatar/HiAvatar.js +3 -12
- package/es/HiAvatar/index.js +0 -2
- package/es/HiBadge/HiBadge.js +8 -24
- package/es/HiBadge/index.js +0 -2
- package/es/HiBreadcrumb/HiBreadcrumb.js +12 -38
- package/es/HiBreadcrumb/HiStep.js +19 -53
- package/es/HiBreadcrumb/HiStepConnector.js +20 -59
- package/es/HiBreadcrumb/HiStepContent.js +12 -38
- package/es/HiBreadcrumb/HiStepIcon.js +16 -43
- package/es/HiBreadcrumb/HiStepLabel.js +20 -52
- package/es/HiBreadcrumb/HiStepper.js +12 -38
- package/es/HiBreadcrumb/index.js +0 -2
- package/es/HiButton/HiButton.js +8 -33
- package/es/HiButton/index.js +1 -5
- package/es/HiCell/CellAddress.js +18 -41
- package/es/HiCell/CellDate.js +16 -44
- package/es/HiCell/CellHiddenContent.js +8 -30
- package/es/HiCell/CellIcon.js +18 -44
- package/es/HiCell/CellImage.js +18 -42
- package/es/HiCell/CellNumeric.js +19 -48
- package/es/HiCell/CellPinToAction.js +15 -41
- package/es/HiCell/CellRate.js +19 -55
- package/es/HiCell/CellSentinel.js +18 -41
- package/es/HiCell/CellSentinelScore.js +15 -39
- package/es/HiCell/CellText.js +23 -62
- package/es/HiCell/CellTextStyled.js +13 -24
- package/es/HiCell/index.js +0 -10
- package/es/HiCheckbox/HiCheckbox.js +21 -61
- package/es/HiCheckbox/index.js +0 -2
- package/es/HiChip/HiChip.js +24 -47
- package/es/HiChip/HiChipSwitch.js +25 -71
- package/es/HiChip/index.js +0 -3
- package/es/HiColoredLabel/HiColoredLabel.js +15 -49
- package/es/HiColoredLabel/index.js +0 -2
- package/es/HiDatePicker/Caption.js +9 -21
- package/es/HiDatePicker/HiDatePicker.js +22 -96
- package/es/HiDatePicker/HiDatePickerMobile.js +24 -51
- package/es/HiDatePicker/HiDateRangePicker.js +44 -142
- package/es/HiDatePicker/HiDateRangeSelector.js +55 -138
- package/es/HiDatePicker/ListPicker.js +14 -46
- package/es/HiDatePicker/NavBar.js +12 -31
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +11 -36
- package/es/HiDatePicker/Overlays/Overlay.js +8 -25
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +16 -50
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +15 -42
- package/es/HiDatePicker/Overlays/index.js +0 -6
- package/es/HiDatePicker/Weekday.js +4 -9
- package/es/HiDatePicker/hiLocaleUtils.js +8 -20
- package/es/HiDatePicker/index.js +0 -2
- package/es/HiDatePicker/stylesheet.js +6 -13
- package/es/HiDialog/HiDialog.js +7 -19
- package/es/HiDialog/index.js +0 -2
- package/es/HiDotsStepper/HiDot.js +14 -45
- package/es/HiDotsStepper/HiDotsStepper.js +18 -48
- package/es/HiDotsStepper/index.js +0 -3
- package/es/HiExpansionPanel/HiExpansionPanel.js +16 -38
- package/es/HiExpansionPanel/index.js +1 -5
- package/es/HiForm/HiAddressField.js +20 -49
- package/es/HiForm/HiEmailField.js +11 -38
- package/es/HiForm/HiFormControl.js +37 -86
- package/es/HiForm/HiFormLabel.js +20 -48
- package/es/HiForm/HiInput.js +47 -109
- package/es/HiForm/HiPasswordField.js +18 -57
- package/es/HiForm/HiSearchField.js +12 -46
- package/es/HiForm/HiSlider.js +28 -65
- package/es/HiForm/HiTextField.js +30 -58
- package/es/HiForm/HiUpload.js +35 -97
- package/es/HiForm/HiUploadField.js +16 -40
- package/es/HiForm/HiUploadInput.js +27 -84
- package/es/HiForm/index.js +0 -12
- package/es/HiIcon/HiIcon.js +9 -34
- package/es/HiIcon/index.js +0 -2
- package/es/HiIconButton/HiIconButton.js +6 -21
- package/es/HiIconButton/index.js +0 -2
- package/es/HiListItemLink/HiListItemLink.js +6 -19
- package/es/HiListItemLink/index.js +0 -2
- package/es/HiLoader/HiLoader.js +6 -16
- package/es/HiLoader/index.js +0 -2
- package/es/HiNotice/HiKPI.js +23 -57
- package/es/HiNotice/HiKPINotice.js +6 -16
- package/es/HiNotice/index.js +0 -3
- package/es/HiPagination/HiPagination.js +1 -11
- package/es/HiPagination/index.js +0 -2
- package/es/HiPaymentMeans/HiPaymentMeans.js +31 -72
- package/es/HiPaymentMeans/index.js +0 -2
- package/es/HiPdfReader/HiPdfReader.js +29 -64
- package/es/HiPdfReader/index.js +0 -2
- package/es/HiPin/HiPin.js +7 -19
- package/es/HiPin/index.js +0 -2
- package/es/HiRadio/HiRadio.js +11 -22
- package/es/HiRadio/index.js +0 -2
- package/es/HiScrollStepper/HiScrollStepper.js +29 -67
- package/es/HiScrollStepper/index.js +0 -2
- package/es/HiSelect/HiDynamicSelect.js +39 -52
- package/es/HiSelect/HiDynamicSelectField.js +29 -55
- package/es/HiSelect/HiNestedSelect.js +71 -120
- package/es/HiSelect/HiNestedSelectContent.js +65 -93
- package/es/HiSelect/HiNestedSelectField.js +29 -55
- package/es/HiSelect/HiSelect.js +95 -195
- package/es/HiSelect/HiSelectContent.js +72 -110
- package/es/HiSelect/HiSelectField.js +30 -56
- package/es/HiSelect/HiSelectInput.js +27 -84
- package/es/HiSelect/HiSelectMobile.js +13 -52
- package/es/HiSelect/HiSuggestSelect.js +30 -88
- package/es/HiSelect/HiSuggestSelectField.js +20 -46
- package/es/HiSelect/index.js +2 -14
- package/es/HiSelectableList/HiSelectableList.js +40 -98
- package/es/HiSelectableList/HiSelectableListHierarchic.js +40 -68
- package/es/HiSelectableList/HiSelectableListItem.js +45 -88
- package/es/HiSelectableList/index.js +0 -4
- package/es/HiStepper/DefaultIndicator.js +1 -10
- package/es/HiStepper/HiStep.js +18 -48
- package/es/HiStepper/HiStepper.js +2 -15
- package/es/HiStepper/index.js +0 -3
- package/es/HiSwitch/HiSwitch.js +9 -33
- package/es/HiSwitch/HiSwitchState.js +15 -32
- package/es/HiSwitch/index.js +0 -3
- package/es/HiTable/HiCellBuilder.js +15 -72
- package/es/HiTable/HiTable.js +20 -48
- package/es/HiTable/HiTableBody.js +12 -31
- package/es/HiTable/HiTableHeader.js +23 -58
- package/es/HiTable/HiTableRow.js +18 -55
- package/es/HiTable/constants.js +48 -98
- package/es/HiTable/index.js +0 -2
- package/es/hi-svg-icons/HiAccount.js +4 -14
- package/es/hi-svg-icons/HiActivity.js +4 -14
- package/es/hi-svg-icons/HiAll.js +7 -18
- package/es/hi-svg-icons/HiBilling.js +4 -14
- package/es/hi-svg-icons/HiBriefcaseRescue.js +4 -14
- package/es/hi-svg-icons/HiBusiness.js +4 -14
- package/es/hi-svg-icons/HiCatalog.js +4 -14
- package/es/hi-svg-icons/HiCustomer.js +4 -14
- package/es/hi-svg-icons/HiDownload.js +4 -14
- package/es/hi-svg-icons/HiFinance.js +4 -14
- package/es/hi-svg-icons/HiFinanceMenu.js +4 -14
- package/es/hi-svg-icons/HiHostedPaymentPage.js +4 -14
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
- package/es/hi-svg-icons/HiIntegration.js +4 -14
- package/es/hi-svg-icons/HiIntegrationMenu.js +4 -14
- package/es/hi-svg-icons/HiIntelligence.js +4 -14
- package/es/hi-svg-icons/HiIntelligenceMenu.js +4 -14
- package/es/hi-svg-icons/HiInvoice.js +4 -14
- package/es/hi-svg-icons/HiInvoiceMenu.js +4 -14
- package/es/hi-svg-icons/HiLogoRounded.js +6 -17
- package/es/hi-svg-icons/HiOrder.js +4 -14
- package/es/hi-svg-icons/HiPaymentOrder.js +4 -14
- package/es/hi-svg-icons/HiPermission.js +4 -14
- package/es/hi-svg-icons/HiPriceGrid.js +4 -14
- package/es/hi-svg-icons/HiPrivate.js +4 -14
- package/es/hi-svg-icons/HiRoute.js +4 -14
- package/es/hi-svg-icons/HiRouteMenu.js +4 -14
- package/es/hi-svg-icons/HiRouteSwitch.js +7 -19
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
- package/es/hi-svg-icons/HiSettlement.js +4 -14
- package/es/hi-svg-icons/HiSizeLarge.js +4 -14
- package/es/hi-svg-icons/HiSizeMedium.js +4 -14
- package/es/hi-svg-icons/HiSizeSmall.js +4 -14
- package/es/hi-svg-icons/HiStore.js +4 -14
- package/es/hi-svg-icons/HiStoreMenu.js +4 -14
- package/es/hi-svg-icons/HiTransaction.js +4 -14
- package/es/hi-svg-icons/HiTransactionMenu.js +4 -14
- package/es/hi-svg-icons/HiUser.js +4 -14
- package/es/hi-svg-icons/HiVendor.js +4 -14
- package/es/hi-svg-icons/HiWidget.js +4 -14
- package/es/hi-svg-icons/index.js +0 -41
- package/es/hi-svg-images/HiLogo.js +4 -12
- package/es/hi-svg-images/HiLogoWhite.js +4 -12
- package/es/hi-svg-images/index.js +0 -3
- package/es/setupTest.js +2 -13
- package/es/styleguide/Wrapper.js +0 -6
- package/es/styles/MuiThemeProvider.js +20 -56
- package/es/styles/colorManipulator.js +15 -50
- package/es/styles/createBreakpoints.js +14 -29
- package/es/styles/createGenerateClassName.js +14 -24
- package/es/styles/createMixins.js +4 -10
- package/es/styles/createMuiTheme.js +11 -28
- package/es/styles/createPalette.js +66 -89
- package/es/styles/createStyles.js +0 -1
- package/es/styles/createTypography.js +15 -24
- package/es/styles/getStylesCreator.js +2 -14
- package/es/styles/getThemeProps.js +2 -7
- package/es/styles/index.js +0 -6
- package/es/styles/jssPreset.js +1 -11
- package/es/styles/makeStyles.js +2 -9
- package/es/styles/mergeClasses.js +5 -16
- package/es/styles/shadows.js +1 -4
- package/es/styles/shape.js +1 -2
- package/es/styles/spacing.js +1 -4
- package/es/styles/themeListener.js +2 -10
- package/es/styles/transitions.js +20 -35
- package/es/styles/withStyles.js +2 -9
- package/es/styles/zIndex.js +1 -2
- package/es/test-utils/createMount.js +2 -12
- package/es/test-utils/createRender.js +2 -9
- package/es/test-utils/createShallow.js +6 -17
- package/es/test-utils/getClasses.js +1 -4
- package/es/test-utils/index.js +0 -6
- package/es/test-utils/until.js +3 -14
- package/es/test-utils/unwrap.js +0 -1
- package/es/theme/palette.js +2 -7
- package/es/theme/typography.js +7 -15
- package/es/theme.js +2 -8
- package/es/transitions/utils.js +3 -7
- package/es/utils/exactProp.js +3 -13
- package/es/utils/helpers.js +19 -58
- package/es/withMobileDialog/index.js +0 -2
- package/es/withMobileDialog/withMobileDialog.js +3 -12
- package/hi-svg-icons/HiAccount.js +4 -14
- package/hi-svg-icons/HiActivity.js +4 -14
- package/hi-svg-icons/HiAll.js +7 -18
- package/hi-svg-icons/HiBilling.js +4 -14
- package/hi-svg-icons/HiBriefcaseRescue.js +4 -14
- package/hi-svg-icons/HiBusiness.js +4 -14
- package/hi-svg-icons/HiCatalog.js +4 -14
- package/hi-svg-icons/HiCustomer.js +4 -14
- package/hi-svg-icons/HiDownload.js +4 -14
- package/hi-svg-icons/HiFinance.js +4 -14
- package/hi-svg-icons/HiFinanceMenu.js +4 -14
- package/hi-svg-icons/HiHostedPaymentPage.js +4 -14
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
- package/hi-svg-icons/HiIntegration.js +4 -14
- package/hi-svg-icons/HiIntegrationMenu.js +4 -14
- package/hi-svg-icons/HiIntelligence.js +4 -14
- package/hi-svg-icons/HiIntelligenceMenu.js +4 -14
- package/hi-svg-icons/HiInvoice.js +4 -14
- package/hi-svg-icons/HiInvoiceMenu.js +4 -14
- package/hi-svg-icons/HiLogoRounded.js +6 -17
- package/hi-svg-icons/HiOrder.js +4 -14
- package/hi-svg-icons/HiPaymentOrder.js +4 -14
- package/hi-svg-icons/HiPermission.js +4 -14
- package/hi-svg-icons/HiPriceGrid.js +4 -14
- package/hi-svg-icons/HiPrivate.js +4 -14
- package/hi-svg-icons/HiRoute.js +4 -14
- package/hi-svg-icons/HiRouteMenu.js +4 -14
- package/hi-svg-icons/HiRouteSwitch.js +7 -19
- package/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
- package/hi-svg-icons/HiSettlement.js +4 -14
- package/hi-svg-icons/HiSizeLarge.js +4 -14
- package/hi-svg-icons/HiSizeMedium.js +4 -14
- package/hi-svg-icons/HiSizeSmall.js +4 -14
- package/hi-svg-icons/HiStore.js +4 -14
- package/hi-svg-icons/HiStoreMenu.js +4 -14
- package/hi-svg-icons/HiTransaction.js +4 -14
- package/hi-svg-icons/HiTransactionMenu.js +4 -14
- package/hi-svg-icons/HiUser.js +4 -14
- package/hi-svg-icons/HiVendor.js +4 -14
- package/hi-svg-icons/HiWidget.js +4 -14
- package/hi-svg-icons/index.js +0 -41
- package/hi-svg-images/HiLogo.js +4 -12
- package/hi-svg-images/HiLogoWhite.js +4 -12
- package/hi-svg-images/index.js +0 -3
- package/package.json +184 -80
- package/setupTest.js +2 -13
- package/styleguide/Wrapper.js +0 -6
- package/styles/MuiThemeProvider.js +20 -56
- package/styles/colorManipulator.js +15 -50
- package/styles/createBreakpoints.js +14 -29
- package/styles/createGenerateClassName.js +14 -24
- package/styles/createMixins.js +4 -10
- package/styles/createMuiTheme.js +11 -28
- package/styles/createPalette.js +66 -89
- package/styles/createStyles.js +0 -1
- package/styles/createTypography.js +15 -24
- package/styles/getStylesCreator.js +2 -14
- package/styles/getThemeProps.js +2 -7
- package/styles/index.js +0 -6
- package/styles/jssPreset.js +1 -11
- package/styles/makeStyles.js +2 -9
- package/styles/mergeClasses.js +5 -16
- package/styles/shadows.js +1 -4
- package/styles/shape.js +1 -2
- package/styles/spacing.js +1 -4
- package/styles/themeListener.js +2 -10
- package/styles/transitions.js +20 -35
- package/styles/withStyles.js +2 -9
- package/styles/zIndex.js +1 -2
- package/test-utils/createMount.js +2 -12
- package/test-utils/createRender.js +2 -9
- package/test-utils/createShallow.js +6 -17
- package/test-utils/getClasses.js +1 -4
- package/test-utils/index.js +0 -6
- package/test-utils/until.js +3 -14
- package/test-utils/unwrap.js +0 -1
- package/theme/palette.js +2 -7
- package/theme/typography.js +7 -15
- package/theme.js +2 -8
- package/transitions/utils.js +3 -7
- package/utils/exactProp.js +3 -13
- package/utils/helpers.js +19 -58
- package/withMobileDialog/index.js +0 -2
- package/withMobileDialog/withMobileDialog.js +3 -12
@@ -1,25 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
9
|
var Weekday = function Weekday(_ref) {
|
13
10
|
var weekday = _ref.weekday,
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
className = _ref.className,
|
12
|
+
localeUtils = _ref.localeUtils,
|
13
|
+
locale = _ref.locale;
|
17
14
|
var weekdayName = localeUtils.formatWeekdayLong(weekday, locale);
|
18
15
|
return /*#__PURE__*/_react.default.createElement("div", {
|
19
16
|
className: className,
|
20
17
|
title: weekdayName
|
21
18
|
}, weekdayName.slice(0, 1));
|
22
19
|
};
|
23
|
-
|
24
|
-
var _default = Weekday;
|
25
|
-
exports.default = _default;
|
20
|
+
var _default = exports.default = Weekday;
|
@@ -24,8 +24,8 @@ var FIRST_DAY = {
|
|
24
24
|
fr_FR: 1,
|
25
25
|
// Use Monday as first day of the week
|
26
26
|
it_IT: 1 // Use Monday as first day of the week
|
27
|
-
|
28
27
|
};
|
28
|
+
|
29
29
|
/**
|
30
30
|
* Format Date as day
|
31
31
|
*
|
@@ -34,12 +34,12 @@ var FIRST_DAY = {
|
|
34
34
|
*
|
35
35
|
* @returns string
|
36
36
|
*/
|
37
|
-
|
38
37
|
function formatDay(d) {
|
39
38
|
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en_US';
|
40
39
|
var loc = this.formatLocale(locale);
|
41
40
|
return "".concat(WEEKDAYS_LONG[loc][d.getDay()], ", ").concat(d.getDate(), " ").concat(MONTHS[loc][d.getMonth()], " ").concat(d.getFullYear());
|
42
41
|
}
|
42
|
+
|
43
43
|
/**
|
44
44
|
* Format Date as month title
|
45
45
|
*
|
@@ -48,13 +48,12 @@ function formatDay(d) {
|
|
48
48
|
*
|
49
49
|
* @returns string
|
50
50
|
*/
|
51
|
-
|
52
|
-
|
53
51
|
function formatMonthTitle(d) {
|
54
52
|
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en_US';
|
55
53
|
var loc = this.formatLocale(locale);
|
56
54
|
return "".concat(MONTHS[loc][d.getMonth()], " ").concat(d.getFullYear());
|
57
55
|
}
|
56
|
+
|
58
57
|
/**
|
59
58
|
* Get the short version of a week day
|
60
59
|
*
|
@@ -63,13 +62,12 @@ function formatMonthTitle(d) {
|
|
63
62
|
*
|
64
63
|
* @returns string
|
65
64
|
*/
|
66
|
-
|
67
|
-
|
68
65
|
function formatWeekdayShort(i) {
|
69
66
|
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en_US';
|
70
67
|
var loc = this.formatLocale(locale);
|
71
68
|
return WEEKDAYS_SHORT[loc][i];
|
72
69
|
}
|
70
|
+
|
73
71
|
/**
|
74
72
|
* Get the long version of a week day
|
75
73
|
*
|
@@ -78,26 +76,24 @@ function formatWeekdayShort(i) {
|
|
78
76
|
*
|
79
77
|
* @returns string
|
80
78
|
*/
|
81
|
-
|
82
|
-
|
83
79
|
function formatWeekdayLong(i) {
|
84
80
|
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en_US';
|
85
81
|
var loc = this.formatLocale(locale);
|
86
82
|
return WEEKDAYS_LONG[loc][i];
|
87
83
|
}
|
84
|
+
|
88
85
|
/**
|
89
86
|
* Get first day of the week
|
90
87
|
* @param string locale
|
91
88
|
*
|
92
89
|
* @returns integer
|
93
90
|
*/
|
94
|
-
|
95
|
-
|
96
91
|
function getFirstDayOfWeek() {
|
97
92
|
var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'en_US';
|
98
93
|
var loc = this.formatLocale(locale);
|
99
94
|
return FIRST_DAY[loc];
|
100
95
|
}
|
96
|
+
|
101
97
|
/**
|
102
98
|
* Get List of Months
|
103
99
|
*
|
@@ -105,13 +101,12 @@ function getFirstDayOfWeek() {
|
|
105
101
|
*
|
106
102
|
* @returns array
|
107
103
|
*/
|
108
|
-
|
109
|
-
|
110
104
|
function getMonths() {
|
111
105
|
var locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'en_US';
|
112
106
|
var loc = this.formatLocale(locale);
|
113
107
|
return MONTHS[loc];
|
114
108
|
}
|
109
|
+
|
115
110
|
/**
|
116
111
|
* Format locale
|
117
112
|
*
|
@@ -119,23 +114,17 @@ function getMonths() {
|
|
119
114
|
*
|
120
115
|
* @return string
|
121
116
|
*/
|
122
|
-
|
123
|
-
|
124
117
|
function formatLocale(locale) {
|
125
118
|
var loc = locale.split('-');
|
126
|
-
|
127
119
|
if (loc.length !== 2) {
|
128
120
|
loc = locale.split('_');
|
129
|
-
|
130
121
|
if (loc.length !== 2) {
|
131
122
|
return false;
|
132
123
|
}
|
133
124
|
}
|
134
|
-
|
135
125
|
loc[1] = loc[1].toUpperCase();
|
136
126
|
return loc.join('_');
|
137
127
|
}
|
138
|
-
|
139
128
|
var HiLocaleUtils = {
|
140
129
|
formatDay: formatDay,
|
141
130
|
formatMonthTitle: formatMonthTitle,
|
@@ -145,5 +134,4 @@ var HiLocaleUtils = {
|
|
145
134
|
getMonths: getMonths,
|
146
135
|
formatLocale: formatLocale
|
147
136
|
};
|
148
|
-
var _default = HiLocaleUtils;
|
149
|
-
exports.default = _default;
|
137
|
+
var _default = exports.default = HiLocaleUtils;
|
package/es/HiDatePicker/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
11
10
|
return _HiDatePicker.default;
|
12
11
|
}
|
13
12
|
});
|
14
|
-
|
15
13
|
var _HiDatePicker = _interopRequireDefault(require("./HiDatePicker"));
|
@@ -1,17 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
-
|
12
9
|
var _styles = require("@mui/material/styles");
|
13
|
-
|
14
|
-
var _default = function _default(theme) {
|
10
|
+
var _default = exports.default = function _default(theme) {
|
15
11
|
return {
|
16
12
|
root: {
|
17
13
|
position: 'relative',
|
@@ -98,9 +94,9 @@ var _default = function _default(theme) {
|
|
98
94
|
month: {
|
99
95
|
display: 'table',
|
100
96
|
borderSpacing: 0,
|
101
|
-
userSelect: 'none'
|
97
|
+
userSelect: 'none'
|
98
|
+
// margin: '0 1rem',
|
102
99
|
// marginTop: '1rem',
|
103
|
-
|
104
100
|
},
|
105
101
|
// The caption element, containing the current month's name and year
|
106
102
|
caption: {
|
@@ -194,10 +190,10 @@ var _default = function _default(theme) {
|
|
194
190
|
},
|
195
191
|
borderRadius: 4
|
196
192
|
}),
|
197
|
-
|
198
193
|
/* default modifiers */
|
199
194
|
// Added to the day's cell for the current day
|
200
|
-
today: {
|
195
|
+
today: {
|
196
|
+
// color: theme.palette.primary.light,
|
201
197
|
// position: 'relative',
|
202
198
|
// borderRadius: '50%',
|
203
199
|
// color: `${theme.palette.neutral.dark} !important`,
|
@@ -226,7 +222,6 @@ var _default = function _default(theme) {
|
|
226
222
|
cursor: 'default'
|
227
223
|
},
|
228
224
|
// Added to the day's cell specified in the "selectedDays" prop
|
229
|
-
|
230
225
|
/*
|
231
226
|
selected: {
|
232
227
|
borderRadius: '50%',
|
@@ -258,6 +253,4 @@ var _default = function _default(theme) {
|
|
258
253
|
}
|
259
254
|
}
|
260
255
|
};
|
261
|
-
};
|
262
|
-
|
263
|
-
exports.default = _default;
|
256
|
+
};
|
package/es/HiDialog/HiDialog.js
CHANGED
@@ -1,26 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
6
|
-
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
8
6
|
value: true
|
9
7
|
});
|
10
8
|
exports.default = void 0;
|
11
|
-
|
12
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
-
|
14
10
|
var _react = _interopRequireWildcard(require("react"));
|
15
|
-
|
16
11
|
var _makeStyles = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
17
|
-
|
18
12
|
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
19
|
-
|
20
|
-
function
|
21
|
-
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
|
-
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
24
15
|
var useStyles = (0, _makeStyles.default)(function (theme) {
|
25
16
|
return {
|
26
17
|
paper: {
|
@@ -42,13 +33,12 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
|
|
42
33
|
})
|
43
34
|
};
|
44
35
|
});
|
45
|
-
|
46
36
|
var HiDialog = function HiDialog(props) {
|
47
37
|
var content = props.content,
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
38
|
+
id = props.id,
|
39
|
+
onClose = props.onClose,
|
40
|
+
open = props.open,
|
41
|
+
title = props.title;
|
52
42
|
var classes = useStyles(props);
|
53
43
|
var handleClose = (0, _react.useCallback)(function () {
|
54
44
|
if (onClose) {
|
@@ -68,6 +58,4 @@ var HiDialog = function HiDialog(props) {
|
|
68
58
|
className: classes.title
|
69
59
|
}, title) : title), /*#__PURE__*/_react.default.createElement("div", null, content));
|
70
60
|
};
|
71
|
-
|
72
|
-
var _default = HiDialog;
|
73
|
-
exports.default = _default;
|
61
|
+
var _default = exports.default = HiDialog;
|
package/es/HiDialog/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
11
10
|
return _HiDialog.default;
|
12
11
|
}
|
13
12
|
});
|
14
|
-
|
15
13
|
var _HiDialog = _interopRequireDefault(require("./HiDialog"));
|
@@ -1,39 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
-
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
19
|
-
|
20
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
21
|
-
|
22
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
23
|
-
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
24
15
|
var _react = _interopRequireDefault(require("react"));
|
25
|
-
|
26
16
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
27
|
-
|
28
17
|
var _HiIcon = _interopRequireDefault(require("../HiIcon"));
|
29
|
-
|
30
18
|
var _HiIconButton = _interopRequireDefault(require("../HiIconButton"));
|
31
|
-
|
32
|
-
function
|
33
|
-
|
34
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
35
|
-
|
36
|
-
var styles = function styles() {
|
19
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
20
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
21
|
+
var styles = exports.styles = function styles() {
|
37
22
|
return {
|
38
23
|
dot: {
|
39
24
|
padding: 4,
|
@@ -43,44 +28,33 @@ var styles = function styles() {
|
|
43
28
|
}
|
44
29
|
};
|
45
30
|
};
|
46
|
-
|
47
|
-
exports.styles = styles;
|
48
|
-
|
49
31
|
var _ref = /*#__PURE__*/_react.default.createElement(_HiIcon.default, {
|
50
32
|
size: 24
|
51
33
|
}, "radio_button_checked");
|
52
|
-
|
53
34
|
var _ref2 = /*#__PURE__*/_react.default.createElement(_HiIcon.default, {
|
54
35
|
size: 12
|
55
36
|
}, "lens");
|
56
|
-
|
57
37
|
var HiDot = /*#__PURE__*/function (_React$PureComponent) {
|
58
|
-
(0, _inherits2.default)(HiDot, _React$PureComponent);
|
59
|
-
|
60
|
-
var _super = _createSuper(HiDot);
|
61
|
-
|
62
38
|
function HiDot() {
|
63
39
|
(0, _classCallCheck2.default)(this, HiDot);
|
64
|
-
return
|
40
|
+
return _callSuper(this, HiDot, arguments);
|
65
41
|
}
|
66
|
-
|
67
|
-
(0, _createClass2.default)(HiDot, [{
|
42
|
+
(0, _inherits2.default)(HiDot, _React$PureComponent);
|
43
|
+
return (0, _createClass2.default)(HiDot, [{
|
68
44
|
key: "render",
|
69
45
|
value: function render() {
|
70
46
|
var _this$props = this.props,
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
47
|
+
active = _this$props.active,
|
48
|
+
status = _this$props.status,
|
49
|
+
classes = _this$props.classes,
|
50
|
+
onClick = _this$props.onClick,
|
51
|
+
props = (0, _objectWithoutProperties2.default)(_this$props, ["active", "status", "classes", "onClick"]);
|
76
52
|
var dotColor;
|
77
|
-
|
78
53
|
if (!status || status === 'unreviewed') {
|
79
54
|
dotColor = 'default';
|
80
55
|
} else {
|
81
56
|
dotColor = status === 'refused' ? 'error' : 'success';
|
82
57
|
}
|
83
|
-
|
84
58
|
return /*#__PURE__*/_react.default.createElement(_HiIconButton.default, (0, _extends2.default)({
|
85
59
|
className: classes.dot,
|
86
60
|
color: dotColor,
|
@@ -88,17 +62,12 @@ var HiDot = /*#__PURE__*/function (_React$PureComponent) {
|
|
88
62
|
}, props), active ? _ref : _ref2);
|
89
63
|
}
|
90
64
|
}]);
|
91
|
-
return HiDot;
|
92
65
|
}(_react.default.PureComponent);
|
93
|
-
|
94
66
|
HiDot.defaultProps = {
|
95
67
|
active: false,
|
96
68
|
status: 'unreviewed'
|
97
69
|
};
|
98
|
-
|
99
|
-
var _default = (0, _withStyles.default)(styles, {
|
70
|
+
var _default = exports.default = (0, _withStyles.default)(styles, {
|
100
71
|
hiComponent: true,
|
101
72
|
name: 'HmuiHiDot'
|
102
|
-
})(HiDot);
|
103
|
-
|
104
|
-
exports.default = _default;
|
73
|
+
})(HiDot);
|
@@ -1,35 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
11
|
-
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
13
|
-
|
14
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
15
|
-
|
16
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
17
|
-
|
18
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
19
|
-
|
20
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
21
|
-
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
22
13
|
var _react = _interopRequireDefault(require("react"));
|
23
|
-
|
24
14
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
25
|
-
|
26
15
|
var _HiDot = _interopRequireDefault(require("./HiDot"));
|
27
|
-
|
28
|
-
function
|
29
|
-
|
30
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
31
|
-
|
32
|
-
var styles = function styles() {
|
16
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
18
|
+
var styles = exports.styles = function styles() {
|
33
19
|
return {
|
34
20
|
dotStepper: {
|
35
21
|
width: '100%',
|
@@ -42,54 +28,42 @@ var styles = function styles() {
|
|
42
28
|
}
|
43
29
|
};
|
44
30
|
};
|
45
|
-
|
46
|
-
exports.styles = styles;
|
47
|
-
|
48
31
|
var HiDotsStepper = /*#__PURE__*/function (_React$PureComponent) {
|
49
|
-
(0, _inherits2.default)(HiDotsStepper, _React$PureComponent);
|
50
|
-
|
51
|
-
var _super = _createSuper(HiDotsStepper);
|
52
|
-
|
53
32
|
function HiDotsStepper(props) {
|
54
33
|
var _this;
|
55
|
-
|
56
34
|
(0, _classCallCheck2.default)(this, HiDotsStepper);
|
57
|
-
_this =
|
58
|
-
|
35
|
+
_this = _callSuper(this, HiDotsStepper, [props]);
|
59
36
|
_this.handleClick = function (activeStep) {
|
60
37
|
return function () {
|
61
38
|
_this.props.onChange(activeStep);
|
62
39
|
};
|
63
40
|
};
|
64
|
-
|
65
41
|
_this.handleNavigation = function (e) {
|
66
42
|
var _this$props = _this.props,
|
67
|
-
|
68
|
-
|
43
|
+
activeStep = _this$props.activeStep,
|
44
|
+
steps = _this$props.steps;
|
69
45
|
var nextStep = activeStep;
|
70
46
|
if (e.key === 'ArrowLeft') nextStep -= 1;
|
71
47
|
if (e.key === 'ArrowRight') nextStep += 1;
|
72
|
-
nextStep = (nextStep + steps.length) % steps.length;
|
48
|
+
nextStep = (nextStep + steps.length) % steps.length;
|
73
49
|
|
50
|
+
// Permet la navigation d'un Dot au suivant / précédent
|
74
51
|
document.querySelector("button[tabIndex=\"".concat(nextStep, "\"]")).focus();
|
75
|
-
|
76
52
|
_this.props.onChange(nextStep);
|
77
53
|
};
|
78
|
-
|
79
|
-
_this.
|
80
|
-
_this.handleNavigation = _this.handleNavigation.bind((0, _assertThisInitialized2.default)(_this));
|
54
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
55
|
+
_this.handleNavigation = _this.handleNavigation.bind(_this);
|
81
56
|
return _this;
|
82
57
|
}
|
83
|
-
|
84
|
-
(0, _createClass2.default)(HiDotsStepper, [{
|
58
|
+
(0, _inherits2.default)(HiDotsStepper, _React$PureComponent);
|
59
|
+
return (0, _createClass2.default)(HiDotsStepper, [{
|
85
60
|
key: "render",
|
86
61
|
value: function render() {
|
87
62
|
var _this2 = this;
|
88
|
-
|
89
63
|
var _this$props2 = this.props,
|
90
|
-
|
91
|
-
|
92
|
-
|
64
|
+
classes = _this$props2.classes,
|
65
|
+
activeStep = _this$props2.activeStep,
|
66
|
+
steps = _this$props2.steps;
|
93
67
|
return /*#__PURE__*/_react.default.createElement("div", {
|
94
68
|
role: "presentation",
|
95
69
|
className: classes.dotStepper,
|
@@ -105,12 +79,8 @@ var HiDotsStepper = /*#__PURE__*/function (_React$PureComponent) {
|
|
105
79
|
}));
|
106
80
|
}
|
107
81
|
}]);
|
108
|
-
return HiDotsStepper;
|
109
82
|
}(_react.default.PureComponent);
|
110
|
-
|
111
|
-
var _default = (0, _withStyles.default)(styles, {
|
83
|
+
var _default = exports.default = (0, _withStyles.default)(styles, {
|
112
84
|
hiComponent: true,
|
113
85
|
name: 'HmuiHiDotsStepper'
|
114
|
-
})(HiDotsStepper);
|
115
|
-
|
116
|
-
exports.default = _default;
|
86
|
+
})(HiDotsStepper);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -17,7 +16,5 @@ Object.defineProperty(exports, "HiDotsStepper", {
|
|
17
16
|
return _HiDotsStepper.default;
|
18
17
|
}
|
19
18
|
});
|
20
|
-
|
21
19
|
var _HiDot = _interopRequireDefault(require("./HiDot"));
|
22
|
-
|
23
20
|
var _HiDotsStepper = _interopRequireDefault(require("./HiDotsStepper"));
|
@@ -1,42 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
6
|
-
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
8
6
|
value: true
|
9
7
|
});
|
10
8
|
exports.default = void 0;
|
11
|
-
|
12
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
13
|
-
|
14
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
15
|
-
|
16
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
17
|
-
|
18
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
19
|
-
|
20
13
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
21
|
-
|
22
14
|
var _react = _interopRequireWildcard(require("react"));
|
23
|
-
|
24
15
|
var _Accordion = _interopRequireDefault(require("@mui/material/Accordion"));
|
25
|
-
|
26
16
|
var _AccordionSummary = _interopRequireDefault(require("@mui/material/AccordionSummary"));
|
27
|
-
|
28
17
|
var _AccordionDetails = _interopRequireDefault(require("@mui/material/AccordionDetails"));
|
29
|
-
|
30
18
|
var _makeStyles = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
31
|
-
|
32
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
33
|
-
|
34
20
|
var _MenuUp = _interopRequireDefault(require("mdi-material-ui/MenuUp"));
|
35
|
-
|
36
|
-
function
|
37
|
-
|
38
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
39
|
-
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
40
23
|
var useStyles = (0, _makeStyles.default)(function (theme) {
|
41
24
|
return {
|
42
25
|
summaryContent: {
|
@@ -110,30 +93,27 @@ var useStyles = (0, _makeStyles.default)(function (theme) {
|
|
110
93
|
}
|
111
94
|
};
|
112
95
|
});
|
96
|
+
|
113
97
|
/**
|
114
98
|
* HiExpansionPanel
|
115
99
|
*/
|
116
|
-
|
117
100
|
var _ref = /*#__PURE__*/_react.default.createElement(_MenuUp.default, null);
|
118
|
-
|
119
101
|
function HiExpansionPanel(props) {
|
120
102
|
var disabled = props.disabled,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
103
|
+
heading = props.heading,
|
104
|
+
secondaryHeading = props.secondaryHeading,
|
105
|
+
secondaryHeadingDisabled = props.secondaryHeadingDisabled,
|
106
|
+
secondaryHeadingIcon = props.secondaryHeadingIcon,
|
107
|
+
collapseDisable = props.collapseDisable,
|
108
|
+
children = props.children,
|
109
|
+
expanded = props.expanded,
|
110
|
+
TransitionProps = props.TransitionProps,
|
111
|
+
others = (0, _objectWithoutProperties2.default)(props, ["disabled", "heading", "secondaryHeading", "secondaryHeadingDisabled", "secondaryHeadingIcon", "collapseDisable", "children", "expanded", "TransitionProps"]);
|
130
112
|
var classes = useStyles(props);
|
131
|
-
|
132
113
|
var _useState = (0, _react.useState)(!collapseDisable && !expanded),
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
114
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
115
|
+
panelDetailsExited = _useState2[0],
|
116
|
+
setPanelDetailsExited = _useState2[1];
|
137
117
|
var effectiveDisabled = disabled || !children;
|
138
118
|
return /*#__PURE__*/_react.default.createElement(_Accordion.default, (0, _extends2.default)({
|
139
119
|
disabled: effectiveDisabled,
|
@@ -170,12 +150,10 @@ function HiExpansionPanel(props) {
|
|
170
150
|
className: (0, _classnames.default)(classes.panelDetails, (0, _defineProperty2.default)({}, classes.panelDetailsExited, panelDetailsExited))
|
171
151
|
}, children));
|
172
152
|
}
|
173
|
-
|
174
153
|
HiExpansionPanel.defaultProps = {
|
175
154
|
disabled: false,
|
176
155
|
secondaryHeading: '',
|
177
156
|
secondaryHeadingIcon: '',
|
178
157
|
secondaryHeadingDisabled: ''
|
179
158
|
};
|
180
|
-
var _default = HiExpansionPanel;
|
181
|
-
exports.default = _default;
|
159
|
+
var _default = exports.default = HiExpansionPanel;
|