Socket
Socket
Sign inDemoInstall

select-timezone-material-ui

Package Overview
Dependencies
91
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    select-timezone-material-ui

It allows you to select one of the timezones defined by Moment.Timezone from a material-ui like dropdown component


Version published
Weekly downloads
202
decreased by-22.01%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

select-timezone-material-ui Weekly downloads

It allows you to select one of the timezones defined by Moment.Timezone from a material-ui like dropdown component.

Selecting a timezone will also select all other timezones with the same offset.


Demo

You can access the storybook for this component here.

Props

The component accepts the props defined bellow in the table.

Props accepted by SelectTimezoneMaterialUi

NameTypeRequiredDefaultDescription
defaultTimezoneNamestringnoundefinedThe initially selected timezone
FormHelperTextPropsFormHelperTextPropsnoundefinedThe props passed to helper text
helperTextstringnoundefinedThe helper text
idstringnoundefinedThe id of the field
InputLabelPropsInputLabelPropsnoundefinedThe Props passed to label
labelstringyes-The label of the field
onChange(timezoneName: string, timezoneOffset: number) => voidyes-The callback function called when the option is changed
showTimezoneOffsetbooleannofalseThe options include the GMT offset if it is true
timezoneNamestringnoundefinedThe selected timezone

Versions

SelectTimezoneMaterialUi usesMaterial-uiReact
1.0.x4.2.016.8.6
2.0.x4.3.016.8.6
2.1.x4.3.116.8.6
2.2.x4.9.016.9.0
2.3.x4.9.716.9.0
2.4.x4.10.216.9.0
2.5.x4.11.016.9.0
2.6.x4.11.316.9.0 or 17.0.0
2.7.x4.12.316.9.0 or 17.0.0
2.8.x5.0.316.9.0 or 17.0.0
3.0.x5.10.17>=18.0.0
3.1.x5.14.20>=18.0.0

About versioning schema used for SelectTimezoneMaterialUi

  • Major - it will be increased if the major version of the dependat package changes or there are breaking changes in the code of SelectTimezoneMaterialUi
  • Minor - it will be increased if no major version of the dependat package changes, but there are changes of the minor or patch versions of it
  • Patch - it will be increased if there are no changes of the dependat packages, but there are non breaking changes in the code of SelectTimezoneMaterialUi

Example

The base component which allows to create read-only or creatable select components for selecting only one or more values:

import * as React from 'react';
import SelectTimezoneMaterialUi from 'input-material-ui';

class App extends React.Component {
  render() {
    return (
      <div className="App">
        <SelectTimezoneMaterialUi
          label="Timezone"
          helperText="Please select a timezone from the list"
          onChange={onChange}
        />
      </div>
    );
  }

  handleChange = (timezoneName: string, timezoneOffset: number) => {
    console.log(timezoneName);
  };
}

export default App;

Changelog

1.0.0

  • select-timezone-material-ui is made publicly available

1.0.1

  • Fixed the default selected timezones when timezoneName is provided
  • Added more examples to storybook

1.0.2

  • Changed the text of the placeholder

1.0.3

  • Made the options to keep the underline in name

2.0.0

  • Made the component to be controlled and uncontrolled

2.1.0

  • Using a bug fix version of react-select-material-ui
  • Updated packages

2.2.0

  • Updated packages

2.3.0

  • Updated packages
  • Moved from npm to yarn

2.4.0

  • Updated packages

2.5.0

  • Updated packages

2.5.1

  • Fixed crash produced by "export * from"

2.6.0

  • Accepting React 17 as peerDependencies
  • Fixed security warnings

2.7.0

  • Updated the packages

2.8.0

  • Updated the packages

3.0.0

  • Supports minimum React 18

3.1.0

  • Updated the packages

Keywords

FAQs

Last updated on 10 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc