@texturehq/edges 1.25.3 → 1.26.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.
@@ -65,8 +65,13 @@ interface AutocompleteProps {
65
65
  * @default false
66
66
  */
67
67
  reserveErrorSpace?: boolean;
68
+ /**
69
+ * Whether to hide the dropdown chevron icon
70
+ * @default false
71
+ */
72
+ hideChevron?: boolean;
68
73
  }
69
- declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, isInvalid, validationResult, showErrors, renderItem, renderLeftIcon, renderSection, autoFocus, reserveErrorSpace, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
74
+ declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, isInvalid, validationResult, showErrors, renderItem, renderLeftIcon, renderSection, autoFocus, reserveErrorSpace, hideChevron, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
70
75
 
71
76
  type IconName = ComponentProps<typeof Icon>["name"];
72
77
  type BaseButtonProps = Omit<ButtonProps$1, "className">;
@@ -65,8 +65,13 @@ interface AutocompleteProps {
65
65
  * @default false
66
66
  */
67
67
  reserveErrorSpace?: boolean;
68
+ /**
69
+ * Whether to hide the dropdown chevron icon
70
+ * @default false
71
+ */
72
+ hideChevron?: boolean;
68
73
  }
69
- declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, isInvalid, validationResult, showErrors, renderItem, renderLeftIcon, renderSection, autoFocus, reserveErrorSpace, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
74
+ declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, isInvalid, validationResult, showErrors, renderItem, renderLeftIcon, renderSection, autoFocus, reserveErrorSpace, hideChevron, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
70
75
 
71
76
  type IconName = ComponentProps<typeof Icon>["name"];
72
77
  type BaseButtonProps = Omit<ButtonProps$1, "className">;
@@ -1,7 +1,7 @@
1
1
  import * as d3_scale from 'd3-scale';
2
2
  import { ScaleTime, ScaleLinear } from 'd3-scale';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ReactNode } from 'react';
4
+ import React__default, { ReactNode, ComponentType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { d as IconName } from './RichTextEditor-BhX77nTp.js';
7
7
  import * as react_map_gl from 'react-map-gl';
@@ -1586,14 +1586,22 @@ interface TextLinkProps {
1586
1586
  asButton?: boolean;
1587
1587
  onPress?: () => void;
1588
1588
  showArrow?: boolean;
1589
+ /**
1590
+ * Custom Link component (e.g., Next.js Link) to handle navigation
1591
+ * If provided, this component will be used instead of a standard <a> tag
1592
+ * @example LinkComponent={Link} (where Link is from 'next/link')
1593
+ */
1594
+ LinkComponent?: ComponentType<any>;
1589
1595
  }
1590
1596
  /**
1591
1597
  * TextLink
1592
1598
  *
1593
1599
  * Styled text link component for navigation and actions.
1594
1600
  * Supports internal/external links, button mode, and multiple visual variants.
1601
+ *
1602
+ * @param LinkComponent - Optional custom Link component (e.g., Next.js Link) for client-side navigation
1595
1603
  */
1596
- declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
1604
+ declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, LinkComponent, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
1597
1605
 
1598
1606
  /**
1599
1607
  * Entity Configuration
@@ -1,7 +1,7 @@
1
1
  import * as d3_scale from 'd3-scale';
2
2
  import { ScaleTime, ScaleLinear } from 'd3-scale';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ReactNode } from 'react';
4
+ import React__default, { ReactNode, ComponentType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { d as IconName } from './RichTextEditor-BhX77nTp.cjs';
7
7
  import * as react_map_gl from 'react-map-gl';
@@ -1586,14 +1586,22 @@ interface TextLinkProps {
1586
1586
  asButton?: boolean;
1587
1587
  onPress?: () => void;
1588
1588
  showArrow?: boolean;
1589
+ /**
1590
+ * Custom Link component (e.g., Next.js Link) to handle navigation
1591
+ * If provided, this component will be used instead of a standard <a> tag
1592
+ * @example LinkComponent={Link} (where Link is from 'next/link')
1593
+ */
1594
+ LinkComponent?: ComponentType<any>;
1589
1595
  }
1590
1596
  /**
1591
1597
  * TextLink
1592
1598
  *
1593
1599
  * Styled text link component for navigation and actions.
1594
1600
  * Supports internal/external links, button mode, and multiple visual variants.
1601
+ *
1602
+ * @param LinkComponent - Optional custom Link component (e.g., Next.js Link) for client-side navigation
1595
1603
  */
1596
- declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
1604
+ declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, LinkComponent, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
1597
1605
 
1598
1606
  /**
1599
1607
  * Entity Configuration
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.25.3",
2
+ "version": "1.26.0",
3
3
  "components": [
4
4
  {
5
5
  "name": "ActionCell",
@@ -97,7 +97,7 @@
97
97
  {
98
98
  "name": "Autocomplete",
99
99
  "category": "Form Controls",
100
- "description": "Whether to reserve space for error messages to prevent layout shift @default false",
100
+ "description": "Whether to hide the dropdown chevron icon @default false",
101
101
  "importRoot": "@texturehq/edges",
102
102
  "importPath": "@texturehq/edges/components/Autocomplete",
103
103
  "props": [
@@ -2652,7 +2652,7 @@
2652
2652
  {
2653
2653
  "name": "TextLink",
2654
2654
  "category": "Navigation",
2655
- "description": "TextLink Styled text link component for navigation and actions. Supports internal/external links, button mode, and multiple visual variants.",
2655
+ "description": "TextLink Styled text link component for navigation and actions. Supports internal/external links, button mode, and multiple visual variants. @param LinkComponent - Optional custom Link component (e.g., Next.js Link) for client-side navigation",
2656
2656
  "importRoot": "@texturehq/edges",
2657
2657
  "importPath": "@texturehq/edges/components/TextLink",
2658
2658
  "props": [