Observed since 20 Oct, 20:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
57wng
## QUICK NOTE ### DO NOT WORK ON `MASTER` BRANCH Please update the in progress chart at the bottom of ReadMe.
MASTER BRANCHPlease update the in progress chart at the bottom of ReadMe.
Feature/Bug/Hotfix_NameOfComponent_BranchedFrom_ByDeveloper
Feature/Radio_Main_FirstNameLastName
README text editor
Install - npm i 57wng
Import - import {Componenent} from '57wng/dist';
This will go in your variables.scss file.
$primary: #00308f;
$secondary: #d1af3a;
$success: #4acc4b;
$warn: #f3d60e;
$danger: #c50400;
$white: #efefef;
$black: #111111;
$grey-light: #ccc;
$grey: #888;
$grey-dark: #444;
@import '../node_modules/57wng/src/Style/import.scss';
@import '../node_modules/57wng/src/Style/variable.scss';
@import '../node_modules/57wng/src/Style/main.scss';
PROPS
value - The text inside the button
color - color of the button ("primary", "secondary", "success", "warn", "danger")
onClick - Function to be called when the button is clicked.
customClass - adds a custom class to the container of the Button
import React from 'react';
import { Button } from '57wng/dist';
const Component = () => {
const buttonTest = () => {
console.log("Button is working");
};
return (
<div>
<Button
value="Button Text"
color="primary"
onClick={() => buttonTest()}
customClass="custom-button-class"
/>
</div>
)
}
export default Component;
PROPS
value - The text inside the input that the user enters (this is based on state)
type - The type of input field you need ex:("text", "email", "number", "password")
onChange - Function to change the state of the value.
name - Takes a string if you are wanting to use formData for state change.
placeholder - Placeholder/ Label for the input
required - Is this a required field or not? Takes a boolean value.
customClass - adds a custom class to the container of the Modal
import React, { useState } from 'react;
import { Input } from '57wng/dist';
const Component = () => {
const [text, setText] = useState('');
return (
<div>
<Input
value={text}
type="text"
placeholder="Text Placeholder"
required={true}
onChange={(event) => setText(event)}
customClass="custom-input-class"
/>
</div>
)
}
export default Component;
PROPS
value - The text inside the input that the user enters (this is based on state)
onChange - Function to change the state of the value.
placeholder - Placeholder/ Label for the textarea
rows - General height of the textarea
required - Is this a required field or not? Takes a boolean value.
customClass - adds a custom class to the container of the Modal
import React, { useState } from 'react;
import { Textarea } from '57wng/dist';
const Component = () => {
const [text, setText] = useState('');
return (
<div>
<Textarea
value={text}
type="text"
rows={5}
placeholder="Text Placeholder"
required={true}
onChange={(event) => setText(event)}
customClass="custom-textarea-class"
/>
</div>
)
}
export default Component;
PROPS
options - takes an array of Integers or Strings and displays these values as options
name - sets a title for the radio group to tie the different radio options to a group
inline - Boolean value to force radio to inline. (Defaults to a column view)
onChange - Accepts a state function
state - REQUIRED** changes the state from the onChange prop
customClass - adds a custom class to the container of the Radio
import React, { useState } from 'react';
import { Radio } from '57wng/dist';
const Component = () => {
const [state, setState] = useState('');
return (
<div>
<Radio
customClass="custom-radio-class"
options={['Option 1', 'Option 2']}
name={'TEST'}
inline={true}
onChange={(event) => setState(event)}
state={state}
/>
</div>
)
}
export default Component;
PROPS
value - The text inside the input that the user enters (this is based on state)
onChange - Function to change the state of the value.
label - Label for the slider
min - Minimum value for slider
max - Maximum value for slider
step - Sets the increment of values in a given slider
size - height of the slider
defaultValue - Sets the default number for a slider
required - Is this a required field or not? Takes a boolean value.
customClass - adds a custom class to the container of the Modal
import React, { useState } from 'react;
import { Slider } from '57wng/dist';
const Component = () => {
const [text, setValue] = useState('');
return (
<div>
<Slider
value={text}
defaultValue={30}
label="Slider Label"
required={true}
size={"md"}
step={10}
min={0}
max={100}
onChange={(event) => setValue(event)}
customClass="custom-slider-class"
/>
</div>
)
}
export default Component;
PROPS
label - The title of the dropdown that the user enters.
value - This is the parent component's state.
setState - Function to change the state of the value.
options - Array of available options under the dropdown menu.
customClass - adds a custom class to the container of the Dropdown
import React, { useState } from 'react;
import { Dropdown } from '57wng/dist';
const Component = () => {
const [state, setState] = useState('');
return (
<div>
<Dropdown
label={'text'}
value={state}
setState={(event) => setState(event)}
options={[]}
customClass="custom-dropdown-class"
/>
</div>
)
}
export default Component;
PROPS
color - passing the string "dark" will make it have a dark background with light text.
elevation - Enter a number 1 - 5. The higher the number the more it appears to hover.
hover - Boolean. If this is true then the card will appear to elevate when you hover over it.
customClass - adds a custom class to the container of the Card
import React from 'react;
import { Card } from '57wng/dist';
const Component = () => {
return (
<div>
<Card
color="dark"
elevation={3}
hover={true}
customClass="custom-dropdown-class"
/>
</div>
)
}
export default Component;
PROPS
value - The text inside the button that opens the modal
customClass - adds a custom class to the container of the Modal
import React from 'react';
import { Modal } from '57wng/dist';
const Component = () => {
return (
<div>
<Modal value="Open Modal" customClass="custom-modal-class">
<h1>Modal Title</h1>
<p>Some Content for the Modal</p>
</Modal
</div>
)
}
export default Component;
PROPS
size - changes the size of the avatar image
image - url pointing to an image file
customClass - adds a class to the avatar component container
| Size | size |
|---|---|
| "lg" | 200px |
| "md" | 100px |
| "sm" | 50px |
import React from 'react';
import { Avatar } from '57wng/dist';
const Component = () => {
return (
<div>
<Avatar size="md" image="image.jpg" customClass="custom-avatar-class"/>
</div>
)
}
export default Component;
PROPS
customClass - adds a custom class to loading container.
The loading component does not take any customization props. The external spinning circle is the $secondary color and the inner spinning circle is the $primary color.
To customize the circles color add a customClass prop and then select .external-circle and .internal-circle. to change the color use stroke: $color;
import React from 'react';
import { Loading } from '57wng/dist';
const Component = () => {
return (
<div>
<Loading customClass="custom-loading-class"/>
</div>
)
}
export default Component;
if it is currently in progress please put a link to the working branch in the in progress column and your name in the by column.
if it is currently in progress please put a link to the working branch in the in progress column and your name in the by column.
if it is currently in progress please put a link to the working branch in the in progress column and your name in the by column.
if it is currently in progress please put a link to the working branch in the in progress column and your name in the by column.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@testing-library/jest-domEnvironment{
"local_name": "@testing-library/jest-dom",
"alias": false,
"peer_metadata": null
} | ^5.11.4 | runtime |
@testing-library/reactEnvironment{
"local_name": "@testing-library/react",
"alias": false,
"peer_metadata": null
} | ^11.1.0 | runtime |
@testing-library/user-eventEnvironment{
"local_name": "@testing-library/user-event",
"alias": false,
"peer_metadata": null
} | ^12.1.10 | runtime |
check-prop-typesEnvironment{
"local_name": "check-prop-types",
"alias": false,
"peer_metadata": null
} | ^1.1.2 | runtime |
reactEnvironment{
"local_name": "react",
"alias": false,
"peer_metadata": null
} | ^17.0.2 | runtime |
react-domEnvironment{
"local_name": "react-dom",
"alias": false,
"peer_metadata": null
} | ^17.0.2 | runtime |
react-reduxEnvironment{
"local_name": "react-redux",
"alias": false,
"peer_metadata": null
} | ^7.2.5 | runtime |
react-router-domEnvironment{
"local_name": "react-router-dom",
"alias": false,
"peer_metadata": null
} | ^5.1.2 | runtime |
react-scriptsEnvironment{
"local_name": "react-scripts",
"alias": false,
"peer_metadata": null
} | 4.0.3 | runtime |
redux-devtools-extensionEnvironment{
"local_name": "redux-devtools-extension",
"alias": false,
"peer_metadata": null
} | ^2.13.8 | runtime |
redux-mock-storeEnvironment{
"local_name": "redux-mock-store",
"alias": false,
"peer_metadata": null
} | ^1.5.4 | runtime |
redux-thunkEnvironment{
"local_name": "redux-thunk",
"alias": false,
"peer_metadata": null
} | ^2.3.0 | runtime |
sassEnvironment{
"local_name": "sass",
"alias": false,
"peer_metadata": null
} | ^1.43.2 | runtime |
sass-loaderEnvironment{
"local_name": "sass-loader",
"alias": false,
"peer_metadata": null
} | ^12.2.0 | runtime |
web-vitalsEnvironment{
"local_name": "web-vitals",
"alias": false,
"peer_metadata": null
} | ^1.0.1 | runtime |
@wojtekmaj/enzyme-adapter-react-17Environment{
"local_name": "@wojtekmaj/enzyme-adapter-react-17",
"alias": false,
"peer_metadata": null
} | ^0.6.3 | development |
enzymeEnvironment{
"local_name": "enzyme",
"alias": false,
"peer_metadata": null
} | ^3.11.0 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^7.28.0 | development |
eslint-config-airbnbEnvironment{
"local_name": "eslint-config-airbnb",
"alias": false,
"peer_metadata": null
} | ^18.2.1 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.23.4 | development |
eslint-plugin-jsx-a11yEnvironment{
"local_name": "eslint-plugin-jsx-a11y",
"alias": false,
"peer_metadata": null
} | ^6.4.1 | development |
eslint-plugin-reactEnvironment{
"local_name": "eslint-plugin-react",
"alias": false,
"peer_metadata": null
} | ^7.24.0 | development |
eslint-plugin-react-hooksEnvironment{
"local_name": "eslint-plugin-react-hooks",
"alias": false,
"peer_metadata": null
} | ^4.2.0 | development |
@babel/cliEnvironment{
"local_name": "@babel/cli",
"alias": false,
"peer_metadata": null
} | ^7.11.5 | development |
@babel/preset-reactEnvironment{
"local_name": "@babel/preset-react",
"alias": false,
"peer_metadata": null
} | ^7.10.4 | development |
Source distribution
{
"integrity": "sha512-fQtXTB3PNuDCDLuSdDbQJDLCKoZoqS52wUOlDU7HnG54RNjtvCQCT44wAOrEINaGK5xG5WqVwby2bL1QWYgsFQ==",
"shasum": "196eae14607a71ca6199fee9cea54cd38b98c5fc",
"tarball": "https://registry.npmjs.org/57wng/-/57wng-0.1.3.tgz",
"fileCount": 75,
"unpackedSize": 90583,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuexICRA9TVsSAnZWagAAgqUP/2wDlE83GksRC/i/FSvR\n+TCxAmcNoQXcbIeJ22IZY9gbEz62ncly/RjcEi9TgPHUZRlm3z8WdA6GL7VE\ndh8Z9ebAqztbfbvJoRBBokqMlU/sSjt+FDlRb2oep9mHAtlzZwPx7tVQrXWY\nBuq/DZBaX+0REmrGWSdYx+KHxLvkKWUnc/Cj3EHy1DFI+4FYcIHdXjGjwuaz\nA6gcsquEr9yAlOCMez/cAnj6AQzWpc8WF42hIjrylXjpv4mO51k9nHhf0rN9\nxhV04mxkS2cwjNtuv7m90jnhX3QWKTmXBoeW7DTY6jpvI6AEecGCZRIQ1yL9\ndLMoJVvyy7M5vWex/8OiG9sbvlHrKoogv1s9YkFcf50D9F0usnxIqWK0LFuU\nASkuKvWTc2YDi5YsvVnW/e1ag2NPSvEO2KW5ZVXgBohs5r/BoxBxZ8E2/dKd\nfOkUCvNQN1HXpH3KicpF/4tkY6t/RvQjWSOFNv98c4AOC7sCWG6cV481+QP8\n74VwgYeUJALpEP2pyz3ytnA43C21SAU3KGbiVoQ3v2rwNRgkTbwXNo6CznYU\noAwAtXKVfroWx3NhWKBr1bK8D7Q2oBwISoI6yI2gWamPY81KiAqRNFZYKJLd\npJj2mEodP6YzDoBLudpNpcA33xa54AFJGm7oSic4TCu9Xr9ldi0oBZ519CT+\nN6JY\r\n=TwRU\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIHDQ3I9Q8ep4CohsECHZziALHwZXqSFTRCPd8N29Dr83AiB5o7O96FCF9rGBiJVm8LMXyook98f/j8HfVEZ+f57ouA=="
}
]
}Observed since 20 Oct, 20:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:524d5b8aeed538f84441fa82ebd61c638946d8a7a3e332ac7bc24e9179dfd67a