@plasmicpkgs/react-aria 0.0.145 → 0.0.146
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/dist/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +21 -5
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +21 -5
- package/dist/react-aria.js.map +1 -1
- package/dist/registerTextArea.d.ts +1 -0
- package/package.json +2 -2
- package/skinny/registerTextArea.cjs.js +21 -5
- package/skinny/registerTextArea.cjs.js.map +1 -1
- package/skinny/registerTextArea.d.ts +1 -0
- package/skinny/registerTextArea.esm.js +21 -5
- package/skinny/registerTextArea.esm.js.map +1 -1
package/dist/react-aria.js
CHANGED
|
@@ -4652,12 +4652,14 @@ function BaseTextArea_(props, ref) {
|
|
|
4652
4652
|
className,
|
|
4653
4653
|
plasmicUpdateVariant,
|
|
4654
4654
|
setControlContextData,
|
|
4655
|
-
value
|
|
4655
|
+
value,
|
|
4656
|
+
resize
|
|
4656
4657
|
} = _a, restProps = __objRest$2(_a, [
|
|
4657
4658
|
"className",
|
|
4658
4659
|
"plasmicUpdateVariant",
|
|
4659
4660
|
"setControlContextData",
|
|
4660
|
-
"value"
|
|
4661
|
+
"value",
|
|
4662
|
+
"resize"
|
|
4661
4663
|
]);
|
|
4662
4664
|
const textFieldContext = React__default.default.useContext(PlasmicTextFieldContext);
|
|
4663
4665
|
const [textAreaContextProps, textAreaRef] = reactAriaComponents.useContextProps(
|
|
@@ -4676,7 +4678,7 @@ function BaseTextArea_(props, ref) {
|
|
|
4676
4678
|
hoverProps,
|
|
4677
4679
|
{
|
|
4678
4680
|
value: isDefined(textFieldContext) ? void 0 : value,
|
|
4679
|
-
style: COMMON_STYLES,
|
|
4681
|
+
style: __spreadValues$2(__spreadValues$2({}, COMMON_STYLES), resize ? { resize } : {}),
|
|
4680
4682
|
className
|
|
4681
4683
|
}
|
|
4682
4684
|
);
|
|
@@ -4718,7 +4720,7 @@ function registerTextArea(loader, overrides) {
|
|
|
4718
4720
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
|
|
4719
4721
|
importName: "BaseTextArea",
|
|
4720
4722
|
variants: variants$1,
|
|
4721
|
-
props: __spreadValues$2({}, getCommonProps("Text Area", [
|
|
4723
|
+
props: __spreadProps$2(__spreadValues$2({}, getCommonProps("Text Area", [
|
|
4722
4724
|
"name",
|
|
4723
4725
|
"disabled",
|
|
4724
4726
|
"readOnly",
|
|
@@ -4744,7 +4746,21 @@ function registerTextArea(loader, overrides) {
|
|
|
4744
4746
|
"onSelect",
|
|
4745
4747
|
"onBeforeInput",
|
|
4746
4748
|
"onInput"
|
|
4747
|
-
])),
|
|
4749
|
+
])), {
|
|
4750
|
+
resize: {
|
|
4751
|
+
type: "choice",
|
|
4752
|
+
description: "Controls if and how the element can be resized.",
|
|
4753
|
+
options: [
|
|
4754
|
+
"both",
|
|
4755
|
+
"horizontal",
|
|
4756
|
+
"vertical",
|
|
4757
|
+
"block",
|
|
4758
|
+
"inline",
|
|
4759
|
+
"none"
|
|
4760
|
+
],
|
|
4761
|
+
defaultValueHint: "both"
|
|
4762
|
+
}
|
|
4763
|
+
}),
|
|
4748
4764
|
states: {
|
|
4749
4765
|
value: __spreadValues$2({
|
|
4750
4766
|
type: "writable",
|