@texturehq/edges 1.26.0 → 1.26.2

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.
@@ -313,8 +313,13 @@ interface SelectProps<T extends SelectItem> extends Omit<SelectProps$1<T>, "chil
313
313
  * @default "below"
314
314
  */
315
315
  descriptionPlacement?: "below" | "tooltip" | "inline" | "hidden";
316
+ /**
317
+ * Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover
318
+ * @default true
319
+ */
320
+ useMobileTray?: boolean;
316
321
  }
317
- declare function Select<T extends SelectItem>({ label, description, errorMessage, children, items, renderItem, renderSelectedValue, size, selectedKey: controlledSelectedKey, defaultSelectedKey, onSelectionChange, placeholder, showErrors, tooltip, isRequired, transparent, reserveErrorSpace, placement, shouldFlip, menuWidth, descriptionPlacement, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
322
+ declare function Select<T extends SelectItem>({ label, description, errorMessage, children, items, renderItem, renderSelectedValue, size, selectedKey: controlledSelectedKey, defaultSelectedKey, onSelectionChange, placeholder, showErrors, tooltip, isRequired, transparent, reserveErrorSpace, placement, shouldFlip, menuWidth, descriptionPlacement, useMobileTray, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
318
323
 
319
324
  interface SwitchProps extends Omit<SwitchProps$1, "children"> {
320
325
  children: React__default.ReactNode;
@@ -313,8 +313,13 @@ interface SelectProps<T extends SelectItem> extends Omit<SelectProps$1<T>, "chil
313
313
  * @default "below"
314
314
  */
315
315
  descriptionPlacement?: "below" | "tooltip" | "inline" | "hidden";
316
+ /**
317
+ * Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover
318
+ * @default true
319
+ */
320
+ useMobileTray?: boolean;
316
321
  }
317
- declare function Select<T extends SelectItem>({ label, description, errorMessage, children, items, renderItem, renderSelectedValue, size, selectedKey: controlledSelectedKey, defaultSelectedKey, onSelectionChange, placeholder, showErrors, tooltip, isRequired, transparent, reserveErrorSpace, placement, shouldFlip, menuWidth, descriptionPlacement, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
322
+ declare function Select<T extends SelectItem>({ label, description, errorMessage, children, items, renderItem, renderSelectedValue, size, selectedKey: controlledSelectedKey, defaultSelectedKey, onSelectionChange, placeholder, showErrors, tooltip, isRequired, transparent, reserveErrorSpace, placement, shouldFlip, menuWidth, descriptionPlacement, useMobileTray, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
318
323
 
319
324
  interface SwitchProps extends Omit<SwitchProps$1, "children"> {
320
325
  children: React__default.ReactNode;
@@ -351,6 +351,11 @@ interface ActionMenuProps {
351
351
  * Optional footer content rendered below the menu items
352
352
  */
353
353
  footer?: ReactNode;
354
+ /**
355
+ * Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover
356
+ * @default true
357
+ */
358
+ useMobileTray?: boolean;
354
359
  }
355
360
  /**
356
361
  * ActionMenu
@@ -358,7 +363,7 @@ interface ActionMenuProps {
358
363
  * A dropdown menu for actions, typically triggered by a button.
359
364
  * Supports icons, destructive actions, and flexible alignment.
360
365
  */
361
- declare function ActionMenu({ children, items, className, align, textAlign, size, onAction, header, footer, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
366
+ declare function ActionMenu({ children, items, className, align, textAlign, size, onAction, header, footer, useMobileTray, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
362
367
 
363
368
  type SideNavItem = {
364
369
  id: string;
@@ -351,6 +351,11 @@ interface ActionMenuProps {
351
351
  * Optional footer content rendered below the menu items
352
352
  */
353
353
  footer?: ReactNode;
354
+ /**
355
+ * Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover
356
+ * @default true
357
+ */
358
+ useMobileTray?: boolean;
354
359
  }
355
360
  /**
356
361
  * ActionMenu
@@ -358,7 +363,7 @@ interface ActionMenuProps {
358
363
  * A dropdown menu for actions, typically triggered by a button.
359
364
  * Supports icons, destructive actions, and flexible alignment.
360
365
  */
361
- declare function ActionMenu({ children, items, className, align, textAlign, size, onAction, header, footer, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
366
+ declare function ActionMenu({ children, items, className, align, textAlign, size, onAction, header, footer, useMobileTray, }: ActionMenuProps): react_jsx_runtime.JSX.Element;
362
367
 
363
368
  type SideNavItem = {
364
369
  id: string;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.26.0",
2
+ "version": "1.26.2",
3
3
  "components": [
4
4
  {
5
5
  "name": "ActionCell",
@@ -2134,7 +2134,7 @@
2134
2134
  {
2135
2135
  "name": "Select",
2136
2136
  "category": "Form Controls",
2137
- "description": "Where to display the description text - \"below\": Show below the field (default) - \"tooltip\": Show as a tooltip on the label icon - \"inline\": Show inline with the label - \"hidden\": Don't display the description @default \"below\"",
2137
+ "description": "Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover @default true",
2138
2138
  "importRoot": "@texturehq/edges",
2139
2139
  "importPath": "@texturehq/edges/components/Select",
2140
2140
  "props": [],