Giter VIP home page Giter VIP logo

react-departements's Introduction

React Departements

🧹Une carte de France où certains departements peuvent être colorés.✨

License: Apache-2.0 Npm version
Npm banner





Installation

$ npm install @socialgouv/react-departements
# or
$ yarn add @socialgouv/react-departements

# `react@16+` and `prop-types@15+` must be installed
$ yarn add react prop-types

Usage

import France from "@socialgouv/react-departements";

<France departements={[75, 89, 21, 33, 47, 74, "2a", 976]} />;

See example/src.

Props

Prop type usage default
color string couleur par défaut d'un département #74B4FF
highlightColor string couleur du highlight #b3ff75
departements array liste des départements à highlighter []

Source

Le fond de carte est issu de wikimedia et distribué sous licence Creative Commons Attribution-Share Alike

react-departements's People

Contributors

douglasduteil avatar renovate-bot avatar renovate[bot] avatar semantic-release-bot avatar semgrep-bot avatar socialgroovybot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-departements's Issues

Display a text department wise

Hi,

Is it possible to display a some text on each departmen? which we are passing from departements.

<France departements={[75, 89, 21, 33, 47, 74, "2a", 976]} />;

Thanks

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency eslint to v9
  • chore(deps): update github/codeql-action action to v3

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql.yml
  • actions/checkout v2
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
.github/workflows/demo.yml
  • actions/checkout v2
  • actions/setup-node v2
  • c-hive/gha-yarn-cache v1
  • JamesIves/github-pages-deploy-action 4.1.9
.github/workflows/release.yml
  • actions/checkout v2
  • c-hive/gha-yarn-cache v1
  • cycjimmy/semantic-release-action v2
.github/workflows/semgrep.yml
  • actions/checkout v2
  • returntocorp/semgrep-action v1
.github/workflows/tests.yml
  • actions/checkout v2
  • actions/setup-node v2
  • c-hive/gha-yarn-cache v1
npm
package.json
  • react-svgmt ^1.1.11
  • @babel/cli ^7.15.7
  • @babel/core ^7.15.8
  • @babel/preset-env ^7.15.8
  • @babel/preset-react ^7.14.5
  • @socialgouv/eslint-config-react ^1.90.4
  • babel-jest ^27.2.5
  • eslint ^7.32.0
  • gh-pages ^3.2.3
  • jest ^27.2.5
  • parcel-bundler 1.12.5
  • prettier ^2.4.1
  • prop-types ^15.7.2
  • react ^17.0.2
  • react-dom ^17.0.2
  • react-test-renderer ^16.14.0
  • prop-types 15.x
  • react 16.x

  • Check this box to trigger a request for Renovate to run again on this repository

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No npm token specified.

An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/.


Good luck with your project ✨

Your semantic-release bot 📦🚀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.