@hipay/hipay-material-ui 2.3.0-rcstyleguide-beta4 → 2.3.1-rc1
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAlertModal/HiAlertModal.js +10 -10
- package/HiAlertModal/index.js +1 -1
- package/HiAppBar/HiAppBar.js +8 -8
- package/HiAppBar/index.js +1 -1
- package/HiBadge/HiBadge.js +2 -2
- package/HiBadge/index.js +1 -1
- package/HiBreadcrumb/HiBreadcrumb.js +8 -8
- package/HiBreadcrumb/HiStep.js +9 -9
- package/HiBreadcrumb/HiStepConnector.js +10 -10
- package/HiBreadcrumb/HiStepContent.js +7 -7
- package/HiBreadcrumb/HiStepIcon.js +7 -7
- package/HiBreadcrumb/HiStepLabel.js +10 -10
- package/HiBreadcrumb/HiStepper.js +8 -8
- package/HiBreadcrumb/index.js +1 -1
- package/HiButton/HiButton.js +2 -2
- package/HiButton/index.js +1 -1
- package/HiCell/CellAddress.js +7 -7
- package/HiCell/CellDate.js +8 -8
- package/HiCell/CellIcon.js +7 -7
- package/HiCell/CellImage.js +7 -7
- package/HiCell/CellNumeric.js +7 -7
- package/HiCell/CellPinToAction.js +6 -6
- package/HiCell/CellRate.js +7 -7
- package/HiCell/CellSentinel.js +7 -7
- package/HiCell/CellSentinelScore.js +7 -7
- package/HiCell/CellText.js +9 -9
- package/HiCell/CellTextStyled.js +1 -1
- package/HiCell/index.js +1 -1
- package/HiCheckbox/HiCheckbox.js +11 -11
- package/HiCheckbox/index.js +1 -1
- package/HiChip/HiChip.js +3 -4
- package/HiChip/HiChipSwitch.js +10 -10
- package/HiChip/index.js +1 -1
- package/HiColoredLabel/HiColoredLabel.js +5 -5
- package/HiColoredLabel/index.js +1 -1
- package/HiDatePicker/Caption.js +2 -2
- package/HiDatePicker/HiDatePicker.js +12 -12
- package/HiDatePicker/HiDatePickerMobile.js +9 -9
- package/HiDatePicker/HiDateRangePicker.js +11 -11
- package/HiDatePicker/HiDateRangeSelector.js +33 -14
- package/HiDatePicker/ListPicker.js +8 -8
- package/HiDatePicker/NavBar.js +1 -1
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +4 -4
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +4 -4
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +10 -10
- package/HiDatePicker/Overlays/Overlay.js +4 -4
- package/HiDatePicker/Overlays/TimePickerOverlay.js +11 -11
- package/HiDatePicker/Overlays/YearPickerOverlay.js +10 -10
- package/HiDatePicker/Overlays/index.js +1 -1
- package/HiDatePicker/Weekday.js +1 -1
- package/HiDatePicker/index.js +1 -1
- package/HiDatePicker/stylesheet.js +2 -2
- package/HiDotsStepper/HiDot.js +9 -9
- package/HiDotsStepper/HiDotsStepper.js +8 -8
- package/HiDotsStepper/index.js +23 -0
- package/HiExpansionPanel/HiExpansionPanel.js +38 -14
- package/HiExpansionPanel/index.js +1 -1
- package/HiForm/HiAddressField.js +10 -10
- package/HiForm/HiEmailField.js +10 -10
- package/HiForm/HiFormControl.js +11 -11
- package/HiForm/HiFormLabel.js +10 -10
- package/HiForm/HiInput.js +9 -9
- package/HiForm/HiPasswordField.js +11 -11
- package/HiForm/HiSearchField.js +10 -10
- package/HiForm/HiSlider.js +9 -9
- package/HiForm/HiTextField.js +9 -9
- package/HiForm/HiUpload.js +10 -10
- package/HiForm/HiUploadField.js +9 -9
- package/HiForm/HiUploadInput.js +9 -9
- package/HiForm/index.js +1 -1
- package/HiIcon/HiIcon.js +5 -6
- package/HiIcon/index.js +1 -1
- package/HiIconButton/HiIconButton.js +4 -4
- package/HiIconButton/index.js +1 -1
- package/HiLoader/HiLoader.js +2 -2
- package/HiLoader/index.js +1 -1
- package/HiMap/HiMap.js +8 -8
- package/HiMap/HiMapExpand.js +9 -9
- package/HiMap/index.js +1 -1
- package/HiNotice/HiKPI.js +14 -13
- package/HiNotice/HiKPINotice.js +1 -1
- package/HiNotice/index.js +1 -1
- package/HiPaymentMeans/HiPaymentMeans.js +8 -8
- package/HiPaymentMeans/index.js +1 -1
- package/HiPdfReader/HiPdfReader.js +10 -10
- package/HiPdfReader/index.js +1 -1
- package/HiPin/HiPin.js +3 -3
- package/HiPin/index.js +1 -1
- package/HiRadio/HiRadio.js +1 -1
- package/HiRadio/index.js +1 -1
- package/HiSelect/HiDynamicSelect.js +12 -12
- package/HiSelect/HiDynamicSelectField.js +8 -8
- package/HiSelect/HiNestedSelect.js +12 -12
- package/HiSelect/HiNestedSelectContent.js +12 -12
- package/HiSelect/HiNestedSelectField.js +8 -8
- package/HiSelect/HiSelect.js +11 -11
- package/HiSelect/HiSelectContent.js +11 -11
- package/HiSelect/HiSelectField.js +8 -8
- package/HiSelect/HiSelectInput.js +9 -9
- package/HiSelect/HiSelectMobile.js +11 -11
- package/HiSelect/HiSuggestSelect.js +10 -10
- package/HiSelect/HiSuggestSelectField.js +8 -8
- package/HiSelect/index.js +2 -2
- package/HiSelectableList/HiSelectableList.js +11 -11
- package/HiSelectableList/HiSelectableListHierarchic.js +10 -10
- package/HiSelectableList/HiSelectableListItem.js +10 -10
- package/HiSelectableList/index.js +1 -1
- package/HiSwitch/HiSwitch.js +4 -4
- package/HiSwitch/HiSwitchState.js +2 -2
- package/HiSwitch/index.js +1 -1
- package/HiTable/HiCellBuilder.js +9 -9
- package/HiTable/HiTable.js +8 -8
- package/HiTable/HiTableBody.js +6 -6
- package/HiTable/HiTableHeader.js +9 -9
- package/HiTable/HiTableRow.js +11 -10
- package/HiTable/constants.js +2 -2
- package/HiTable/index.js +1 -1
- package/README.md +267 -37
- package/es/HiAlertModal/HiAlertModal.js +10 -10
- package/es/HiAlertModal/index.js +1 -1
- package/es/HiAppBar/HiAppBar.js +8 -8
- package/es/HiAppBar/index.js +1 -1
- package/es/HiBadge/HiBadge.js +2 -2
- package/es/HiBadge/index.js +1 -1
- package/es/HiBreadcrumb/HiBreadcrumb.js +8 -8
- package/es/HiBreadcrumb/HiStep.js +9 -9
- package/es/HiBreadcrumb/HiStepConnector.js +10 -10
- package/es/HiBreadcrumb/HiStepContent.js +7 -7
- package/es/HiBreadcrumb/HiStepIcon.js +7 -7
- package/es/HiBreadcrumb/HiStepLabel.js +10 -10
- package/es/HiBreadcrumb/HiStepper.js +8 -8
- package/es/HiBreadcrumb/index.js +1 -1
- package/es/HiButton/HiButton.js +2 -2
- package/es/HiButton/index.js +1 -1
- package/es/HiCell/CellAddress.js +7 -7
- package/es/HiCell/CellDate.js +8 -8
- package/es/HiCell/CellIcon.js +7 -7
- package/es/HiCell/CellImage.js +7 -7
- package/es/HiCell/CellNumeric.js +7 -7
- package/es/HiCell/CellPinToAction.js +6 -6
- package/es/HiCell/CellRate.js +7 -7
- package/es/HiCell/CellSentinel.js +7 -7
- package/es/HiCell/CellSentinelScore.js +7 -7
- package/es/HiCell/CellText.js +9 -9
- package/es/HiCell/CellTextStyled.js +1 -1
- package/es/HiCell/index.js +1 -1
- package/es/HiCheckbox/HiCheckbox.js +11 -11
- package/es/HiCheckbox/index.js +1 -1
- package/es/HiChip/HiChip.js +3 -4
- package/es/HiChip/HiChipSwitch.js +10 -10
- package/es/HiChip/index.js +1 -1
- package/es/HiColoredLabel/HiColoredLabel.js +5 -5
- package/es/HiColoredLabel/index.js +1 -1
- package/es/HiDatePicker/Caption.js +2 -2
- package/es/HiDatePicker/HiDatePicker.js +12 -12
- package/es/HiDatePicker/HiDatePickerMobile.js +9 -9
- package/es/HiDatePicker/HiDateRangePicker.js +11 -11
- package/es/HiDatePicker/HiDateRangeSelector.js +33 -14
- package/es/HiDatePicker/ListPicker.js +8 -8
- package/es/HiDatePicker/NavBar.js +1 -1
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +4 -4
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +4 -4
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +10 -10
- package/es/HiDatePicker/Overlays/Overlay.js +4 -4
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +11 -11
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +10 -10
- package/es/HiDatePicker/Overlays/index.js +1 -1
- package/es/HiDatePicker/Weekday.js +1 -1
- package/es/HiDatePicker/index.js +1 -1
- package/es/HiDatePicker/stylesheet.js +2 -2
- package/es/HiDotsStepper/HiDot.js +9 -9
- package/es/HiDotsStepper/HiDotsStepper.js +8 -8
- package/es/HiDotsStepper/index.js +23 -0
- package/es/HiExpansionPanel/HiExpansionPanel.js +38 -14
- package/es/HiExpansionPanel/index.js +1 -1
- package/es/HiForm/HiAddressField.js +10 -10
- package/es/HiForm/HiEmailField.js +10 -10
- package/es/HiForm/HiFormControl.js +11 -11
- package/es/HiForm/HiFormLabel.js +10 -10
- package/es/HiForm/HiInput.js +9 -9
- package/es/HiForm/HiPasswordField.js +11 -11
- package/es/HiForm/HiSearchField.js +10 -10
- package/es/HiForm/HiSlider.js +9 -9
- package/es/HiForm/HiTextField.js +9 -9
- package/es/HiForm/HiUpload.js +10 -10
- package/es/HiForm/HiUploadField.js +9 -9
- package/es/HiForm/HiUploadInput.js +9 -9
- package/es/HiForm/index.js +1 -1
- package/es/HiIcon/HiIcon.js +5 -6
- package/es/HiIcon/index.js +1 -1
- package/es/HiIconButton/HiIconButton.js +4 -4
- package/es/HiIconButton/index.js +1 -1
- package/es/HiLoader/HiLoader.js +2 -2
- package/es/HiLoader/index.js +1 -1
- package/es/HiMap/HiMap.js +8 -8
- package/es/HiMap/HiMapExpand.js +9 -9
- package/es/HiMap/index.js +1 -1
- package/es/HiNotice/HiKPI.js +14 -13
- package/es/HiNotice/HiKPINotice.js +1 -1
- package/es/HiNotice/index.js +1 -1
- package/es/HiPaymentMeans/HiPaymentMeans.js +8 -8
- package/es/HiPaymentMeans/index.js +1 -1
- package/es/HiPdfReader/HiPdfReader.js +10 -10
- package/es/HiPdfReader/index.js +1 -1
- package/es/HiPin/HiPin.js +3 -3
- package/es/HiPin/index.js +1 -1
- package/es/HiRadio/HiRadio.js +1 -1
- package/es/HiRadio/index.js +1 -1
- package/es/HiSelect/HiDynamicSelect.js +12 -12
- package/es/HiSelect/HiDynamicSelectField.js +8 -8
- package/es/HiSelect/HiNestedSelect.js +12 -12
- package/es/HiSelect/HiNestedSelectContent.js +12 -12
- package/es/HiSelect/HiNestedSelectField.js +8 -8
- package/es/HiSelect/HiSelect.js +11 -11
- package/es/HiSelect/HiSelectContent.js +11 -11
- package/es/HiSelect/HiSelectField.js +8 -8
- package/es/HiSelect/HiSelectInput.js +9 -9
- package/es/HiSelect/HiSelectMobile.js +11 -11
- package/es/HiSelect/HiSuggestSelect.js +10 -10
- package/es/HiSelect/HiSuggestSelectField.js +8 -8
- package/es/HiSelect/index.js +2 -2
- package/es/HiSelectableList/HiSelectableList.js +11 -11
- package/es/HiSelectableList/HiSelectableListHierarchic.js +10 -10
- package/es/HiSelectableList/HiSelectableListItem.js +10 -10
- package/es/HiSelectableList/index.js +1 -1
- package/es/HiSwitch/HiSwitch.js +4 -4
- package/es/HiSwitch/HiSwitchState.js +2 -2
- package/es/HiSwitch/index.js +1 -1
- package/es/HiTable/HiCellBuilder.js +9 -9
- package/es/HiTable/HiTable.js +8 -8
- package/es/HiTable/HiTableBody.js +6 -6
- package/es/HiTable/HiTableHeader.js +9 -9
- package/es/HiTable/HiTableRow.js +11 -10
- package/es/HiTable/constants.js +2 -2
- package/es/HiTable/index.js +1 -1
- package/es/hi-svg-icons/HiAccount.js +21 -9
- package/es/hi-svg-icons/HiActivity.js +21 -9
- package/es/hi-svg-icons/HiAll.js +21 -9
- package/es/hi-svg-icons/HiBilling.js +21 -9
- package/es/hi-svg-icons/HiBriefcaseRescue.js +22 -10
- package/es/hi-svg-icons/HiCatalog.js +22 -7
- package/es/hi-svg-icons/HiCustomer.js +22 -7
- package/es/hi-svg-icons/HiDownload.js +13 -5
- package/es/hi-svg-icons/HiFinance.js +22 -7
- package/es/hi-svg-icons/HiPermission.js +22 -7
- package/es/hi-svg-icons/HiRoute.js +22 -7
- package/es/hi-svg-icons/HiSettlement.js +22 -7
- package/es/hi-svg-icons/HiSizeLarge.js +5 -3
- package/es/hi-svg-icons/HiSizeMedium.js +3 -3
- package/es/hi-svg-icons/HiSizeSmall.js +3 -3
- package/es/hi-svg-icons/HiTransaction.js +22 -7
- package/es/hi-svg-icons/HiUser.js +22 -7
- package/es/hi-svg-icons/HiWidget.js +22 -7
- package/es/hi-svg-icons/index.js +1 -1
- package/es/hi-svg-icons/index.text.js +51 -0
- package/es/styleguide/Wrapper.js +7 -7
- package/es/styles/MuiThemeProvider.js +10 -10
- package/es/styles/colorManipulator.js +1 -1
- package/es/styles/createBreakpoints.js +3 -3
- package/es/styles/createGenerateClassName.js +1 -1
- package/es/styles/createMixins.js +3 -3
- package/es/styles/createMuiTheme.js +3 -3
- package/es/styles/createPalette.js +3 -3
- package/es/styles/createTypography.js +3 -3
- package/es/styles/getStylesCreator.js +3 -3
- package/es/styles/index.js +2 -18
- package/es/styles/jssPreset.js +1 -1
- package/es/styles/mergeClasses.js +2 -2
- package/es/styles/themeListener.js +2 -2
- package/es/styles/transitions.js +2 -2
- package/es/test-utils/createMount.js +3 -3
- package/es/test-utils/createRender.js +3 -3
- package/es/test-utils/createShallow.js +3 -3
- package/es/test-utils/index.js +1 -1
- package/es/test-utils/until.js +3 -3
- package/es/utils/exactProp.js +43 -0
- package/es/utils/helpers.js +3 -3
- package/es/withMobileDialog/index.js +1 -1
- package/es/withMobileDialog/withMobileDialog.js +3 -3
- package/hi-svg-icons/HiAccount.js +21 -9
- package/hi-svg-icons/HiActivity.js +21 -9
- package/hi-svg-icons/HiAll.js +21 -9
- package/hi-svg-icons/HiBilling.js +21 -9
- package/hi-svg-icons/HiBriefcaseRescue.js +22 -10
- package/hi-svg-icons/HiCatalog.js +22 -7
- package/hi-svg-icons/HiCustomer.js +22 -7
- package/hi-svg-icons/HiDownload.js +13 -5
- package/hi-svg-icons/HiFinance.js +22 -7
- package/hi-svg-icons/HiPermission.js +22 -7
- package/hi-svg-icons/HiRoute.js +22 -7
- package/hi-svg-icons/HiSettlement.js +22 -7
- package/hi-svg-icons/HiSizeLarge.js +5 -3
- package/hi-svg-icons/HiSizeMedium.js +3 -3
- package/hi-svg-icons/HiSizeSmall.js +3 -3
- package/hi-svg-icons/HiTransaction.js +22 -7
- package/hi-svg-icons/HiUser.js +22 -7
- package/hi-svg-icons/HiWidget.js +22 -7
- package/hi-svg-icons/index.js +1 -1
- package/hi-svg-icons/index.text.js +51 -0
- package/package.json +14 -4
- package/styleguide/Wrapper.js +7 -7
- package/styles/MuiThemeProvider.js +10 -10
- package/styles/colorManipulator.js +1 -1
- package/styles/createBreakpoints.js +3 -3
- package/styles/createGenerateClassName.js +1 -1
- package/styles/createMixins.js +3 -3
- package/styles/createMuiTheme.js +3 -3
- package/styles/createPalette.js +3 -3
- package/styles/createTypography.js +3 -3
- package/styles/getStylesCreator.js +3 -3
- package/styles/index.js +2 -18
- package/styles/jssPreset.js +1 -1
- package/styles/mergeClasses.js +2 -2
- package/styles/themeListener.js +2 -2
- package/styles/transitions.js +2 -2
- package/test-utils/createMount.js +3 -3
- package/test-utils/createRender.js +3 -3
- package/test-utils/createShallow.js +3 -3
- package/test-utils/index.js +1 -1
- package/test-utils/until.js +3 -3
- package/utils/exactProp.js +43 -0
- package/utils/helpers.js +3 -3
- package/withMobileDialog/index.js +1 -1
- package/withMobileDialog/withMobileDialog.js +3 -3
- package/es/App.js +0 -36
- package/es/index.js +0 -22
- package/es/old_components/HiAlertModal/HiAlertModal.js +0 -231
- package/es/old_components/HiAlertModal/index.js +0 -15
- package/es/old_components/HiAppBar/HiAppBar.js +0 -136
- package/es/old_components/HiAppBar/index.js +0 -15
- package/es/old_components/HiBadge/HiBadge.js +0 -103
- package/es/old_components/HiBadge/index.js +0 -15
- package/es/old_components/HiBreadcrumb/HiBreadcrumb.js +0 -105
- package/es/old_components/HiBreadcrumb/HiStep.js +0 -128
- package/es/old_components/HiBreadcrumb/HiStepConnector.js +0 -164
- package/es/old_components/HiBreadcrumb/HiStepContent.js +0 -97
- package/es/old_components/HiBreadcrumb/HiStepIcon.js +0 -154
- package/es/old_components/HiBreadcrumb/HiStepLabel.js +0 -173
- package/es/old_components/HiBreadcrumb/HiStepper.js +0 -81
- package/es/old_components/HiBreadcrumb/index.js +0 -15
- package/es/old_components/HiButton/HiButton.js +0 -92
- package/es/old_components/HiButton/index.js +0 -13
- package/es/old_components/HiCell/CellAddress.js +0 -98
- package/es/old_components/HiCell/CellDate.js +0 -110
- package/es/old_components/HiCell/CellIcon.js +0 -129
- package/es/old_components/HiCell/CellImage.js +0 -115
- package/es/old_components/HiCell/CellNumeric.js +0 -91
- package/es/old_components/HiCell/CellPinToAction.js +0 -73
- package/es/old_components/HiCell/CellRate.js +0 -150
- package/es/old_components/HiCell/CellSentinel.js +0 -91
- package/es/old_components/HiCell/CellSentinelScore.js +0 -94
- package/es/old_components/HiCell/CellText.js +0 -228
- package/es/old_components/HiCell/CellTextStyled.js +0 -92
- package/es/old_components/HiCell/index.js +0 -79
- package/es/old_components/HiCheckbox/HiCheckbox.js +0 -175
- package/es/old_components/HiCheckbox/index.js +0 -15
- package/es/old_components/HiChip/HiChip.js +0 -227
- package/es/old_components/HiChip/HiChipSwitch.js +0 -249
- package/es/old_components/HiChip/index.js +0 -23
- package/es/old_components/HiColoredLabel/HiColoredLabel.js +0 -179
- package/es/old_components/HiColoredLabel/index.js +0 -15
- package/es/old_components/HiDatePicker/Caption.js +0 -57
- package/es/old_components/HiDatePicker/HiDatePicker.js +0 -357
- package/es/old_components/HiDatePicker/HiDatePickerMobile.js +0 -106
- package/es/old_components/HiDatePicker/HiDateRangePicker.js +0 -641
- package/es/old_components/HiDatePicker/HiDateRangeSelector.js +0 -464
- package/es/old_components/HiDatePicker/ListPicker.js +0 -136
- package/es/old_components/HiDatePicker/NavBar.js +0 -106
- package/es/old_components/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -111
- package/es/old_components/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -103
- package/es/old_components/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -89
- package/es/old_components/HiDatePicker/Overlays/Overlay.js +0 -77
- package/es/old_components/HiDatePicker/Overlays/TimePickerOverlay.js +0 -217
- package/es/old_components/HiDatePicker/Overlays/YearPickerOverlay.js +0 -110
- package/es/old_components/HiDatePicker/Overlays/index.js +0 -47
- package/es/old_components/HiDatePicker/Weekday.js +0 -25
- package/es/old_components/HiDatePicker/hiLocaleUtils.js +0 -144
- package/es/old_components/HiDatePicker/index.js +0 -15
- package/es/old_components/HiDatePicker/stylesheet.js +0 -266
- package/es/old_components/HiDotsStepper/HiDot.js +0 -102
- package/es/old_components/HiDotsStepper/HiDotsStepper.js +0 -111
- package/es/old_components/HiExpansionPanel/HiExpansionPanel.js +0 -194
- package/es/old_components/HiExpansionPanel/index.js +0 -13
- package/es/old_components/HiForm/HiAddressField.js +0 -153
- package/es/old_components/HiForm/HiEmailField.js +0 -81
- package/es/old_components/HiForm/HiFormControl.js +0 -306
- package/es/old_components/HiForm/HiFormLabel.js +0 -125
- package/es/old_components/HiForm/HiInput.js +0 -459
- package/es/old_components/HiForm/HiPasswordField.js +0 -113
- package/es/old_components/HiForm/HiSearchField.js +0 -157
- package/es/old_components/HiForm/HiSlider.js +0 -281
- package/es/old_components/HiForm/HiTextField.js +0 -170
- package/es/old_components/HiForm/HiUpload.js +0 -385
- package/es/old_components/HiForm/HiUploadField.js +0 -90
- package/es/old_components/HiForm/HiUploadInput.js +0 -390
- package/es/old_components/HiForm/index.js +0 -95
- package/es/old_components/HiIcon/HiIcon.js +0 -114
- package/es/old_components/HiIcon/index.js +0 -15
- package/es/old_components/HiIconButton/HiIconButton.js +0 -104
- package/es/old_components/HiIconButton/index.js +0 -15
- package/es/old_components/HiLoader/HiLoader.js +0 -49
- package/es/old_components/HiLoader/index.js +0 -15
- package/es/old_components/HiMap/HiMap.js +0 -317
- package/es/old_components/HiMap/HiMapExpand.js +0 -200
- package/es/old_components/HiMap/index.js +0 -23
- package/es/old_components/HiNotice/HiKPI.js +0 -186
- package/es/old_components/HiNotice/HiKPINotice.js +0 -69
- package/es/old_components/HiNotice/index.js +0 -23
- package/es/old_components/HiPaymentMeans/HiPaymentMeans.js +0 -576
- package/es/old_components/HiPaymentMeans/index.js +0 -15
- package/es/old_components/HiPdfReader/HiPdfReader.js +0 -245
- package/es/old_components/HiPdfReader/index.js +0 -15
- package/es/old_components/HiPin/HiPin.js +0 -104
- package/es/old_components/HiPin/index.js +0 -15
- package/es/old_components/HiRadio/HiRadio.js +0 -67
- package/es/old_components/HiRadio/index.js +0 -15
- package/es/old_components/HiSelect/HiDynamicSelect.js +0 -165
- package/es/old_components/HiSelect/HiDynamicSelectField.js +0 -98
- package/es/old_components/HiSelect/HiNestedSelect.js +0 -445
- package/es/old_components/HiSelect/HiNestedSelectContent.js +0 -350
- package/es/old_components/HiSelect/HiNestedSelectField.js +0 -98
- package/es/old_components/HiSelect/HiSelect.js +0 -808
- package/es/old_components/HiSelect/HiSelectContent.js +0 -404
- package/es/old_components/HiSelect/HiSelectField.js +0 -100
- package/es/old_components/HiSelect/HiSelectInput.js +0 -323
- package/es/old_components/HiSelect/HiSelectMobile.js +0 -167
- package/es/old_components/HiSelect/HiSuggestSelect.js +0 -313
- package/es/old_components/HiSelect/HiSuggestSelectField.js +0 -87
- package/es/old_components/HiSelect/index.js +0 -85
- package/es/old_components/HiSelectableList/HiSelectableList.js +0 -292
- package/es/old_components/HiSelectableList/HiSelectableListHierarchic.js +0 -173
- package/es/old_components/HiSelectableList/HiSelectableListItem.js +0 -427
- package/es/old_components/HiSelectableList/index.js +0 -31
- package/es/old_components/HiSwitch/HiSwitch.js +0 -201
- package/es/old_components/HiSwitch/HiSwitchState.js +0 -163
- package/es/old_components/HiSwitch/index.js +0 -23
- package/es/old_components/HiTable/HiCellBuilder.js +0 -231
- package/es/old_components/HiTable/HiTable.js +0 -101
- package/es/old_components/HiTable/HiTableBody.js +0 -62
- package/es/old_components/HiTable/HiTableHeader.js +0 -141
- package/es/old_components/HiTable/HiTableRow.js +0 -136
- package/es/old_components/HiTable/constants.js +0 -149
- package/es/old_components/HiTable/index.js +0 -15
- package/es/old_components/hi-svg-icons/HiAccount.js +0 -46
- package/es/old_components/hi-svg-icons/HiActivity.js +0 -44
- package/es/old_components/hi-svg-icons/HiAll.js +0 -51
- package/es/old_components/hi-svg-icons/HiBilling.js +0 -46
- package/es/old_components/hi-svg-icons/HiBriefcaseRescue.js +0 -27
- package/es/old_components/hi-svg-icons/HiCatalog.js +0 -43
- package/es/old_components/hi-svg-icons/HiCustomer.js +0 -43
- package/es/old_components/hi-svg-icons/HiDownload.js +0 -28
- package/es/old_components/hi-svg-icons/HiFinance.js +0 -43
- package/es/old_components/hi-svg-icons/HiPermission.js +0 -41
- package/es/old_components/hi-svg-icons/HiRoute.js +0 -43
- package/es/old_components/hi-svg-icons/HiSettlement.js +0 -43
- package/es/old_components/hi-svg-icons/HiSizeLarge.js +0 -36
- package/es/old_components/hi-svg-icons/HiSizeMedium.js +0 -36
- package/es/old_components/hi-svg-icons/HiSizeSmall.js +0 -36
- package/es/old_components/hi-svg-icons/HiTransaction.js +0 -43
- package/es/old_components/hi-svg-icons/HiUser.js +0 -43
- package/es/old_components/hi-svg-icons/HiWidget.js +0 -48
- package/es/old_components/hi-svg-icons/index.js +0 -151
- package/es/old_components/styles/MuiThemeProvider.js +0 -155
- package/es/old_components/styles/colorManipulator.js +0 -286
- package/es/old_components/styles/createBreakpoints.js +0 -81
- package/es/old_components/styles/createGenerateClassName.js +0 -86
- package/es/old_components/styles/createMixins.js +0 -36
- package/es/old_components/styles/createMuiTheme.js +0 -77
- package/es/old_components/styles/createPalette.js +0 -287
- package/es/old_components/styles/createStyles.js +0 -10
- package/es/old_components/styles/createTypography.js +0 -185
- package/es/old_components/styles/getStylesCreator.js +0 -54
- package/es/old_components/styles/getThemeProps.js +0 -20
- package/es/old_components/styles/index.js +0 -63
- package/es/old_components/styles/jssPreset.js +0 -31
- package/es/old_components/styles/mergeClasses.js +0 -41
- package/es/old_components/styles/shadows.js +0 -17
- package/es/old_components/styles/shape.js +0 -11
- package/es/old_components/styles/spacing.js +0 -14
- package/es/old_components/styles/themeListener.js +0 -40
- package/es/old_components/styles/transitions.js +0 -106
- package/es/old_components/styles/withStyles.js +0 -373
- package/es/old_components/styles/withTheme.js +0 -122
- package/es/old_components/styles/zIndex.js +0 -18
- package/es/old_components/test-utils/createMount.js +0 -44
- package/es/old_components/test-utils/createRender.js +0 -29
- package/es/old_components/test-utils/createShallow.js +0 -48
- package/es/old_components/test-utils/getClasses.js +0 -12
- package/es/old_components/test-utils/index.js +0 -47
- package/es/old_components/test-utils/until.js +0 -49
- package/es/old_components/test-utils/unwrap.js +0 -10
- package/es/old_components/transitions/utils.js +0 -23
- package/es/old_components/utils/helpers.js +0 -335
- package/es/old_components/withMobileDialog/index.js +0 -15
- package/es/old_components/withMobileDialog/withMobileDialog.js +0 -40
- package/es/serviceWorker.js +0 -118
- package/es/styles/withStyles.js +0 -373
- package/es/styles/withTheme.js +0 -122
- package/old_components/HiAlertModal/HiAlertModal.js +0 -231
- package/old_components/HiAlertModal/index.js +0 -15
- package/old_components/HiAppBar/HiAppBar.js +0 -136
- package/old_components/HiAppBar/index.js +0 -15
- package/old_components/HiBadge/HiBadge.js +0 -103
- package/old_components/HiBadge/index.js +0 -15
- package/old_components/HiBreadcrumb/HiBreadcrumb.js +0 -105
- package/old_components/HiBreadcrumb/HiStep.js +0 -128
- package/old_components/HiBreadcrumb/HiStepConnector.js +0 -164
- package/old_components/HiBreadcrumb/HiStepContent.js +0 -97
- package/old_components/HiBreadcrumb/HiStepIcon.js +0 -154
- package/old_components/HiBreadcrumb/HiStepLabel.js +0 -173
- package/old_components/HiBreadcrumb/HiStepper.js +0 -81
- package/old_components/HiBreadcrumb/index.js +0 -15
- package/old_components/HiButton/HiButton.js +0 -92
- package/old_components/HiButton/index.js +0 -13
- package/old_components/HiCell/CellAddress.js +0 -98
- package/old_components/HiCell/CellDate.js +0 -110
- package/old_components/HiCell/CellIcon.js +0 -129
- package/old_components/HiCell/CellImage.js +0 -115
- package/old_components/HiCell/CellNumeric.js +0 -91
- package/old_components/HiCell/CellPinToAction.js +0 -73
- package/old_components/HiCell/CellRate.js +0 -150
- package/old_components/HiCell/CellSentinel.js +0 -91
- package/old_components/HiCell/CellSentinelScore.js +0 -94
- package/old_components/HiCell/CellText.js +0 -228
- package/old_components/HiCell/CellTextStyled.js +0 -92
- package/old_components/HiCell/index.js +0 -79
- package/old_components/HiCheckbox/HiCheckbox.js +0 -175
- package/old_components/HiCheckbox/index.js +0 -15
- package/old_components/HiChip/HiChip.js +0 -227
- package/old_components/HiChip/HiChipSwitch.js +0 -249
- package/old_components/HiChip/index.js +0 -23
- package/old_components/HiColoredLabel/HiColoredLabel.js +0 -179
- package/old_components/HiColoredLabel/index.js +0 -15
- package/old_components/HiDatePicker/Caption.js +0 -57
- package/old_components/HiDatePicker/HiDatePicker.js +0 -357
- package/old_components/HiDatePicker/HiDatePickerMobile.js +0 -106
- package/old_components/HiDatePicker/HiDateRangePicker.js +0 -641
- package/old_components/HiDatePicker/HiDateRangeSelector.js +0 -464
- package/old_components/HiDatePicker/ListPicker.js +0 -136
- package/old_components/HiDatePicker/NavBar.js +0 -106
- package/old_components/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -111
- package/old_components/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -103
- package/old_components/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -89
- package/old_components/HiDatePicker/Overlays/Overlay.js +0 -77
- package/old_components/HiDatePicker/Overlays/TimePickerOverlay.js +0 -217
- package/old_components/HiDatePicker/Overlays/YearPickerOverlay.js +0 -110
- package/old_components/HiDatePicker/Overlays/index.js +0 -47
- package/old_components/HiDatePicker/Weekday.js +0 -25
- package/old_components/HiDatePicker/hiLocaleUtils.js +0 -144
- package/old_components/HiDatePicker/index.js +0 -15
- package/old_components/HiDatePicker/stylesheet.js +0 -266
- package/old_components/HiDotsStepper/HiDot.js +0 -102
- package/old_components/HiDotsStepper/HiDotsStepper.js +0 -111
- package/old_components/HiExpansionPanel/HiExpansionPanel.js +0 -194
- package/old_components/HiExpansionPanel/index.js +0 -13
- package/old_components/HiForm/HiAddressField.js +0 -153
- package/old_components/HiForm/HiEmailField.js +0 -81
- package/old_components/HiForm/HiFormControl.js +0 -306
- package/old_components/HiForm/HiFormLabel.js +0 -125
- package/old_components/HiForm/HiInput.js +0 -459
- package/old_components/HiForm/HiPasswordField.js +0 -113
- package/old_components/HiForm/HiSearchField.js +0 -157
- package/old_components/HiForm/HiSlider.js +0 -281
- package/old_components/HiForm/HiTextField.js +0 -170
- package/old_components/HiForm/HiUpload.js +0 -385
- package/old_components/HiForm/HiUploadField.js +0 -90
- package/old_components/HiForm/HiUploadInput.js +0 -390
- package/old_components/HiForm/index.js +0 -95
- package/old_components/HiIcon/HiIcon.js +0 -114
- package/old_components/HiIcon/index.js +0 -15
- package/old_components/HiIconButton/HiIconButton.js +0 -104
- package/old_components/HiIconButton/index.js +0 -15
- package/old_components/HiLoader/HiLoader.js +0 -49
- package/old_components/HiLoader/index.js +0 -15
- package/old_components/HiMap/HiMap.js +0 -317
- package/old_components/HiMap/HiMapExpand.js +0 -200
- package/old_components/HiMap/index.js +0 -23
- package/old_components/HiNotice/HiKPI.js +0 -186
- package/old_components/HiNotice/HiKPINotice.js +0 -69
- package/old_components/HiNotice/index.js +0 -23
- package/old_components/HiPaymentMeans/HiPaymentMeans.js +0 -576
- package/old_components/HiPaymentMeans/index.js +0 -15
- package/old_components/HiPdfReader/HiPdfReader.js +0 -245
- package/old_components/HiPdfReader/index.js +0 -15
- package/old_components/HiPin/HiPin.js +0 -104
- package/old_components/HiPin/index.js +0 -15
- package/old_components/HiRadio/HiRadio.js +0 -67
- package/old_components/HiRadio/index.js +0 -15
- package/old_components/HiSelect/HiDynamicSelect.js +0 -165
- package/old_components/HiSelect/HiDynamicSelectField.js +0 -98
- package/old_components/HiSelect/HiNestedSelect.js +0 -445
- package/old_components/HiSelect/HiNestedSelectContent.js +0 -350
- package/old_components/HiSelect/HiNestedSelectField.js +0 -98
- package/old_components/HiSelect/HiSelect.js +0 -808
- package/old_components/HiSelect/HiSelectContent.js +0 -404
- package/old_components/HiSelect/HiSelectField.js +0 -100
- package/old_components/HiSelect/HiSelectInput.js +0 -323
- package/old_components/HiSelect/HiSelectMobile.js +0 -167
- package/old_components/HiSelect/HiSuggestSelect.js +0 -313
- package/old_components/HiSelect/HiSuggestSelectField.js +0 -87
- package/old_components/HiSelect/index.js +0 -85
- package/old_components/HiSelectableList/HiSelectableList.js +0 -292
- package/old_components/HiSelectableList/HiSelectableListHierarchic.js +0 -173
- package/old_components/HiSelectableList/HiSelectableListItem.js +0 -427
- package/old_components/HiSelectableList/index.js +0 -31
- package/old_components/HiSwitch/HiSwitch.js +0 -201
- package/old_components/HiSwitch/HiSwitchState.js +0 -163
- package/old_components/HiSwitch/index.js +0 -23
- package/old_components/HiTable/HiCellBuilder.js +0 -231
- package/old_components/HiTable/HiTable.js +0 -101
- package/old_components/HiTable/HiTableBody.js +0 -62
- package/old_components/HiTable/HiTableHeader.js +0 -141
- package/old_components/HiTable/HiTableRow.js +0 -136
- package/old_components/HiTable/constants.js +0 -149
- package/old_components/HiTable/index.js +0 -15
- package/old_components/hi-svg-icons/HiAccount.js +0 -46
- package/old_components/hi-svg-icons/HiActivity.js +0 -44
- package/old_components/hi-svg-icons/HiAll.js +0 -51
- package/old_components/hi-svg-icons/HiBilling.js +0 -46
- package/old_components/hi-svg-icons/HiBriefcaseRescue.js +0 -27
- package/old_components/hi-svg-icons/HiCatalog.js +0 -43
- package/old_components/hi-svg-icons/HiCustomer.js +0 -43
- package/old_components/hi-svg-icons/HiDownload.js +0 -28
- package/old_components/hi-svg-icons/HiFinance.js +0 -43
- package/old_components/hi-svg-icons/HiPermission.js +0 -41
- package/old_components/hi-svg-icons/HiRoute.js +0 -43
- package/old_components/hi-svg-icons/HiSettlement.js +0 -43
- package/old_components/hi-svg-icons/HiSizeLarge.js +0 -36
- package/old_components/hi-svg-icons/HiSizeMedium.js +0 -36
- package/old_components/hi-svg-icons/HiSizeSmall.js +0 -36
- package/old_components/hi-svg-icons/HiTransaction.js +0 -43
- package/old_components/hi-svg-icons/HiUser.js +0 -43
- package/old_components/hi-svg-icons/HiWidget.js +0 -48
- package/old_components/hi-svg-icons/index.js +0 -151
- package/old_components/styles/MuiThemeProvider.js +0 -155
- package/old_components/styles/colorManipulator.js +0 -286
- package/old_components/styles/createBreakpoints.js +0 -81
- package/old_components/styles/createGenerateClassName.js +0 -86
- package/old_components/styles/createMixins.js +0 -36
- package/old_components/styles/createMuiTheme.js +0 -77
- package/old_components/styles/createPalette.js +0 -287
- package/old_components/styles/createStyles.js +0 -10
- package/old_components/styles/createTypography.js +0 -185
- package/old_components/styles/getStylesCreator.js +0 -54
- package/old_components/styles/getThemeProps.js +0 -20
- package/old_components/styles/index.js +0 -63
- package/old_components/styles/jssPreset.js +0 -31
- package/old_components/styles/mergeClasses.js +0 -41
- package/old_components/styles/shadows.js +0 -17
- package/old_components/styles/shape.js +0 -11
- package/old_components/styles/spacing.js +0 -14
- package/old_components/styles/themeListener.js +0 -40
- package/old_components/styles/transitions.js +0 -106
- package/old_components/styles/withStyles.js +0 -373
- package/old_components/styles/withTheme.js +0 -122
- package/old_components/styles/zIndex.js +0 -18
- package/old_components/test-utils/createMount.js +0 -44
- package/old_components/test-utils/createRender.js +0 -29
- package/old_components/test-utils/createShallow.js +0 -48
- package/old_components/test-utils/getClasses.js +0 -12
- package/old_components/test-utils/index.js +0 -47
- package/old_components/test-utils/until.js +0 -49
- package/old_components/test-utils/unwrap.js +0 -10
- package/old_components/transitions/utils.js +0 -23
- package/old_components/utils/helpers.js +0 -335
- package/old_components/withMobileDialog/index.js +0 -15
- package/old_components/withMobileDialog/withMobileDialog.js +0 -40
- package/styles/withStyles.js +0 -373
- package/styles/withTheme.js +0 -122
@@ -1,151 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
Object.defineProperty(exports, "HiAccount", {
|
9
|
-
enumerable: true,
|
10
|
-
get: function get() {
|
11
|
-
return _HiAccount.default;
|
12
|
-
}
|
13
|
-
});
|
14
|
-
Object.defineProperty(exports, "HiAll", {
|
15
|
-
enumerable: true,
|
16
|
-
get: function get() {
|
17
|
-
return _HiAll.default;
|
18
|
-
}
|
19
|
-
});
|
20
|
-
Object.defineProperty(exports, "HiBilling", {
|
21
|
-
enumerable: true,
|
22
|
-
get: function get() {
|
23
|
-
return _HiBilling.default;
|
24
|
-
}
|
25
|
-
});
|
26
|
-
Object.defineProperty(exports, "HiBriefcaseRescue", {
|
27
|
-
enumerable: true,
|
28
|
-
get: function get() {
|
29
|
-
return _HiBriefcaseRescue.default;
|
30
|
-
}
|
31
|
-
});
|
32
|
-
Object.defineProperty(exports, "HiCatalog", {
|
33
|
-
enumerable: true,
|
34
|
-
get: function get() {
|
35
|
-
return _HiCatalog.default;
|
36
|
-
}
|
37
|
-
});
|
38
|
-
Object.defineProperty(exports, "HiCustomer", {
|
39
|
-
enumerable: true,
|
40
|
-
get: function get() {
|
41
|
-
return _HiCustomer.default;
|
42
|
-
}
|
43
|
-
});
|
44
|
-
Object.defineProperty(exports, "HiFinance", {
|
45
|
-
enumerable: true,
|
46
|
-
get: function get() {
|
47
|
-
return _HiFinance.default;
|
48
|
-
}
|
49
|
-
});
|
50
|
-
Object.defineProperty(exports, "HiRoute", {
|
51
|
-
enumerable: true,
|
52
|
-
get: function get() {
|
53
|
-
return _HiRoute.default;
|
54
|
-
}
|
55
|
-
});
|
56
|
-
Object.defineProperty(exports, "HiSettlement", {
|
57
|
-
enumerable: true,
|
58
|
-
get: function get() {
|
59
|
-
return _HiSettlement.default;
|
60
|
-
}
|
61
|
-
});
|
62
|
-
Object.defineProperty(exports, "HiSizeLarge", {
|
63
|
-
enumerable: true,
|
64
|
-
get: function get() {
|
65
|
-
return _HiSizeLarge.default;
|
66
|
-
}
|
67
|
-
});
|
68
|
-
Object.defineProperty(exports, "HiSizeMedium", {
|
69
|
-
enumerable: true,
|
70
|
-
get: function get() {
|
71
|
-
return _HiSizeMedium.default;
|
72
|
-
}
|
73
|
-
});
|
74
|
-
Object.defineProperty(exports, "HiSizeSmall", {
|
75
|
-
enumerable: true,
|
76
|
-
get: function get() {
|
77
|
-
return _HiSizeSmall.default;
|
78
|
-
}
|
79
|
-
});
|
80
|
-
Object.defineProperty(exports, "HiTransaction", {
|
81
|
-
enumerable: true,
|
82
|
-
get: function get() {
|
83
|
-
return _HiTransaction.default;
|
84
|
-
}
|
85
|
-
});
|
86
|
-
Object.defineProperty(exports, "HiUser", {
|
87
|
-
enumerable: true,
|
88
|
-
get: function get() {
|
89
|
-
return _HiUser.default;
|
90
|
-
}
|
91
|
-
});
|
92
|
-
Object.defineProperty(exports, "HiWidget", {
|
93
|
-
enumerable: true,
|
94
|
-
get: function get() {
|
95
|
-
return _HiWidget.default;
|
96
|
-
}
|
97
|
-
});
|
98
|
-
Object.defineProperty(exports, "HiActivity", {
|
99
|
-
enumerable: true,
|
100
|
-
get: function get() {
|
101
|
-
return _HiActivity.default;
|
102
|
-
}
|
103
|
-
});
|
104
|
-
Object.defineProperty(exports, "HiPermission", {
|
105
|
-
enumerable: true,
|
106
|
-
get: function get() {
|
107
|
-
return _HiPermission.default;
|
108
|
-
}
|
109
|
-
});
|
110
|
-
Object.defineProperty(exports, "HiDownload", {
|
111
|
-
enumerable: true,
|
112
|
-
get: function get() {
|
113
|
-
return _HiDownload.default;
|
114
|
-
}
|
115
|
-
});
|
116
|
-
|
117
|
-
var _HiAccount = _interopRequireDefault(require("./HiAccount"));
|
118
|
-
|
119
|
-
var _HiAll = _interopRequireDefault(require("./HiAll"));
|
120
|
-
|
121
|
-
var _HiBilling = _interopRequireDefault(require("./HiBilling"));
|
122
|
-
|
123
|
-
var _HiBriefcaseRescue = _interopRequireDefault(require("./HiBriefcaseRescue"));
|
124
|
-
|
125
|
-
var _HiCatalog = _interopRequireDefault(require("./HiCatalog"));
|
126
|
-
|
127
|
-
var _HiCustomer = _interopRequireDefault(require("./HiCustomer"));
|
128
|
-
|
129
|
-
var _HiFinance = _interopRequireDefault(require("./HiFinance"));
|
130
|
-
|
131
|
-
var _HiRoute = _interopRequireDefault(require("./HiRoute"));
|
132
|
-
|
133
|
-
var _HiSettlement = _interopRequireDefault(require("./HiSettlement"));
|
134
|
-
|
135
|
-
var _HiSizeLarge = _interopRequireDefault(require("./HiSizeLarge"));
|
136
|
-
|
137
|
-
var _HiSizeMedium = _interopRequireDefault(require("./HiSizeMedium"));
|
138
|
-
|
139
|
-
var _HiSizeSmall = _interopRequireDefault(require("./HiSizeSmall"));
|
140
|
-
|
141
|
-
var _HiTransaction = _interopRequireDefault(require("./HiTransaction"));
|
142
|
-
|
143
|
-
var _HiUser = _interopRequireDefault(require("./HiUser"));
|
144
|
-
|
145
|
-
var _HiWidget = _interopRequireDefault(require("./HiWidget"));
|
146
|
-
|
147
|
-
var _HiActivity = _interopRequireDefault(require("./HiActivity"));
|
148
|
-
|
149
|
-
var _HiPermission = _interopRequireDefault(require("./HiPermission"));
|
150
|
-
|
151
|
-
var _HiDownload = _interopRequireDefault(require("./HiDownload"));
|
@@ -1,155 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireWildcard");
|
4
|
-
|
5
|
-
var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
|
6
|
-
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
8
|
-
value: true
|
9
|
-
});
|
10
|
-
exports.default = void 0;
|
11
|
-
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
-
|
14
|
-
var _classCallCheck2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
|
-
var _createClass2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
19
|
-
|
20
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf"));
|
21
|
-
|
22
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized"));
|
23
|
-
|
24
|
-
var _inherits2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits"));
|
25
|
-
|
26
|
-
var _defineProperty2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty"));
|
27
|
-
|
28
|
-
var _react = _interopRequireDefault(require("react"));
|
29
|
-
|
30
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
31
|
-
|
32
|
-
var _warning = _interopRequireDefault(require("warning"));
|
33
|
-
|
34
|
-
var _brcast = _interopRequireDefault(require("brcast"));
|
35
|
-
|
36
|
-
var _themeListener = _interopRequireWildcard(require("./themeListener"));
|
37
|
-
|
38
|
-
var _exactProp = _interopRequireDefault(require("../utils/exactProp"));
|
39
|
-
|
40
|
-
/**
|
41
|
-
* This component takes a `theme` property.
|
42
|
-
* It makes the `theme` available down the React tree thanks to React context.
|
43
|
-
* This component should preferably be used at **the root of your component tree**.
|
44
|
-
*/
|
45
|
-
var MuiThemeProvider =
|
46
|
-
/*#__PURE__*/
|
47
|
-
function (_React$Component) {
|
48
|
-
(0, _inherits2.default)(MuiThemeProvider, _React$Component);
|
49
|
-
|
50
|
-
// We are not using the React state in order to avoid unnecessary rerender.
|
51
|
-
function MuiThemeProvider(props, context) {
|
52
|
-
var _this;
|
53
|
-
|
54
|
-
(0, _classCallCheck2.default)(this, MuiThemeProvider);
|
55
|
-
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(MuiThemeProvider).call(this)); // Get the outer theme from the context, can be null
|
56
|
-
|
57
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "broadcast", (0, _brcast.default)());
|
58
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "unsubscribeId", null);
|
59
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "outerTheme", null);
|
60
|
-
_this.outerTheme = _themeListener.default.initial(context); // Propagate the theme so it can be accessed by the children
|
61
|
-
|
62
|
-
_this.broadcast.setState(_this.mergeOuterLocalTheme(props.theme));
|
63
|
-
|
64
|
-
return _this;
|
65
|
-
}
|
66
|
-
|
67
|
-
(0, _createClass2.default)(MuiThemeProvider, [{
|
68
|
-
key: "getChildContext",
|
69
|
-
value: function getChildContext() {
|
70
|
-
var _ref;
|
71
|
-
|
72
|
-
var _this$props = this.props,
|
73
|
-
sheetsManager = _this$props.sheetsManager,
|
74
|
-
disableStylesGeneration = _this$props.disableStylesGeneration;
|
75
|
-
var muiThemeProviderOptions = this.context.muiThemeProviderOptions || {};
|
76
|
-
|
77
|
-
if (sheetsManager !== undefined) {
|
78
|
-
muiThemeProviderOptions.sheetsManager = sheetsManager;
|
79
|
-
}
|
80
|
-
|
81
|
-
if (disableStylesGeneration !== undefined) {
|
82
|
-
muiThemeProviderOptions.disableStylesGeneration = disableStylesGeneration;
|
83
|
-
}
|
84
|
-
|
85
|
-
return _ref = {}, (0, _defineProperty2.default)(_ref, _themeListener.CHANNEL, this.broadcast), (0, _defineProperty2.default)(_ref, "muiThemeProviderOptions", muiThemeProviderOptions), _ref;
|
86
|
-
}
|
87
|
-
}, {
|
88
|
-
key: "componentDidMount",
|
89
|
-
value: function componentDidMount() {
|
90
|
-
var _this2 = this;
|
91
|
-
|
92
|
-
// Subscribe on the outer theme, if present
|
93
|
-
this.unsubscribeId = _themeListener.default.subscribe(this.context, function (outerTheme) {
|
94
|
-
_this2.outerTheme = outerTheme; // Forward the parent theme update to the children
|
95
|
-
|
96
|
-
_this2.broadcast.setState(_this2.mergeOuterLocalTheme(_this2.props.theme));
|
97
|
-
});
|
98
|
-
}
|
99
|
-
}, {
|
100
|
-
key: "componentDidUpdate",
|
101
|
-
value: function componentDidUpdate(prevProps) {
|
102
|
-
// Propagate a local theme update
|
103
|
-
if (this.props.theme !== prevProps.theme) {
|
104
|
-
this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme));
|
105
|
-
}
|
106
|
-
}
|
107
|
-
}, {
|
108
|
-
key: "componentWillUnmount",
|
109
|
-
value: function componentWillUnmount() {
|
110
|
-
if (this.unsubscribeId !== null) {
|
111
|
-
_themeListener.default.unsubscribe(this.context, this.unsubscribeId);
|
112
|
-
}
|
113
|
-
} // Simple merge between the outer theme and the local theme
|
114
|
-
|
115
|
-
}, {
|
116
|
-
key: "mergeOuterLocalTheme",
|
117
|
-
value: function mergeOuterLocalTheme(localTheme) {
|
118
|
-
// To support composition of theme.
|
119
|
-
if (typeof localTheme === 'function') {
|
120
|
-
process.env.NODE_ENV !== "production" ? (0, _warning.default)(this.outerTheme, ['Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:', '<MuiThemeProvider theme={outerTheme => outerTheme} />', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n')) : void 0;
|
121
|
-
return localTheme(this.outerTheme);
|
122
|
-
}
|
123
|
-
|
124
|
-
if (!this.outerTheme) {
|
125
|
-
return localTheme;
|
126
|
-
}
|
127
|
-
|
128
|
-
return (0, _objectSpread2.default)({}, this.outerTheme, {}, localTheme);
|
129
|
-
}
|
130
|
-
}, {
|
131
|
-
key: "render",
|
132
|
-
value: function render() {
|
133
|
-
// TODO move the sheetsManager property to a different component.
|
134
|
-
// warning(
|
135
|
-
// typeof window !== 'undefined' || this.props.sheetsManager,
|
136
|
-
// [
|
137
|
-
// 'Material-UI: you need to provide a sheetsManager to the MuiThemeProvider ' +
|
138
|
-
// 'when rendering on the server.',
|
139
|
-
// 'If you do not, you might experience a memory leak',
|
140
|
-
// ].join('\n'),
|
141
|
-
// );
|
142
|
-
return this.props.children;
|
143
|
-
}
|
144
|
-
}]);
|
145
|
-
return MuiThemeProvider;
|
146
|
-
}(_react.default.Component);
|
147
|
-
|
148
|
-
MuiThemeProvider.childContextTypes = (0, _objectSpread2.default)({}, _themeListener.default.contextTypes, {
|
149
|
-
muiThemeProviderOptions: _propTypes.default.object
|
150
|
-
});
|
151
|
-
MuiThemeProvider.contextTypes = (0, _objectSpread2.default)({}, _themeListener.default.contextTypes, {
|
152
|
-
muiThemeProviderOptions: _propTypes.default.object
|
153
|
-
});
|
154
|
-
var _default = MuiThemeProvider;
|
155
|
-
exports.default = _default;
|
@@ -1,286 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.convertHexToRGB = convertHexToRGB;
|
9
|
-
exports.rgbToHex = rgbToHex;
|
10
|
-
exports.decomposeColor = decomposeColor;
|
11
|
-
exports.recomposeColor = recomposeColor;
|
12
|
-
exports.getContrastRatio = getContrastRatio;
|
13
|
-
exports.getLuminance = getLuminance;
|
14
|
-
exports.emphasize = emphasize;
|
15
|
-
exports.fade = fade;
|
16
|
-
exports.darken = darken;
|
17
|
-
exports.lighten = lighten;
|
18
|
-
|
19
|
-
var _warning = _interopRequireDefault(require("warning"));
|
20
|
-
|
21
|
-
/* eslint-disable no-use-before-define */
|
22
|
-
|
23
|
-
/**
|
24
|
-
* Returns a number whose value is limited to the given range.
|
25
|
-
*
|
26
|
-
* @param {number} value The value to be clamped
|
27
|
-
* @param {number} min The lower boundary of the output range
|
28
|
-
* @param {number} max The upper boundary of the output range
|
29
|
-
* @returns {number} A number in the range [min, max]
|
30
|
-
*/
|
31
|
-
function clamp(value) {
|
32
|
-
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
33
|
-
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
34
|
-
process.env.NODE_ENV !== "production" ? (0, _warning.default)(value >= min && value <= max, "Material-UI: the value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "].")) : void 0;
|
35
|
-
|
36
|
-
if (value < min) {
|
37
|
-
return min;
|
38
|
-
}
|
39
|
-
|
40
|
-
if (value > max) {
|
41
|
-
return max;
|
42
|
-
}
|
43
|
-
|
44
|
-
return value;
|
45
|
-
}
|
46
|
-
/**
|
47
|
-
* Converts a color from CSS hex format to CSS rgb format.
|
48
|
-
*
|
49
|
-
* @param {string} color - Hex color, i.e. #nnn or #nnnnnn
|
50
|
-
* @returns {string} A CSS rgb color string
|
51
|
-
*/
|
52
|
-
|
53
|
-
|
54
|
-
function convertHexToRGB(color) {
|
55
|
-
color = color.substr(1);
|
56
|
-
var re = new RegExp(".{1,".concat(color.length / 3, "}"), 'g');
|
57
|
-
var colors = color.match(re);
|
58
|
-
|
59
|
-
if (colors && colors[0].length === 1) {
|
60
|
-
colors = colors.map(function (n) {
|
61
|
-
return n + n;
|
62
|
-
});
|
63
|
-
}
|
64
|
-
|
65
|
-
return colors ? "rgb(".concat(colors.map(function (n) {
|
66
|
-
return parseInt(n, 16);
|
67
|
-
}).join(', '), ")") : '';
|
68
|
-
}
|
69
|
-
/**
|
70
|
-
* Converts a color from CSS rgb format to CSS hex format.
|
71
|
-
*
|
72
|
-
* @param {string} color - RGB color, i.e. rgb(n, n, n)
|
73
|
-
* @returns {string} A CSS rgb color string, i.e. #nnnnnn
|
74
|
-
*/
|
75
|
-
|
76
|
-
|
77
|
-
function rgbToHex(color) {
|
78
|
-
// Pass hex straight through
|
79
|
-
if (color.indexOf('#') === 0) {
|
80
|
-
return color;
|
81
|
-
}
|
82
|
-
|
83
|
-
function intToHex(c) {
|
84
|
-
var hex = c.toString(16);
|
85
|
-
return hex.length === 1 ? "0".concat(hex) : hex;
|
86
|
-
}
|
87
|
-
|
88
|
-
var _decomposeColor = decomposeColor(color),
|
89
|
-
values = _decomposeColor.values;
|
90
|
-
|
91
|
-
values = values.map(function (n) {
|
92
|
-
return intToHex(n);
|
93
|
-
});
|
94
|
-
return "#".concat(values.join(''));
|
95
|
-
}
|
96
|
-
/**
|
97
|
-
* Returns an object with the type and values of a color.
|
98
|
-
*
|
99
|
-
* Note: Does not support rgb % values.
|
100
|
-
*
|
101
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
102
|
-
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
103
|
-
*/
|
104
|
-
|
105
|
-
|
106
|
-
function decomposeColor(color) {
|
107
|
-
if (color.charAt(0) === '#') {
|
108
|
-
return decomposeColor(convertHexToRGB(color));
|
109
|
-
}
|
110
|
-
|
111
|
-
var marker = color.indexOf('(');
|
112
|
-
var type = color.substring(0, marker);
|
113
|
-
var values = color.substring(marker + 1, color.length - 1).split(',');
|
114
|
-
values = values.map(function (value) {
|
115
|
-
return parseFloat(value);
|
116
|
-
});
|
117
|
-
|
118
|
-
if (process.env.NODE_ENV !== 'production') {
|
119
|
-
if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
|
120
|
-
throw new Error(["Material-UI: unsupported `".concat(color, "` color."), 'We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().'].join('\n'));
|
121
|
-
}
|
122
|
-
}
|
123
|
-
|
124
|
-
return {
|
125
|
-
type: type,
|
126
|
-
values: values
|
127
|
-
};
|
128
|
-
}
|
129
|
-
/**
|
130
|
-
* Converts a color object with type and values to a string.
|
131
|
-
*
|
132
|
-
* @param {object} color - Decomposed color
|
133
|
-
* @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
|
134
|
-
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
135
|
-
* @returns {string} A CSS color string
|
136
|
-
*/
|
137
|
-
|
138
|
-
|
139
|
-
function recomposeColor(color) {
|
140
|
-
var type = color.type;
|
141
|
-
var values = color.values;
|
142
|
-
|
143
|
-
if (type.indexOf('rgb') !== -1) {
|
144
|
-
// Only convert the first 3 values to int (i.e. not alpha)
|
145
|
-
values = values.map(function (n, i) {
|
146
|
-
return i < 3 ? parseInt(n, 10) : n;
|
147
|
-
});
|
148
|
-
}
|
149
|
-
|
150
|
-
if (type.indexOf('hsl') !== -1) {
|
151
|
-
values[1] = "".concat(values[1], "%");
|
152
|
-
values[2] = "".concat(values[2], "%");
|
153
|
-
}
|
154
|
-
|
155
|
-
return "".concat(color.type, "(").concat(values.join(', '), ")");
|
156
|
-
}
|
157
|
-
/**
|
158
|
-
* Calculates the contrast ratio between two colors.
|
159
|
-
*
|
160
|
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
161
|
-
*
|
162
|
-
* @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
163
|
-
* @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
164
|
-
* @returns {number} A contrast ratio value in the range 0 - 21.
|
165
|
-
*/
|
166
|
-
|
167
|
-
|
168
|
-
function getContrastRatio(foreground, background) {
|
169
|
-
var lumA = getLuminance(foreground);
|
170
|
-
var lumB = getLuminance(background);
|
171
|
-
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
172
|
-
}
|
173
|
-
/**
|
174
|
-
* The relative brightness of any point in a color space,
|
175
|
-
* normalized to 0 for darkest black and 1 for lightest white.
|
176
|
-
*
|
177
|
-
* Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
178
|
-
*
|
179
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
180
|
-
* @returns {number} The relative brightness of the color in the range 0 - 1
|
181
|
-
*/
|
182
|
-
|
183
|
-
|
184
|
-
function getLuminance(color) {
|
185
|
-
var decomposedColor = decomposeColor(color);
|
186
|
-
|
187
|
-
if (decomposedColor.type.indexOf('rgb') !== -1) {
|
188
|
-
var rgb = decomposedColor.values.map(function (val) {
|
189
|
-
val /= 255; // normalized
|
190
|
-
|
191
|
-
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
192
|
-
}); // Truncate at 3 digits
|
193
|
-
|
194
|
-
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
195
|
-
} // else if (decomposedColor.type.indexOf('hsl') !== -1)
|
196
|
-
|
197
|
-
|
198
|
-
return decomposedColor.values[2] / 100;
|
199
|
-
}
|
200
|
-
/**
|
201
|
-
* Darken or lighten a colour, depending on its luminance.
|
202
|
-
* Light colors are darkened, dark colors are lightened.
|
203
|
-
*
|
204
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
205
|
-
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
206
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
207
|
-
*/
|
208
|
-
|
209
|
-
|
210
|
-
function emphasize(color) {
|
211
|
-
var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
|
212
|
-
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
213
|
-
}
|
214
|
-
/**
|
215
|
-
* Set the absolute transparency of a color.
|
216
|
-
* Any existing alpha values are overwritten.
|
217
|
-
*
|
218
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
219
|
-
* @param {number} value - value to set the alpha channel to in the range 0 -1
|
220
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
221
|
-
*/
|
222
|
-
|
223
|
-
|
224
|
-
function fade(color, value) {
|
225
|
-
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in fade(".concat(color, ", ").concat(value, ").")) : void 0;
|
226
|
-
if (!color) return color;
|
227
|
-
color = decomposeColor(color);
|
228
|
-
value = clamp(value);
|
229
|
-
|
230
|
-
if (color.type === 'rgb' || color.type === 'hsl') {
|
231
|
-
color.type += 'a';
|
232
|
-
}
|
233
|
-
|
234
|
-
color.values[3] = value;
|
235
|
-
return recomposeColor(color);
|
236
|
-
}
|
237
|
-
/**
|
238
|
-
* Darkens a color.
|
239
|
-
*
|
240
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
241
|
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
242
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
243
|
-
*/
|
244
|
-
|
245
|
-
|
246
|
-
function darken(color, coefficient) {
|
247
|
-
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in darken(".concat(color, ", ").concat(coefficient, ").")) : void 0;
|
248
|
-
if (!color) return color;
|
249
|
-
color = decomposeColor(color);
|
250
|
-
coefficient = clamp(coefficient);
|
251
|
-
|
252
|
-
if (color.type.indexOf('hsl') !== -1) {
|
253
|
-
color.values[2] *= 1 - coefficient;
|
254
|
-
} else if (color.type.indexOf('rgb') !== -1) {
|
255
|
-
for (var i = 0; i < 3; i += 1) {
|
256
|
-
color.values[i] *= 1 - coefficient;
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
return recomposeColor(color);
|
261
|
-
}
|
262
|
-
/**
|
263
|
-
* Lightens a color.
|
264
|
-
*
|
265
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
266
|
-
* @param {number} coefficient - multiplier in the range 0 - 1
|
267
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
268
|
-
*/
|
269
|
-
|
270
|
-
|
271
|
-
function lighten(color, coefficient) {
|
272
|
-
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in lighten(".concat(color, ", ").concat(coefficient, ").")) : void 0;
|
273
|
-
if (!color) return color;
|
274
|
-
color = decomposeColor(color);
|
275
|
-
coefficient = clamp(coefficient);
|
276
|
-
|
277
|
-
if (color.type.indexOf('hsl') !== -1) {
|
278
|
-
color.values[2] += (100 - color.values[2]) * coefficient;
|
279
|
-
} else if (color.type.indexOf('rgb') !== -1) {
|
280
|
-
for (var i = 0; i < 3; i += 1) {
|
281
|
-
color.values[i] += (255 - color.values[i]) * coefficient;
|
282
|
-
}
|
283
|
-
}
|
284
|
-
|
285
|
-
return recomposeColor(color);
|
286
|
-
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.default = createBreakpoints;
|
9
|
-
exports.keys = void 0;
|
10
|
-
|
11
|
-
var _objectSpread2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectSpread2"));
|
12
|
-
|
13
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties"));
|
14
|
-
|
15
|
-
// Sorted ASC by size. That's important.
|
16
|
-
// It can't be configured as it's used statically for propTypes.
|
17
|
-
var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
|
18
|
-
|
19
|
-
exports.keys = keys;
|
20
|
-
|
21
|
-
function createBreakpoints(breakpoints) {
|
22
|
-
var _breakpoints$values = breakpoints.values,
|
23
|
-
values = _breakpoints$values === void 0 ? {
|
24
|
-
xs: 0,
|
25
|
-
sm: 600,
|
26
|
-
md: 960,
|
27
|
-
lg: 1280,
|
28
|
-
xl: 1920
|
29
|
-
} : _breakpoints$values,
|
30
|
-
_breakpoints$unit = breakpoints.unit,
|
31
|
-
unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
|
32
|
-
_breakpoints$step = breakpoints.step,
|
33
|
-
step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
|
34
|
-
other = (0, _objectWithoutProperties2.default)(breakpoints, ["values", "unit", "step"]);
|
35
|
-
|
36
|
-
function up(key) {
|
37
|
-
var value = typeof values[key] === 'number' ? values[key] : key;
|
38
|
-
return "@media (min-width:".concat(value).concat(unit, ")");
|
39
|
-
}
|
40
|
-
|
41
|
-
function down(key) {
|
42
|
-
var endIndex = keys.indexOf(key) + 1;
|
43
|
-
var upperbound = values[keys[endIndex]];
|
44
|
-
|
45
|
-
if (endIndex === keys.length) {
|
46
|
-
// xl down applies to all sizes
|
47
|
-
return up('xs');
|
48
|
-
}
|
49
|
-
|
50
|
-
var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
|
51
|
-
return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
|
52
|
-
}
|
53
|
-
|
54
|
-
function between(start, end) {
|
55
|
-
var endIndex = keys.indexOf(end) + 1;
|
56
|
-
|
57
|
-
if (endIndex === keys.length) {
|
58
|
-
return up(start);
|
59
|
-
}
|
60
|
-
|
61
|
-
return "@media (min-width:".concat(values[start]).concat(unit, ") and ") + "(max-width:".concat(values[keys[endIndex]] - step / 100).concat(unit, ")");
|
62
|
-
}
|
63
|
-
|
64
|
-
function only(key) {
|
65
|
-
return between(key, key);
|
66
|
-
}
|
67
|
-
|
68
|
-
function width(key) {
|
69
|
-
return values[key];
|
70
|
-
}
|
71
|
-
|
72
|
-
return (0, _objectSpread2.default)({
|
73
|
-
keys: keys,
|
74
|
-
values: values,
|
75
|
-
up: up,
|
76
|
-
down: down,
|
77
|
-
between: between,
|
78
|
-
only: only,
|
79
|
-
width: width
|
80
|
-
}, other);
|
81
|
-
}
|