npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@axa-fr/react-toolkit-form-input-card

v3.0.2

Published

1. [`@axa-fr/react-toolkit-form-input-card (Checkbox)`](#axa-frreact-toolkit-form-input-card-checkbox) 2. [`@axa-fr/react-toolkit-form-input-card (Radio)`](#axa-frreact-toolkit-form-input-card-radio)

Downloads

505

Readme

  1. @axa-fr/react-toolkit-form-input-card (Checkbox)
  2. @axa-fr/react-toolkit-form-input-card (Radio)

@axa-fr/react-toolkit-form-input-card (Checkbox)

  1. Card Group Checkbox with One Card
  2. Card Group Checkbox with One disabled Card
  3. Card Group Checkbox with Two Card
  4. Card Group Checkbox with Three Card

Installation

npm i @axa-fr/react-toolkit-form-input-card
npm i @axa-fr/react-toolkit-form-core
npm i @axa-fr/react-toolkit-form-input-checkbox

Card Group Checkbox with One Card

Import

import {
  CardGroupCheckbox,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-checkbox/dist/af-checkbox.css';

Use

const CheckboxCardwithOneCard = () => (
  <CardGroupCheckbox values={['1']}>
    <Card name="name" id="name" value="1">
      <CardHeader type="radio">
        <p className="af-rccard-header__title"> Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term"> Status: </dt>
          <dd className="af-rccard__def"> In progress </dd>
          <dt className="af-rccard__term"> Savings reached: </dt>
          <dd className="af-rccard__def"> 125 000 € </dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p> Compulsory annuity withdrawal </p>
      </CardFooter>
    </Card>
  </CardGroupCheckbox>
);
export default CheckboxCardwithOneCard;

Card Group Checkbox with One disabled Card

Import

import {
  CardGroupCheckbox,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-checkbox/dist/af-checkbox.css';

Use

const CheckboxCardwithOneCardDisabled = () => (
  <CardGroupCheckbox values="1">
    <Card id="uniqueId" name="name" value="1" disabled="true">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">125 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>
  </CardGroupCheckbox>
);
export default CheckboxCardwithOneCardDisabled;

Card Group Checkbox with Two Card

Import

import {
  CardGroupCheckbox,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-checkbox/dist/af-checkbox.css';

Use

const CheckboxCardwithTwoCard = () => (
  <CardGroupCheckbox values={['1']}>
    <Card id="uniqueIdOne" name="nameOne" value="1">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">125 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>

    <Card name="nameTwo" id="uniqueIdTwo" value="2">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">250 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">85 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>
  </CardGroupCheckbox>
);
export default CheckboxCardwithTwoCard;

Card Group Checkbox with Three Card

Import

import {
  CardGroupCheckbox,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
  CardMeta,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-checkbox/dist/af-checkbox.css';

Use

const CheckboxCardwithThreeCard = () => (
  <CardGroupCheckbox values={['1', '2']}>
    <CardMeta>Recommandé</CardMeta>
    <Card id="uniqueIdOne" name="nameOne" value="1">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">125 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>

    <Card id="uniqueIdTwo" name="nameTwo" value="2">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">250 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">75 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>

    <Card id="uniqueIdThree" name="nameThree" value="3">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">250 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">85 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>
  </CardGroupCheckbox>
);
export default CheckboxCardwithThreeCard;

@axa-fr/react-toolkit-form-input-card (Radio)

  1. Card Group Radio with one Card
  2. Card Group Radio with one Card disabled
  3. Card Group Radio with one Card and action button on the footer
  4. Card Group Radio with two Radio Cards

Card Group Radio with one Card

Installation

npm i @axa-fr/react-toolkit-form-input-card
npm i @axa-fr/react-toolkit-form-core
npm i @axa-fr/react-toolkit-form-input-radio

Import

import {
  CardGroupRadio,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
  CardMeta,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-radio/dist/af-radio.css';

Use

const RadioCardOne = () => (
  <CardGroupRadio value="1">
    <CardMeta>Recommendation</CardMeta>
    <Card id="uniqueId" name="uniqueName" value="1">
      <CardHeader>
        <p className="af-rccard-header__title"> Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term"> Status: </dt>
          <dd className="af-rccard__def"> In progress </dd>
          <dt className="af-rccard__term"> Savings reached: </dt>
          <dd className="af-rccard__def"> 85 000 € </dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p> Compulsory annuity withdrawal </p>
      </CardFooter>
    </Card>
  </CardGroupRadio>
);
export default RadioCardOne;

Card Group Radio with one Card disabled

To deactivate Radio Card, you must add: disabled="true" on the <Card> element

Before :

<Card id="uniqueId" name="name" value="1">

After :

<Card id="uniqueId" name="name" value="1" disabled="true">

Card Group Radio with one Card and action button on the footer

Installation

npm i @axa-fr/react-toolkit-form-input-card
npm i @axa-fr/react-toolkit-form-core
npm i @axa-fr/react-toolkit-form-input-radio
npm i @axa-fr/react-toolkit-button

Import

import {
  CardGroupRadio,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-radio/dist/af-radio.css';
import SimpleButton from '@axa-fr/react-toolkit-button';
import '@axa-fr/react-toolkit-button/dist/af-button.css';

Use

const RadioCardWithActionButton = () => (
  <CardGroupRadio values="1">
    <Card name="name" id="uniqueId" value="1">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">125 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <SimpleButton>Compulsory annuity withdrawal</SimpleButton>
      </CardFooter>
    </Card>
  </CardGroupRadio>
);
export default RadioCardWithActionButton;

Card Group Radio with two Radio Cards

Installation

npm i @axa-fr/react-toolkit-form-input-card
npm i @axa-fr/react-toolkit-form-core
npm i @axa-fr/react-toolkit-form-input-radio

Import

import {
  CardGroupRadio,
  Card,
  CardHeader,
  CardContent,
  CardFooter,
  CardMeta,
} from '@axa-fr/react-toolkit-form-input-card';
import '@axa-fr/react-toolkit-form-input-card/dist/af-card.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';
import '@axa-fr/react-toolkit-form-input-radio/dist/af-radio.css';

Use

const RadioCardTwo = () => (
  <CardGroupRadio values="2">
    <CardMeta>
      Recommendation
      <br></br>
      <h3>Standard franchisees</h3>
    </CardMeta>
    <Card name="nameOne" id="uniqueIdOne" value="1">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">125 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>

    <Card name="nameTwo" id="uniqueIdTwo" value="2">
      <CardHeader>
        <p className="af-rccard-header__title">Reference</p>
        <p className="af-rccard-header__subtitle">50 € / month</p>
      </CardHeader>
      <CardContent>
        <p>John Doe</p>
        <dl>
          <dt className="af-rccard__term">Status:</dt>
          <dd className="af-rccard__def">In progress</dd>
          <dt className="af-rccard__term">Savings reached:</dt>
          <dd className="af-rccard__def">85 000 €</dd>
        </dl>
      </CardContent>
      <CardFooter>
        <p>Compulsory annuity withdrawal</p>
      </CardFooter>
    </Card>
  </CardGroupRadio>
);
export default RadioCardTwo;