@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.
- package/dist/{TimeField-DT3apBHn.d.cts → TimeField-BXmGlwVW.d.cts} +6 -1
- package/dist/{TimeField-TmPbBV-t.d.ts → TimeField-DuBmntG7.d.ts} +6 -1
- package/dist/{colors-BER6l3p0.d.ts → colors-B9nHitHg.d.ts} +6 -1
- package/dist/{colors-DdsCnLrp.d.cts → colors-Cv1f3FIO.d.cts} +6 -1
- package/dist/components.manifest.json +2 -2
- package/dist/form/index.cjs.map +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -6
- package/dist/index.d.ts +46 -6
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs +1 -1
- package/dist/rhf/index.cjs.map +1 -1
- package/dist/rhf/index.d.cts +1 -1
- package/dist/rhf/index.d.ts +1 -1
- package/dist/rhf/index.js +1 -1
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/styles.css +16 -0
- package/dist/utilities.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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": "
|
|
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": [],
|