@sproutsocial/seeds-react-textarea 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +10 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ CLI Target: es2022
|
|
|
8
8
|
CLI Cleaning output folder
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/index.js 7.
|
|
11
|
+
CJS dist/index.js 7.14 KB
|
|
12
12
|
CJS dist/index.js.map 12.10 KB
|
|
13
|
-
CJS ⚡️ Build success in
|
|
13
|
+
CJS ⚡️ Build success in 190ms
|
|
14
14
|
ESM dist/esm/index.js 5.09 KB
|
|
15
15
|
ESM dist/esm/index.js.map 12.05 KB
|
|
16
|
-
ESM ⚡️ Build success in
|
|
16
|
+
ESM ⚡️ Build success in 190ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in 36722ms
|
|
19
19
|
DTS dist/index.d.ts 3.36 KB
|
|
20
20
|
DTS dist/index.d.mts 3.36 KB
|
|
21
|
-
Done in
|
|
21
|
+
Done in 44.96s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-textarea
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
8
|
+
- Updated dependencies [9fd8bac]
|
|
9
|
+
- @sproutsocial/seeds-react-system-props@3.0.2
|
|
10
|
+
- @sproutsocial/seeds-react-mixins@4.1.1
|
|
11
|
+
- @sproutsocial/seeds-react-theme@2.2.1
|
|
12
|
+
|
|
3
13
|
## 1.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -202,9 +202,9 @@ var Textarea = class extends React.Component {
|
|
|
202
202
|
import "react";
|
|
203
203
|
|
|
204
204
|
// src/index.ts
|
|
205
|
-
var
|
|
205
|
+
var index_default = Textarea;
|
|
206
206
|
export {
|
|
207
207
|
Textarea,
|
|
208
|
-
|
|
208
|
+
index_default as default
|
|
209
209
|
};
|
|
210
210
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Textarea.tsx","../../src/styles.ts","../../src/TextareaTypes.ts","../../src/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport Container, { Accessory } from \"./styles\";\nimport type { TypeTextareaProps } from \"./TextareaTypes\";\n\n/**\n * @deprecated Use TypeTextareaProps from root instead\n */\nexport type TypeProps = TypeTextareaProps;\n\nexport default class Textarea extends React.Component<TypeTextareaProps> {\n static defaultProps = {\n rows: 4,\n };\n\n handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onBlur) {\n this.props.onBlur(e);\n }\n };\n\n handleChange = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onChange) {\n this.props.onChange(e);\n }\n };\n\n handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n handleKeyDown = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n handleKeyUp = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n };\n\n override render() {\n const {\n autoFocus,\n disabled,\n readOnly,\n isInvalid,\n id,\n name,\n placeholder,\n value,\n enableSpellcheck,\n enableResize,\n required,\n rows,\n elemBefore,\n elemAfter,\n maxLength,\n ariaLabel,\n ariaDescribedby,\n innerRef,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n color,\n qa = {},\n inputProps = {},\n ...rest\n } = this.props;\n\n return (\n <Container\n hasBeforeElement={!!elemBefore}\n hasAfterElement={!!elemAfter}\n disabled={disabled}\n invalid={isInvalid}\n resizable={enableResize}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n data-qa-textarea={id}\n data-qa-textarea-isdisabled={disabled === true}\n data-qa-textarea-isrequired={required === true}\n data-qa-textarea-isinvalid={isInvalid === true}\n {...qa}\n {...rest}\n >\n {elemBefore && <Accessory before>{elemBefore}</Accessory>}\n\n <textarea\n id={id}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={isInvalid}\n value={value}\n name={name}\n placeholder={placeholder}\n rows={rows}\n disabled={disabled}\n readOnly={Boolean(readOnly)}\n autoFocus={autoFocus}\n spellCheck={enableSpellcheck}\n required={required}\n maxLength={maxLength}\n onChange={this.handleChange}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n ref={innerRef}\n data-qa-textarea-input=\"\"\n data-qa-input={name}\n {...inputProps}\n />\n\n {elemAfter && <Accessory after>{elemAfter}</Accessory>}\n </Container>\n );\n }\n}\n","import styled, { css } from \"styled-components\";\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\nimport { focusRing } from \"@sproutsocial/seeds-react-mixins\";\nimport type {\n TypeTextareaAccessoryProps,\n TypeTextareaContainerProps,\n} from \"./TextareaTypes\";\n\nconst Container = styled.div<TypeTextareaContainerProps>`\n box-sizing: border-box;\n position: relative;\n\n textarea {\n box-sizing: border-box;\n display: block;\n width: 100%;\n padding: ${(props) => props.theme.space[300]};\n border: 1px solid ${(props) => props.theme.colors.form.border.base};\n border-radius: ${(props) => props.theme.radii[500]};\n background-color: ${(props) => props.theme.colors.form.background.base};\n color: ${(props) => props.theme.colors.text.body};\n outline: none;\n resize: none;\n transition: border-color ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in},\n box-shadow ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in};\n font-family: ${(props) => props.theme.fontFamily};\n ${(props) => props.theme.typography[200]}\n font-weight: ${(props) => props.theme.fontWeights.normal};\n appearance: none;\n\n &:focus {\n ${focusRing}\n }\n\n &::placeholder {\n color: ${(props) => props.theme.colors.form.placeholder.base};\n font-style: italic;\n }\n\n ${(props) =>\n props.resizable &&\n css`\n resize: vertical;\n `}\n\n ${(props) =>\n props.hasBeforeElement &&\n css`\n padding-left: 40px;\n `}\n\n ${(props) =>\n props.hasAfterElement &&\n css`\n padding-right: 40px;\n `}\n }\n\n ${(props) =>\n props.disabled &&\n css`\n opacity: 0.4;\n\n textarea {\n cursor: not-allowed;\n }\n `}\n\n ${(props) =>\n props.invalid &&\n css`\n textarea {\n border-color: ${(props) => props.theme.colors.form.border.error};\n }\n `}\n\n ${COMMON}\n`;\n\nexport const Accessory = styled.div<TypeTextareaAccessoryProps>`\n position: absolute;\n color: ${(props) => props.theme.colors.icon.base};\n\n ${(props) =>\n props.before &&\n css`\n top: ${props.theme.space[300]};\n left: ${props.theme.space[350]};\n `};\n\n ${(props) =>\n props.after &&\n css`\n right: ${props.theme.space[350]};\n bottom: ${props.theme.space[300]};\n `};\n`;\n\nContainer.displayName = \"TextareaContainer\";\nAccessory.displayName = \"TextareaAccessory\";\n\nexport default Container;\n","import * as React from \"react\";\nimport type {\n TypeSystemCommonProps,\n TypeStyledComponentsCommonProps,\n} from \"@sproutsocial/seeds-react-system-props\";\n\ntype CollisionTypes =\n | \"color\"\n | \"onChange\"\n | \"onFocus\"\n | \"onBlur\"\n | \"onKeyDown\"\n | \"onKeyUp\";\n\nexport interface TypeTextareaProps\n extends TypeStyledComponentsCommonProps,\n TypeSystemCommonProps,\n Omit<React.ComponentPropsWithoutRef<\"textarea\">, CollisionTypes> {\n /** ID of the form element, should match the \"for\" value of the associated label */\n id: string;\n name: string;\n\n /** Label used to describe the input if not used with an accompanying visual label */\n ariaLabel?: string;\n\n /** Attribute used to associate other elements that describe the Textarea, like an error */\n ariaDescribedby?: string;\n\n /** Current value of the textarea */\n value?: string;\n\n /** Will autofocus the element when mounted to the DOM */\n autoFocus?: boolean;\n\n /** HTML disabled attribute */\n disabled?: boolean;\n\n /** HTML readonly attribute */\n readOnly?: boolean;\n\n /** Whether or not the current contents of the input are invalid */\n isInvalid?: boolean;\n\n /** Placeholder text for when value is undefined or empty */\n placeholder?: string;\n\n /** HTML required attribute */\n required?: boolean;\n\n /** 16x16 element, such as an icon */\n elemBefore?: React.ReactNode;\n\n /** 16x16 element, such as an icon */\n elemAfter?: React.ReactNode;\n\n /** Max length of the input */\n maxLength?: number;\n\n /** HTML spellcheck attribute */\n enableSpellcheck?: boolean;\n\n /** Makes the text area vertically resizable */\n enableResize?: boolean;\n\n /** The number of visible lines of text without scrolling */\n rows?: number;\n qa?: object;\n\n /** Props to spread onto the underlying textarea element */\n inputProps?: React.ComponentPropsWithoutRef<\"textarea\">;\n\n /** Used to get a reference to the underlying element */\n innerRef?:\n | {\n current: null | HTMLTextAreaElement;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((arg0: React.ElementRef<any> | HTMLElement) => void);\n onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onChange?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onKeyDown?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onKeyUp?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n}\n\nexport interface TypeTextareaContainerProps {\n resizable?: TypeTextareaProps[\"enableResize\"];\n hasBeforeElement?: boolean;\n hasAfterElement?: boolean;\n disabled?: TypeTextareaProps[\"disabled\"];\n invalid?: TypeTextareaProps[\"isInvalid\"];\n}\n\nexport interface TypeTextareaAccessoryProps {\n before?: boolean;\n after?: boolean;\n}\n","import Textarea from \"./Textarea\";\n\nexport default Textarea;\nexport { Textarea };\nexport * from \"./TextareaTypes\";\n"],"mappings":";AAAA,YAAY,WAAW;;;ACAvB,OAAO,UAAU,WAAW;AAC5B,SAAS,cAAc;AACvB,SAAS,iBAAiB;AAM1B,IAAM,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAQV,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBACxB,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,OAAO,IAAI;AAAA,qBACjD,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,WAAW,IAAI;AAAA,aAC7D,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,IAAI;AAAA;AAAA;AAAA,+BAGrB,CAAC,UAAU,MAAM,MAAM,SAAS,IAAI;AAAA,UACzD,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA,mBAC5B,CAAC,UAAU,MAAM,MAAM,SAAS,IAAI;AAAA,UAC7C,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA,mBAC5B,CAAC,UAAU,MAAM,MAAM,UAAU;AAAA,MAC9C,CAAC,UAAU,MAAM,MAAM,WAAW,GAAG,CAAC;AAAA,mBACzB,CAAC,UAAU,MAAM,MAAM,YAAY,MAAM;AAAA;AAAA;AAAA;AAAA,QAIpD,SAAS;AAAA;AAAA;AAAA;AAAA,eAIF,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,YAAY,IAAI;AAAA;AAAA;AAAA;AAAA,MAI5D,CAAC,UACD,MAAM,aACN;AAAA;AAAA,OAEC;AAAA;AAAA,MAED,CAAC,UACD,MAAM,oBACN;A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AChB,QAAQ,KAAK;AAAA,cACb,SAAS,KAAK;AAAA,cACd,KAAK;AAAA,cACL,0BAAuB;AAAA,cACvB,iBAAe;AAAA,cACd,GAAG;AAAA;AAAA,UACN;AAAA,UAEC,aAAa,oBAAC,aAAU,OAAK,MAAE,qBAAU;AAAA;AAAA;AAAA,IAC5C;AAAA,EAEJ;AACF;;;AE7HA,OAAuB;;;ACEvB,IAAO,cAAQ;","names":["props"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Textarea.tsx","../../src/styles.ts","../../src/TextareaTypes.ts","../../src/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport Container, { Accessory } from \"./styles\";\nimport type { TypeTextareaProps } from \"./TextareaTypes\";\n\n/**\n * @deprecated Use TypeTextareaProps from root instead\n */\nexport type TypeProps = TypeTextareaProps;\n\nexport default class Textarea extends React.Component<TypeTextareaProps> {\n static defaultProps = {\n rows: 4,\n };\n\n handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onBlur) {\n this.props.onBlur(e);\n }\n };\n\n handleChange = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onChange) {\n this.props.onChange(e);\n }\n };\n\n handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n handleKeyDown = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n handleKeyUp = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n };\n\n override render() {\n const {\n autoFocus,\n disabled,\n readOnly,\n isInvalid,\n id,\n name,\n placeholder,\n value,\n enableSpellcheck,\n enableResize,\n required,\n rows,\n elemBefore,\n elemAfter,\n maxLength,\n ariaLabel,\n ariaDescribedby,\n innerRef,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n color,\n qa = {},\n inputProps = {},\n ...rest\n } = this.props;\n\n return (\n <Container\n hasBeforeElement={!!elemBefore}\n hasAfterElement={!!elemAfter}\n disabled={disabled}\n invalid={isInvalid}\n resizable={enableResize}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n data-qa-textarea={id}\n data-qa-textarea-isdisabled={disabled === true}\n data-qa-textarea-isrequired={required === true}\n data-qa-textarea-isinvalid={isInvalid === true}\n {...qa}\n {...rest}\n >\n {elemBefore && <Accessory before>{elemBefore}</Accessory>}\n\n <textarea\n id={id}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={isInvalid}\n value={value}\n name={name}\n placeholder={placeholder}\n rows={rows}\n disabled={disabled}\n readOnly={Boolean(readOnly)}\n autoFocus={autoFocus}\n spellCheck={enableSpellcheck}\n required={required}\n maxLength={maxLength}\n onChange={this.handleChange}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n ref={innerRef}\n data-qa-textarea-input=\"\"\n data-qa-input={name}\n {...inputProps}\n />\n\n {elemAfter && <Accessory after>{elemAfter}</Accessory>}\n </Container>\n );\n }\n}\n","import styled, { css } from \"styled-components\";\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\nimport { focusRing } from \"@sproutsocial/seeds-react-mixins\";\nimport type {\n TypeTextareaAccessoryProps,\n TypeTextareaContainerProps,\n} from \"./TextareaTypes\";\n\nconst Container = styled.div<TypeTextareaContainerProps>`\n box-sizing: border-box;\n position: relative;\n\n textarea {\n box-sizing: border-box;\n display: block;\n width: 100%;\n padding: ${(props) => props.theme.space[300]};\n border: 1px solid ${(props) => props.theme.colors.form.border.base};\n border-radius: ${(props) => props.theme.radii[500]};\n background-color: ${(props) => props.theme.colors.form.background.base};\n color: ${(props) => props.theme.colors.text.body};\n outline: none;\n resize: none;\n transition: border-color ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in},\n box-shadow ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in};\n font-family: ${(props) => props.theme.fontFamily};\n ${(props) => props.theme.typography[200]}\n font-weight: ${(props) => props.theme.fontWeights.normal};\n appearance: none;\n\n &:focus {\n ${focusRing}\n }\n\n &::placeholder {\n color: ${(props) => props.theme.colors.form.placeholder.base};\n font-style: italic;\n }\n\n ${(props) =>\n props.resizable &&\n css`\n resize: vertical;\n `}\n\n ${(props) =>\n props.hasBeforeElement &&\n css`\n padding-left: 40px;\n `}\n\n ${(props) =>\n props.hasAfterElement &&\n css`\n padding-right: 40px;\n `}\n }\n\n ${(props) =>\n props.disabled &&\n css`\n opacity: 0.4;\n\n textarea {\n cursor: not-allowed;\n }\n `}\n\n ${(props) =>\n props.invalid &&\n css`\n textarea {\n border-color: ${(props) => props.theme.colors.form.border.error};\n }\n `}\n\n ${COMMON}\n`;\n\nexport const Accessory = styled.div<TypeTextareaAccessoryProps>`\n position: absolute;\n color: ${(props) => props.theme.colors.icon.base};\n\n ${(props) =>\n props.before &&\n css`\n top: ${props.theme.space[300]};\n left: ${props.theme.space[350]};\n `};\n\n ${(props) =>\n props.after &&\n css`\n right: ${props.theme.space[350]};\n bottom: ${props.theme.space[300]};\n `};\n`;\n\nContainer.displayName = \"TextareaContainer\";\nAccessory.displayName = \"TextareaAccessory\";\n\nexport default Container;\n","import * as React from \"react\";\nimport type {\n TypeSystemCommonProps,\n TypeStyledComponentsCommonProps,\n} from \"@sproutsocial/seeds-react-system-props\";\n\ntype CollisionTypes =\n | \"color\"\n | \"onChange\"\n | \"onFocus\"\n | \"onBlur\"\n | \"onKeyDown\"\n | \"onKeyUp\";\n\nexport interface TypeTextareaProps\n extends TypeStyledComponentsCommonProps,\n TypeSystemCommonProps,\n Omit<React.ComponentPropsWithoutRef<\"textarea\">, CollisionTypes> {\n /** ID of the form element, should match the \"for\" value of the associated label */\n id: string;\n name: string;\n\n /** Label used to describe the input if not used with an accompanying visual label */\n ariaLabel?: string;\n\n /** Attribute used to associate other elements that describe the Textarea, like an error */\n ariaDescribedby?: string;\n\n /** Current value of the textarea */\n value?: string;\n\n /** Will autofocus the element when mounted to the DOM */\n autoFocus?: boolean;\n\n /** HTML disabled attribute */\n disabled?: boolean;\n\n /** HTML readonly attribute */\n readOnly?: boolean;\n\n /** Whether or not the current contents of the input are invalid */\n isInvalid?: boolean;\n\n /** Placeholder text for when value is undefined or empty */\n placeholder?: string;\n\n /** HTML required attribute */\n required?: boolean;\n\n /** 16x16 element, such as an icon */\n elemBefore?: React.ReactNode;\n\n /** 16x16 element, such as an icon */\n elemAfter?: React.ReactNode;\n\n /** Max length of the input */\n maxLength?: number;\n\n /** HTML spellcheck attribute */\n enableSpellcheck?: boolean;\n\n /** Makes the text area vertically resizable */\n enableResize?: boolean;\n\n /** The number of visible lines of text without scrolling */\n rows?: number;\n qa?: object;\n\n /** Props to spread onto the underlying textarea element */\n inputProps?: React.ComponentPropsWithoutRef<\"textarea\">;\n\n /** Used to get a reference to the underlying element */\n innerRef?:\n | {\n current: null | HTMLTextAreaElement;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((arg0: React.ElementRef<any> | HTMLElement) => void);\n onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onChange?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onKeyDown?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onKeyUp?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n}\n\nexport interface TypeTextareaContainerProps {\n resizable?: TypeTextareaProps[\"enableResize\"];\n hasBeforeElement?: boolean;\n hasAfterElement?: boolean;\n disabled?: TypeTextareaProps[\"disabled\"];\n invalid?: TypeTextareaProps[\"isInvalid\"];\n}\n\nexport interface TypeTextareaAccessoryProps {\n before?: boolean;\n after?: boolean;\n}\n","import Textarea from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AA,UAEC,aAAa,oBAAC,aAAU,OAAK,MAAE,qBAAU;AAAA;AAAA;AAAA,IAC5C;AAAA,EAEJ;AACF;;;AE7HA,OAAuB;;;ACEvB,IAAO,gBAAQ;","names":["props"]}
|
package/dist/index.js
CHANGED
|
@@ -28,12 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
Textarea: () => Textarea,
|
|
34
|
-
default: () =>
|
|
34
|
+
default: () => index_default
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// src/Textarea.tsx
|
|
39
39
|
var React = __toESM(require("react"));
|
|
@@ -239,7 +239,7 @@ var Textarea = class extends React.Component {
|
|
|
239
239
|
var React2 = require("react");
|
|
240
240
|
|
|
241
241
|
// src/index.ts
|
|
242
|
-
var
|
|
242
|
+
var index_default = Textarea;
|
|
243
243
|
// Annotate the CommonJS export names for ESM import in node:
|
|
244
244
|
0 && (module.exports = {
|
|
245
245
|
Textarea
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/Textarea.tsx","../src/styles.ts","../src/TextareaTypes.ts"],"sourcesContent":["import Textarea from \"./Textarea\";\n\nexport default Textarea;\nexport { Textarea };\nexport * from \"./TextareaTypes\";\n","import * as React from \"react\";\nimport Container, { Accessory } from \"./styles\";\nimport type { TypeTextareaProps } from \"./TextareaTypes\";\n\n/**\n * @deprecated Use TypeTextareaProps from root instead\n */\nexport type TypeProps = TypeTextareaProps;\n\nexport default class Textarea extends React.Component<TypeTextareaProps> {\n static defaultProps = {\n rows: 4,\n };\n\n handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onBlur) {\n this.props.onBlur(e);\n }\n };\n\n handleChange = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onChange) {\n this.props.onChange(e);\n }\n };\n\n handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n handleKeyDown = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n handleKeyUp = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n };\n\n override render() {\n const {\n autoFocus,\n disabled,\n readOnly,\n isInvalid,\n id,\n name,\n placeholder,\n value,\n enableSpellcheck,\n enableResize,\n required,\n rows,\n elemBefore,\n elemAfter,\n maxLength,\n ariaLabel,\n ariaDescribedby,\n innerRef,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n color,\n qa = {},\n inputProps = {},\n ...rest\n } = this.props;\n\n return (\n <Container\n hasBeforeElement={!!elemBefore}\n hasAfterElement={!!elemAfter}\n disabled={disabled}\n invalid={isInvalid}\n resizable={enableResize}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n data-qa-textarea={id}\n data-qa-textarea-isdisabled={disabled === true}\n data-qa-textarea-isrequired={required === true}\n data-qa-textarea-isinvalid={isInvalid === true}\n {...qa}\n {...rest}\n >\n {elemBefore && <Accessory before>{elemBefore}</Accessory>}\n\n <textarea\n id={id}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={isInvalid}\n value={value}\n name={name}\n placeholder={placeholder}\n rows={rows}\n disabled={disabled}\n readOnly={Boolean(readOnly)}\n autoFocus={autoFocus}\n spellCheck={enableSpellcheck}\n required={required}\n maxLength={maxLength}\n onChange={this.handleChange}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n ref={innerRef}\n data-qa-textarea-input=\"\"\n data-qa-input={name}\n {...inputProps}\n />\n\n {elemAfter && <Accessory after>{elemAfter}</Accessory>}\n </Container>\n );\n }\n}\n","import styled, { css } from \"styled-components\";\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\nimport { focusRing } from \"@sproutsocial/seeds-react-mixins\";\nimport type {\n TypeTextareaAccessoryProps,\n TypeTextareaContainerProps,\n} from \"./TextareaTypes\";\n\nconst Container = styled.div<TypeTextareaContainerProps>`\n box-sizing: border-box;\n position: relative;\n\n textarea {\n box-sizing: border-box;\n display: block;\n width: 100%;\n padding: ${(props) => props.theme.space[300]};\n border: 1px solid ${(props) => props.theme.colors.form.border.base};\n border-radius: ${(props) => props.theme.radii[500]};\n background-color: ${(props) => props.theme.colors.form.background.base};\n color: ${(props) => props.theme.colors.text.body};\n outline: none;\n resize: none;\n transition: border-color ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in},\n box-shadow ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in};\n font-family: ${(props) => props.theme.fontFamily};\n ${(props) => props.theme.typography[200]}\n font-weight: ${(props) => props.theme.fontWeights.normal};\n appearance: none;\n\n &:focus {\n ${focusRing}\n }\n\n &::placeholder {\n color: ${(props) => props.theme.colors.form.placeholder.base};\n font-style: italic;\n }\n\n ${(props) =>\n props.resizable &&\n css`\n resize: vertical;\n `}\n\n ${(props) =>\n props.hasBeforeElement &&\n css`\n padding-left: 40px;\n `}\n\n ${(props) =>\n props.hasAfterElement &&\n css`\n padding-right: 40px;\n `}\n }\n\n ${(props) =>\n props.disabled &&\n css`\n opacity: 0.4;\n\n textarea {\n cursor: not-allowed;\n }\n `}\n\n ${(props) =>\n props.invalid &&\n css`\n textarea {\n border-color: ${(props) => props.theme.colors.form.border.error};\n }\n `}\n\n ${COMMON}\n`;\n\nexport const Accessory = styled.div<TypeTextareaAccessoryProps>`\n position: absolute;\n color: ${(props) => props.theme.colors.icon.base};\n\n ${(props) =>\n props.before &&\n css`\n top: ${props.theme.space[300]};\n left: ${props.theme.space[350]};\n `};\n\n ${(props) =>\n props.after &&\n css`\n right: ${props.theme.space[350]};\n bottom: ${props.theme.space[300]};\n `};\n`;\n\nContainer.displayName = \"TextareaContainer\";\nAccessory.displayName = \"TextareaAccessory\";\n\nexport default Container;\n","import * as React from \"react\";\nimport type {\n TypeSystemCommonProps,\n TypeStyledComponentsCommonProps,\n} from \"@sproutsocial/seeds-react-system-props\";\n\ntype CollisionTypes =\n | \"color\"\n | \"onChange\"\n | \"onFocus\"\n | \"onBlur\"\n | \"onKeyDown\"\n | \"onKeyUp\";\n\nexport interface TypeTextareaProps\n extends TypeStyledComponentsCommonProps,\n TypeSystemCommonProps,\n Omit<React.ComponentPropsWithoutRef<\"textarea\">, CollisionTypes> {\n /** ID of the form element, should match the \"for\" value of the associated label */\n id: string;\n name: string;\n\n /** Label used to describe the input if not used with an accompanying visual label */\n ariaLabel?: string;\n\n /** Attribute used to associate other elements that describe the Textarea, like an error */\n ariaDescribedby?: string;\n\n /** Current value of the textarea */\n value?: string;\n\n /** Will autofocus the element when mounted to the DOM */\n autoFocus?: boolean;\n\n /** HTML disabled attribute */\n disabled?: boolean;\n\n /** HTML readonly attribute */\n readOnly?: boolean;\n\n /** Whether or not the current contents of the input are invalid */\n isInvalid?: boolean;\n\n /** Placeholder text for when value is undefined or empty */\n placeholder?: string;\n\n /** HTML required attribute */\n required?: boolean;\n\n /** 16x16 element, such as an icon */\n elemBefore?: React.ReactNode;\n\n /** 16x16 element, such as an icon */\n elemAfter?: React.ReactNode;\n\n /** Max length of the input */\n maxLength?: number;\n\n /** HTML spellcheck attribute */\n enableSpellcheck?: boolean;\n\n /** Makes the text area vertically resizable */\n enableResize?: boolean;\n\n /** The number of visible lines of text without scrolling */\n rows?: number;\n qa?: object;\n\n /** Props to spread onto the underlying textarea element */\n inputProps?: React.ComponentPropsWithoutRef<\"textarea\">;\n\n /** Used to get a reference to the underlying element */\n innerRef?:\n | {\n current: null | HTMLTextAreaElement;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((arg0: React.ElementRef<any> | HTMLElement) => void);\n onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onChange?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onKeyDown?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onKeyUp?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n}\n\nexport interface TypeTextareaContainerProps {\n resizable?: TypeTextareaProps[\"enableResize\"];\n hasBeforeElement?: boolean;\n hasAfterElement?: boolean;\n disabled?: TypeTextareaProps[\"disabled\"];\n invalid?: TypeTextareaProps[\"isInvalid\"];\n}\n\nexport interface TypeTextareaAccessoryProps {\n before?: boolean;\n after?: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;;;ACAvB,+BAA4B;AAC5B,sCAAuB;AACvB,gCAA0B;AAM1B,IAAM,YAAY,yBAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAQV,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBACxB,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,OAAO,IAAI;AAAA,qBACjD,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,WAAW,IAAI;AAAA,aAC7D,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,IAAI;AAAA;AAAA;AAAA,+BAGrB,CAAC,UAAU,MAAM,MAAM,SAA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T,WAAW;AAAA,QAIX;AAAA,QACA,oBAAkB;AAAA,QAClB,+BAA6B,aAAa;AAAA,QAC1C,+BAA6B,aAAa;AAAA,QAC1C,8BAA4B,cAAc;AAAA,QACzC,GAAG;AAAA,QACH,GAAG;AAAA,QAEH;AAAA,wBAAc,4CAAC,aAAU,QAAM,MAAE,sBAAW;AAAA,UAE7C;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,cAAY;AAAA,cACZ,oBAAkB;AAAA,cAClB,gBAAc;AAAA,cACd;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA,UAAU,QAAQ,QAAQ;AAAA,cAC1B;AAAA,cACA,YAAY;AAAA,cACZ;AAAA,cACA;AAAA,cACA,UAAU,KAAK;AAAA,cACf,SAAS,KAAK;AAAA,cACd,WAAW,KAAK;AAAA,cAChB,QAAQ,KAAK;AAAA,cACb,SAAS,KAAK;AAAA,cACd,KAAK;AAAA,cACL,0BAAuB;AAAA,cACvB,iBAAe;AAAA,cACd,GAAG;AAAA;AAAA,UACN;AAAA,UAEC,aAAa,4CAAC,aAAU,OAAK,MAAE,qBAAU;AAAA;AAAA;AAAA,IAC5C;AAAA,EAEJ;AACF;;;AE7HA,IAAAE,SAAuB;;;AHEvB,IAAO,cAAQ;","names":["styled","props","React"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/Textarea.tsx","../src/styles.ts","../src/TextareaTypes.ts"],"sourcesContent":["import Textarea from \"./Textarea\";\n\nexport default Textarea;\nexport { Textarea };\nexport * from \"./TextareaTypes\";\n","import * as React from \"react\";\nimport Container, { Accessory } from \"./styles\";\nimport type { TypeTextareaProps } from \"./TextareaTypes\";\n\n/**\n * @deprecated Use TypeTextareaProps from root instead\n */\nexport type TypeProps = TypeTextareaProps;\n\nexport default class Textarea extends React.Component<TypeTextareaProps> {\n static defaultProps = {\n rows: 4,\n };\n\n handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onBlur) {\n this.props.onBlur(e);\n }\n };\n\n handleChange = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onChange) {\n this.props.onChange(e);\n }\n };\n\n handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n handleKeyDown = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n handleKeyUp = (e: React.SyntheticEvent<HTMLTextAreaElement>) => {\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n };\n\n override render() {\n const {\n autoFocus,\n disabled,\n readOnly,\n isInvalid,\n id,\n name,\n placeholder,\n value,\n enableSpellcheck,\n enableResize,\n required,\n rows,\n elemBefore,\n elemAfter,\n maxLength,\n ariaLabel,\n ariaDescribedby,\n innerRef,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n color,\n qa = {},\n inputProps = {},\n ...rest\n } = this.props;\n\n return (\n <Container\n hasBeforeElement={!!elemBefore}\n hasAfterElement={!!elemAfter}\n disabled={disabled}\n invalid={isInvalid}\n resizable={enableResize}\n // TODO: fix this type since `color` should be valid here. TS can't resolve the correct type.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n color={color}\n data-qa-textarea={id}\n data-qa-textarea-isdisabled={disabled === true}\n data-qa-textarea-isrequired={required === true}\n data-qa-textarea-isinvalid={isInvalid === true}\n {...qa}\n {...rest}\n >\n {elemBefore && <Accessory before>{elemBefore}</Accessory>}\n\n <textarea\n id={id}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-invalid={isInvalid}\n value={value}\n name={name}\n placeholder={placeholder}\n rows={rows}\n disabled={disabled}\n readOnly={Boolean(readOnly)}\n autoFocus={autoFocus}\n spellCheck={enableSpellcheck}\n required={required}\n maxLength={maxLength}\n onChange={this.handleChange}\n onKeyUp={this.handleKeyUp}\n onKeyDown={this.handleKeyDown}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n ref={innerRef}\n data-qa-textarea-input=\"\"\n data-qa-input={name}\n {...inputProps}\n />\n\n {elemAfter && <Accessory after>{elemAfter}</Accessory>}\n </Container>\n );\n }\n}\n","import styled, { css } from \"styled-components\";\nimport { COMMON } from \"@sproutsocial/seeds-react-system-props\";\nimport { focusRing } from \"@sproutsocial/seeds-react-mixins\";\nimport type {\n TypeTextareaAccessoryProps,\n TypeTextareaContainerProps,\n} from \"./TextareaTypes\";\n\nconst Container = styled.div<TypeTextareaContainerProps>`\n box-sizing: border-box;\n position: relative;\n\n textarea {\n box-sizing: border-box;\n display: block;\n width: 100%;\n padding: ${(props) => props.theme.space[300]};\n border: 1px solid ${(props) => props.theme.colors.form.border.base};\n border-radius: ${(props) => props.theme.radii[500]};\n background-color: ${(props) => props.theme.colors.form.background.base};\n color: ${(props) => props.theme.colors.text.body};\n outline: none;\n resize: none;\n transition: border-color ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in},\n box-shadow ${(props) => props.theme.duration.fast}\n ${(props) => props.theme.easing.ease_in};\n font-family: ${(props) => props.theme.fontFamily};\n ${(props) => props.theme.typography[200]}\n font-weight: ${(props) => props.theme.fontWeights.normal};\n appearance: none;\n\n &:focus {\n ${focusRing}\n }\n\n &::placeholder {\n color: ${(props) => props.theme.colors.form.placeholder.base};\n font-style: italic;\n }\n\n ${(props) =>\n props.resizable &&\n css`\n resize: vertical;\n `}\n\n ${(props) =>\n props.hasBeforeElement &&\n css`\n padding-left: 40px;\n `}\n\n ${(props) =>\n props.hasAfterElement &&\n css`\n padding-right: 40px;\n `}\n }\n\n ${(props) =>\n props.disabled &&\n css`\n opacity: 0.4;\n\n textarea {\n cursor: not-allowed;\n }\n `}\n\n ${(props) =>\n props.invalid &&\n css`\n textarea {\n border-color: ${(props) => props.theme.colors.form.border.error};\n }\n `}\n\n ${COMMON}\n`;\n\nexport const Accessory = styled.div<TypeTextareaAccessoryProps>`\n position: absolute;\n color: ${(props) => props.theme.colors.icon.base};\n\n ${(props) =>\n props.before &&\n css`\n top: ${props.theme.space[300]};\n left: ${props.theme.space[350]};\n `};\n\n ${(props) =>\n props.after &&\n css`\n right: ${props.theme.space[350]};\n bottom: ${props.theme.space[300]};\n `};\n`;\n\nContainer.displayName = \"TextareaContainer\";\nAccessory.displayName = \"TextareaAccessory\";\n\nexport default Container;\n","import * as React from \"react\";\nimport type {\n TypeSystemCommonProps,\n TypeStyledComponentsCommonProps,\n} from \"@sproutsocial/seeds-react-system-props\";\n\ntype CollisionTypes =\n | \"color\"\n | \"onChange\"\n | \"onFocus\"\n | \"onBlur\"\n | \"onKeyDown\"\n | \"onKeyUp\";\n\nexport interface TypeTextareaProps\n extends TypeStyledComponentsCommonProps,\n TypeSystemCommonProps,\n Omit<React.ComponentPropsWithoutRef<\"textarea\">, CollisionTypes> {\n /** ID of the form element, should match the \"for\" value of the associated label */\n id: string;\n name: string;\n\n /** Label used to describe the input if not used with an accompanying visual label */\n ariaLabel?: string;\n\n /** Attribute used to associate other elements that describe the Textarea, like an error */\n ariaDescribedby?: string;\n\n /** Current value of the textarea */\n value?: string;\n\n /** Will autofocus the element when mounted to the DOM */\n autoFocus?: boolean;\n\n /** HTML disabled attribute */\n disabled?: boolean;\n\n /** HTML readonly attribute */\n readOnly?: boolean;\n\n /** Whether or not the current contents of the input are invalid */\n isInvalid?: boolean;\n\n /** Placeholder text for when value is undefined or empty */\n placeholder?: string;\n\n /** HTML required attribute */\n required?: boolean;\n\n /** 16x16 element, such as an icon */\n elemBefore?: React.ReactNode;\n\n /** 16x16 element, such as an icon */\n elemAfter?: React.ReactNode;\n\n /** Max length of the input */\n maxLength?: number;\n\n /** HTML spellcheck attribute */\n enableSpellcheck?: boolean;\n\n /** Makes the text area vertically resizable */\n enableResize?: boolean;\n\n /** The number of visible lines of text without scrolling */\n rows?: number;\n qa?: object;\n\n /** Props to spread onto the underlying textarea element */\n inputProps?: React.ComponentPropsWithoutRef<\"textarea\">;\n\n /** Used to get a reference to the underlying element */\n innerRef?:\n | {\n current: null | HTMLTextAreaElement;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((arg0: React.ElementRef<any> | HTMLElement) => void);\n onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onChange?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;\n onKeyDown?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n onKeyUp?: (e: React.SyntheticEvent<HTMLTextAreaElement>) => void;\n}\n\nexport interface TypeTextareaContainerProps {\n resizable?: TypeTextareaProps[\"enableResize\"];\n hasBeforeElement?: boolean;\n hasAfterElement?: boolean;\n disabled?: TypeTextareaProps[\"disabled\"];\n invalid?: TypeTextareaProps[\"isInvalid\"];\n}\n\nexport interface TypeTextareaAccessoryProps {\n before?: boolean;\n after?: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;;;ACAvB,+BAA4B;AAC5B,sCAAuB;AACvB,gCAA0B;AAM1B,IAAM,YAAY,yBAAAA,QAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAQV,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBACxB,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,OAAO,IAAI;AAAA,qBACjD,CAAC,UAAU,MAAM,MAAM,MAAM,GAAG,CAAC;AAAA,wBAC9B,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,WAAW,IAAI;AAAA,aAC7D,CAAC,UAAU,MAAM,MAAM,OAAO,KAAK,IAAI;AAAA;AAAA;AAAA,+BAGrB,CAAC,UAAU,MAAM,MAAM,SAAS,IAAI;AAAA,UACzD,CAAC,UAAU,MAAM,MAAM,OAAO,OAAO;AAAA,mBAC5B,C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QAC1C,+BAA6B,aAAa;AAAA,QAC1C,8BAA4B,cAAc;AAAA,QACzC,GAAG;AAAA,QACH,GAAG;AAAA,QAEH;AAAA,wBAAc,4CAAC,aAAU,QAAM,MAAE,sBAAW;AAAA,UAE7C;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,cAAY;AAAA,cACZ,oBAAkB;AAAA,cAClB,gBAAc;AAAA,cACd;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA,UAAU,QAAQ,QAAQ;AAAA,cAC1B;AAAA,cACA,YAAY;AAAA,cACZ;AAAA,cACA;AAAA,cACA,UAAU,KAAK;AAAA,cACf,SAAS,KAAK;AAAA,cACd,WAAW,KAAK;AAAA,cAChB,QAAQ,KAAK;AAAA,cACb,SAAS,KAAK;AAAA,cACd,KAAK;AAAA,cACL,0BAAuB;AAAA,cACvB,iBAAe;AAAA,cACd,GAAG;AAAA;AAAA,UACN;AAAA,UAEC,aAAa,4CAAC,aAAU,OAAK,MAAE,qBAAU;AAAA;AAAA;AAAA,IAC5C;AAAA,EAEJ;AACF;;;AE7HA,IAAAE,SAAuB;;;AHEvB,IAAO,gBAAQ;","names":["styled","props","React"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-textarea",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Seeds React Textarea",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"test:watch": "jest --watch --coverage=false"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sproutsocial/seeds-react-theme": "
|
|
22
|
-
"@sproutsocial/seeds-react-system-props": "
|
|
23
|
-
"@sproutsocial/seeds-react-mixins": "
|
|
21
|
+
"@sproutsocial/seeds-react-theme": "^2.2.0",
|
|
22
|
+
"@sproutsocial/seeds-react-system-props": "^3.0.1",
|
|
23
|
+
"@sproutsocial/seeds-react-mixins": "^4.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.0.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@sproutsocial/seeds-tsconfig": "*",
|
|
34
34
|
"@sproutsocial/seeds-testing": "*",
|
|
35
35
|
"@sproutsocial/seeds-react-testing-library": "*",
|
|
36
|
-
"@sproutsocial/seeds-react-text": "
|
|
36
|
+
"@sproutsocial/seeds-react-text": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"styled-components": "^5.2.3"
|