Socket
Socket
Sign inDemoInstall

@s-ui/react-atom-textarea

Package Overview
Dependencies
7
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.15.0 to 2.16.0

lib/settings.js

123

CHANGELOG.md

@@ -1,5 +0,30 @@

# Change Log
# CHANGELOG
All notable changes to this project will be documented in this file.
# 2.16.0 (2021-10-13)
### Features
* **components/atom/textarea:** new resize prop available! ([ed23dc0](https://github.com/SUI-Components/sui-components/commit/ed23dc043bf8ab0496ff0e1cf4163348cea41c4b))
# 2.15.0 (2021-04-13)
### Bug Fixes
* **atom/textarea:** add box-sizing ([b0839b1](https://github.com/SUI-Components/sui-components/commit/b0839b1ed70cf4501e30f92756e98cefcc25eb0a))
# 2.14.0 (2020-11-24)
### Features
* **atom/textarea:** Use new jsx runtime ([de3e17e](https://github.com/SUI-Components/sui-components/commit/de3e17e0bfd0059a8c1313c03020a5186af0f4c6))
# 2.13.0 (2020-11-03)

@@ -10,3 +35,3 @@

* rename sass variables to follow naming convention ([51b5378](https://github.com/SUI-Components/sui-components/commit/51b53786b180197b1ed48b2d6b7c76e169f18abd))
* **atom/textarea:** rename sass variables to follow naming convention ([51b5378](https://github.com/SUI-Components/sui-components/commit/51b53786b180197b1ed48b2d6b7c76e169f18abd))

@@ -20,3 +45,3 @@

* textarea 100% default width ([c9a5be4](https://github.com/SUI-Components/sui-components/commit/c9a5be4176067960b828efb14177e4a3624b7926)), closes [#1265](https://github.com/SUI-Components/sui-components/issues/1265)
* **atom/textarea:** textarea 100% default width ([c9a5be4](https://github.com/SUI-Components/sui-components/commit/c9a5be4176067960b828efb14177e4a3624b7926)), closes [#1265](https://github.com/SUI-Components/sui-components/issues/1265)

@@ -30,3 +55,3 @@

* add new prop: resize ([8b47693](https://github.com/SUI-Components/sui-components/commit/8b47693fb3131461b9be735fe99863bff9625288))
* **atom/textarea:** add new prop: resize ([8b47693](https://github.com/SUI-Components/sui-components/commit/8b47693fb3131461b9be735fe99863bff9625288))

@@ -40,3 +65,3 @@

* add assets folder to .npmignore ([8ab6e3d](https://github.com/SUI-Components/sui-components/commit/8ab6e3dfa236da39e6d13f78fa05ac899b142f95))
* **atom/textarea:** add assets folder to .npmignore ([8ab6e3d](https://github.com/SUI-Components/sui-components/commit/8ab6e3dfa236da39e6d13f78fa05ac899b142f95))

@@ -50,3 +75,3 @@

* add token for font-family ([2bb7823](https://github.com/SUI-Components/sui-components/commit/2bb782345a31819b03d16429280d2ea5a12a9f3f))
* **atom/textarea:** add token for font-family ([2bb7823](https://github.com/SUI-Components/sui-components/commit/2bb782345a31819b03d16429280d2ea5a12a9f3f))

@@ -60,5 +85,5 @@

* add variable 4 retrocompatibility ([52b79d8](https://github.com/SUI-Components/sui-components/commit/52b79d80676d073ed61ec06366e0ecda31bdab01))
* mod styles ([b00d64f](https://github.com/SUI-Components/sui-components/commit/b00d64faa0966cd7f882ec4960be04113faf775b))
* mod styles ([dcdd428](https://github.com/SUI-Components/sui-components/commit/dcdd428022ad3048c9a6c5f16a85f5652a7a670a))
* **atom/textarea:** add variable 4 retrocompatibility ([52b79d8](https://github.com/SUI-Components/sui-components/commit/52b79d80676d073ed61ec06366e0ecda31bdab01))
* **atom/textarea:** mod styles ([b00d64f](https://github.com/SUI-Components/sui-components/commit/b00d64faa0966cd7f882ec4960be04113faf775b))
* **atom/textarea:** mod styles ([dcdd428](https://github.com/SUI-Components/sui-components/commit/dcdd428022ad3048c9a6c5f16a85f5652a7a670a))

@@ -72,4 +97,4 @@

* add border-radius token to textarea ([8e94f2f](https://github.com/SUI-Components/sui-components/commit/8e94f2fe96f2e3d402614850128e00bb32849351))
* add focus state ([d750fc1](https://github.com/SUI-Components/sui-components/commit/d750fc165e43dbd81868a489cc6acb635428233a))
* **atom/textarea:** add border-radius token to textarea ([8e94f2f](https://github.com/SUI-Components/sui-components/commit/8e94f2fe96f2e3d402614850128e00bb32849351))
* **atom/textarea:** add focus state ([d750fc1](https://github.com/SUI-Components/sui-components/commit/d750fc165e43dbd81868a489cc6acb635428233a))

@@ -83,3 +108,3 @@

* add width variable to atom textarea ([404c508](https://github.com/SUI-Components/sui-components/commit/404c508bca5a45ad763290223b5b92564283a6e2))
* **atom/textarea:** add width variable to atom textarea ([404c508](https://github.com/SUI-Components/sui-components/commit/404c508bca5a45ad763290223b5b92564283a6e2))

@@ -93,4 +118,4 @@

* add new variables ([f8075e1](https://github.com/SUI-Components/sui-components/commit/f8075e119df7849f2355ada47ce9f4844540f6b1))
* Use new [@s-ui-theme](https://github.com/s-ui-theme) ([402c1a2](https://github.com/SUI-Components/sui-components/commit/402c1a203a257d0e60bc37fa44e85fbe438d6d31))
* **atom/textarea:** add new variables ([f8075e1](https://github.com/SUI-Components/sui-components/commit/f8075e119df7849f2355ada47ce9f4844540f6b1))
* **atom/textarea:** Use new [@s-ui-theme](https://github.com/s-ui-theme) ([402c1a2](https://github.com/SUI-Components/sui-components/commit/402c1a203a257d0e60bc37fa44e85fbe438d6d31))

@@ -104,8 +129,8 @@

* add defalt props as js native ([6618989](https://github.com/SUI-Components/sui-components/commit/66189890689f97d28bc29f5cd58f34ff67efd1d7))
* add onBlur callback ([1b1967f](https://github.com/SUI-Components/sui-components/commit/1b1967f86994e82bd3c3332fe6e32698078119ec))
* refactor prop types and default props ([88c4679](https://github.com/SUI-Components/sui-components/commit/88c4679062bd22d4845bc508879cf3e03a448c56))
* reorder props ([98d0209](https://github.com/SUI-Components/sui-components/commit/98d020928b03d750e7839712822e2f8be738d266))
* solve conflict ([22c284d](https://github.com/SUI-Components/sui-components/commit/22c284d34ad372e3109201ad0e9cd2e79c38b12b))
* use default props object ([6924209](https://github.com/SUI-Components/sui-components/commit/692420912bce4331c00172c1cbc14684e717bb0f))
* **atom/textarea:** add defalt props as js native ([6618989](https://github.com/SUI-Components/sui-components/commit/66189890689f97d28bc29f5cd58f34ff67efd1d7))
* **atom/textarea:** add onBlur callback ([1b1967f](https://github.com/SUI-Components/sui-components/commit/1b1967f86994e82bd3c3332fe6e32698078119ec))
* **atom/textarea:** refactor prop types and default props ([88c4679](https://github.com/SUI-Components/sui-components/commit/88c4679062bd22d4845bc508879cf3e03a448c56))
* **atom/textarea:** reorder props ([98d0209](https://github.com/SUI-Components/sui-components/commit/98d020928b03d750e7839712822e2f8be738d266))
* **atom/textarea:** solve conflict ([22c284d](https://github.com/SUI-Components/sui-components/commit/22c284d34ad372e3109201ad0e9cd2e79c38b12b))
* **atom/textarea:** use default props object ([6924209](https://github.com/SUI-Components/sui-components/commit/692420912bce4331c00172c1cbc14684e717bb0f))

@@ -119,4 +144,4 @@

* add state prop ([310a4de](https://github.com/SUI-Components/sui-components/commit/310a4dea4afbea866c2de4168962aae61f423651))
* improve README ([dd41fff](https://github.com/SUI-Components/sui-components/commit/dd41fff45f7709c894e4e638c660ac06782b25fb))
* **atom/textarea:** add state prop ([310a4de](https://github.com/SUI-Components/sui-components/commit/310a4dea4afbea866c2de4168962aae61f423651))
* **atom/textarea:** improve README ([dd41fff](https://github.com/SUI-Components/sui-components/commit/dd41fff45f7709c894e4e638c660ac06782b25fb))

@@ -130,4 +155,4 @@

* add error state ([e0c2531](https://github.com/SUI-Components/sui-components/commit/e0c25318f0ec8d9f7152a5dae702f50402ff99c7))
* remove getErrorStateClass function ([0d7ce6c](https://github.com/SUI-Components/sui-components/commit/0d7ce6ccfb61a3bd6507124f1ea146ef2e635071))
* **atom/textarea:** add error state ([e0c2531](https://github.com/SUI-Components/sui-components/commit/e0c25318f0ec8d9f7152a5dae702f50402ff99c7))
* **atom/textarea:** remove getErrorStateClass function ([0d7ce6c](https://github.com/SUI-Components/sui-components/commit/0d7ce6ccfb61a3bd6507124f1ea146ef2e635071))

@@ -141,3 +166,3 @@

* add name in event handler notification ([93a9f8d](https://github.com/SUI-Components/sui-components/commit/93a9f8d735b60e93ad8506bf2fe1c31db8dba8ac))
* **atom/textarea:** add name in event handler notification ([93a9f8d](https://github.com/SUI-Components/sui-components/commit/93a9f8d735b60e93ad8506bf2fe1c31db8dba8ac))

@@ -151,3 +176,3 @@

* event handler parameters normalize ([da86146](https://github.com/SUI-Components/sui-components/commit/da861462bbd45220aa08b33eb7f44980fb60be0e))
* **atom/textarea:** event handler parameters normalize ([da86146](https://github.com/SUI-Components/sui-components/commit/da861462bbd45220aa08b33eb7f44980fb60be0e))

@@ -157,3 +182,3 @@

* change of parameters order in event handler
* **atom/textarea:** change of parameters order in event handler

@@ -171,7 +196,7 @@

* fixed typo ([5313ae5](https://github.com/SUI-Components/sui-components/commit/5313ae5304d0f20c0b0c1db181b1a88c977687dc))
* props ([b308e0c](https://github.com/SUI-Components/sui-components/commit/b308e0c386c11504a7cdb282a41d2dba91198887))
* rEADME ([79a76e5](https://github.com/SUI-Components/sui-components/commit/79a76e5b74fac15fec2722a64c9afba3644ec9be))
* stateless textarea ([f4d1da4](https://github.com/SUI-Components/sui-components/commit/f4d1da4a6356f0f35da35ba3599868f92189d669))
* textearea via prop ([2eac431](https://github.com/SUI-Components/sui-components/commit/2eac431ad159d2b91875cebae17f825c2cfc8b23))
* **atom/textarea:** fixed typo ([5313ae5](https://github.com/SUI-Components/sui-components/commit/5313ae5304d0f20c0b0c1db181b1a88c977687dc))
* **atom/textarea:** props ([b308e0c](https://github.com/SUI-Components/sui-components/commit/b308e0c386c11504a7cdb282a41d2dba91198887))
* **atom/textarea:** rEADME ([79a76e5](https://github.com/SUI-Components/sui-components/commit/79a76e5b74fac15fec2722a64c9afba3644ec9be))
* **atom/textarea:** stateless textarea ([f4d1da4](https://github.com/SUI-Components/sui-components/commit/f4d1da4a6356f0f35da35ba3599868f92189d669))
* **atom/textarea:** textearea via prop ([2eac431](https://github.com/SUI-Components/sui-components/commit/2eac431ad159d2b91875cebae17f825c2cfc8b23))

@@ -185,4 +210,4 @@

* added border to textarea ([d60d3ee](https://github.com/SUI-Components/sui-components/commit/d60d3eef07af84f4b7ba924507c46684ba7d443c))
* reordered css properties to pass linter ([047bf25](https://github.com/SUI-Components/sui-components/commit/047bf256055fa77efa8a67b05981ed1212af5ca0))
* **atom/textarea:** added border to textarea ([d60d3ee](https://github.com/SUI-Components/sui-components/commit/d60d3eef07af84f4b7ba924507c46684ba7d443c))
* **atom/textarea:** reordered css properties to pass linter ([047bf25](https://github.com/SUI-Components/sui-components/commit/047bf256055fa77efa8a67b05981ed1212af5ca0))

@@ -196,18 +221,18 @@

* component creation ([d7adb51](https://github.com/SUI-Components/sui-components/commit/d7adb51f401d2ddb5e5faa948d75043fe826a3db))
* feedback PR ([930c610](https://github.com/SUI-Components/sui-components/commit/930c610b9fb73522a924f971c6f88db147fc6f40))
* linter fixing ([d61c9a8](https://github.com/SUI-Components/sui-components/commit/d61c9a8f11c8197fe26f22fddf4b20aaafff98f9))
* long and short sizes ([0c7d3c1](https://github.com/SUI-Components/sui-components/commit/0c7d3c116102ca33b1dd44a417ca870be557652c))
* modifications after feedback review ([9b8ba25](https://github.com/SUI-Components/sui-components/commit/9b8ba25f82580f15fc3eec5c3f6e2fac0ac1f272))
* nicer prop names ([ccfdbca](https://github.com/SUI-Components/sui-components/commit/ccfdbca45fe41ec40f27ad31104a2093100d5c9d))
* rEADME adapted to last changes ([312bc34](https://github.com/SUI-Components/sui-components/commit/312bc342c59899afccc4c644435e1a0a29c5e907))
* rEADME modified ([108ba44](https://github.com/SUI-Components/sui-components/commit/108ba445da899d0d1b278ce85757b36d777abd4b))
* removed unnecesary imports scss ([ebc3274](https://github.com/SUI-Components/sui-components/commit/ebc3274f6065716f7053f7130adbaa72dfdd8939))
* reviewed code & README ([f88a844](https://github.com/SUI-Components/sui-components/commit/f88a8442f742873a1d4e7207385b6026b127d878))
* simpler version ([e95f9f3](https://github.com/SUI-Components/sui-components/commit/e95f9f370b107f9be2fb8406eb6c985d37ee76c7))
* success and error messages displayed in right position ([bddddd5](https://github.com/SUI-Components/sui-components/commit/bddddd5cfcd5ed043db4f5887dcebb311e2fbad2))
* textarea implemention according to specification ([39f8c73](https://github.com/SUI-Components/sui-components/commit/39f8c73f4f25bed104d76221152ff34b48c4caac))
* translatable text and better code organization ([21af70a](https://github.com/SUI-Components/sui-components/commit/21af70a71d1a2cf46d50a3e9e7e202803e569d7e))
* **atom/textarea:** component creation ([d7adb51](https://github.com/SUI-Components/sui-components/commit/d7adb51f401d2ddb5e5faa948d75043fe826a3db))
* **atom/textarea:** feedback PR ([930c610](https://github.com/SUI-Components/sui-components/commit/930c610b9fb73522a924f971c6f88db147fc6f40))
* **atom/textarea:** linter fixing ([d61c9a8](https://github.com/SUI-Components/sui-components/commit/d61c9a8f11c8197fe26f22fddf4b20aaafff98f9))
* **atom/textarea:** long and short sizes ([0c7d3c1](https://github.com/SUI-Components/sui-components/commit/0c7d3c116102ca33b1dd44a417ca870be557652c))
* **atom/textarea:** modifications after feedback review ([9b8ba25](https://github.com/SUI-Components/sui-components/commit/9b8ba25f82580f15fc3eec5c3f6e2fac0ac1f272))
* **atom/textarea:** nicer prop names ([ccfdbca](https://github.com/SUI-Components/sui-components/commit/ccfdbca45fe41ec40f27ad31104a2093100d5c9d))
* **atom/textarea:** rEADME adapted to last changes ([312bc34](https://github.com/SUI-Components/sui-components/commit/312bc342c59899afccc4c644435e1a0a29c5e907))
* **atom/textarea:** rEADME modified ([108ba44](https://github.com/SUI-Components/sui-components/commit/108ba445da899d0d1b278ce85757b36d777abd4b))
* **atom/textarea:** removed unnecesary imports scss ([ebc3274](https://github.com/SUI-Components/sui-components/commit/ebc3274f6065716f7053f7130adbaa72dfdd8939))
* **atom/textarea:** reviewed code & README ([f88a844](https://github.com/SUI-Components/sui-components/commit/f88a8442f742873a1d4e7207385b6026b127d878))
* **atom/textarea:** simpler version ([e95f9f3](https://github.com/SUI-Components/sui-components/commit/e95f9f370b107f9be2fb8406eb6c985d37ee76c7))
* **atom/textarea:** success and error messages displayed in right position ([bddddd5](https://github.com/SUI-Components/sui-components/commit/bddddd5cfcd5ed043db4f5887dcebb311e2fbad2))
* **atom/textarea:** textarea implemention according to specification ([39f8c73](https://github.com/SUI-Components/sui-components/commit/39f8c73f4f25bed104d76221152ff34b48c4caac))
* **atom/textarea:** translatable text and better code organization ([21af70a](https://github.com/SUI-Components/sui-components/commit/21af70a71d1a2cf46d50a3e9e7e202803e569d7e))
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["errorState", "onBlur", "onChange", "resize", "size", "state", "value"];
import PropTypes from 'prop-types';
import cx from 'classnames';
import { BASE_CLASS, DEFAULT_PROPS, TEXTAREA_RESIZES, TEXTAREA_SIZES, TEXTAREA_STATES } from './settings';
import { jsx as _jsx } from "react/jsx-runtime";
var BASE_CLASS = 'sui-AtomTextarea';
var SIZES = {
SHORT: 'short',
LONG: 'long'
};
var TEXTAREA_STATES = {
ERROR: 'error',
SUCCESS: 'success',
ALERT: 'alert'
};
var DEFAULT_PROPS = {
size: SIZES.SHORT,
onChange: function onChange() {},
onBlur: function onBlur() {}
};
var AtomTextarea = function AtomTextarea(_ref) {
var _ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? DEFAULT_PROPS.onChange : _ref$onChange,
var errorState = _ref.errorState,
_ref$onBlur = _ref.onBlur,
onBlur = _ref$onBlur === void 0 ? DEFAULT_PROPS.onBlur : _ref$onBlur,
_ref$onChange = _ref.onChange,
onChange = _ref$onChange === void 0 ? DEFAULT_PROPS.onChange : _ref$onChange,
resize = _ref.resize,
_ref$size = _ref.size,
size = _ref$size === void 0 ? DEFAULT_PROPS.size : _ref$size,
state = _ref.state,
value = _ref.value,
errorState = _ref.errorState,
state = _ref.state,
props = _objectWithoutPropertiesLoose(_ref, ["onChange", "onBlur", "size", "value", "errorState", "state"]);
props = _objectWithoutPropertiesLoose(_ref, _excluded);
var className = cx(BASE_CLASS, BASE_CLASS + "--" + size, errorState && BASE_CLASS + "--" + TEXTAREA_STATES.ERROR, errorState === false && BASE_CLASS + "--" + TEXTAREA_STATES.SUCCESS, state && BASE_CLASS + "--" + state);
var className = cx(BASE_CLASS, BASE_CLASS + "--" + size, errorState && BASE_CLASS + "--" + TEXTAREA_STATES.ERROR, errorState === false && BASE_CLASS + "--" + TEXTAREA_STATES.SUCCESS, resize && BASE_CLASS + "--resize-" + resize, state && BASE_CLASS + "--" + state);

@@ -56,2 +44,2 @@ var handleChange = function handleChange(ev) {

export default AtomTextarea;
export { SIZES as AtomTextareaSizes, TEXTAREA_STATES as AtomTextareaStates };
export { TEXTAREA_RESIZES as AtomTextareaResizes, TEXTAREA_SIZES as AtomTextareaSizes, TEXTAREA_STATES as AtomTextareaStates };
{
"name": "@s-ui/react-atom-textarea",
"version": "2.15.0",
"version": "2.16.0",
"description": "",
"main": "lib/index.js",
"scripts": {
"prepare": "npx rimraf ./lib && npx mkdirp ./lib && npm run build:js && npm run build:styles",
"build:js": "../../../node_modules/.bin/babel --presets sui ./src --out-dir ./lib",
"build:styles": "../../../node_modules/.bin/cpx './src/**/*.scss' ./lib"
"prepare": "npm run build:js && npm run build:styles",
"build:js": "babel --presets sui ./src --out-dir ./lib",
"build:styles": "cpx './src/**/*.scss' ./lib"
},

@@ -11,0 +11,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

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