se-material-ui 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppBar/AppBar.js +366 -0
- package/AppBar/index.js +14 -0
- package/AutoComplete/AutoComplete.js +690 -0
- package/AutoComplete/index.js +14 -0
- package/Avatar/Avatar.js +157 -0
- package/Avatar/index.js +14 -0
- package/Badge/Badge.js +161 -0
- package/Badge/index.js +14 -0
- package/BottomNavigation/BottomNavigation.js +94 -0
- package/BottomNavigation/BottomNavigationItem.js +111 -0
- package/BottomNavigation/index.js +20 -0
- package/CHANGELOG.md +2780 -0
- package/Card/Card.js +203 -0
- package/Card/CardActions.js +113 -0
- package/Card/CardExpandable.js +97 -0
- package/Card/CardHeader.js +217 -0
- package/Card/CardMedia.js +202 -0
- package/Card/CardText.js +108 -0
- package/Card/CardTitle.js +165 -0
- package/Card/index.js +45 -0
- package/Checkbox/Checkbox.js +279 -0
- package/Checkbox/index.js +14 -0
- package/Chip/Chip.js +336 -0
- package/Chip/index.js +14 -0
- package/CircularProgress/CircularProgress.js +258 -0
- package/CircularProgress/index.js +14 -0
- package/DatePicker/Calendar.js +469 -0
- package/DatePicker/CalendarActionButtons.js +94 -0
- package/DatePicker/CalendarMonth.js +160 -0
- package/DatePicker/CalendarToolbar.js +169 -0
- package/DatePicker/CalendarYear.js +179 -0
- package/DatePicker/DateDisplay.js +227 -0
- package/DatePicker/DatePicker.js +403 -0
- package/DatePicker/DatePickerDialog.js +246 -0
- package/DatePicker/DayButton.js +185 -0
- package/DatePicker/YearButton.js +148 -0
- package/DatePicker/dateUtils.js +204 -0
- package/DatePicker/index.js +14 -0
- package/Dialog/Dialog.js +595 -0
- package/Dialog/index.js +14 -0
- package/Divider/Divider.js +70 -0
- package/Divider/index.js +14 -0
- package/Drawer/Drawer.js +478 -0
- package/Drawer/index.js +14 -0
- package/DropDownMenu/DropDownMenu.js +578 -0
- package/DropDownMenu/index.js +20 -0
- package/FlatButton/FlatButton.js +332 -0
- package/FlatButton/FlatButtonLabel.js +80 -0
- package/FlatButton/index.js +14 -0
- package/FloatingActionButton/FloatingActionButton.js +378 -0
- package/FloatingActionButton/index.js +14 -0
- package/FontIcon/FontIcon.js +144 -0
- package/FontIcon/index.js +14 -0
- package/GridList/GridList.js +132 -0
- package/GridList/GridTile.js +292 -0
- package/GridList/index.js +20 -0
- package/IconButton/IconButton.js +368 -0
- package/IconButton/index.js +14 -0
- package/IconMenu/IconMenu.js +401 -0
- package/IconMenu/index.js +20 -0
- package/LICENSE +21 -0
- package/LinearProgress/LinearProgress.js +219 -0
- package/LinearProgress/index.js +14 -0
- package/List/List.js +95 -0
- package/List/ListItem.js +742 -0
- package/List/NestedList.js +53 -0
- package/List/index.js +25 -0
- package/List/makeSelectable.js +156 -0
- package/Menu/Menu.js +693 -0
- package/Menu/index.js +20 -0
- package/Menu/menuUtils.js +33 -0
- package/MenuItem/MenuItem.js +392 -0
- package/MenuItem/index.js +14 -0
- package/Paper/Paper.js +138 -0
- package/Paper/index.js +14 -0
- package/Popover/Popover.js +510 -0
- package/Popover/PopoverAnimationDefault.js +161 -0
- package/Popover/PopoverAnimationVertical.js +136 -0
- package/Popover/index.js +20 -0
- package/README.md +172 -0
- package/RadioButton/RadioButton.js +259 -0
- package/RadioButton/RadioButtonGroup.js +223 -0
- package/RadioButton/index.js +20 -0
- package/RaisedButton/RaisedButton.js +475 -0
- package/RaisedButton/index.js +14 -0
- package/RefreshIndicator/RefreshIndicator.js +400 -0
- package/RefreshIndicator/index.js +14 -0
- package/SelectField/SelectField.js +306 -0
- package/SelectField/index.js +14 -0
- package/Slider/Slider.js +867 -0
- package/Slider/index.js +14 -0
- package/Snackbar/Snackbar.js +303 -0
- package/Snackbar/SnackbarBody.js +167 -0
- package/Snackbar/index.js +14 -0
- package/Stepper/Step.js +148 -0
- package/Stepper/StepButton.js +201 -0
- package/Stepper/StepConnector.js +77 -0
- package/Stepper/StepContent.js +155 -0
- package/Stepper/StepLabel.js +191 -0
- package/Stepper/Stepper.js +148 -0
- package/Stepper/index.js +34 -0
- package/Subheader/Subheader.js +80 -0
- package/Subheader/index.js +14 -0
- package/SvgIcon/SvgIcon.js +151 -0
- package/SvgIcon/index.js +14 -0
- package/Table/Table.js +365 -0
- package/Table/TableBody.js +523 -0
- package/Table/TableFooter.js +139 -0
- package/Table/TableHeader.js +247 -0
- package/Table/TableHeaderColumn.js +188 -0
- package/Table/TableRow.js +269 -0
- package/Table/TableRowColumn.js +169 -0
- package/Table/index.js +45 -0
- package/Tabs/InkBar.js +90 -0
- package/Tabs/Tab.js +194 -0
- package/Tabs/TabTemplate.js +51 -0
- package/Tabs/Tabs.js +312 -0
- package/Tabs/index.js +20 -0
- package/TextField/EnhancedTextarea.js +243 -0
- package/TextField/TextField.js +577 -0
- package/TextField/TextFieldHint.js +80 -0
- package/TextField/TextFieldLabel.js +117 -0
- package/TextField/TextFieldUnderline.js +139 -0
- package/TextField/index.js +14 -0
- package/TimePicker/Clock.js +233 -0
- package/TimePicker/ClockHours.js +231 -0
- package/TimePicker/ClockMinutes.js +206 -0
- package/TimePicker/ClockNumber.js +130 -0
- package/TimePicker/ClockPointer.js +139 -0
- package/TimePicker/TimeDisplay.js +231 -0
- package/TimePicker/TimePicker.js +290 -0
- package/TimePicker/TimePickerDialog.js +194 -0
- package/TimePicker/index.js +14 -0
- package/TimePicker/timeUtils.js +95 -0
- package/Toggle/Toggle.js +319 -0
- package/Toggle/index.js +14 -0
- package/Toolbar/Toolbar.js +111 -0
- package/Toolbar/ToolbarGroup.js +199 -0
- package/Toolbar/ToolbarSeparator.js +92 -0
- package/Toolbar/ToolbarTitle.js +105 -0
- package/Toolbar/index.js +30 -0
- package/index.es.js +132 -0
- package/index.js +339 -0
- package/internal/AppCanvas.js +88 -0
- package/internal/AutoLockScrolling.js +113 -0
- package/internal/BeforeAfterWrapper.js +143 -0
- package/internal/CircleRipple.js +159 -0
- package/internal/ClearFix.js +63 -0
- package/internal/ClickAwayListener.js +118 -0
- package/internal/EnhancedButton.js +375 -0
- package/internal/EnhancedSwitch.js +450 -0
- package/internal/ExpandTransition.js +132 -0
- package/internal/ExpandTransitionChild.js +182 -0
- package/internal/FocusRipple.js +188 -0
- package/internal/Overlay.js +131 -0
- package/internal/RenderToLayer.js +168 -0
- package/internal/ScaleIn.js +115 -0
- package/internal/ScaleInChild.js +157 -0
- package/internal/SlideIn.js +124 -0
- package/internal/SlideInChild.js +139 -0
- package/internal/Tooltip.js +214 -0
- package/internal/TouchRipple.js +296 -0
- package/package.json +41 -0
- package/styles/MuiThemeProvider.js +60 -0
- package/styles/baseThemes/darkBaseTheme.js +37 -0
- package/styles/baseThemes/lightBaseTheme.js +45 -0
- package/styles/colors.js +290 -0
- package/styles/getMuiTheme.js +379 -0
- package/styles/index.js +63 -0
- package/styles/muiThemeable.js +50 -0
- package/styles/spacing.js +19 -0
- package/styles/transitions.js +34 -0
- package/styles/typography.js +31 -0
- package/styles/zIndex.js +17 -0
- package/svg-icons/action/accessibility.js +32 -0
- package/svg-icons/action/accessible.js +33 -0
- package/svg-icons/action/account-balance-wallet.js +32 -0
- package/svg-icons/action/account-balance.js +32 -0
- package/svg-icons/action/account-box.js +32 -0
- package/svg-icons/action/account-circle.js +32 -0
- package/svg-icons/action/add-shopping-cart.js +32 -0
- package/svg-icons/action/alarm-add.js +32 -0
- package/svg-icons/action/alarm-off.js +32 -0
- package/svg-icons/action/alarm-on.js +32 -0
- package/svg-icons/action/alarm.js +32 -0
- package/svg-icons/action/all-out.js +32 -0
- package/svg-icons/action/android.js +32 -0
- package/svg-icons/action/announcement.js +32 -0
- package/svg-icons/action/aspect-ratio.js +32 -0
- package/svg-icons/action/assessment.js +32 -0
- package/svg-icons/action/assignment-ind.js +32 -0
- package/svg-icons/action/assignment-late.js +32 -0
- package/svg-icons/action/assignment-return.js +32 -0
- package/svg-icons/action/assignment-returned.js +32 -0
- package/svg-icons/action/assignment-turned-in.js +32 -0
- package/svg-icons/action/assignment.js +32 -0
- package/svg-icons/action/autorenew.js +32 -0
- package/svg-icons/action/backup.js +32 -0
- package/svg-icons/action/book.js +32 -0
- package/svg-icons/action/bookmark-border.js +32 -0
- package/svg-icons/action/bookmark.js +32 -0
- package/svg-icons/action/bug-report.js +32 -0
- package/svg-icons/action/build.js +32 -0
- package/svg-icons/action/cached.js +32 -0
- package/svg-icons/action/camera-enhance.js +32 -0
- package/svg-icons/action/card-giftcard.js +32 -0
- package/svg-icons/action/card-membership.js +32 -0
- package/svg-icons/action/card-travel.js +32 -0
- package/svg-icons/action/change-history.js +32 -0
- package/svg-icons/action/check-circle.js +32 -0
- package/svg-icons/action/chrome-reader-mode.js +32 -0
- package/svg-icons/action/class.js +32 -0
- package/svg-icons/action/code.js +32 -0
- package/svg-icons/action/compare-arrows.js +32 -0
- package/svg-icons/action/copyright.js +32 -0
- package/svg-icons/action/credit-card.js +32 -0
- package/svg-icons/action/dashboard.js +32 -0
- package/svg-icons/action/date-range.js +32 -0
- package/svg-icons/action/delete-forever.js +32 -0
- package/svg-icons/action/delete.js +32 -0
- package/svg-icons/action/description.js +32 -0
- package/svg-icons/action/dns.js +32 -0
- package/svg-icons/action/done-all.js +32 -0
- package/svg-icons/action/done.js +32 -0
- package/svg-icons/action/donut-large.js +32 -0
- package/svg-icons/action/donut-small.js +32 -0
- package/svg-icons/action/eject.js +32 -0
- package/svg-icons/action/euro-symbol.js +32 -0
- package/svg-icons/action/event-seat.js +32 -0
- package/svg-icons/action/event.js +32 -0
- package/svg-icons/action/exit-to-app.js +32 -0
- package/svg-icons/action/explore.js +32 -0
- package/svg-icons/action/extension.js +32 -0
- package/svg-icons/action/face.js +32 -0
- package/svg-icons/action/favorite-border.js +32 -0
- package/svg-icons/action/favorite.js +32 -0
- package/svg-icons/action/feedback.js +32 -0
- package/svg-icons/action/find-in-page.js +32 -0
- package/svg-icons/action/find-replace.js +32 -0
- package/svg-icons/action/fingerprint.js +32 -0
- package/svg-icons/action/flight-land.js +32 -0
- package/svg-icons/action/flight-takeoff.js +32 -0
- package/svg-icons/action/flip-to-back.js +32 -0
- package/svg-icons/action/flip-to-front.js +32 -0
- package/svg-icons/action/g-translate.js +32 -0
- package/svg-icons/action/gavel.js +32 -0
- package/svg-icons/action/get-app.js +32 -0
- package/svg-icons/action/gif.js +32 -0
- package/svg-icons/action/grade.js +32 -0
- package/svg-icons/action/group-work.js +32 -0
- package/svg-icons/action/help-outline.js +32 -0
- package/svg-icons/action/help.js +32 -0
- package/svg-icons/action/highlight-off.js +32 -0
- package/svg-icons/action/history.js +32 -0
- package/svg-icons/action/home.js +32 -0
- package/svg-icons/action/hourglass-empty.js +32 -0
- package/svg-icons/action/hourglass-full.js +32 -0
- package/svg-icons/action/http.js +32 -0
- package/svg-icons/action/https.js +32 -0
- package/svg-icons/action/important-devices.js +32 -0
- package/svg-icons/action/info-outline.js +32 -0
- package/svg-icons/action/info.js +32 -0
- package/svg-icons/action/input.js +32 -0
- package/svg-icons/action/invert-colors.js +32 -0
- package/svg-icons/action/label-outline.js +32 -0
- package/svg-icons/action/label.js +32 -0
- package/svg-icons/action/language.js +32 -0
- package/svg-icons/action/launch.js +32 -0
- package/svg-icons/action/lightbulb-outline.js +32 -0
- package/svg-icons/action/line-style.js +32 -0
- package/svg-icons/action/line-weight.js +32 -0
- package/svg-icons/action/list.js +32 -0
- package/svg-icons/action/lock-open.js +32 -0
- package/svg-icons/action/lock-outline.js +32 -0
- package/svg-icons/action/lock.js +32 -0
- package/svg-icons/action/loyalty.js +32 -0
- package/svg-icons/action/markunread-mailbox.js +32 -0
- package/svg-icons/action/motorcycle.js +32 -0
- package/svg-icons/action/note-add.js +32 -0
- package/svg-icons/action/offline-pin.js +32 -0
- package/svg-icons/action/opacity.js +32 -0
- package/svg-icons/action/open-in-browser.js +32 -0
- package/svg-icons/action/open-in-new.js +32 -0
- package/svg-icons/action/open-with.js +32 -0
- package/svg-icons/action/pageview.js +32 -0
- package/svg-icons/action/pan-tool.js +32 -0
- package/svg-icons/action/payment.js +32 -0
- package/svg-icons/action/perm-camera-mic.js +32 -0
- package/svg-icons/action/perm-contact-calendar.js +32 -0
- package/svg-icons/action/perm-data-setting.js +32 -0
- package/svg-icons/action/perm-device-information.js +32 -0
- package/svg-icons/action/perm-identity.js +32 -0
- package/svg-icons/action/perm-media.js +32 -0
- package/svg-icons/action/perm-phone-msg.js +32 -0
- package/svg-icons/action/perm-scan-wifi.js +32 -0
- package/svg-icons/action/pets.js +36 -0
- package/svg-icons/action/picture-in-picture-alt.js +32 -0
- package/svg-icons/action/picture-in-picture.js +32 -0
- package/svg-icons/action/play-for-work.js +32 -0
- package/svg-icons/action/polymer.js +32 -0
- package/svg-icons/action/power-settings-new.js +32 -0
- package/svg-icons/action/pregnant-woman.js +32 -0
- package/svg-icons/action/print.js +32 -0
- package/svg-icons/action/query-builder.js +32 -0
- package/svg-icons/action/question-answer.js +32 -0
- package/svg-icons/action/receipt.js +32 -0
- package/svg-icons/action/record-voice-over.js +33 -0
- package/svg-icons/action/redeem.js +32 -0
- package/svg-icons/action/remove-shopping-cart.js +32 -0
- package/svg-icons/action/reorder.js +32 -0
- package/svg-icons/action/report-problem.js +32 -0
- package/svg-icons/action/restore-page.js +32 -0
- package/svg-icons/action/restore.js +32 -0
- package/svg-icons/action/room.js +32 -0
- package/svg-icons/action/rounded-corner.js +32 -0
- package/svg-icons/action/rowing.js +32 -0
- package/svg-icons/action/schedule.js +32 -0
- package/svg-icons/action/search.js +32 -0
- package/svg-icons/action/settings-applications.js +32 -0
- package/svg-icons/action/settings-backup-restore.js +32 -0
- package/svg-icons/action/settings-bluetooth.js +32 -0
- package/svg-icons/action/settings-brightness.js +32 -0
- package/svg-icons/action/settings-cell.js +32 -0
- package/svg-icons/action/settings-ethernet.js +32 -0
- package/svg-icons/action/settings-input-antenna.js +32 -0
- package/svg-icons/action/settings-input-component.js +32 -0
- package/svg-icons/action/settings-input-composite.js +32 -0
- package/svg-icons/action/settings-input-hdmi.js +32 -0
- package/svg-icons/action/settings-input-svideo.js +32 -0
- package/svg-icons/action/settings-overscan.js +32 -0
- package/svg-icons/action/settings-phone.js +32 -0
- package/svg-icons/action/settings-power.js +32 -0
- package/svg-icons/action/settings-remote.js +32 -0
- package/svg-icons/action/settings-voice.js +32 -0
- package/svg-icons/action/settings.js +32 -0
- package/svg-icons/action/shop-two.js +32 -0
- package/svg-icons/action/shop.js +32 -0
- package/svg-icons/action/shopping-basket.js +32 -0
- package/svg-icons/action/shopping-cart.js +32 -0
- package/svg-icons/action/speaker-notes-off.js +32 -0
- package/svg-icons/action/speaker-notes.js +32 -0
- package/svg-icons/action/spellcheck.js +32 -0
- package/svg-icons/action/stars.js +32 -0
- package/svg-icons/action/store.js +32 -0
- package/svg-icons/action/subject.js +32 -0
- package/svg-icons/action/supervisor-account.js +32 -0
- package/svg-icons/action/swap-horiz.js +32 -0
- package/svg-icons/action/swap-vert.js +32 -0
- package/svg-icons/action/swap-vertical-circle.js +32 -0
- package/svg-icons/action/system-update-alt.js +32 -0
- package/svg-icons/action/tab-unselected.js +32 -0
- package/svg-icons/action/tab.js +32 -0
- package/svg-icons/action/theaters.js +32 -0
- package/svg-icons/action/three-d-rotation.js +32 -0
- package/svg-icons/action/thumb-down.js +32 -0
- package/svg-icons/action/thumb-up.js +32 -0
- package/svg-icons/action/thumbs-up-down.js +32 -0
- package/svg-icons/action/timeline.js +32 -0
- package/svg-icons/action/toc.js +32 -0
- package/svg-icons/action/today.js +32 -0
- package/svg-icons/action/toll.js +32 -0
- package/svg-icons/action/touch-app.js +32 -0
- package/svg-icons/action/track-changes.js +32 -0
- package/svg-icons/action/translate.js +32 -0
- package/svg-icons/action/trending-down.js +32 -0
- package/svg-icons/action/trending-flat.js +32 -0
- package/svg-icons/action/trending-up.js +32 -0
- package/svg-icons/action/turned-in-not.js +32 -0
- package/svg-icons/action/turned-in.js +32 -0
- package/svg-icons/action/update.js +32 -0
- package/svg-icons/action/verified-user.js +32 -0
- package/svg-icons/action/view-agenda.js +32 -0
- package/svg-icons/action/view-array.js +32 -0
- package/svg-icons/action/view-carousel.js +32 -0
- package/svg-icons/action/view-column.js +32 -0
- package/svg-icons/action/view-day.js +32 -0
- package/svg-icons/action/view-headline.js +32 -0
- package/svg-icons/action/view-list.js +32 -0
- package/svg-icons/action/view-module.js +32 -0
- package/svg-icons/action/view-quilt.js +32 -0
- package/svg-icons/action/view-stream.js +32 -0
- package/svg-icons/action/view-week.js +32 -0
- package/svg-icons/action/visibility-off.js +32 -0
- package/svg-icons/action/visibility.js +32 -0
- package/svg-icons/action/watch-later.js +32 -0
- package/svg-icons/action/work.js +32 -0
- package/svg-icons/action/youtube-searched-for.js +32 -0
- package/svg-icons/action/zoom-in.js +32 -0
- package/svg-icons/action/zoom-out.js +32 -0
- package/svg-icons/alert/add-alert.js +32 -0
- package/svg-icons/alert/error-outline.js +32 -0
- package/svg-icons/alert/error.js +32 -0
- package/svg-icons/alert/warning.js +32 -0
- package/svg-icons/av/add-to-queue.js +32 -0
- package/svg-icons/av/airplay.js +32 -0
- package/svg-icons/av/album.js +32 -0
- package/svg-icons/av/art-track.js +32 -0
- package/svg-icons/av/av-timer.js +32 -0
- package/svg-icons/av/branding-watermark.js +32 -0
- package/svg-icons/av/call-to-action.js +32 -0
- package/svg-icons/av/closed-caption.js +32 -0
- package/svg-icons/av/equalizer.js +32 -0
- package/svg-icons/av/explicit.js +32 -0
- package/svg-icons/av/fast-forward.js +32 -0
- package/svg-icons/av/fast-rewind.js +32 -0
- package/svg-icons/av/featured-play-list.js +32 -0
- package/svg-icons/av/featured-video.js +32 -0
- package/svg-icons/av/fiber-dvr.js +32 -0
- package/svg-icons/av/fiber-manual-record.js +32 -0
- package/svg-icons/av/fiber-new.js +32 -0
- package/svg-icons/av/fiber-pin.js +32 -0
- package/svg-icons/av/fiber-smart-record.js +37 -0
- package/svg-icons/av/forward-10.js +32 -0
- package/svg-icons/av/forward-30.js +32 -0
- package/svg-icons/av/forward-5.js +32 -0
- package/svg-icons/av/games.js +32 -0
- package/svg-icons/av/hd.js +32 -0
- package/svg-icons/av/hearing.js +32 -0
- package/svg-icons/av/high-quality.js +32 -0
- package/svg-icons/av/library-add.js +32 -0
- package/svg-icons/av/library-books.js +32 -0
- package/svg-icons/av/library-music.js +32 -0
- package/svg-icons/av/loop.js +32 -0
- package/svg-icons/av/mic-none.js +32 -0
- package/svg-icons/av/mic-off.js +32 -0
- package/svg-icons/av/mic.js +32 -0
- package/svg-icons/av/movie.js +32 -0
- package/svg-icons/av/music-video.js +32 -0
- package/svg-icons/av/new-releases.js +32 -0
- package/svg-icons/av/not-interested.js +32 -0
- package/svg-icons/av/note.js +32 -0
- package/svg-icons/av/pause-circle-filled.js +32 -0
- package/svg-icons/av/pause-circle-outline.js +32 -0
- package/svg-icons/av/pause.js +32 -0
- package/svg-icons/av/play-arrow.js +32 -0
- package/svg-icons/av/play-circle-filled.js +32 -0
- package/svg-icons/av/play-circle-outline.js +32 -0
- package/svg-icons/av/playlist-add-check.js +32 -0
- package/svg-icons/av/playlist-add.js +32 -0
- package/svg-icons/av/playlist-play.js +32 -0
- package/svg-icons/av/queue-music.js +32 -0
- package/svg-icons/av/queue-play-next.js +32 -0
- package/svg-icons/av/queue.js +32 -0
- package/svg-icons/av/radio.js +32 -0
- package/svg-icons/av/recent-actors.js +32 -0
- package/svg-icons/av/remove-from-queue.js +32 -0
- package/svg-icons/av/repeat-one.js +32 -0
- package/svg-icons/av/repeat.js +32 -0
- package/svg-icons/av/replay-10.js +32 -0
- package/svg-icons/av/replay-30.js +32 -0
- package/svg-icons/av/replay-5.js +32 -0
- package/svg-icons/av/replay.js +32 -0
- package/svg-icons/av/shuffle.js +32 -0
- package/svg-icons/av/skip-next.js +32 -0
- package/svg-icons/av/skip-previous.js +32 -0
- package/svg-icons/av/slow-motion-video.js +32 -0
- package/svg-icons/av/snooze.js +32 -0
- package/svg-icons/av/sort-by-alpha.js +32 -0
- package/svg-icons/av/stop.js +32 -0
- package/svg-icons/av/subscriptions.js +32 -0
- package/svg-icons/av/subtitles.js +32 -0
- package/svg-icons/av/surround-sound.js +32 -0
- package/svg-icons/av/video-call.js +32 -0
- package/svg-icons/av/video-label.js +32 -0
- package/svg-icons/av/video-library.js +32 -0
- package/svg-icons/av/videocam-off.js +32 -0
- package/svg-icons/av/videocam.js +32 -0
- package/svg-icons/av/volume-down.js +32 -0
- package/svg-icons/av/volume-mute.js +32 -0
- package/svg-icons/av/volume-off.js +32 -0
- package/svg-icons/av/volume-up.js +32 -0
- package/svg-icons/av/web-asset.js +32 -0
- package/svg-icons/av/web.js +32 -0
- package/svg-icons/communication/business.js +32 -0
- package/svg-icons/communication/call-end.js +32 -0
- package/svg-icons/communication/call-made.js +32 -0
- package/svg-icons/communication/call-merge.js +32 -0
- package/svg-icons/communication/call-missed-outgoing.js +32 -0
- package/svg-icons/communication/call-missed.js +32 -0
- package/svg-icons/communication/call-received.js +32 -0
- package/svg-icons/communication/call-split.js +32 -0
- package/svg-icons/communication/call.js +32 -0
- package/svg-icons/communication/chat-bubble-outline.js +32 -0
- package/svg-icons/communication/chat-bubble.js +32 -0
- package/svg-icons/communication/chat.js +32 -0
- package/svg-icons/communication/clear-all.js +32 -0
- package/svg-icons/communication/comment.js +32 -0
- package/svg-icons/communication/contact-mail.js +32 -0
- package/svg-icons/communication/contact-phone.js +32 -0
- package/svg-icons/communication/contacts.js +32 -0
- package/svg-icons/communication/dialer-sip.js +32 -0
- package/svg-icons/communication/dialpad.js +32 -0
- package/svg-icons/communication/email.js +32 -0
- package/svg-icons/communication/forum.js +32 -0
- package/svg-icons/communication/import-contacts.js +32 -0
- package/svg-icons/communication/import-export.js +32 -0
- package/svg-icons/communication/invert-colors-off.js +32 -0
- package/svg-icons/communication/live-help.js +32 -0
- package/svg-icons/communication/location-off.js +32 -0
- package/svg-icons/communication/location-on.js +32 -0
- package/svg-icons/communication/mail-outline.js +32 -0
- package/svg-icons/communication/message.js +32 -0
- package/svg-icons/communication/no-sim.js +32 -0
- package/svg-icons/communication/phone.js +32 -0
- package/svg-icons/communication/phonelink-erase.js +32 -0
- package/svg-icons/communication/phonelink-lock.js +32 -0
- package/svg-icons/communication/phonelink-ring.js +32 -0
- package/svg-icons/communication/phonelink-setup.js +32 -0
- package/svg-icons/communication/portable-wifi-off.js +32 -0
- package/svg-icons/communication/present-to-all.js +32 -0
- package/svg-icons/communication/ring-volume.js +32 -0
- package/svg-icons/communication/rss-feed.js +33 -0
- package/svg-icons/communication/screen-share.js +32 -0
- package/svg-icons/communication/speaker-phone.js +32 -0
- package/svg-icons/communication/stay-current-landscape.js +32 -0
- package/svg-icons/communication/stay-current-portrait.js +32 -0
- package/svg-icons/communication/stay-primary-landscape.js +32 -0
- package/svg-icons/communication/stay-primary-portrait.js +32 -0
- package/svg-icons/communication/stop-screen-share.js +32 -0
- package/svg-icons/communication/swap-calls.js +32 -0
- package/svg-icons/communication/textsms.js +32 -0
- package/svg-icons/communication/voicemail.js +32 -0
- package/svg-icons/communication/vpn-key.js +32 -0
- package/svg-icons/content/add-box.js +32 -0
- package/svg-icons/content/add-circle-outline.js +32 -0
- package/svg-icons/content/add-circle.js +32 -0
- package/svg-icons/content/add.js +32 -0
- package/svg-icons/content/archive.js +32 -0
- package/svg-icons/content/backspace.js +32 -0
- package/svg-icons/content/block.js +32 -0
- package/svg-icons/content/clear.js +32 -0
- package/svg-icons/content/content-copy.js +32 -0
- package/svg-icons/content/content-cut.js +32 -0
- package/svg-icons/content/content-paste.js +32 -0
- package/svg-icons/content/create.js +32 -0
- package/svg-icons/content/delete-sweep.js +32 -0
- package/svg-icons/content/drafts.js +32 -0
- package/svg-icons/content/filter-list.js +32 -0
- package/svg-icons/content/flag.js +32 -0
- package/svg-icons/content/font-download.js +32 -0
- package/svg-icons/content/forward.js +32 -0
- package/svg-icons/content/gesture.js +32 -0
- package/svg-icons/content/inbox.js +32 -0
- package/svg-icons/content/link.js +32 -0
- package/svg-icons/content/low-priority.js +32 -0
- package/svg-icons/content/mail.js +32 -0
- package/svg-icons/content/markunread.js +32 -0
- package/svg-icons/content/move-to-inbox.js +32 -0
- package/svg-icons/content/next-week.js +32 -0
- package/svg-icons/content/redo.js +32 -0
- package/svg-icons/content/remove-circle-outline.js +32 -0
- package/svg-icons/content/remove-circle.js +32 -0
- package/svg-icons/content/remove.js +32 -0
- package/svg-icons/content/reply-all.js +32 -0
- package/svg-icons/content/reply.js +32 -0
- package/svg-icons/content/report.js +32 -0
- package/svg-icons/content/save.js +32 -0
- package/svg-icons/content/select-all.js +32 -0
- package/svg-icons/content/send.js +32 -0
- package/svg-icons/content/sort.js +32 -0
- package/svg-icons/content/text-format.js +32 -0
- package/svg-icons/content/unarchive.js +32 -0
- package/svg-icons/content/undo.js +32 -0
- package/svg-icons/content/weekend.js +32 -0
- package/svg-icons/device/access-alarm.js +32 -0
- package/svg-icons/device/access-alarms.js +32 -0
- package/svg-icons/device/access-time.js +32 -0
- package/svg-icons/device/add-alarm.js +32 -0
- package/svg-icons/device/airplanemode-active.js +33 -0
- package/svg-icons/device/airplanemode-inactive.js +32 -0
- package/svg-icons/device/battery-20.js +33 -0
- package/svg-icons/device/battery-30.js +33 -0
- package/svg-icons/device/battery-50.js +33 -0
- package/svg-icons/device/battery-60.js +33 -0
- package/svg-icons/device/battery-80.js +33 -0
- package/svg-icons/device/battery-90.js +33 -0
- package/svg-icons/device/battery-alert.js +32 -0
- package/svg-icons/device/battery-charging-20.js +33 -0
- package/svg-icons/device/battery-charging-30.js +33 -0
- package/svg-icons/device/battery-charging-50.js +33 -0
- package/svg-icons/device/battery-charging-60.js +33 -0
- package/svg-icons/device/battery-charging-80.js +33 -0
- package/svg-icons/device/battery-charging-90.js +33 -0
- package/svg-icons/device/battery-charging-full.js +32 -0
- package/svg-icons/device/battery-full.js +32 -0
- package/svg-icons/device/battery-std.js +32 -0
- package/svg-icons/device/battery-unknown.js +32 -0
- package/svg-icons/device/bluetooth-connected.js +32 -0
- package/svg-icons/device/bluetooth-disabled.js +32 -0
- package/svg-icons/device/bluetooth-searching.js +32 -0
- package/svg-icons/device/bluetooth.js +32 -0
- package/svg-icons/device/brightness-auto.js +32 -0
- package/svg-icons/device/brightness-high.js +32 -0
- package/svg-icons/device/brightness-low.js +32 -0
- package/svg-icons/device/brightness-medium.js +32 -0
- package/svg-icons/device/data-usage.js +32 -0
- package/svg-icons/device/developer-mode.js +32 -0
- package/svg-icons/device/devices.js +32 -0
- package/svg-icons/device/dvr.js +32 -0
- package/svg-icons/device/gps-fixed.js +32 -0
- package/svg-icons/device/gps-not-fixed.js +32 -0
- package/svg-icons/device/gps-off.js +32 -0
- package/svg-icons/device/graphic-eq.js +32 -0
- package/svg-icons/device/location-disabled.js +32 -0
- package/svg-icons/device/location-searching.js +32 -0
- package/svg-icons/device/network-cell.js +33 -0
- package/svg-icons/device/network-wifi.js +33 -0
- package/svg-icons/device/nfc.js +32 -0
- package/svg-icons/device/screen-lock-landscape.js +32 -0
- package/svg-icons/device/screen-lock-portrait.js +32 -0
- package/svg-icons/device/screen-lock-rotation.js +32 -0
- package/svg-icons/device/screen-rotation.js +32 -0
- package/svg-icons/device/sd-storage.js +32 -0
- package/svg-icons/device/settings-system-daydream.js +32 -0
- package/svg-icons/device/signal-cellular-0-bar.js +32 -0
- package/svg-icons/device/signal-cellular-1-bar.js +33 -0
- package/svg-icons/device/signal-cellular-2-bar.js +33 -0
- package/svg-icons/device/signal-cellular-3-bar.js +33 -0
- package/svg-icons/device/signal-cellular-4-bar.js +32 -0
- package/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js +33 -0
- package/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js +33 -0
- package/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js +33 -0
- package/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js +33 -0
- package/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js +32 -0
- package/svg-icons/device/signal-cellular-no-sim.js +32 -0
- package/svg-icons/device/signal-cellular-null.js +32 -0
- package/svg-icons/device/signal-cellular-off.js +32 -0
- package/svg-icons/device/signal-wifi-0-bar.js +32 -0
- package/svg-icons/device/signal-wifi-1-bar-lock.js +34 -0
- package/svg-icons/device/signal-wifi-1-bar.js +33 -0
- package/svg-icons/device/signal-wifi-2-bar-lock.js +34 -0
- package/svg-icons/device/signal-wifi-2-bar.js +33 -0
- package/svg-icons/device/signal-wifi-3-bar-lock.js +33 -0
- package/svg-icons/device/signal-wifi-3-bar.js +33 -0
- package/svg-icons/device/signal-wifi-4-bar-lock.js +32 -0
- package/svg-icons/device/signal-wifi-4-bar.js +32 -0
- package/svg-icons/device/signal-wifi-off.js +32 -0
- package/svg-icons/device/storage.js +32 -0
- package/svg-icons/device/usb.js +32 -0
- package/svg-icons/device/wallpaper.js +32 -0
- package/svg-icons/device/widgets.js +32 -0
- package/svg-icons/device/wifi-lock.js +32 -0
- package/svg-icons/device/wifi-tethering.js +32 -0
- package/svg-icons/editor/attach-file.js +32 -0
- package/svg-icons/editor/attach-money.js +32 -0
- package/svg-icons/editor/border-all.js +32 -0
- package/svg-icons/editor/border-bottom.js +32 -0
- package/svg-icons/editor/border-clear.js +32 -0
- package/svg-icons/editor/border-color.js +33 -0
- package/svg-icons/editor/border-horizontal.js +32 -0
- package/svg-icons/editor/border-inner.js +32 -0
- package/svg-icons/editor/border-left.js +32 -0
- package/svg-icons/editor/border-outer.js +32 -0
- package/svg-icons/editor/border-right.js +32 -0
- package/svg-icons/editor/border-style.js +32 -0
- package/svg-icons/editor/border-top.js +32 -0
- package/svg-icons/editor/border-vertical.js +32 -0
- package/svg-icons/editor/bubble-chart.js +34 -0
- package/svg-icons/editor/drag-handle.js +32 -0
- package/svg-icons/editor/format-align-center.js +32 -0
- package/svg-icons/editor/format-align-justify.js +32 -0
- package/svg-icons/editor/format-align-left.js +32 -0
- package/svg-icons/editor/format-align-right.js +32 -0
- package/svg-icons/editor/format-bold.js +32 -0
- package/svg-icons/editor/format-clear.js +32 -0
- package/svg-icons/editor/format-color-fill.js +33 -0
- package/svg-icons/editor/format-color-reset.js +32 -0
- package/svg-icons/editor/format-color-text.js +33 -0
- package/svg-icons/editor/format-indent-decrease.js +32 -0
- package/svg-icons/editor/format-indent-increase.js +32 -0
- package/svg-icons/editor/format-italic.js +32 -0
- package/svg-icons/editor/format-line-spacing.js +32 -0
- package/svg-icons/editor/format-list-bulleted.js +32 -0
- package/svg-icons/editor/format-list-numbered.js +32 -0
- package/svg-icons/editor/format-paint.js +32 -0
- package/svg-icons/editor/format-quote.js +32 -0
- package/svg-icons/editor/format-shapes.js +32 -0
- package/svg-icons/editor/format-size.js +32 -0
- package/svg-icons/editor/format-strikethrough.js +32 -0
- package/svg-icons/editor/format-textdirection-l-to-r.js +32 -0
- package/svg-icons/editor/format-textdirection-r-to-l.js +32 -0
- package/svg-icons/editor/format-underlined.js +32 -0
- package/svg-icons/editor/functions.js +32 -0
- package/svg-icons/editor/highlight.js +32 -0
- package/svg-icons/editor/insert-chart.js +32 -0
- package/svg-icons/editor/insert-comment.js +32 -0
- package/svg-icons/editor/insert-drive-file.js +32 -0
- package/svg-icons/editor/insert-emoticon.js +32 -0
- package/svg-icons/editor/insert-invitation.js +32 -0
- package/svg-icons/editor/insert-link.js +32 -0
- package/svg-icons/editor/insert-photo.js +32 -0
- package/svg-icons/editor/linear-scale.js +32 -0
- package/svg-icons/editor/merge-type.js +32 -0
- package/svg-icons/editor/mode-comment.js +32 -0
- package/svg-icons/editor/mode-edit.js +32 -0
- package/svg-icons/editor/monetization-on.js +32 -0
- package/svg-icons/editor/money-off.js +32 -0
- package/svg-icons/editor/multiline-chart.js +32 -0
- package/svg-icons/editor/pie-chart-outlined.js +32 -0
- package/svg-icons/editor/pie-chart.js +32 -0
- package/svg-icons/editor/publish.js +32 -0
- package/svg-icons/editor/short-text.js +32 -0
- package/svg-icons/editor/show-chart.js +32 -0
- package/svg-icons/editor/space-bar.js +32 -0
- package/svg-icons/editor/strikethrough-s.js +32 -0
- package/svg-icons/editor/text-fields.js +32 -0
- package/svg-icons/editor/title.js +32 -0
- package/svg-icons/editor/vertical-align-bottom.js +32 -0
- package/svg-icons/editor/vertical-align-center.js +32 -0
- package/svg-icons/editor/vertical-align-top.js +32 -0
- package/svg-icons/editor/wrap-text.js +32 -0
- package/svg-icons/file/attachment.js +32 -0
- package/svg-icons/file/cloud-circle.js +32 -0
- package/svg-icons/file/cloud-done.js +32 -0
- package/svg-icons/file/cloud-download.js +32 -0
- package/svg-icons/file/cloud-off.js +32 -0
- package/svg-icons/file/cloud-queue.js +32 -0
- package/svg-icons/file/cloud-upload.js +32 -0
- package/svg-icons/file/cloud.js +32 -0
- package/svg-icons/file/create-new-folder.js +32 -0
- package/svg-icons/file/file-download.js +32 -0
- package/svg-icons/file/file-upload.js +32 -0
- package/svg-icons/file/folder-open.js +32 -0
- package/svg-icons/file/folder-shared.js +32 -0
- package/svg-icons/file/folder.js +32 -0
- package/svg-icons/hardware/cast-connected.js +32 -0
- package/svg-icons/hardware/cast.js +32 -0
- package/svg-icons/hardware/computer.js +32 -0
- package/svg-icons/hardware/desktop-mac.js +32 -0
- package/svg-icons/hardware/desktop-windows.js +32 -0
- package/svg-icons/hardware/developer-board.js +32 -0
- package/svg-icons/hardware/device-hub.js +32 -0
- package/svg-icons/hardware/devices-other.js +32 -0
- package/svg-icons/hardware/dock.js +32 -0
- package/svg-icons/hardware/gamepad.js +32 -0
- package/svg-icons/hardware/headset-mic.js +32 -0
- package/svg-icons/hardware/headset.js +32 -0
- package/svg-icons/hardware/keyboard-arrow-down.js +32 -0
- package/svg-icons/hardware/keyboard-arrow-left.js +32 -0
- package/svg-icons/hardware/keyboard-arrow-right.js +32 -0
- package/svg-icons/hardware/keyboard-arrow-up.js +32 -0
- package/svg-icons/hardware/keyboard-backspace.js +32 -0
- package/svg-icons/hardware/keyboard-capslock.js +32 -0
- package/svg-icons/hardware/keyboard-hide.js +32 -0
- package/svg-icons/hardware/keyboard-return.js +32 -0
- package/svg-icons/hardware/keyboard-tab.js +32 -0
- package/svg-icons/hardware/keyboard-voice.js +32 -0
- package/svg-icons/hardware/keyboard.js +32 -0
- package/svg-icons/hardware/laptop-chromebook.js +32 -0
- package/svg-icons/hardware/laptop-mac.js +32 -0
- package/svg-icons/hardware/laptop-windows.js +32 -0
- package/svg-icons/hardware/laptop.js +32 -0
- package/svg-icons/hardware/memory.js +32 -0
- package/svg-icons/hardware/mouse.js +32 -0
- package/svg-icons/hardware/phone-android.js +32 -0
- package/svg-icons/hardware/phone-iphone.js +32 -0
- package/svg-icons/hardware/phonelink-off.js +32 -0
- package/svg-icons/hardware/phonelink.js +32 -0
- package/svg-icons/hardware/power-input.js +32 -0
- package/svg-icons/hardware/router.js +32 -0
- package/svg-icons/hardware/scanner.js +32 -0
- package/svg-icons/hardware/security.js +32 -0
- package/svg-icons/hardware/sim-card.js +32 -0
- package/svg-icons/hardware/smartphone.js +32 -0
- package/svg-icons/hardware/speaker-group.js +34 -0
- package/svg-icons/hardware/speaker.js +32 -0
- package/svg-icons/hardware/tablet-android.js +32 -0
- package/svg-icons/hardware/tablet-mac.js +32 -0
- package/svg-icons/hardware/tablet.js +32 -0
- package/svg-icons/hardware/toys.js +32 -0
- package/svg-icons/hardware/tv.js +32 -0
- package/svg-icons/hardware/videogame-asset.js +32 -0
- package/svg-icons/hardware/watch.js +32 -0
- package/svg-icons/image/add-a-photo.js +32 -0
- package/svg-icons/image/add-to-photos.js +32 -0
- package/svg-icons/image/adjust.js +32 -0
- package/svg-icons/image/assistant-photo.js +32 -0
- package/svg-icons/image/assistant.js +32 -0
- package/svg-icons/image/audiotrack.js +32 -0
- package/svg-icons/image/blur-circular.js +32 -0
- package/svg-icons/image/blur-linear.js +32 -0
- package/svg-icons/image/blur-off.js +32 -0
- package/svg-icons/image/blur-on.js +32 -0
- package/svg-icons/image/brightness-1.js +32 -0
- package/svg-icons/image/brightness-2.js +32 -0
- package/svg-icons/image/brightness-3.js +32 -0
- package/svg-icons/image/brightness-4.js +32 -0
- package/svg-icons/image/brightness-5.js +32 -0
- package/svg-icons/image/brightness-6.js +32 -0
- package/svg-icons/image/brightness-7.js +32 -0
- package/svg-icons/image/broken-image.js +32 -0
- package/svg-icons/image/brush.js +32 -0
- package/svg-icons/image/burst-mode.js +32 -0
- package/svg-icons/image/camera-alt.js +33 -0
- package/svg-icons/image/camera-front.js +32 -0
- package/svg-icons/image/camera-rear.js +32 -0
- package/svg-icons/image/camera-roll.js +32 -0
- package/svg-icons/image/camera.js +32 -0
- package/svg-icons/image/center-focus-strong.js +32 -0
- package/svg-icons/image/center-focus-weak.js +32 -0
- package/svg-icons/image/collections-bookmark.js +32 -0
- package/svg-icons/image/collections.js +32 -0
- package/svg-icons/image/color-lens.js +32 -0
- package/svg-icons/image/colorize.js +32 -0
- package/svg-icons/image/compare.js +32 -0
- package/svg-icons/image/control-point-duplicate.js +32 -0
- package/svg-icons/image/control-point.js +32 -0
- package/svg-icons/image/crop-16-9.js +32 -0
- package/svg-icons/image/crop-3-2.js +32 -0
- package/svg-icons/image/crop-5-4.js +32 -0
- package/svg-icons/image/crop-7-5.js +32 -0
- package/svg-icons/image/crop-din.js +32 -0
- package/svg-icons/image/crop-free.js +32 -0
- package/svg-icons/image/crop-landscape.js +32 -0
- package/svg-icons/image/crop-original.js +32 -0
- package/svg-icons/image/crop-portrait.js +32 -0
- package/svg-icons/image/crop-rotate.js +32 -0
- package/svg-icons/image/crop-square.js +32 -0
- package/svg-icons/image/crop.js +32 -0
- package/svg-icons/image/dehaze.js +32 -0
- package/svg-icons/image/details.js +32 -0
- package/svg-icons/image/edit.js +32 -0
- package/svg-icons/image/exposure-neg-1.js +32 -0
- package/svg-icons/image/exposure-neg-2.js +32 -0
- package/svg-icons/image/exposure-plus-1.js +32 -0
- package/svg-icons/image/exposure-plus-2.js +32 -0
- package/svg-icons/image/exposure-zero.js +32 -0
- package/svg-icons/image/exposure.js +32 -0
- package/svg-icons/image/filter-1.js +32 -0
- package/svg-icons/image/filter-2.js +32 -0
- package/svg-icons/image/filter-3.js +32 -0
- package/svg-icons/image/filter-4.js +32 -0
- package/svg-icons/image/filter-5.js +32 -0
- package/svg-icons/image/filter-6.js +32 -0
- package/svg-icons/image/filter-7.js +32 -0
- package/svg-icons/image/filter-8.js +32 -0
- package/svg-icons/image/filter-9-plus.js +32 -0
- package/svg-icons/image/filter-9.js +32 -0
- package/svg-icons/image/filter-b-and-w.js +32 -0
- package/svg-icons/image/filter-center-focus.js +32 -0
- package/svg-icons/image/filter-drama.js +32 -0
- package/svg-icons/image/filter-frames.js +32 -0
- package/svg-icons/image/filter-hdr.js +32 -0
- package/svg-icons/image/filter-none.js +32 -0
- package/svg-icons/image/filter-tilt-shift.js +32 -0
- package/svg-icons/image/filter-vintage.js +32 -0
- package/svg-icons/image/filter.js +32 -0
- package/svg-icons/image/flare.js +32 -0
- package/svg-icons/image/flash-auto.js +32 -0
- package/svg-icons/image/flash-off.js +32 -0
- package/svg-icons/image/flash-on.js +32 -0
- package/svg-icons/image/flip.js +32 -0
- package/svg-icons/image/gradient.js +32 -0
- package/svg-icons/image/grain.js +32 -0
- package/svg-icons/image/grid-off.js +32 -0
- package/svg-icons/image/grid-on.js +32 -0
- package/svg-icons/image/hdr-off.js +32 -0
- package/svg-icons/image/hdr-on.js +32 -0
- package/svg-icons/image/hdr-strong.js +32 -0
- package/svg-icons/image/hdr-weak.js +32 -0
- package/svg-icons/image/healing.js +32 -0
- package/svg-icons/image/image-aspect-ratio.js +32 -0
- package/svg-icons/image/image.js +32 -0
- package/svg-icons/image/iso.js +32 -0
- package/svg-icons/image/landscape.js +32 -0
- package/svg-icons/image/leak-add.js +32 -0
- package/svg-icons/image/leak-remove.js +32 -0
- package/svg-icons/image/lens.js +32 -0
- package/svg-icons/image/linked-camera.js +34 -0
- package/svg-icons/image/looks-3.js +32 -0
- package/svg-icons/image/looks-4.js +32 -0
- package/svg-icons/image/looks-5.js +32 -0
- package/svg-icons/image/looks-6.js +32 -0
- package/svg-icons/image/looks-one.js +32 -0
- package/svg-icons/image/looks-two.js +32 -0
- package/svg-icons/image/looks.js +32 -0
- package/svg-icons/image/loupe.js +32 -0
- package/svg-icons/image/monochrome-photos.js +32 -0
- package/svg-icons/image/movie-creation.js +32 -0
- package/svg-icons/image/movie-filter.js +32 -0
- package/svg-icons/image/music-note.js +32 -0
- package/svg-icons/image/nature-people.js +32 -0
- package/svg-icons/image/nature.js +32 -0
- package/svg-icons/image/navigate-before.js +32 -0
- package/svg-icons/image/navigate-next.js +32 -0
- package/svg-icons/image/palette.js +32 -0
- package/svg-icons/image/panorama-fish-eye.js +32 -0
- package/svg-icons/image/panorama-horizontal.js +32 -0
- package/svg-icons/image/panorama-vertical.js +32 -0
- package/svg-icons/image/panorama-wide-angle.js +32 -0
- package/svg-icons/image/panorama.js +32 -0
- package/svg-icons/image/photo-album.js +32 -0
- package/svg-icons/image/photo-camera.js +33 -0
- package/svg-icons/image/photo-filter.js +32 -0
- package/svg-icons/image/photo-library.js +32 -0
- package/svg-icons/image/photo-size-select-actual.js +32 -0
- package/svg-icons/image/photo-size-select-large.js +32 -0
- package/svg-icons/image/photo-size-select-small.js +32 -0
- package/svg-icons/image/photo.js +32 -0
- package/svg-icons/image/picture-as-pdf.js +32 -0
- package/svg-icons/image/portrait.js +32 -0
- package/svg-icons/image/remove-red-eye.js +32 -0
- package/svg-icons/image/rotate-90-degrees-ccw.js +32 -0
- package/svg-icons/image/rotate-left.js +32 -0
- package/svg-icons/image/rotate-right.js +32 -0
- package/svg-icons/image/slideshow.js +32 -0
- package/svg-icons/image/straighten.js +32 -0
- package/svg-icons/image/style.js +32 -0
- package/svg-icons/image/switch-camera.js +32 -0
- package/svg-icons/image/switch-video.js +32 -0
- package/svg-icons/image/tag-faces.js +32 -0
- package/svg-icons/image/texture.js +32 -0
- package/svg-icons/image/timelapse.js +32 -0
- package/svg-icons/image/timer-10.js +32 -0
- package/svg-icons/image/timer-3.js +32 -0
- package/svg-icons/image/timer-off.js +32 -0
- package/svg-icons/image/timer.js +32 -0
- package/svg-icons/image/tonality.js +32 -0
- package/svg-icons/image/transform.js +32 -0
- package/svg-icons/image/tune.js +32 -0
- package/svg-icons/image/view-comfy.js +32 -0
- package/svg-icons/image/view-compact.js +32 -0
- package/svg-icons/image/vignette.js +32 -0
- package/svg-icons/image/wb-auto.js +32 -0
- package/svg-icons/image/wb-cloudy.js +32 -0
- package/svg-icons/image/wb-incandescent.js +32 -0
- package/svg-icons/image/wb-iridescent.js +32 -0
- package/svg-icons/image/wb-sunny.js +32 -0
- package/svg-icons/index.es.js +1922 -0
- package/svg-icons/index.js +4823 -0
- package/svg-icons/maps/add-location.js +32 -0
- package/svg-icons/maps/beenhere.js +32 -0
- package/svg-icons/maps/directions-bike.js +32 -0
- package/svg-icons/maps/directions-boat.js +32 -0
- package/svg-icons/maps/directions-bus.js +32 -0
- package/svg-icons/maps/directions-car.js +32 -0
- package/svg-icons/maps/directions-railway.js +32 -0
- package/svg-icons/maps/directions-run.js +32 -0
- package/svg-icons/maps/directions-subway.js +32 -0
- package/svg-icons/maps/directions-transit.js +32 -0
- package/svg-icons/maps/directions-walk.js +32 -0
- package/svg-icons/maps/directions.js +32 -0
- package/svg-icons/maps/edit-location.js +32 -0
- package/svg-icons/maps/ev-station.js +32 -0
- package/svg-icons/maps/flight.js +33 -0
- package/svg-icons/maps/hotel.js +32 -0
- package/svg-icons/maps/layers-clear.js +32 -0
- package/svg-icons/maps/layers.js +32 -0
- package/svg-icons/maps/local-activity.js +32 -0
- package/svg-icons/maps/local-airport.js +32 -0
- package/svg-icons/maps/local-atm.js +32 -0
- package/svg-icons/maps/local-bar.js +32 -0
- package/svg-icons/maps/local-cafe.js +32 -0
- package/svg-icons/maps/local-car-wash.js +32 -0
- package/svg-icons/maps/local-convenience-store.js +32 -0
- package/svg-icons/maps/local-dining.js +32 -0
- package/svg-icons/maps/local-drink.js +32 -0
- package/svg-icons/maps/local-florist.js +32 -0
- package/svg-icons/maps/local-gas-station.js +32 -0
- package/svg-icons/maps/local-grocery-store.js +32 -0
- package/svg-icons/maps/local-hospital.js +32 -0
- package/svg-icons/maps/local-hotel.js +32 -0
- package/svg-icons/maps/local-laundry-service.js +32 -0
- package/svg-icons/maps/local-library.js +32 -0
- package/svg-icons/maps/local-mall.js +32 -0
- package/svg-icons/maps/local-movies.js +32 -0
- package/svg-icons/maps/local-offer.js +32 -0
- package/svg-icons/maps/local-parking.js +32 -0
- package/svg-icons/maps/local-pharmacy.js +32 -0
- package/svg-icons/maps/local-phone.js +32 -0
- package/svg-icons/maps/local-pizza.js +32 -0
- package/svg-icons/maps/local-play.js +32 -0
- package/svg-icons/maps/local-post-office.js +32 -0
- package/svg-icons/maps/local-printshop.js +32 -0
- package/svg-icons/maps/local-see.js +33 -0
- package/svg-icons/maps/local-shipping.js +32 -0
- package/svg-icons/maps/local-taxi.js +32 -0
- package/svg-icons/maps/map.js +32 -0
- package/svg-icons/maps/my-location.js +32 -0
- package/svg-icons/maps/navigation.js +32 -0
- package/svg-icons/maps/near-me.js +32 -0
- package/svg-icons/maps/person-pin-circle.js +32 -0
- package/svg-icons/maps/person-pin.js +32 -0
- package/svg-icons/maps/pin-drop.js +32 -0
- package/svg-icons/maps/place.js +32 -0
- package/svg-icons/maps/rate-review.js +32 -0
- package/svg-icons/maps/restaurant-menu.js +32 -0
- package/svg-icons/maps/restaurant.js +32 -0
- package/svg-icons/maps/satellite.js +32 -0
- package/svg-icons/maps/store-mall-directory.js +32 -0
- package/svg-icons/maps/streetview.js +34 -0
- package/svg-icons/maps/subway.js +34 -0
- package/svg-icons/maps/terrain.js +32 -0
- package/svg-icons/maps/traffic.js +32 -0
- package/svg-icons/maps/train.js +32 -0
- package/svg-icons/maps/tram.js +32 -0
- package/svg-icons/maps/transfer-within-a-station.js +32 -0
- package/svg-icons/maps/zoom-out-map.js +32 -0
- package/svg-icons/navigation/apps.js +32 -0
- package/svg-icons/navigation/arrow-back.js +32 -0
- package/svg-icons/navigation/arrow-downward.js +32 -0
- package/svg-icons/navigation/arrow-drop-down-circle.js +32 -0
- package/svg-icons/navigation/arrow-drop-down.js +32 -0
- package/svg-icons/navigation/arrow-drop-up.js +32 -0
- package/svg-icons/navigation/arrow-forward.js +32 -0
- package/svg-icons/navigation/arrow-upward.js +32 -0
- package/svg-icons/navigation/cancel.js +32 -0
- package/svg-icons/navigation/check.js +32 -0
- package/svg-icons/navigation/chevron-left.js +32 -0
- package/svg-icons/navigation/chevron-right.js +32 -0
- package/svg-icons/navigation/close.js +32 -0
- package/svg-icons/navigation/expand-less.js +32 -0
- package/svg-icons/navigation/expand-more.js +32 -0
- package/svg-icons/navigation/first-page.js +32 -0
- package/svg-icons/navigation/fullscreen-exit.js +32 -0
- package/svg-icons/navigation/fullscreen.js +32 -0
- package/svg-icons/navigation/last-page.js +32 -0
- package/svg-icons/navigation/menu.js +32 -0
- package/svg-icons/navigation/more-horiz.js +32 -0
- package/svg-icons/navigation/more-vert.js +32 -0
- package/svg-icons/navigation/refresh.js +32 -0
- package/svg-icons/navigation/subdirectory-arrow-left.js +32 -0
- package/svg-icons/navigation/subdirectory-arrow-right.js +32 -0
- package/svg-icons/navigation/unfold-less.js +32 -0
- package/svg-icons/navigation/unfold-more.js +32 -0
- package/svg-icons/navigation-arrow-drop-right.js +33 -0
- package/svg-icons/notification/adb.js +32 -0
- package/svg-icons/notification/airline-seat-flat-angled.js +32 -0
- package/svg-icons/notification/airline-seat-flat.js +32 -0
- package/svg-icons/notification/airline-seat-individual-suite.js +32 -0
- package/svg-icons/notification/airline-seat-legroom-extra.js +32 -0
- package/svg-icons/notification/airline-seat-legroom-normal.js +32 -0
- package/svg-icons/notification/airline-seat-legroom-reduced.js +32 -0
- package/svg-icons/notification/airline-seat-recline-extra.js +32 -0
- package/svg-icons/notification/airline-seat-recline-normal.js +32 -0
- package/svg-icons/notification/bluetooth-audio.js +32 -0
- package/svg-icons/notification/confirmation-number.js +32 -0
- package/svg-icons/notification/disc-full.js +32 -0
- package/svg-icons/notification/do-not-disturb-alt.js +32 -0
- package/svg-icons/notification/do-not-disturb-off.js +32 -0
- package/svg-icons/notification/do-not-disturb-on.js +32 -0
- package/svg-icons/notification/do-not-disturb.js +32 -0
- package/svg-icons/notification/drive-eta.js +32 -0
- package/svg-icons/notification/enhanced-encryption.js +32 -0
- package/svg-icons/notification/event-available.js +32 -0
- package/svg-icons/notification/event-busy.js +32 -0
- package/svg-icons/notification/event-note.js +32 -0
- package/svg-icons/notification/folder-special.js +32 -0
- package/svg-icons/notification/live-tv.js +32 -0
- package/svg-icons/notification/mms.js +32 -0
- package/svg-icons/notification/more.js +32 -0
- package/svg-icons/notification/network-check.js +32 -0
- package/svg-icons/notification/network-locked.js +32 -0
- package/svg-icons/notification/no-encryption.js +32 -0
- package/svg-icons/notification/ondemand-video.js +32 -0
- package/svg-icons/notification/personal-video.js +32 -0
- package/svg-icons/notification/phone-bluetooth-speaker.js +32 -0
- package/svg-icons/notification/phone-forwarded.js +32 -0
- package/svg-icons/notification/phone-in-talk.js +32 -0
- package/svg-icons/notification/phone-locked.js +32 -0
- package/svg-icons/notification/phone-missed.js +32 -0
- package/svg-icons/notification/phone-paused.js +32 -0
- package/svg-icons/notification/power.js +32 -0
- package/svg-icons/notification/priority-high.js +33 -0
- package/svg-icons/notification/rv-hookup.js +32 -0
- package/svg-icons/notification/sd-card.js +32 -0
- package/svg-icons/notification/sim-card-alert.js +32 -0
- package/svg-icons/notification/sms-failed.js +32 -0
- package/svg-icons/notification/sms.js +32 -0
- package/svg-icons/notification/sync-disabled.js +32 -0
- package/svg-icons/notification/sync-problem.js +32 -0
- package/svg-icons/notification/sync.js +32 -0
- package/svg-icons/notification/system-update.js +32 -0
- package/svg-icons/notification/tap-and-play.js +32 -0
- package/svg-icons/notification/time-to-leave.js +32 -0
- package/svg-icons/notification/vibration.js +32 -0
- package/svg-icons/notification/voice-chat.js +32 -0
- package/svg-icons/notification/vpn-lock.js +32 -0
- package/svg-icons/notification/wc.js +32 -0
- package/svg-icons/notification/wifi.js +32 -0
- package/svg-icons/places/ac-unit.js +32 -0
- package/svg-icons/places/airport-shuttle.js +32 -0
- package/svg-icons/places/all-inclusive.js +32 -0
- package/svg-icons/places/beach-access.js +32 -0
- package/svg-icons/places/business-center.js +32 -0
- package/svg-icons/places/casino.js +32 -0
- package/svg-icons/places/child-care.js +34 -0
- package/svg-icons/places/child-friendly.js +32 -0
- package/svg-icons/places/fitness-center.js +32 -0
- package/svg-icons/places/free-breakfast.js +32 -0
- package/svg-icons/places/golf-course.js +33 -0
- package/svg-icons/places/hot-tub.js +33 -0
- package/svg-icons/places/kitchen.js +32 -0
- package/svg-icons/places/pool.js +33 -0
- package/svg-icons/places/room-service.js +32 -0
- package/svg-icons/places/rv-hookup.js +32 -0
- package/svg-icons/places/smoke-free.js +32 -0
- package/svg-icons/places/smoking-rooms.js +32 -0
- package/svg-icons/places/spa.js +33 -0
- package/svg-icons/social/cake.js +32 -0
- package/svg-icons/social/domain.js +32 -0
- package/svg-icons/social/group-add.js +32 -0
- package/svg-icons/social/group.js +32 -0
- package/svg-icons/social/location-city.js +32 -0
- package/svg-icons/social/mood-bad.js +32 -0
- package/svg-icons/social/mood.js +32 -0
- package/svg-icons/social/notifications-active.js +32 -0
- package/svg-icons/social/notifications-none.js +32 -0
- package/svg-icons/social/notifications-off.js +32 -0
- package/svg-icons/social/notifications-paused.js +32 -0
- package/svg-icons/social/notifications.js +32 -0
- package/svg-icons/social/pages.js +32 -0
- package/svg-icons/social/party-mode.js +32 -0
- package/svg-icons/social/people-outline.js +32 -0
- package/svg-icons/social/people.js +32 -0
- package/svg-icons/social/person-add.js +32 -0
- package/svg-icons/social/person-outline.js +32 -0
- package/svg-icons/social/person.js +32 -0
- package/svg-icons/social/plus-one.js +32 -0
- package/svg-icons/social/poll.js +32 -0
- package/svg-icons/social/public.js +32 -0
- package/svg-icons/social/school.js +32 -0
- package/svg-icons/social/sentiment-dissatisfied.js +34 -0
- package/svg-icons/social/sentiment-neutral.js +35 -0
- package/svg-icons/social/sentiment-satisfied.js +34 -0
- package/svg-icons/social/sentiment-very-dissatisfied.js +32 -0
- package/svg-icons/social/sentiment-very-satisfied.js +32 -0
- package/svg-icons/social/share.js +32 -0
- package/svg-icons/social/whatshot.js +32 -0
- package/svg-icons/toggle/check-box-outline-blank.js +32 -0
- package/svg-icons/toggle/check-box.js +32 -0
- package/svg-icons/toggle/indeterminate-check-box.js +32 -0
- package/svg-icons/toggle/radio-button-checked.js +32 -0
- package/svg-icons/toggle/radio-button-unchecked.js +32 -0
- package/svg-icons/toggle/star-border.js +32 -0
- package/svg-icons/toggle/star-half.js +32 -0
- package/svg-icons/toggle/star.js +32 -0
- package/utils/autoPrefix.js +10 -0
- package/utils/autoprefixer.js +79 -0
- package/utils/autoprefixerDynamic.js +40 -0
- package/utils/autoprefixerStatic.js +40 -0
- package/utils/callOnce.js +26 -0
- package/utils/childUtils.js +26 -0
- package/utils/colorManipulator.js +242 -0
- package/utils/deprecatedExport.js +22 -0
- package/utils/deprecatedPropType.js +38 -0
- package/utils/dom.js +24 -0
- package/utils/events.js +39 -0
- package/utils/propTypes.js +35 -0
- package/utils/rtl.js +89 -0
- package/utils/withWidth.js +132 -0
package/Slider/Slider.js
ADDED
|
@@ -0,0 +1,867 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
8
|
+
|
|
9
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
10
|
+
|
|
11
|
+
var _simpleAssign = require('simple-assign');
|
|
12
|
+
|
|
13
|
+
var _simpleAssign2 = _interopRequireDefault(_simpleAssign);
|
|
14
|
+
|
|
15
|
+
var _react = require('react');
|
|
16
|
+
|
|
17
|
+
var _react2 = _interopRequireDefault(_react);
|
|
18
|
+
|
|
19
|
+
var _propTypes = require('prop-types');
|
|
20
|
+
|
|
21
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
22
|
+
|
|
23
|
+
var _keycode = require('keycode');
|
|
24
|
+
|
|
25
|
+
var _keycode2 = _interopRequireDefault(_keycode);
|
|
26
|
+
|
|
27
|
+
var _warning = require('warning');
|
|
28
|
+
|
|
29
|
+
var _warning2 = _interopRequireDefault(_warning);
|
|
30
|
+
|
|
31
|
+
var _transitions = require('../styles/transitions');
|
|
32
|
+
|
|
33
|
+
var _transitions2 = _interopRequireDefault(_transitions);
|
|
34
|
+
|
|
35
|
+
var _FocusRipple = require('../internal/FocusRipple');
|
|
36
|
+
|
|
37
|
+
var _FocusRipple2 = _interopRequireDefault(_FocusRipple);
|
|
38
|
+
|
|
39
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
40
|
+
|
|
41
|
+
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
42
|
+
|
|
43
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44
|
+
|
|
45
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
46
|
+
|
|
47
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
48
|
+
|
|
49
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Verifies min/max range.
|
|
53
|
+
* @param {Object} props Properties of the React component.
|
|
54
|
+
* @param {String} propName Name of the property to validate.
|
|
55
|
+
* @param {String} componentName Name of the component whose property is being validated.
|
|
56
|
+
* @returns {Object} Returns an Error if min >= max otherwise null.
|
|
57
|
+
*/
|
|
58
|
+
var minMaxPropType = function minMaxPropType(props, propName, componentName) {
|
|
59
|
+
for (var _len = arguments.length, rest = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
60
|
+
rest[_key - 3] = arguments[_key];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var error = _propTypes2.default.number.apply(_propTypes2.default, [props, propName, componentName].concat(rest));
|
|
64
|
+
if (error !== null) {
|
|
65
|
+
return error;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (props.min >= props.max) {
|
|
69
|
+
var errorMsg = propName === 'min' ? 'min should be less than max' : 'max should be greater than min';
|
|
70
|
+
return new Error(errorMsg);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Verifies value is within the min/max range.
|
|
76
|
+
* @param {Object} props Properties of the React component.
|
|
77
|
+
* @param {String} propName Name of the property to validate.
|
|
78
|
+
* @param {String} componentName Name of the component whose property is being validated.
|
|
79
|
+
* @returns {Object} Returns an Error if the value is not within the range otherwise null.
|
|
80
|
+
*/
|
|
81
|
+
var valueInRangePropType = function valueInRangePropType(props, propName, componentName) {
|
|
82
|
+
for (var _len2 = arguments.length, rest = Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
83
|
+
rest[_key2 - 3] = arguments[_key2];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var error = _propTypes2.default.number.apply(_propTypes2.default, [props, propName, componentName].concat(rest));
|
|
87
|
+
if (error !== null) {
|
|
88
|
+
return error;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
var value = props[propName];
|
|
92
|
+
if (value < props.min || props.max < value) {
|
|
93
|
+
return new Error(propName + ' should be within the range specified by min and max');
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var crossAxisProperty = {
|
|
98
|
+
x: 'height',
|
|
99
|
+
'x-reverse': 'height',
|
|
100
|
+
y: 'width',
|
|
101
|
+
'y-reverse': 'width'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var crossAxisOffsetProperty = {
|
|
105
|
+
x: 'top',
|
|
106
|
+
'x-reverse': 'top',
|
|
107
|
+
y: 'left',
|
|
108
|
+
'y-reverse': 'left'
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
var mainAxisProperty = {
|
|
112
|
+
x: 'width',
|
|
113
|
+
'x-reverse': 'width',
|
|
114
|
+
y: 'height',
|
|
115
|
+
'y-reverse': 'height'
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var mainAxisMarginFromEnd = {
|
|
119
|
+
x: 'marginRight',
|
|
120
|
+
'x-reverse': 'marginLeft',
|
|
121
|
+
y: 'marginTop',
|
|
122
|
+
'y-reverse': 'marginBottom'
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var mainAxisMarginFromStart = {
|
|
126
|
+
x: 'marginLeft',
|
|
127
|
+
'x-reverse': 'marginRight',
|
|
128
|
+
y: 'marginBottom',
|
|
129
|
+
'y-reverse': 'marginTop'
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var mainAxisOffsetProperty = {
|
|
133
|
+
x: 'left',
|
|
134
|
+
'x-reverse': 'right',
|
|
135
|
+
y: 'bottom',
|
|
136
|
+
'y-reverse': 'top'
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
var mainAxisClientProperty = {
|
|
140
|
+
x: 'clientWidth',
|
|
141
|
+
'x-reverse': 'clientWidth',
|
|
142
|
+
y: 'clientHeight',
|
|
143
|
+
'y-reverse': 'clientHeight'
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
var mainAxisClientOffsetProperty = {
|
|
147
|
+
x: 'clientX',
|
|
148
|
+
'x-reverse': 'clientX',
|
|
149
|
+
y: 'clientY',
|
|
150
|
+
'y-reverse': 'clientY'
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
var reverseMainAxisOffsetProperty = {
|
|
154
|
+
x: 'right',
|
|
155
|
+
'x-reverse': 'left',
|
|
156
|
+
y: 'top',
|
|
157
|
+
'y-reverse': 'bottom'
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
var isMouseControlInverted = function isMouseControlInverted(axis) {
|
|
161
|
+
return axis === 'x-reverse' || axis === 'y';
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
var calculateAxis = function calculateAxis(axis, isRtl) {
|
|
165
|
+
if (isRtl) {
|
|
166
|
+
switch (axis) {
|
|
167
|
+
case 'x':
|
|
168
|
+
return 'x-reverse';
|
|
169
|
+
case 'x-reverse':
|
|
170
|
+
return 'x';
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return axis;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
function getPercent(value, min, max) {
|
|
177
|
+
var percent = (value - min) / (max - min);
|
|
178
|
+
if (isNaN(percent)) {
|
|
179
|
+
percent = 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return percent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
var getStyles = function getStyles(props, context, state) {
|
|
186
|
+
var _slider, _track, _filledAndRemaining, _handle, _objectAssign2, _objectAssign3;
|
|
187
|
+
|
|
188
|
+
var axis = props.axis,
|
|
189
|
+
disabled = props.disabled,
|
|
190
|
+
max = props.max,
|
|
191
|
+
min = props.min;
|
|
192
|
+
var _context$muiTheme = context.muiTheme,
|
|
193
|
+
isRtl = _context$muiTheme.isRtl,
|
|
194
|
+
_context$muiTheme$sli = _context$muiTheme.slider,
|
|
195
|
+
handleColorZero = _context$muiTheme$sli.handleColorZero,
|
|
196
|
+
handleFillColor = _context$muiTheme$sli.handleFillColor,
|
|
197
|
+
handleSize = _context$muiTheme$sli.handleSize,
|
|
198
|
+
handleSizeDisabled = _context$muiTheme$sli.handleSizeDisabled,
|
|
199
|
+
handleSizeActive = _context$muiTheme$sli.handleSizeActive,
|
|
200
|
+
trackSize = _context$muiTheme$sli.trackSize,
|
|
201
|
+
trackColor = _context$muiTheme$sli.trackColor,
|
|
202
|
+
trackColorSelected = _context$muiTheme$sli.trackColorSelected,
|
|
203
|
+
rippleColor = _context$muiTheme$sli.rippleColor,
|
|
204
|
+
selectionColor = _context$muiTheme$sli.selectionColor;
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
var fillGutter = handleSize / 2;
|
|
208
|
+
var disabledGutter = trackSize + handleSizeDisabled / 2;
|
|
209
|
+
var calcDisabledSpacing = disabled ? ' - ' + disabledGutter + 'px' : '';
|
|
210
|
+
var percent = getPercent(state.value, min, max);
|
|
211
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
212
|
+
|
|
213
|
+
var styles = {
|
|
214
|
+
slider: (_slider = {
|
|
215
|
+
touchCallout: 'none',
|
|
216
|
+
userSelect: 'none',
|
|
217
|
+
cursor: 'default'
|
|
218
|
+
}, _defineProperty(_slider, crossAxisProperty[calculatedAxis], handleSizeActive), _defineProperty(_slider, mainAxisProperty[calculatedAxis], '100%'), _defineProperty(_slider, 'position', 'relative'), _defineProperty(_slider, 'marginTop', 24), _defineProperty(_slider, 'marginBottom', 48), _slider),
|
|
219
|
+
track: (_track = {
|
|
220
|
+
position: 'absolute'
|
|
221
|
+
}, _defineProperty(_track, crossAxisOffsetProperty[calculatedAxis], (handleSizeActive - trackSize) / 2), _defineProperty(_track, mainAxisOffsetProperty[calculatedAxis], 0), _defineProperty(_track, mainAxisProperty[calculatedAxis], '100%'), _defineProperty(_track, crossAxisProperty[calculatedAxis], trackSize), _track),
|
|
222
|
+
filledAndRemaining: (_filledAndRemaining = {
|
|
223
|
+
directionInvariant: true,
|
|
224
|
+
position: 'absolute'
|
|
225
|
+
}, _defineProperty(_filledAndRemaining, crossAxisOffsetProperty, 0), _defineProperty(_filledAndRemaining, crossAxisProperty[calculatedAxis], '100%'), _defineProperty(_filledAndRemaining, 'transition', _transitions2.default.easeOut(null, 'margin')), _filledAndRemaining),
|
|
226
|
+
handle: (_handle = {
|
|
227
|
+
directionInvariant: true,
|
|
228
|
+
boxSizing: 'border-box',
|
|
229
|
+
position: 'absolute',
|
|
230
|
+
cursor: 'pointer',
|
|
231
|
+
pointerEvents: 'inherit'
|
|
232
|
+
}, _defineProperty(_handle, crossAxisOffsetProperty[calculatedAxis], 0), _defineProperty(_handle, mainAxisOffsetProperty[calculatedAxis], percent === 0 ? '0%' : percent * 100 + '%'), _defineProperty(_handle, 'zIndex', 1), _defineProperty(_handle, 'margin', {
|
|
233
|
+
x: trackSize / 2 + 'px 0 0 0',
|
|
234
|
+
'x-reverse': trackSize / 2 + 'px 0 0 0',
|
|
235
|
+
y: '0 0 0 ' + trackSize / 2 + 'px',
|
|
236
|
+
'y-reverse': '0 0 0 ' + trackSize / 2 + 'px'
|
|
237
|
+
}[calculatedAxis]), _defineProperty(_handle, 'width', handleSize), _defineProperty(_handle, 'height', handleSize), _defineProperty(_handle, 'backgroundColor', selectionColor), _defineProperty(_handle, 'backgroundClip', 'padding-box'), _defineProperty(_handle, 'border', '0px solid transparent'), _defineProperty(_handle, 'borderRadius', '50%'), _defineProperty(_handle, 'transform', {
|
|
238
|
+
x: 'translate(-50%, -50%)',
|
|
239
|
+
'x-reverse': 'translate(50%, -50%)',
|
|
240
|
+
y: 'translate(-50%, 50%)',
|
|
241
|
+
'y-reverse': 'translate(-50%, -50%)'
|
|
242
|
+
}[calculatedAxis]), _defineProperty(_handle, 'transition', _transitions2.default.easeOut('450ms', 'background') + ', ' + _transitions2.default.easeOut('450ms', 'border-color') + ', ' + _transitions2.default.easeOut('450ms', 'width') + ', ' + _transitions2.default.easeOut('450ms', 'height')), _defineProperty(_handle, 'overflow', 'visible'), _defineProperty(_handle, 'outline', 'none'), _handle),
|
|
243
|
+
handleWhenDisabled: {
|
|
244
|
+
boxSizing: 'content-box',
|
|
245
|
+
cursor: 'not-allowed',
|
|
246
|
+
backgroundColor: trackColor,
|
|
247
|
+
width: handleSizeDisabled,
|
|
248
|
+
height: handleSizeDisabled,
|
|
249
|
+
border: 'none'
|
|
250
|
+
},
|
|
251
|
+
handleWhenPercentZero: {
|
|
252
|
+
border: trackSize + 'px solid ' + handleColorZero,
|
|
253
|
+
backgroundColor: handleFillColor,
|
|
254
|
+
boxShadow: 'none'
|
|
255
|
+
},
|
|
256
|
+
handleWhenPercentZeroAndDisabled: {
|
|
257
|
+
cursor: 'not-allowed',
|
|
258
|
+
width: handleSizeDisabled,
|
|
259
|
+
height: handleSizeDisabled
|
|
260
|
+
},
|
|
261
|
+
handleWhenPercentZeroAndFocused: {
|
|
262
|
+
border: trackSize + 'px solid ' + trackColorSelected
|
|
263
|
+
},
|
|
264
|
+
handleWhenActive: {
|
|
265
|
+
width: handleSizeActive,
|
|
266
|
+
height: handleSizeActive
|
|
267
|
+
},
|
|
268
|
+
ripple: {
|
|
269
|
+
height: handleSize,
|
|
270
|
+
width: handleSize,
|
|
271
|
+
overflow: 'visible'
|
|
272
|
+
},
|
|
273
|
+
rippleWhenPercentZero: {
|
|
274
|
+
top: -trackSize,
|
|
275
|
+
left: -trackSize
|
|
276
|
+
},
|
|
277
|
+
rippleInner: {
|
|
278
|
+
height: '300%',
|
|
279
|
+
width: '300%',
|
|
280
|
+
top: -handleSize,
|
|
281
|
+
left: -handleSize
|
|
282
|
+
},
|
|
283
|
+
rippleColor: {
|
|
284
|
+
fill: percent === 0 ? handleColorZero : rippleColor
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
styles.filled = (0, _simpleAssign2.default)({}, styles.filledAndRemaining, (_objectAssign2 = {}, _defineProperty(_objectAssign2, mainAxisOffsetProperty[calculatedAxis], 0), _defineProperty(_objectAssign2, 'backgroundColor', disabled ? trackColor : selectionColor), _defineProperty(_objectAssign2, mainAxisMarginFromEnd[calculatedAxis], fillGutter), _defineProperty(_objectAssign2, mainAxisProperty[calculatedAxis], 'calc(' + percent * 100 + '%' + calcDisabledSpacing + ')'), _objectAssign2));
|
|
288
|
+
styles.remaining = (0, _simpleAssign2.default)({}, styles.filledAndRemaining, (_objectAssign3 = {}, _defineProperty(_objectAssign3, reverseMainAxisOffsetProperty[calculatedAxis], 0), _defineProperty(_objectAssign3, 'backgroundColor', (state.hovered || state.focused) && !disabled ? trackColorSelected : trackColor), _defineProperty(_objectAssign3, mainAxisMarginFromStart[calculatedAxis], fillGutter), _defineProperty(_objectAssign3, mainAxisProperty[calculatedAxis], 'calc(' + (1 - percent) * 100 + '%' + calcDisabledSpacing + ')'), _objectAssign3));
|
|
289
|
+
|
|
290
|
+
return styles;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
var Slider = function (_Component) {
|
|
294
|
+
_inherits(Slider, _Component);
|
|
295
|
+
|
|
296
|
+
function Slider() {
|
|
297
|
+
var _ref;
|
|
298
|
+
|
|
299
|
+
var _temp, _this, _ret;
|
|
300
|
+
|
|
301
|
+
_classCallCheck(this, Slider);
|
|
302
|
+
|
|
303
|
+
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
304
|
+
args[_key3] = arguments[_key3];
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Slider.__proto__ || Object.getPrototypeOf(Slider)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
|
|
308
|
+
active: false,
|
|
309
|
+
dragging: false,
|
|
310
|
+
focused: false,
|
|
311
|
+
hovered: false,
|
|
312
|
+
value: 0
|
|
313
|
+
}, _this.track = null, _this.handle = null, _this.resolveValue = function (value, min, max) {
|
|
314
|
+
if (value > max) {
|
|
315
|
+
return max;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (value < min) {
|
|
319
|
+
return min;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return value;
|
|
323
|
+
}, _this.handleKeyDown = function (event) {
|
|
324
|
+
var _this$props = _this.props,
|
|
325
|
+
axis = _this$props.axis,
|
|
326
|
+
min = _this$props.min,
|
|
327
|
+
max = _this$props.max,
|
|
328
|
+
step = _this$props.step;
|
|
329
|
+
var isRtl = _this.context.muiTheme.isRtl;
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
333
|
+
|
|
334
|
+
var action = void 0;
|
|
335
|
+
|
|
336
|
+
switch ((0, _keycode2.default)(event)) {
|
|
337
|
+
case 'page down':
|
|
338
|
+
case 'down':
|
|
339
|
+
if (calculatedAxis === 'y-reverse') {
|
|
340
|
+
action = 'increase';
|
|
341
|
+
} else {
|
|
342
|
+
action = 'decrease';
|
|
343
|
+
}
|
|
344
|
+
break;
|
|
345
|
+
case 'left':
|
|
346
|
+
if (calculatedAxis === 'x-reverse') {
|
|
347
|
+
action = 'increase';
|
|
348
|
+
} else {
|
|
349
|
+
action = 'decrease';
|
|
350
|
+
}
|
|
351
|
+
break;
|
|
352
|
+
case 'page up':
|
|
353
|
+
case 'up':
|
|
354
|
+
if (calculatedAxis === 'y-reverse') {
|
|
355
|
+
action = 'decrease';
|
|
356
|
+
} else {
|
|
357
|
+
action = 'increase';
|
|
358
|
+
}
|
|
359
|
+
break;
|
|
360
|
+
case 'right':
|
|
361
|
+
if (calculatedAxis === 'x-reverse') {
|
|
362
|
+
action = 'decrease';
|
|
363
|
+
} else {
|
|
364
|
+
action = 'increase';
|
|
365
|
+
}
|
|
366
|
+
break;
|
|
367
|
+
case 'home':
|
|
368
|
+
action = 'min';
|
|
369
|
+
break;
|
|
370
|
+
case 'end':
|
|
371
|
+
action = 'max';
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (action) {
|
|
376
|
+
var newValue = void 0;
|
|
377
|
+
|
|
378
|
+
// Cancel scroll
|
|
379
|
+
event.preventDefault();
|
|
380
|
+
|
|
381
|
+
switch (action) {
|
|
382
|
+
case 'decrease':
|
|
383
|
+
newValue = _this.state.value - step;
|
|
384
|
+
break;
|
|
385
|
+
case 'increase':
|
|
386
|
+
newValue = _this.state.value + step;
|
|
387
|
+
break;
|
|
388
|
+
case 'min':
|
|
389
|
+
newValue = min;
|
|
390
|
+
break;
|
|
391
|
+
case 'max':
|
|
392
|
+
newValue = max;
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// We need to use toFixed() because of float point errors.
|
|
397
|
+
// For example, 0.01 + 0.06 = 0.06999999999999999
|
|
398
|
+
newValue = _this.resolveValue(parseFloat(newValue.toFixed(5)), min, max);
|
|
399
|
+
|
|
400
|
+
if (_this.state.value !== newValue) {
|
|
401
|
+
_this.setState({
|
|
402
|
+
value: newValue
|
|
403
|
+
});
|
|
404
|
+
|
|
405
|
+
if (_this.props.onChange) {
|
|
406
|
+
_this.props.onChange(event, newValue);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}, _this.handleDragMouseMove = function (event) {
|
|
411
|
+
_this.onDragUpdate(event, 'mouse');
|
|
412
|
+
}, _this.handleTouchMove = function (event) {
|
|
413
|
+
_this.onDragUpdate(event, 'touch');
|
|
414
|
+
}, _this.handleMouseEnd = function (event) {
|
|
415
|
+
document.removeEventListener('mousemove', _this.handleDragMouseMove);
|
|
416
|
+
document.removeEventListener('mouseup', _this.handleMouseEnd);
|
|
417
|
+
|
|
418
|
+
_this.onDragStop(event);
|
|
419
|
+
}, _this.handleTouchEnd = function (event) {
|
|
420
|
+
document.removeEventListener('touchmove', _this.handleTouchMove);
|
|
421
|
+
document.removeEventListener('touchup', _this.handleTouchEnd);
|
|
422
|
+
document.removeEventListener('touchend', _this.handleTouchEnd);
|
|
423
|
+
document.removeEventListener('touchcancel', _this.handleTouchEnd);
|
|
424
|
+
|
|
425
|
+
_this.onDragStop(event);
|
|
426
|
+
}, _this.handleTouchStart = function (event) {
|
|
427
|
+
var _this$props2 = _this.props,
|
|
428
|
+
axis = _this$props2.axis,
|
|
429
|
+
disabled = _this$props2.disabled;
|
|
430
|
+
var isRtl = _this.context.muiTheme.isRtl;
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
if (disabled) {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
438
|
+
|
|
439
|
+
var position = void 0;
|
|
440
|
+
if (isMouseControlInverted(calculatedAxis)) {
|
|
441
|
+
position = _this.getTrackOffset() - event.touches[0][mainAxisClientOffsetProperty[calculatedAxis]];
|
|
442
|
+
} else {
|
|
443
|
+
position = event.touches[0][mainAxisClientOffsetProperty[calculatedAxis]] - _this.getTrackOffset();
|
|
444
|
+
}
|
|
445
|
+
_this.setValueFromPosition(event, position);
|
|
446
|
+
|
|
447
|
+
document.addEventListener('touchmove', _this.handleTouchMove);
|
|
448
|
+
document.addEventListener('touchup', _this.handleTouchEnd);
|
|
449
|
+
document.addEventListener('touchend', _this.handleTouchEnd);
|
|
450
|
+
document.addEventListener('touchcancel', _this.handleTouchEnd);
|
|
451
|
+
|
|
452
|
+
_this.onDragStart(event);
|
|
453
|
+
|
|
454
|
+
// Cancel scroll and context menu
|
|
455
|
+
event.preventDefault();
|
|
456
|
+
}, _this.handleFocus = function (event) {
|
|
457
|
+
_this.setState({
|
|
458
|
+
focused: true
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
if (_this.props.onFocus) {
|
|
462
|
+
_this.props.onFocus(event);
|
|
463
|
+
}
|
|
464
|
+
}, _this.handleBlur = function (event) {
|
|
465
|
+
_this.setState({
|
|
466
|
+
focused: false,
|
|
467
|
+
active: false
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
if (_this.props.onBlur) {
|
|
471
|
+
_this.props.onBlur(event);
|
|
472
|
+
}
|
|
473
|
+
}, _this.handleMouseDown = function (event) {
|
|
474
|
+
var _this$props3 = _this.props,
|
|
475
|
+
axis = _this$props3.axis,
|
|
476
|
+
disabled = _this$props3.disabled;
|
|
477
|
+
var isRtl = _this.context.muiTheme.isRtl;
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
if (disabled) {
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
485
|
+
|
|
486
|
+
var position = void 0;
|
|
487
|
+
if (isMouseControlInverted(calculatedAxis)) {
|
|
488
|
+
position = _this.getTrackOffset() - event[mainAxisClientOffsetProperty[calculatedAxis]];
|
|
489
|
+
} else {
|
|
490
|
+
position = event[mainAxisClientOffsetProperty[calculatedAxis]] - _this.getTrackOffset();
|
|
491
|
+
}
|
|
492
|
+
_this.setValueFromPosition(event, position);
|
|
493
|
+
|
|
494
|
+
document.addEventListener('mousemove', _this.handleDragMouseMove);
|
|
495
|
+
document.addEventListener('mouseup', _this.handleMouseEnd);
|
|
496
|
+
|
|
497
|
+
// Cancel text selection
|
|
498
|
+
event.preventDefault();
|
|
499
|
+
|
|
500
|
+
// Set focus manually since we called preventDefault()
|
|
501
|
+
_this.handle.focus();
|
|
502
|
+
|
|
503
|
+
_this.onDragStart(event);
|
|
504
|
+
}, _this.handleMouseUp = function () {
|
|
505
|
+
if (!_this.props.disabled) {
|
|
506
|
+
_this.setState({
|
|
507
|
+
active: false
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}, _this.handleMouseEnter = function () {
|
|
511
|
+
_this.setState({
|
|
512
|
+
hovered: true
|
|
513
|
+
});
|
|
514
|
+
}, _this.handleMouseLeave = function () {
|
|
515
|
+
_this.setState({
|
|
516
|
+
hovered: false
|
|
517
|
+
});
|
|
518
|
+
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
_createClass(Slider, [{
|
|
522
|
+
key: 'componentWillMount',
|
|
523
|
+
value: function componentWillMount() {
|
|
524
|
+
var _props = this.props,
|
|
525
|
+
defaultValue = _props.defaultValue,
|
|
526
|
+
min = _props.min,
|
|
527
|
+
max = _props.max;
|
|
528
|
+
var value = this.props.value;
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
if (value === undefined) {
|
|
532
|
+
value = defaultValue !== undefined ? defaultValue : min;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
this.setState({
|
|
536
|
+
value: this.resolveValue(value, min, max)
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
}, {
|
|
540
|
+
key: 'componentWillReceiveProps',
|
|
541
|
+
value: function componentWillReceiveProps(nextProps) {
|
|
542
|
+
if (nextProps.value !== undefined && !this.state.dragging) {
|
|
543
|
+
var _nextProps$min = nextProps.min,
|
|
544
|
+
min = _nextProps$min === undefined ? this.props.min : _nextProps$min,
|
|
545
|
+
_nextProps$max = nextProps.max,
|
|
546
|
+
max = _nextProps$max === undefined ? this.props.max : _nextProps$max;
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
this.setState({
|
|
550
|
+
value: this.resolveValue(nextProps.value, min, max)
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}, {
|
|
555
|
+
key: 'getValue',
|
|
556
|
+
value: function getValue() {
|
|
557
|
+
process.env.NODE_ENV !== "production" ? (0, _warning2.default)(false, 'Material-UI Slider: getValue() method is deprecated.\n Use the onChange callbacks instead.\n It will be removed with v0.17.0.') : void 0;
|
|
558
|
+
|
|
559
|
+
return this.state.value;
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
key: 'clearValue',
|
|
563
|
+
value: function clearValue() {
|
|
564
|
+
process.env.NODE_ENV !== "production" ? (0, _warning2.default)(false, 'Material-UI Slider: clearValue() method is deprecated.\n Use the value property to control the component instead.\n It will be removed with v0.17.0.') : void 0;
|
|
565
|
+
|
|
566
|
+
this.setState({
|
|
567
|
+
value: this.props.min
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
}, {
|
|
571
|
+
key: 'getTrackOffset',
|
|
572
|
+
value: function getTrackOffset() {
|
|
573
|
+
var axis = this.props.axis;
|
|
574
|
+
var isRtl = this.context.muiTheme.isRtl;
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
578
|
+
|
|
579
|
+
if (!this.track) return 0;
|
|
580
|
+
return this.track.getBoundingClientRect()[mainAxisOffsetProperty[calculatedAxis]];
|
|
581
|
+
}
|
|
582
|
+
}, {
|
|
583
|
+
key: 'onDragStart',
|
|
584
|
+
value: function onDragStart(event) {
|
|
585
|
+
this.setState({
|
|
586
|
+
dragging: true,
|
|
587
|
+
active: true
|
|
588
|
+
});
|
|
589
|
+
|
|
590
|
+
if (this.props.onDragStart) {
|
|
591
|
+
this.props.onDragStart(event);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}, {
|
|
595
|
+
key: 'onDragUpdate',
|
|
596
|
+
value: function onDragUpdate(event, type) {
|
|
597
|
+
var _this2 = this;
|
|
598
|
+
|
|
599
|
+
var _props2 = this.props,
|
|
600
|
+
axis = _props2.axis,
|
|
601
|
+
disabled = _props2.disabled;
|
|
602
|
+
var isRtl = this.context.muiTheme.isRtl;
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
if (this.dragRunning) {
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
this.dragRunning = true;
|
|
609
|
+
|
|
610
|
+
requestAnimationFrame(function () {
|
|
611
|
+
_this2.dragRunning = false;
|
|
612
|
+
|
|
613
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
614
|
+
var source = type === 'touch' ? event.touches[0] : event;
|
|
615
|
+
|
|
616
|
+
var position = void 0;
|
|
617
|
+
if (isMouseControlInverted(calculatedAxis)) {
|
|
618
|
+
position = _this2.getTrackOffset() - source[mainAxisClientOffsetProperty[calculatedAxis]];
|
|
619
|
+
} else {
|
|
620
|
+
position = source[mainAxisClientOffsetProperty[calculatedAxis]] - _this2.getTrackOffset();
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (!disabled) {
|
|
624
|
+
_this2.setValueFromPosition(event, position);
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}, {
|
|
629
|
+
key: 'onDragStop',
|
|
630
|
+
value: function onDragStop(event) {
|
|
631
|
+
this.setState({
|
|
632
|
+
dragging: false,
|
|
633
|
+
active: false
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
if (this.props.onDragStop) {
|
|
637
|
+
this.props.onDragStop(event);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}, {
|
|
641
|
+
key: 'setValueFromPosition',
|
|
642
|
+
value: function setValueFromPosition(event, position) {
|
|
643
|
+
var _props3 = this.props,
|
|
644
|
+
axis = _props3.axis,
|
|
645
|
+
step = _props3.step,
|
|
646
|
+
min = _props3.min,
|
|
647
|
+
max = _props3.max;
|
|
648
|
+
var isRtl = this.context.muiTheme.isRtl;
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
var calculatedAxis = calculateAxis(axis, isRtl);
|
|
652
|
+
var positionMax = this.track[mainAxisClientProperty[calculatedAxis]];
|
|
653
|
+
|
|
654
|
+
var value = void 0;
|
|
655
|
+
|
|
656
|
+
if (position <= 0) {
|
|
657
|
+
value = min;
|
|
658
|
+
} else if (position >= positionMax) {
|
|
659
|
+
value = max;
|
|
660
|
+
} else {
|
|
661
|
+
value = position / positionMax * (max - min);
|
|
662
|
+
value = Math.round(value / step) * step + min;
|
|
663
|
+
value = parseFloat(value.toFixed(5));
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
value = this.resolveValue(value, min, max);
|
|
667
|
+
|
|
668
|
+
if (this.state.value !== value) {
|
|
669
|
+
this.setState({
|
|
670
|
+
value: value
|
|
671
|
+
});
|
|
672
|
+
|
|
673
|
+
if (this.props.onChange) {
|
|
674
|
+
this.props.onChange(event, value);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}, {
|
|
679
|
+
key: 'render',
|
|
680
|
+
value: function render() {
|
|
681
|
+
var _this3 = this;
|
|
682
|
+
|
|
683
|
+
var _props4 = this.props,
|
|
684
|
+
axis = _props4.axis,
|
|
685
|
+
disabled = _props4.disabled,
|
|
686
|
+
disableFocusRipple = _props4.disableFocusRipple,
|
|
687
|
+
max = _props4.max,
|
|
688
|
+
min = _props4.min,
|
|
689
|
+
name = _props4.name,
|
|
690
|
+
onBlur = _props4.onBlur,
|
|
691
|
+
onChange = _props4.onChange,
|
|
692
|
+
onDragStart = _props4.onDragStart,
|
|
693
|
+
onDragStop = _props4.onDragStop,
|
|
694
|
+
onFocus = _props4.onFocus,
|
|
695
|
+
required = _props4.required,
|
|
696
|
+
sliderStyle = _props4.sliderStyle,
|
|
697
|
+
step = _props4.step,
|
|
698
|
+
style = _props4.style,
|
|
699
|
+
propValue = _props4.value,
|
|
700
|
+
other = _objectWithoutProperties(_props4, ['axis', 'disabled', 'disableFocusRipple', 'max', 'min', 'name', 'onBlur', 'onChange', 'onDragStart', 'onDragStop', 'onFocus', 'required', 'sliderStyle', 'step', 'style', 'value']);
|
|
701
|
+
|
|
702
|
+
var _state = this.state,
|
|
703
|
+
active = _state.active,
|
|
704
|
+
focused = _state.focused,
|
|
705
|
+
hovered = _state.hovered,
|
|
706
|
+
value = _state.value;
|
|
707
|
+
var prepareStyles = this.context.muiTheme.prepareStyles;
|
|
708
|
+
|
|
709
|
+
var styles = getStyles(this.props, this.context, this.state);
|
|
710
|
+
var percent = getPercent(value, min, max);
|
|
711
|
+
|
|
712
|
+
var handleStyles = {};
|
|
713
|
+
if (percent === 0) {
|
|
714
|
+
handleStyles = (0, _simpleAssign2.default)({}, styles.handle, styles.handleWhenPercentZero, active && styles.handleWhenActive, (hovered || focused) && !disabled && styles.handleWhenPercentZeroAndFocused, disabled && styles.handleWhenPercentZeroAndDisabled);
|
|
715
|
+
} else {
|
|
716
|
+
handleStyles = (0, _simpleAssign2.default)({}, styles.handle, active && styles.handleWhenActive, disabled && styles.handleWhenDisabled);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
var rippleStyle = (0, _simpleAssign2.default)({}, styles.ripple, percent === 0 && styles.rippleWhenPercentZero);
|
|
720
|
+
|
|
721
|
+
return _react2.default.createElement(
|
|
722
|
+
'div',
|
|
723
|
+
_extends({}, other, { style: prepareStyles((0, _simpleAssign2.default)({}, style)) }),
|
|
724
|
+
_react2.default.createElement(
|
|
725
|
+
'div',
|
|
726
|
+
{
|
|
727
|
+
style: prepareStyles((0, _simpleAssign2.default)({}, styles.slider, sliderStyle)),
|
|
728
|
+
onFocus: this.handleFocus,
|
|
729
|
+
onBlur: this.handleBlur,
|
|
730
|
+
onMouseDown: this.handleMouseDown,
|
|
731
|
+
onMouseEnter: this.handleMouseEnter,
|
|
732
|
+
onMouseLeave: this.handleMouseLeave,
|
|
733
|
+
onMouseUp: this.handleMouseUp,
|
|
734
|
+
onTouchStart: this.handleTouchStart,
|
|
735
|
+
onKeyDown: !disabled ? this.handleKeyDown : undefined
|
|
736
|
+
},
|
|
737
|
+
_react2.default.createElement(
|
|
738
|
+
'div',
|
|
739
|
+
{ ref: function ref(node) {
|
|
740
|
+
return _this3.track = node;
|
|
741
|
+
}, style: prepareStyles(styles.track) },
|
|
742
|
+
_react2.default.createElement('div', { style: prepareStyles(styles.filled) }),
|
|
743
|
+
_react2.default.createElement('div', { style: prepareStyles(styles.remaining) }),
|
|
744
|
+
_react2.default.createElement(
|
|
745
|
+
'div',
|
|
746
|
+
{
|
|
747
|
+
ref: function ref(node) {
|
|
748
|
+
return _this3.handle = node;
|
|
749
|
+
},
|
|
750
|
+
style: prepareStyles(handleStyles),
|
|
751
|
+
tabIndex: 0
|
|
752
|
+
},
|
|
753
|
+
!disabled && !disableFocusRipple && _react2.default.createElement(_FocusRipple2.default, {
|
|
754
|
+
style: rippleStyle,
|
|
755
|
+
innerStyle: styles.rippleInner,
|
|
756
|
+
show: (hovered || focused) && !active,
|
|
757
|
+
color: styles.rippleColor.fill
|
|
758
|
+
})
|
|
759
|
+
)
|
|
760
|
+
)
|
|
761
|
+
),
|
|
762
|
+
_react2.default.createElement('input', {
|
|
763
|
+
type: 'hidden',
|
|
764
|
+
name: name,
|
|
765
|
+
value: value,
|
|
766
|
+
required: required,
|
|
767
|
+
min: min,
|
|
768
|
+
max: max,
|
|
769
|
+
step: step
|
|
770
|
+
})
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
}]);
|
|
774
|
+
|
|
775
|
+
return Slider;
|
|
776
|
+
}(_react.Component);
|
|
777
|
+
|
|
778
|
+
Slider.propTypes = {
|
|
779
|
+
/**
|
|
780
|
+
* The axis on which the slider will slide.
|
|
781
|
+
*/
|
|
782
|
+
axis: _propTypes2.default.oneOf(['x', 'x-reverse', 'y', 'y-reverse']),
|
|
783
|
+
/**
|
|
784
|
+
* The default value of the slider.
|
|
785
|
+
*/
|
|
786
|
+
defaultValue: valueInRangePropType,
|
|
787
|
+
/**
|
|
788
|
+
* Disables focus ripple if set to true.
|
|
789
|
+
*/
|
|
790
|
+
disableFocusRipple: _propTypes2.default.bool,
|
|
791
|
+
/**
|
|
792
|
+
* If true, the slider will not be interactable.
|
|
793
|
+
*/
|
|
794
|
+
disabled: _propTypes2.default.bool,
|
|
795
|
+
/**
|
|
796
|
+
* The maximum value the slider can slide to on
|
|
797
|
+
* a scale from 0 to 1 inclusive. Cannot be equal to min.
|
|
798
|
+
*/
|
|
799
|
+
max: minMaxPropType,
|
|
800
|
+
/**
|
|
801
|
+
* The minimum value the slider can slide to on a scale
|
|
802
|
+
* from 0 to 1 inclusive. Cannot be equal to max.
|
|
803
|
+
*/
|
|
804
|
+
min: minMaxPropType,
|
|
805
|
+
/**
|
|
806
|
+
* The name of the slider. Behaves like the name attribute
|
|
807
|
+
* of an input element.
|
|
808
|
+
*/
|
|
809
|
+
name: _propTypes2.default.string,
|
|
810
|
+
/** @ignore */
|
|
811
|
+
onBlur: _propTypes2.default.func,
|
|
812
|
+
/**
|
|
813
|
+
* Callback function that is fired when the slider's value changed.
|
|
814
|
+
*
|
|
815
|
+
* @param {object} event KeyDown event targeting the slider.
|
|
816
|
+
* @param {number} newValue The new value of the slider.
|
|
817
|
+
*/
|
|
818
|
+
onChange: _propTypes2.default.func,
|
|
819
|
+
/**
|
|
820
|
+
* Callback function that is fired when the slider has begun to move.
|
|
821
|
+
*
|
|
822
|
+
* @param {object} event MouseDown or TouchStart event targeting the slider.
|
|
823
|
+
*/
|
|
824
|
+
onDragStart: _propTypes2.default.func,
|
|
825
|
+
/**
|
|
826
|
+
* Callback function that is fired when the slide has stopped moving.
|
|
827
|
+
*
|
|
828
|
+
* @param {object} event MouseEnd or TouchEnd event targeting the slider.
|
|
829
|
+
*/
|
|
830
|
+
onDragStop: _propTypes2.default.func,
|
|
831
|
+
/** @ignore */
|
|
832
|
+
onFocus: _propTypes2.default.func,
|
|
833
|
+
/**
|
|
834
|
+
* Whether or not the slider is required in a form.
|
|
835
|
+
*/
|
|
836
|
+
required: _propTypes2.default.bool,
|
|
837
|
+
/**
|
|
838
|
+
* Override the inline-styles of the inner slider element.
|
|
839
|
+
*/
|
|
840
|
+
sliderStyle: _propTypes2.default.object,
|
|
841
|
+
/**
|
|
842
|
+
* The granularity the slider can step through values.
|
|
843
|
+
*/
|
|
844
|
+
step: _propTypes2.default.number,
|
|
845
|
+
/**
|
|
846
|
+
* Override the inline-styles of the root element.
|
|
847
|
+
*/
|
|
848
|
+
style: _propTypes2.default.object,
|
|
849
|
+
/**
|
|
850
|
+
* The value of the slider.
|
|
851
|
+
*/
|
|
852
|
+
value: valueInRangePropType
|
|
853
|
+
};
|
|
854
|
+
Slider.defaultProps = {
|
|
855
|
+
axis: 'x',
|
|
856
|
+
disabled: false,
|
|
857
|
+
disableFocusRipple: false,
|
|
858
|
+
max: 1,
|
|
859
|
+
min: 0,
|
|
860
|
+
required: true,
|
|
861
|
+
step: 0.01,
|
|
862
|
+
style: {}
|
|
863
|
+
};
|
|
864
|
+
Slider.contextTypes = {
|
|
865
|
+
muiTheme: _propTypes2.default.object.isRequired
|
|
866
|
+
};
|
|
867
|
+
exports.default = Slider;
|