@povio/ui 2.1.21 → 2.1.22

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.
@@ -8,7 +8,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { clsx } from "clsx";
9
9
  import { ComboBox, DialogTrigger, Popover } from "react-aria-components";
10
10
  import { Fragment as Fragment$1, useMemo, useRef } from "react";
11
- import { useLabel } from "react-aria";
11
+ import { useLabel, usePreventScroll } from "react-aria";
12
12
  import { mergeRefs } from "@react-aria/utils";
13
13
  import useMeasure from "react-use-measure";
14
14
  const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, customTrigger, onBlur,...props }) => {
@@ -31,6 +31,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
31
31
  const closeComboBoxRef = useRef(null);
32
32
  const [wrapperRef, { width }] = useMeasure();
33
33
  const { fieldState, isOpen, setIsOpen, onInputChange, onChange, onClear, onSelectAll, listItems, selectableListItems, selectedIds, isMultiple } = SelectContext.useSelect();
34
+ usePreventScroll({ isDisabled: !isOpen });
34
35
  const onSelectionChange = (value) => {
35
36
  if (!value) return;
36
37
  if (value === "all-item-id") {
@@ -136,7 +137,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
136
137
  offset: 0,
137
138
  children: /* @__PURE__ */ jsx(SelectListBox, {
138
139
  ...props,
139
- className: "max-h-80 rounded-list-rounding-dropdown border border-elevation-outline-default-1 bg-elevation-fill-default-1 shadow-5 [scrollbar-width:thin]",
140
+ className: "max-h-80! rounded-list-rounding-dropdown border border-elevation-outline-default-1 bg-elevation-fill-default-1 shadow-5 [scrollbar-width:thin]",
140
141
  autoFocus: !isSearchable
141
142
  })
142
143
  })]
package/dist/input.cva.js CHANGED
@@ -2,7 +2,7 @@ import { UIStyle } from "./uiStyle.context.js";
2
2
  import { uiOutlineClass } from "./outline.clsx.js";
3
3
  import { clsx } from "clsx";
4
4
  import { cva } from "class-variance-authority";
5
- const inputBase = cva([uiOutlineClass, "flex w-full truncate"], {
5
+ const inputBase = cva([uiOutlineClass, "flex w-full not-[textarea]:truncate"], {
6
6
  variants: {
7
7
  variant: {
8
8
  outlined: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",