@plasmicpkgs/react-aria 0.0.144 → 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.
@@ -1,6 +1,6 @@
1
1
  import { usePlasmicCanvasContext, usePlasmicCanvasComponentInfo, usePlasmicLink } from '@plasmicapp/host';
2
- import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle, useContext, useRef, useId } from 'react';
3
- import { mergeProps, useLink, useHover, useFocusRing, useButton, useFocusWithin } from 'react-aria';
2
+ import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle, useContext, useRef } from 'react';
3
+ import { mergeProps, useLink, useHover, useFocusRing, useButton, useFocusWithin, useId } from 'react-aria';
4
4
  import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput, Slider, SliderTrackContext, SliderThumb, SliderTrack, Switch, TextAreaContext, TextField, Provider, Tooltip } from 'react-aria-components';
5
5
  import registerComponent from '@plasmicapp/host/registerComponent';
6
6
  import { mergeProps as mergeProps$1 } from '@react-aria/utils';
@@ -4644,12 +4644,14 @@ function BaseTextArea_(props, ref) {
4644
4644
  className,
4645
4645
  plasmicUpdateVariant,
4646
4646
  setControlContextData,
4647
- value
4647
+ value,
4648
+ resize
4648
4649
  } = _a, restProps = __objRest$2(_a, [
4649
4650
  "className",
4650
4651
  "plasmicUpdateVariant",
4651
4652
  "setControlContextData",
4652
- "value"
4653
+ "value",
4654
+ "resize"
4653
4655
  ]);
4654
4656
  const textFieldContext = React.useContext(PlasmicTextFieldContext);
4655
4657
  const [textAreaContextProps, textAreaRef] = useContextProps(
@@ -4668,7 +4670,7 @@ function BaseTextArea_(props, ref) {
4668
4670
  hoverProps,
4669
4671
  {
4670
4672
  value: isDefined(textFieldContext) ? void 0 : value,
4671
- style: COMMON_STYLES,
4673
+ style: __spreadValues$2(__spreadValues$2({}, COMMON_STYLES), resize ? { resize } : {}),
4672
4674
  className
4673
4675
  }
4674
4676
  );
@@ -4710,7 +4712,7 @@ function registerTextArea(loader, overrides) {
4710
4712
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
4711
4713
  importName: "BaseTextArea",
4712
4714
  variants: variants$1,
4713
- props: __spreadValues$2({}, getCommonProps("Text Area", [
4715
+ props: __spreadProps$2(__spreadValues$2({}, getCommonProps("Text Area", [
4714
4716
  "name",
4715
4717
  "disabled",
4716
4718
  "readOnly",
@@ -4736,7 +4738,21 @@ function registerTextArea(loader, overrides) {
4736
4738
  "onSelect",
4737
4739
  "onBeforeInput",
4738
4740
  "onInput"
4739
- ])),
4741
+ ])), {
4742
+ resize: {
4743
+ type: "choice",
4744
+ description: "Controls if and how the element can be resized.",
4745
+ options: [
4746
+ "both",
4747
+ "horizontal",
4748
+ "vertical",
4749
+ "block",
4750
+ "inline",
4751
+ "none"
4752
+ ],
4753
+ defaultValueHint: "both"
4754
+ }
4755
+ }),
4740
4756
  states: {
4741
4757
  value: __spreadValues$2({
4742
4758
  type: "writable",