@texturehq/edges 1.28.0 → 1.28.1
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-BbLIbv0J.d.ts → TimeField-DUQ94xQz.d.ts} +2 -2
- package/dist/{TimeField-BqhXKWUT.d.cts → TimeField-ydXvd3yT.d.cts} +2 -2
- package/dist/{colors-Edrb81dY.d.ts → colors-BArtDuqU.d.ts} +1 -1
- package/dist/{colors-CvEXhBTp.d.cts → colors-BHVIdEzL.d.cts} +1 -1
- package/dist/components.manifest.json +25 -19
- package/dist/form/index.cjs.map +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -20
- package/dist/index.d.ts +30 -20
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs.map +1 -1
- package/dist/rhf/index.d.cts +2 -2
- package/dist/rhf/index.d.ts +2 -2
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js.map +1 -1
- package/dist/styles/computed.css +2 -4
- package/dist/styles/utilities.css +3 -3
- package/dist/styles.css +32 -1
- package/dist/utilities.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -305,12 +305,12 @@ interface RadioCardGroupProps {
|
|
|
305
305
|
*/
|
|
306
306
|
gap?: string;
|
|
307
307
|
}
|
|
308
|
-
declare function RadioCard({ value, isDisabled, className, children, size, variant
|
|
308
|
+
declare function RadioCard({ value, isDisabled, className, children, size, variant }: RadioCardProps): react_jsx_runtime.JSX.Element;
|
|
309
309
|
declare function RadioCardGroup({ value, defaultValue, onChange, isDisabled, isReadOnly, isRequired, className, children, size, variant, columns, gap, }: RadioCardGroupProps): react_jsx_runtime.JSX.Element;
|
|
310
310
|
|
|
311
311
|
interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
312
312
|
/** Label for the radio group */
|
|
313
|
-
label?:
|
|
313
|
+
label?: ReactNode;
|
|
314
314
|
/** Children elements */
|
|
315
315
|
children?: ReactNode;
|
|
316
316
|
/** Optional description for the radio group */
|
|
@@ -305,12 +305,12 @@ interface RadioCardGroupProps {
|
|
|
305
305
|
*/
|
|
306
306
|
gap?: string;
|
|
307
307
|
}
|
|
308
|
-
declare function RadioCard({ value, isDisabled, className, children, size, variant
|
|
308
|
+
declare function RadioCard({ value, isDisabled, className, children, size, variant }: RadioCardProps): react_jsx_runtime.JSX.Element;
|
|
309
309
|
declare function RadioCardGroup({ value, defaultValue, onChange, isDisabled, isReadOnly, isRequired, className, children, size, variant, columns, gap, }: RadioCardGroupProps): react_jsx_runtime.JSX.Element;
|
|
310
310
|
|
|
311
311
|
interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
312
312
|
/** Label for the radio group */
|
|
313
|
-
label?:
|
|
313
|
+
label?: ReactNode;
|
|
314
314
|
/** Children elements */
|
|
315
315
|
children?: ReactNode;
|
|
316
316
|
/** Optional description for the radio group */
|
|
@@ -693,7 +693,7 @@ interface HeadingProps {
|
|
|
693
693
|
className?: string;
|
|
694
694
|
children?: React__default.ReactNode;
|
|
695
695
|
}
|
|
696
|
-
declare function Heading({ tag: Tag, size, height, className, children
|
|
696
|
+
declare function Heading({ tag: Tag, size, height, className, children }: HeadingProps): react_jsx_runtime.JSX.Element;
|
|
697
697
|
|
|
698
698
|
interface LoaderProps {
|
|
699
699
|
/**
|
|
@@ -693,7 +693,7 @@ interface HeadingProps {
|
|
|
693
693
|
className?: string;
|
|
694
694
|
children?: React__default.ReactNode;
|
|
695
695
|
}
|
|
696
|
-
declare function Heading({ tag: Tag, size, height, className, children
|
|
696
|
+
declare function Heading({ tag: Tag, size, height, className, children }: HeadingProps): react_jsx_runtime.JSX.Element;
|
|
697
697
|
|
|
698
698
|
interface LoaderProps {
|
|
699
699
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.28.
|
|
2
|
+
"version": "1.28.1",
|
|
3
3
|
"components": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ActionCell",
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
},
|
|
366
366
|
{
|
|
367
367
|
"name": "variant",
|
|
368
|
-
"type": "
|
|
368
|
+
"type": "\"default\" | \"brand\" | \"secondary\" | \"destructive\" | \"icon\" | \"link\" | \"unstyled\" | \"ghost\" | \"primary\""
|
|
369
369
|
}
|
|
370
370
|
],
|
|
371
371
|
"relatedComponents": [
|
|
@@ -834,13 +834,19 @@
|
|
|
834
834
|
},
|
|
835
835
|
{
|
|
836
836
|
"name": "ChipInputField",
|
|
837
|
-
"category": "
|
|
837
|
+
"category": "Form Controls",
|
|
838
838
|
"description": "ChipInputField A tags input component with autocomplete suggestions. Press Enter or comma to add tags, Backspace when empty to remove last tag. Supports both static items and async fetching for suggestions.",
|
|
839
839
|
"importRoot": "@texturehq/edges",
|
|
840
840
|
"importPath": "@texturehq/edges/components/ChipInputField",
|
|
841
841
|
"props": [],
|
|
842
|
-
"relatedComponents": [
|
|
843
|
-
|
|
842
|
+
"relatedComponents": [
|
|
843
|
+
"ChipInputField",
|
|
844
|
+
"StoryLayout",
|
|
845
|
+
"StoryTable",
|
|
846
|
+
"StoryTableCell",
|
|
847
|
+
"StoryTableRow"
|
|
848
|
+
],
|
|
849
|
+
"storybookPath": "Form Controls/ChipInputField"
|
|
844
850
|
},
|
|
845
851
|
{
|
|
846
852
|
"name": "CodeEditor",
|
|
@@ -1854,7 +1860,7 @@
|
|
|
1854
1860
|
},
|
|
1855
1861
|
{
|
|
1856
1862
|
"name": "countryRestrictions",
|
|
1857
|
-
"type": "string[]; // Array of ISO 3166-1 alpha-2 country codes proximity?: \"ip\" | [number, number]; // Either \"ip\" for IP-based location or [longitude, latitude] coordinates hideCountry?: boolean; // Hide country from results (useful when using countryRestrictions) showIcon?: boolean; // Show location type icons in results (default: true) className?: string"
|
|
1863
|
+
"type": "string[]; // Array of ISO 3166-1 alpha-2 country codes proximity?: \"ip\" | [number, number]; // Either \"ip\" for IP-based location or [longitude, latitude] coordinates hideCountry?: boolean; // Hide country from results (useful when using countryRestrictions) showIcon?: boolean; // Show location type icons in results (default: true) useMobileTray?: boolean; // Whether to use a Tray (bottom sheet) on mobile devices instead of a Popover (default: true) className?: string"
|
|
1858
1864
|
},
|
|
1859
1865
|
{
|
|
1860
1866
|
"name": "defaultFilter",
|
|
@@ -2394,7 +2400,7 @@
|
|
|
2394
2400
|
{
|
|
2395
2401
|
"name": "StatList",
|
|
2396
2402
|
"category": "Data",
|
|
2397
|
-
"description": "Additional CSS classes */ className?: string; } // Helpers // Use the centralized formatting utility function formatValue(value: StatValue, formatter?: StatFormatter): React.ReactNode { // If value is already a React element, return it as-is (skip formatting) if (React.isValidElement(value)) { return value; } return formatComponentValue({ value, formatter, emptyClassName: \"text-text-muted\", emptyText: \"—\", }); } function getTone(item: StatItem): StatTone | undefined { // Check thresholds first if (item.thresholds && item.value !== null && item.value !== undefined) { for (const threshold of item.thresholds) { if (threshold.when(item.value)) { return threshold.tone; } } } // Fall back to explicit tone return item.tone; } const toneColors: Record<StatTone, string> = { neutral: \"text-text-body\", success: \"text-feedback-success\", warning: \"text-feedback-warning\", error: \"text-feedback-error\", info: \"text-feedback-info\", }; // StatRow Component // Constants for auto-truncation const LONG_STRING_THRESHOLD = 24; const LONG_STRING_TRUNCATE_LENGTH = 20; function StatRow({ item, dense, valueAlign
|
|
2403
|
+
"description": "Additional CSS classes */ className?: string; } // Helpers // Use the centralized formatting utility function formatValue(value: StatValue, formatter?: StatFormatter): React.ReactNode { // If value is already a React element, return it as-is (skip formatting) if (React.isValidElement(value)) { return value; } return formatComponentValue({ value, formatter, emptyClassName: \"text-text-muted\", emptyText: \"—\", }); } function getTone(item: StatItem): StatTone | undefined { // Check thresholds first if (item.thresholds && item.value !== null && item.value !== undefined) { for (const threshold of item.thresholds) { if (threshold.when(item.value)) { return threshold.tone; } } } // Fall back to explicit tone return item.tone; } const toneColors: Record<StatTone, string> = { neutral: \"text-text-body\", success: \"text-feedback-success\", warning: \"text-feedback-warning\", error: \"text-feedback-error\", info: \"text-feedback-info\", }; // StatRow Component // Constants for auto-truncation const LONG_STRING_THRESHOLD = 24; const LONG_STRING_TRUNCATE_LENGTH = 20; function StatRow({ item, dense, valueAlign }: { item: StatItem; dense?: boolean; valueAlign?: StatAlign }) { const tone = getTone(item); const toneClass = tone ? toneColors[tone] : \"\"; const isStacked = item.stackOnMobile; // Check if this is a long string that should be auto-truncated on mobile const isLongString = typeof item.value === \"string\" && item.value.length > LONG_STRING_THRESHOLD && !item.formatter && !React.isValidElement(item.value); // Get the formatted value (used for both truncated and full display) const formattedValue = formatValue(item.value, item.formatter); // Get the truncated value for mobile display // Note: We cast to string here because isLongString already verifies typeof item.value === \"string\" const truncatedValue = isLongString ? truncateMiddle(item.value as string, LONG_STRING_TRUNCATE_LENGTH) : null; const textToCopy = typeof item.copyable === \"function\" ? item.copyable(item.value) : String(item.value); // PII data attributes (only set if both piiType and piiEntity are provided) const piiAttrs = item.piiType && item.piiEntity ? { \"data-pii-type\": item.piiType, \"data-pii-entity\": item.piiEntity, } : {}; // For long strings, render both truncated (mobile) and full (desktop) versions // CSS classes control which is visible based on screen size // Tooltip content is wrapped in span with PII attributes to allow masking by Curtain extension const hasPiiAttrs = Object.keys(piiAttrs).length > 0; const valueDisplay = isLongString ? ( <> {/* Mobile: show truncated with tooltip */} <Tooltip content={hasPiiAttrs ? <span {...piiAttrs}>{String(item.value)}</span> : String(item.value)}> <span className={twMerge(\"md:hidden\", item.href ? \"hover:underline cursor-pointer\" : \"\")} {...piiAttrs}> {truncatedValue} </span> </Tooltip> {/* Desktop: show full value",
|
|
2398
2404
|
"importRoot": "@texturehq/edges",
|
|
2399
2405
|
"importPath": "@texturehq/edges/components/StatList",
|
|
2400
2406
|
"props": [],
|
|
@@ -2957,6 +2963,7 @@
|
|
|
2957
2963
|
"Calendar",
|
|
2958
2964
|
"Checkbox",
|
|
2959
2965
|
"CheckboxGroup",
|
|
2966
|
+
"ChipInputField",
|
|
2960
2967
|
"CodeEditor",
|
|
2961
2968
|
"ColorField",
|
|
2962
2969
|
"DateField",
|
|
@@ -3074,13 +3081,23 @@
|
|
|
3074
3081
|
"CarouselRoot",
|
|
3075
3082
|
"HierarchyExplorer"
|
|
3076
3083
|
],
|
|
3084
|
+
"Charts": [
|
|
3085
|
+
"AreaSeries",
|
|
3086
|
+
"BarSeries",
|
|
3087
|
+
"CategoryBarChart",
|
|
3088
|
+
"ChartAxis",
|
|
3089
|
+
"ChartContainer",
|
|
3090
|
+
"ChartEventMarkers",
|
|
3091
|
+
"FunnelSeries",
|
|
3092
|
+
"LineSeries",
|
|
3093
|
+
"TimeControls"
|
|
3094
|
+
],
|
|
3077
3095
|
"Uncategorized": [
|
|
3078
3096
|
"ActionCell",
|
|
3079
3097
|
"BadgeCell",
|
|
3080
3098
|
"BooleanCell",
|
|
3081
3099
|
"ChartBottomBar",
|
|
3082
3100
|
"ChartTooltip",
|
|
3083
|
-
"ChipInputField",
|
|
3084
3101
|
"CommandPalette",
|
|
3085
3102
|
"ContactMetaCell",
|
|
3086
3103
|
"CustomCell",
|
|
@@ -3110,17 +3127,6 @@
|
|
|
3110
3127
|
"StaticMap",
|
|
3111
3128
|
"TextCell"
|
|
3112
3129
|
],
|
|
3113
|
-
"Charts": [
|
|
3114
|
-
"AreaSeries",
|
|
3115
|
-
"BarSeries",
|
|
3116
|
-
"CategoryBarChart",
|
|
3117
|
-
"ChartAxis",
|
|
3118
|
-
"ChartContainer",
|
|
3119
|
-
"ChartEventMarkers",
|
|
3120
|
-
"FunnelSeries",
|
|
3121
|
-
"LineSeries",
|
|
3122
|
-
"TimeControls"
|
|
3123
|
-
],
|
|
3124
3130
|
"Data": [
|
|
3125
3131
|
"AutoMobileRenderer",
|
|
3126
3132
|
"CardMobileRenderer",
|