@umami/react-zen 0.242.0 → 0.243.0

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/index.d.mts CHANGED
@@ -847,6 +847,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
847
847
  searchDelay?: number;
848
848
  isFullscreen?: boolean;
849
849
  maxHeight?: string | number;
850
+ showIcon?: boolean;
850
851
  onSearch?: (value: string) => void;
851
852
  onChange?: (e: any) => void;
852
853
  buttonProps?: ButtonProps;
@@ -856,7 +857,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
856
857
  defaultChildren: ReactNode;
857
858
  }) => ReactNode);
858
859
  }
859
- declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
860
+ declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, showIcon, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
860
861
 
861
862
  interface SliderProps extends SliderProps$1 {
862
863
  label?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -847,6 +847,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
847
847
  searchDelay?: number;
848
848
  isFullscreen?: boolean;
849
849
  maxHeight?: string | number;
850
+ showIcon?: boolean;
850
851
  onSearch?: (value: string) => void;
851
852
  onChange?: (e: any) => void;
852
853
  buttonProps?: ButtonProps;
@@ -856,7 +857,7 @@ interface SelectProps extends SelectProps$1<HTMLSelectElement> {
856
857
  defaultChildren: ReactNode;
857
858
  }) => ReactNode);
858
859
  }
859
- declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
860
+ declare function Select({ value, defaultValue, label, isLoading, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, showIcon, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
860
861
 
861
862
  interface SliderProps extends SliderProps$1 {
862
863
  label?: ReactNode;
package/dist/index.js CHANGED
@@ -4719,6 +4719,7 @@ function Select({
4719
4719
  searchDelay,
4720
4720
  isFullscreen,
4721
4721
  maxHeight,
4722
+ showIcon = true,
4722
4723
  onSearch,
4723
4724
  onChange,
4724
4725
  buttonProps,
@@ -4752,10 +4753,18 @@ function Select({
4752
4753
  onChange: handleChange,
4753
4754
  children: [
4754
4755
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { children: label }),
4755
- /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", ...buttonProps, className: cn("w-full", buttonProps?.className), children: /* @__PURE__ */ jsxRuntime.jsxs(Row, { flexGrow: 1, alignItems: "center", justifyContent: "space-between", children: [
4756
- /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.SelectValue, { children: renderValue }),
4757
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) })
4758
- ] }) }),
4756
+ /* @__PURE__ */ jsxRuntime.jsxs(
4757
+ Button,
4758
+ {
4759
+ variant: "outline",
4760
+ ...buttonProps,
4761
+ className: cn("w-full justify-between", buttonProps?.className),
4762
+ children: [
4763
+ /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.SelectValue, { children: renderValue }),
4764
+ showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) })
4765
+ ]
4766
+ }
4767
+ ),
4759
4768
  /* @__PURE__ */ jsxRuntime.jsx(Popover, { ...popoverProps, onOpenChange: handleOpenChange, isFullscreen, children: /* @__PURE__ */ jsxRuntime.jsxs(
4760
4769
  Column,
4761
4770
  {