@texturehq/edges 1.9.0 → 1.9.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/components.manifest.json +12 -12
- package/dist/generated/tailwind-tokens-dark.css +12 -0
- package/dist/generated/tailwind-tokens-light.css +12 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -11
- package/dist/index.d.ts +26 -11
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{server-5Bc5-7Uc.d.cts → server-BwR7EOd8.d.cts} +7 -2
- package/dist/{server-5Bc5-7Uc.d.ts → server-BwR7EOd8.d.ts} +7 -2
- package/dist/server.cjs +2 -2
- 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 +2 -2
- package/dist/server.js.map +1 -1
- package/dist/styles/computed.css +1 -1
- package/dist/styles.css +134 -90
- package/dist/utilities.manifest.json +2 -2
- package/package.json +1 -1
- package/scripts/generate-edges-docs.js +2 -0
package/dist/index.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps a
|
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { HTMLAttributes, ReactNode, ComponentProps, CSSProperties, ComponentType, Component, ErrorInfo } from 'react';
|
|
5
|
-
import { F as FieldValue, B as BooleanFormat, a as FormattedValue, C as CurrentFormat, D as DateFormat, b as DistanceFormat, E as EnergyFormat, c as CurrencyFormat, N as NumberFormat, P as PhoneFormat, d as PowerFormat, e as FormatterFunction, R as ResistanceFormat, T as TemperatureUnitString, f as TemperatureUnit, g as TemperatureFormat, h as TextFormat, V as VoltageFormat, i as FieldFormat, j as BaseDataPoint, I as Icon, Y as YFormatType, k as TooltipData, l as IconName$2, m as ComponentFormatter, L as LayerSpec, n as CustomPinsSpec, G as GeoJsonLayerSpec, o as RasterLayerSpec, p as VectorLayerSpec } from './server-
|
|
6
|
-
export { A as ActionItem, r as ActionMenu, q as ActionMenuProps, t as AppShell, s as AppShellProps, v as Avatar, u as AvatarProps, x as Badge, w as BadgeProps, aE as BaseFormat, al as ChartContext, an as ChartMargin, J as CodeEditor, y as CodeEditorProps, z as CodeLanguage, H as CodeTheme, X as ColorSpec, aB as ComponentFormatOptions, aL as CurrentUnit, aO as CustomFormat, M as DateField, K as DateFieldProps, aH as DateFormatStyle, aN as DistanceUnit, aI as EnergyUnit, Q as FileUpload, O as FileUploadProps, S as Heading, a4 as InteractiveMap, Z as InteractiveMapProps, _ as LayerFeature, $ as LayerStyle, U as Loader, W as Logo, a5 as MAP_TYPES, a0 as MapPoint, a8 as Meter, a7 as MeterProps, aJ as PowerUnit, a1 as RenderType, aM as ResistanceUnit, aa as RichTextEditor, a9 as RichTextEditorProps, ac as SegmentOption, ad as SegmentedControl, ab as SegmentedControlProps, ag as SideNav, ae as SideNavItem, af as SideNavProps, a6 as StaticMap, a2 as StaticMapProps, ah as TextLink, aF as TextTransform, aG as TextTruncatePosition, ak as TooltipSeries, aj as TopNav, ai as TopNavProps, aK as VoltageUnit, as as YFormatSettings, a3 as ZoomStops, at as clearColorCache, au as createCategoryColorMap, ao as createXScale, ap as createYScale, aq as defaultMargin, aC as formatComponentValue, av as getContrastingTextColor, aw as getDefaultChartColor, ax as getDefaultColors, ay as getResolvedColor, az as getThemeCategoricalColors, ar as getYFormatSettings, aA as isLightColor, am as useChartContext, aD as useComponentFormatter } from './server-
|
|
5
|
+
import { F as FieldValue, B as BooleanFormat, a as FormattedValue, C as CurrentFormat, D as DateFormat, b as DistanceFormat, E as EnergyFormat, c as CurrencyFormat, N as NumberFormat, P as PhoneFormat, d as PowerFormat, e as FormatterFunction, R as ResistanceFormat, T as TemperatureUnitString, f as TemperatureUnit, g as TemperatureFormat, h as TextFormat, V as VoltageFormat, i as FieldFormat, j as BaseDataPoint, I as Icon, Y as YFormatType, k as TooltipData, l as IconName$2, m as ComponentFormatter, L as LayerSpec, n as CustomPinsSpec, G as GeoJsonLayerSpec, o as RasterLayerSpec, p as VectorLayerSpec } from './server-BwR7EOd8.cjs';
|
|
6
|
+
export { A as ActionItem, r as ActionMenu, q as ActionMenuProps, t as AppShell, s as AppShellProps, v as Avatar, u as AvatarProps, x as Badge, w as BadgeProps, aE as BaseFormat, al as ChartContext, an as ChartMargin, J as CodeEditor, y as CodeEditorProps, z as CodeLanguage, H as CodeTheme, X as ColorSpec, aB as ComponentFormatOptions, aL as CurrentUnit, aO as CustomFormat, M as DateField, K as DateFieldProps, aH as DateFormatStyle, aN as DistanceUnit, aI as EnergyUnit, Q as FileUpload, O as FileUploadProps, S as Heading, a4 as InteractiveMap, Z as InteractiveMapProps, _ as LayerFeature, $ as LayerStyle, U as Loader, W as Logo, a5 as MAP_TYPES, a0 as MapPoint, a8 as Meter, a7 as MeterProps, aJ as PowerUnit, a1 as RenderType, aM as ResistanceUnit, aa as RichTextEditor, a9 as RichTextEditorProps, ac as SegmentOption, ad as SegmentedControl, ab as SegmentedControlProps, ag as SideNav, ae as SideNavItem, af as SideNavProps, a6 as StaticMap, a2 as StaticMapProps, ah as TextLink, aF as TextTransform, aG as TextTruncatePosition, ak as TooltipSeries, aj as TopNav, ai as TopNavProps, aK as VoltageUnit, as as YFormatSettings, a3 as ZoomStops, at as clearColorCache, au as createCategoryColorMap, ao as createXScale, ap as createYScale, aq as defaultMargin, aC as formatComponentValue, av as getContrastingTextColor, aw as getDefaultChartColor, ax as getDefaultColors, ay as getResolvedColor, az as getThemeCategoricalColors, ar as getYFormatSettings, aA as isLightColor, am as useChartContext, aD as useComponentFormatter } from './server-BwR7EOd8.cjs';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
9
9
|
import '@phosphor-icons/react';
|
|
@@ -1124,11 +1124,11 @@ type BaseButtonProps = Omit<ButtonProps$1, "className">;
|
|
|
1124
1124
|
*
|
|
1125
1125
|
* Example usage:
|
|
1126
1126
|
* ```tsx
|
|
1127
|
-
* <Button variant="
|
|
1127
|
+
* <Button variant="brand" size="md" icon="Check">Save</Button>
|
|
1128
1128
|
* ```
|
|
1129
1129
|
*/
|
|
1130
1130
|
interface ButtonProps extends BaseButtonProps {
|
|
1131
|
-
variant?: "default" | "
|
|
1131
|
+
variant?: "default" | "brand" | "secondary" | "destructive" | "icon" | "link" | "unstyled" | "ghost" | "primary";
|
|
1132
1132
|
size?: Size;
|
|
1133
1133
|
badgeNumber?: number;
|
|
1134
1134
|
badgeVariant?: "primary" | "destructive";
|
|
@@ -1181,7 +1181,7 @@ declare function Calendar<T extends DateValue>({ errorMessage, ...props }: Calen
|
|
|
1181
1181
|
* <p>Main content goes here</p>
|
|
1182
1182
|
* </Card.Content>
|
|
1183
1183
|
* <Card.Footer>
|
|
1184
|
-
* <Button variant="
|
|
1184
|
+
* <Button variant="brand">Action</Button>
|
|
1185
1185
|
* </Card.Footer>
|
|
1186
1186
|
* </Card>
|
|
1187
1187
|
* ```
|
|
@@ -1249,6 +1249,11 @@ interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, "children"> {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
|
|
1251
1251
|
children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
|
|
1252
|
+
/**
|
|
1253
|
+
* Visual variant of the checkbox
|
|
1254
|
+
* @default "brand"
|
|
1255
|
+
*/
|
|
1256
|
+
variant?: "default" | "brand";
|
|
1252
1257
|
}
|
|
1253
1258
|
declare function CheckboxGroup(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1254
1259
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1261,7 +1266,7 @@ interface ChipProps {
|
|
|
1261
1266
|
/** Size variant of the chip */
|
|
1262
1267
|
size?: Size;
|
|
1263
1268
|
/** Visual variant of the chip */
|
|
1264
|
-
variant?: "default" | "
|
|
1269
|
+
variant?: "default" | "brand" | "secondary";
|
|
1265
1270
|
/** Whether the chip can be removed (shows X button) */
|
|
1266
1271
|
isRemovable?: boolean;
|
|
1267
1272
|
/** Whether the chip is disabled */
|
|
@@ -3157,6 +3162,11 @@ interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
|
3157
3162
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
3158
3163
|
/** Validation result object for functional errorMessage */
|
|
3159
3164
|
validationResult?: ValidationResult;
|
|
3165
|
+
/**
|
|
3166
|
+
* Visual variant of the radio buttons
|
|
3167
|
+
* @default "brand"
|
|
3168
|
+
*/
|
|
3169
|
+
variant?: "default" | "brand";
|
|
3160
3170
|
}
|
|
3161
3171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
3162
3172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3448,6 +3458,11 @@ declare function StatList({ items, layout, dense, valueAlign, showDividers, skel
|
|
|
3448
3458
|
|
|
3449
3459
|
interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
3450
3460
|
children: React__default.ReactNode;
|
|
3461
|
+
/**
|
|
3462
|
+
* Visual variant of the switch
|
|
3463
|
+
* @default "default"
|
|
3464
|
+
*/
|
|
3465
|
+
variant?: "default" | "brand";
|
|
3451
3466
|
}
|
|
3452
3467
|
/**
|
|
3453
3468
|
* Switch
|
|
@@ -3455,9 +3470,9 @@ interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
|
3455
3470
|
* Toggle switch component for binary on/off states.
|
|
3456
3471
|
* Provides an accessible alternative to checkboxes for settings and preferences.
|
|
3457
3472
|
*/
|
|
3458
|
-
declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3473
|
+
declare function Switch({ children, variant, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3459
3474
|
|
|
3460
|
-
type TabVariant = "default" | "
|
|
3475
|
+
type TabVariant = "default" | "brand";
|
|
3461
3476
|
type TabProps = TabProps$1 & {
|
|
3462
3477
|
isSelected?: boolean;
|
|
3463
3478
|
id?: string;
|
|
@@ -3472,7 +3487,7 @@ type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
|
3472
3487
|
* Tabs
|
|
3473
3488
|
*
|
|
3474
3489
|
* Tabbed interface with styled tabs and panels.
|
|
3475
|
-
* @param variant - "default" for
|
|
3490
|
+
* @param variant - "default" for action-default styling, "brand" for action-brand styling
|
|
3476
3491
|
*/
|
|
3477
3492
|
declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
3478
3493
|
/**
|
|
@@ -3532,7 +3547,7 @@ interface TextAreaWithChipsProps extends Omit<React__default.TextareaHTMLAttribu
|
|
|
3532
3547
|
onTriggerDetected?: (triggerInfo: TriggerInfo) => void;
|
|
3533
3548
|
onTriggerDismissed?: () => void;
|
|
3534
3549
|
renderChip?: (chip: ChipData, onRemove: () => void) => React__default.ReactNode;
|
|
3535
|
-
chipVariant?: "default" | "
|
|
3550
|
+
chipVariant?: "default" | "brand" | "secondary";
|
|
3536
3551
|
chipSize?: Size;
|
|
3537
3552
|
}
|
|
3538
3553
|
/**
|
|
@@ -3590,7 +3605,7 @@ declare function TimeField({ label, description, errorMessage, size, tooltip, is
|
|
|
3590
3605
|
|
|
3591
3606
|
type IconName = ComponentProps<typeof Icon>["name"];
|
|
3592
3607
|
interface ToggleButtonProps {
|
|
3593
|
-
variant?: "default" | "
|
|
3608
|
+
variant?: "default" | "brand";
|
|
3594
3609
|
size?: Size;
|
|
3595
3610
|
className?: string;
|
|
3596
3611
|
children: React__default.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps a
|
|
|
2
2
|
export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { HTMLAttributes, ReactNode, ComponentProps, CSSProperties, ComponentType, Component, ErrorInfo } from 'react';
|
|
5
|
-
import { F as FieldValue, B as BooleanFormat, a as FormattedValue, C as CurrentFormat, D as DateFormat, b as DistanceFormat, E as EnergyFormat, c as CurrencyFormat, N as NumberFormat, P as PhoneFormat, d as PowerFormat, e as FormatterFunction, R as ResistanceFormat, T as TemperatureUnitString, f as TemperatureUnit, g as TemperatureFormat, h as TextFormat, V as VoltageFormat, i as FieldFormat, j as BaseDataPoint, I as Icon, Y as YFormatType, k as TooltipData, l as IconName$2, m as ComponentFormatter, L as LayerSpec, n as CustomPinsSpec, G as GeoJsonLayerSpec, o as RasterLayerSpec, p as VectorLayerSpec } from './server-
|
|
6
|
-
export { A as ActionItem, r as ActionMenu, q as ActionMenuProps, t as AppShell, s as AppShellProps, v as Avatar, u as AvatarProps, x as Badge, w as BadgeProps, aE as BaseFormat, al as ChartContext, an as ChartMargin, J as CodeEditor, y as CodeEditorProps, z as CodeLanguage, H as CodeTheme, X as ColorSpec, aB as ComponentFormatOptions, aL as CurrentUnit, aO as CustomFormat, M as DateField, K as DateFieldProps, aH as DateFormatStyle, aN as DistanceUnit, aI as EnergyUnit, Q as FileUpload, O as FileUploadProps, S as Heading, a4 as InteractiveMap, Z as InteractiveMapProps, _ as LayerFeature, $ as LayerStyle, U as Loader, W as Logo, a5 as MAP_TYPES, a0 as MapPoint, a8 as Meter, a7 as MeterProps, aJ as PowerUnit, a1 as RenderType, aM as ResistanceUnit, aa as RichTextEditor, a9 as RichTextEditorProps, ac as SegmentOption, ad as SegmentedControl, ab as SegmentedControlProps, ag as SideNav, ae as SideNavItem, af as SideNavProps, a6 as StaticMap, a2 as StaticMapProps, ah as TextLink, aF as TextTransform, aG as TextTruncatePosition, ak as TooltipSeries, aj as TopNav, ai as TopNavProps, aK as VoltageUnit, as as YFormatSettings, a3 as ZoomStops, at as clearColorCache, au as createCategoryColorMap, ao as createXScale, ap as createYScale, aq as defaultMargin, aC as formatComponentValue, av as getContrastingTextColor, aw as getDefaultChartColor, ax as getDefaultColors, ay as getResolvedColor, az as getThemeCategoricalColors, ar as getYFormatSettings, aA as isLightColor, am as useChartContext, aD as useComponentFormatter } from './server-
|
|
5
|
+
import { F as FieldValue, B as BooleanFormat, a as FormattedValue, C as CurrentFormat, D as DateFormat, b as DistanceFormat, E as EnergyFormat, c as CurrencyFormat, N as NumberFormat, P as PhoneFormat, d as PowerFormat, e as FormatterFunction, R as ResistanceFormat, T as TemperatureUnitString, f as TemperatureUnit, g as TemperatureFormat, h as TextFormat, V as VoltageFormat, i as FieldFormat, j as BaseDataPoint, I as Icon, Y as YFormatType, k as TooltipData, l as IconName$2, m as ComponentFormatter, L as LayerSpec, n as CustomPinsSpec, G as GeoJsonLayerSpec, o as RasterLayerSpec, p as VectorLayerSpec } from './server-BwR7EOd8.js';
|
|
6
|
+
export { A as ActionItem, r as ActionMenu, q as ActionMenuProps, t as AppShell, s as AppShellProps, v as Avatar, u as AvatarProps, x as Badge, w as BadgeProps, aE as BaseFormat, al as ChartContext, an as ChartMargin, J as CodeEditor, y as CodeEditorProps, z as CodeLanguage, H as CodeTheme, X as ColorSpec, aB as ComponentFormatOptions, aL as CurrentUnit, aO as CustomFormat, M as DateField, K as DateFieldProps, aH as DateFormatStyle, aN as DistanceUnit, aI as EnergyUnit, Q as FileUpload, O as FileUploadProps, S as Heading, a4 as InteractiveMap, Z as InteractiveMapProps, _ as LayerFeature, $ as LayerStyle, U as Loader, W as Logo, a5 as MAP_TYPES, a0 as MapPoint, a8 as Meter, a7 as MeterProps, aJ as PowerUnit, a1 as RenderType, aM as ResistanceUnit, aa as RichTextEditor, a9 as RichTextEditorProps, ac as SegmentOption, ad as SegmentedControl, ab as SegmentedControlProps, ag as SideNav, ae as SideNavItem, af as SideNavProps, a6 as StaticMap, a2 as StaticMapProps, ah as TextLink, aF as TextTransform, aG as TextTruncatePosition, ak as TooltipSeries, aj as TopNav, ai as TopNavProps, aK as VoltageUnit, as as YFormatSettings, a3 as ZoomStops, at as clearColorCache, au as createCategoryColorMap, ao as createXScale, ap as createYScale, aq as defaultMargin, aC as formatComponentValue, av as getContrastingTextColor, aw as getDefaultChartColor, ax as getDefaultColors, ay as getResolvedColor, az as getThemeCategoricalColors, ar as getYFormatSettings, aA as isLightColor, am as useChartContext, aD as useComponentFormatter } from './server-BwR7EOd8.js';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
9
9
|
import '@phosphor-icons/react';
|
|
@@ -1124,11 +1124,11 @@ type BaseButtonProps = Omit<ButtonProps$1, "className">;
|
|
|
1124
1124
|
*
|
|
1125
1125
|
* Example usage:
|
|
1126
1126
|
* ```tsx
|
|
1127
|
-
* <Button variant="
|
|
1127
|
+
* <Button variant="brand" size="md" icon="Check">Save</Button>
|
|
1128
1128
|
* ```
|
|
1129
1129
|
*/
|
|
1130
1130
|
interface ButtonProps extends BaseButtonProps {
|
|
1131
|
-
variant?: "default" | "
|
|
1131
|
+
variant?: "default" | "brand" | "secondary" | "destructive" | "icon" | "link" | "unstyled" | "ghost" | "primary";
|
|
1132
1132
|
size?: Size;
|
|
1133
1133
|
badgeNumber?: number;
|
|
1134
1134
|
badgeVariant?: "primary" | "destructive";
|
|
@@ -1181,7 +1181,7 @@ declare function Calendar<T extends DateValue>({ errorMessage, ...props }: Calen
|
|
|
1181
1181
|
* <p>Main content goes here</p>
|
|
1182
1182
|
* </Card.Content>
|
|
1183
1183
|
* <Card.Footer>
|
|
1184
|
-
* <Button variant="
|
|
1184
|
+
* <Button variant="brand">Action</Button>
|
|
1185
1185
|
* </Card.Footer>
|
|
1186
1186
|
* </Card>
|
|
1187
1187
|
* ```
|
|
@@ -1249,6 +1249,11 @@ interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, "children"> {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
|
|
1251
1251
|
children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
|
|
1252
|
+
/**
|
|
1253
|
+
* Visual variant of the checkbox
|
|
1254
|
+
* @default "brand"
|
|
1255
|
+
*/
|
|
1256
|
+
variant?: "default" | "brand";
|
|
1252
1257
|
}
|
|
1253
1258
|
declare function CheckboxGroup(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1254
1259
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1261,7 +1266,7 @@ interface ChipProps {
|
|
|
1261
1266
|
/** Size variant of the chip */
|
|
1262
1267
|
size?: Size;
|
|
1263
1268
|
/** Visual variant of the chip */
|
|
1264
|
-
variant?: "default" | "
|
|
1269
|
+
variant?: "default" | "brand" | "secondary";
|
|
1265
1270
|
/** Whether the chip can be removed (shows X button) */
|
|
1266
1271
|
isRemovable?: boolean;
|
|
1267
1272
|
/** Whether the chip is disabled */
|
|
@@ -3157,6 +3162,11 @@ interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
|
3157
3162
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
3158
3163
|
/** Validation result object for functional errorMessage */
|
|
3159
3164
|
validationResult?: ValidationResult;
|
|
3165
|
+
/**
|
|
3166
|
+
* Visual variant of the radio buttons
|
|
3167
|
+
* @default "brand"
|
|
3168
|
+
*/
|
|
3169
|
+
variant?: "default" | "brand";
|
|
3160
3170
|
}
|
|
3161
3171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
3162
3172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3448,6 +3458,11 @@ declare function StatList({ items, layout, dense, valueAlign, showDividers, skel
|
|
|
3448
3458
|
|
|
3449
3459
|
interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
3450
3460
|
children: React__default.ReactNode;
|
|
3461
|
+
/**
|
|
3462
|
+
* Visual variant of the switch
|
|
3463
|
+
* @default "default"
|
|
3464
|
+
*/
|
|
3465
|
+
variant?: "default" | "brand";
|
|
3451
3466
|
}
|
|
3452
3467
|
/**
|
|
3453
3468
|
* Switch
|
|
@@ -3455,9 +3470,9 @@ interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
|
3455
3470
|
* Toggle switch component for binary on/off states.
|
|
3456
3471
|
* Provides an accessible alternative to checkboxes for settings and preferences.
|
|
3457
3472
|
*/
|
|
3458
|
-
declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3473
|
+
declare function Switch({ children, variant, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3459
3474
|
|
|
3460
|
-
type TabVariant = "default" | "
|
|
3475
|
+
type TabVariant = "default" | "brand";
|
|
3461
3476
|
type TabProps = TabProps$1 & {
|
|
3462
3477
|
isSelected?: boolean;
|
|
3463
3478
|
id?: string;
|
|
@@ -3472,7 +3487,7 @@ type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
|
3472
3487
|
* Tabs
|
|
3473
3488
|
*
|
|
3474
3489
|
* Tabbed interface with styled tabs and panels.
|
|
3475
|
-
* @param variant - "default" for
|
|
3490
|
+
* @param variant - "default" for action-default styling, "brand" for action-brand styling
|
|
3476
3491
|
*/
|
|
3477
3492
|
declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
3478
3493
|
/**
|
|
@@ -3532,7 +3547,7 @@ interface TextAreaWithChipsProps extends Omit<React__default.TextareaHTMLAttribu
|
|
|
3532
3547
|
onTriggerDetected?: (triggerInfo: TriggerInfo) => void;
|
|
3533
3548
|
onTriggerDismissed?: () => void;
|
|
3534
3549
|
renderChip?: (chip: ChipData, onRemove: () => void) => React__default.ReactNode;
|
|
3535
|
-
chipVariant?: "default" | "
|
|
3550
|
+
chipVariant?: "default" | "brand" | "secondary";
|
|
3536
3551
|
chipSize?: Size;
|
|
3537
3552
|
}
|
|
3538
3553
|
/**
|
|
@@ -3590,7 +3605,7 @@ declare function TimeField({ label, description, errorMessage, size, tooltip, is
|
|
|
3590
3605
|
|
|
3591
3606
|
type IconName = ComponentProps<typeof Icon>["name"];
|
|
3592
3607
|
interface ToggleButtonProps {
|
|
3593
|
-
variant?: "default" | "
|
|
3608
|
+
variant?: "default" | "brand";
|
|
3594
3609
|
size?: Size;
|
|
3595
3610
|
className?: string;
|
|
3596
3611
|
children: React__default.ReactNode;
|