@texturehq/edges 1.8.2 → 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 +26 -12
- package/dist/generated/tailwind-tokens-dark.css +12 -0
- package/dist/generated/tailwind-tokens-light.css +12 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -11
- package/dist/index.d.ts +142 -11
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/{server-7ZzifHri.d.cts → server-BwR7EOd8.d.cts} +8 -72
- package/dist/{server-7ZzifHri.d.ts → server-BwR7EOd8.d.ts} +8 -72
- package/dist/server.cjs +13 -13
- 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 +13 -13
- package/dist/server.js.map +1 -1
- package/dist/styles/computed.css +1 -1
- package/dist/styles.css +178 -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,
|
|
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";
|
|
@@ -1162,6 +1162,75 @@ interface CalendarProps<T extends DateValue> extends Omit<CalendarProps$1<T>, "v
|
|
|
1162
1162
|
}
|
|
1163
1163
|
declare function Calendar<T extends DateValue>({ errorMessage, ...props }: CalendarProps<T>): react_jsx_runtime.JSX.Element;
|
|
1164
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* Card - Enterprise surface container component
|
|
1167
|
+
*
|
|
1168
|
+
* A flexible, composable card component following enterprise design system best practices.
|
|
1169
|
+
* Supports modular content sections with consistent styling and accessibility.
|
|
1170
|
+
*
|
|
1171
|
+
* Usage:
|
|
1172
|
+
* ```tsx
|
|
1173
|
+
* <Card variant="outlined" size="md">
|
|
1174
|
+
* <Card.Header
|
|
1175
|
+
* title="Card Title"
|
|
1176
|
+
* subtitle="Optional subtitle"
|
|
1177
|
+
* actions={<Button variant="ghost" icon="MoreHorizontal" />}
|
|
1178
|
+
* />
|
|
1179
|
+
* <Card.Media src="image.jpg" alt="Description" />
|
|
1180
|
+
* <Card.Content>
|
|
1181
|
+
* <p>Main content goes here</p>
|
|
1182
|
+
* </Card.Content>
|
|
1183
|
+
* <Card.Footer>
|
|
1184
|
+
* <Button variant="brand">Action</Button>
|
|
1185
|
+
* </Card.Footer>
|
|
1186
|
+
* </Card>
|
|
1187
|
+
* ```
|
|
1188
|
+
*/
|
|
1189
|
+
type CardVariant = "outlined" | "elevated" | "filled" | "ghost";
|
|
1190
|
+
interface CardProps {
|
|
1191
|
+
variant?: CardVariant;
|
|
1192
|
+
className?: string;
|
|
1193
|
+
children?: React__default.ReactNode;
|
|
1194
|
+
isLoading?: boolean;
|
|
1195
|
+
}
|
|
1196
|
+
interface CardHeaderProps {
|
|
1197
|
+
title?: React__default.ReactNode;
|
|
1198
|
+
subtitle?: React__default.ReactNode;
|
|
1199
|
+
actions?: React__default.ReactNode;
|
|
1200
|
+
className?: string;
|
|
1201
|
+
isLoading?: boolean;
|
|
1202
|
+
}
|
|
1203
|
+
interface CardMediaProps {
|
|
1204
|
+
src?: string;
|
|
1205
|
+
alt?: string;
|
|
1206
|
+
aspectRatio?: "square" | "video" | "wide" | "auto";
|
|
1207
|
+
className?: string;
|
|
1208
|
+
children?: React__default.ReactNode;
|
|
1209
|
+
isLoading?: boolean;
|
|
1210
|
+
}
|
|
1211
|
+
interface CardContentProps {
|
|
1212
|
+
className?: string;
|
|
1213
|
+
children?: React__default.ReactNode;
|
|
1214
|
+
isLoading?: boolean;
|
|
1215
|
+
}
|
|
1216
|
+
interface CardFooterProps {
|
|
1217
|
+
className?: string;
|
|
1218
|
+
children?: React__default.ReactNode;
|
|
1219
|
+
align?: "start" | "end" | "center" | "between";
|
|
1220
|
+
isLoading?: boolean;
|
|
1221
|
+
}
|
|
1222
|
+
declare function Card({ variant, className, children, isLoading }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1223
|
+
declare namespace Card {
|
|
1224
|
+
var Header: typeof CardHeader;
|
|
1225
|
+
var Media: typeof CardMedia;
|
|
1226
|
+
var Content: typeof CardContent;
|
|
1227
|
+
var Footer: typeof CardFooter;
|
|
1228
|
+
}
|
|
1229
|
+
declare function CardHeader({ title, subtitle, actions, className, isLoading, }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
1230
|
+
declare function CardMedia({ src, alt, aspectRatio, className, children, isLoading, }: CardMediaProps): react_jsx_runtime.JSX.Element | null;
|
|
1231
|
+
declare function CardContent({ className, children, isLoading }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1232
|
+
declare function CardFooter({ className, children, align, isLoading, }: CardFooterProps): react_jsx_runtime.JSX.Element | null;
|
|
1233
|
+
|
|
1165
1234
|
/**
|
|
1166
1235
|
* CheckboxGroup
|
|
1167
1236
|
*
|
|
@@ -1180,6 +1249,11 @@ interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, "children"> {
|
|
|
1180
1249
|
*/
|
|
1181
1250
|
interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
|
|
1182
1251
|
children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
|
|
1252
|
+
/**
|
|
1253
|
+
* Visual variant of the checkbox
|
|
1254
|
+
* @default "brand"
|
|
1255
|
+
*/
|
|
1256
|
+
variant?: "default" | "brand";
|
|
1183
1257
|
}
|
|
1184
1258
|
declare function CheckboxGroup(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1185
1259
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1192,7 +1266,7 @@ interface ChipProps {
|
|
|
1192
1266
|
/** Size variant of the chip */
|
|
1193
1267
|
size?: Size;
|
|
1194
1268
|
/** Visual variant of the chip */
|
|
1195
|
-
variant?: "default" | "
|
|
1269
|
+
variant?: "default" | "brand" | "secondary";
|
|
1196
1270
|
/** Whether the chip can be removed (shows X button) */
|
|
1197
1271
|
isRemovable?: boolean;
|
|
1198
1272
|
/** Whether the chip is disabled */
|
|
@@ -2038,6 +2112,53 @@ declare namespace Drawer {
|
|
|
2038
2112
|
var displayName: string;
|
|
2039
2113
|
}
|
|
2040
2114
|
|
|
2115
|
+
type EmptyStateSize = "sm" | "md" | "lg";
|
|
2116
|
+
type EmptyStateAlignment = "center" | "start";
|
|
2117
|
+
interface EmptyStateAction {
|
|
2118
|
+
/** Label for the action button/link */
|
|
2119
|
+
label: string;
|
|
2120
|
+
/** Click handler for the action */
|
|
2121
|
+
onPress?: () => void;
|
|
2122
|
+
/** Optional href for link-style actions */
|
|
2123
|
+
href?: string;
|
|
2124
|
+
/** Whether the action is loading */
|
|
2125
|
+
isLoading?: boolean;
|
|
2126
|
+
/** Whether the action is disabled */
|
|
2127
|
+
isDisabled?: boolean;
|
|
2128
|
+
}
|
|
2129
|
+
interface EmptyStateProps {
|
|
2130
|
+
/** Optional icon or illustration shown at the top of the empty state. */
|
|
2131
|
+
icon?: ReactNode;
|
|
2132
|
+
/** Primary title describing the state. */
|
|
2133
|
+
title: ReactNode;
|
|
2134
|
+
/** Optional description providing more context. */
|
|
2135
|
+
description?: ReactNode;
|
|
2136
|
+
/** Primary action (rendered as a default button). */
|
|
2137
|
+
primaryAction?: EmptyStateAction;
|
|
2138
|
+
/** Secondary action (rendered as a ghost button or text link). */
|
|
2139
|
+
secondaryAction?: EmptyStateAction;
|
|
2140
|
+
/** Optional custom action area. Use this for complete control over actions. Overrides primaryAction and secondaryAction. */
|
|
2141
|
+
actions?: ReactNode;
|
|
2142
|
+
/** Controls the component padding and typography. */
|
|
2143
|
+
size?: EmptyStateSize;
|
|
2144
|
+
/** Aligns the content horizontally. */
|
|
2145
|
+
alignment?: EmptyStateAlignment;
|
|
2146
|
+
/** When true the component expands to fill the available height and vertically centers content. */
|
|
2147
|
+
fullHeight?: boolean;
|
|
2148
|
+
/** Additional className to merge with default styles. */
|
|
2149
|
+
className?: string;
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* EmptyState
|
|
2153
|
+
*
|
|
2154
|
+
* Minimal, composable empty state surface for communicating lack of data.
|
|
2155
|
+
* Supports optional icon, description and opinionated action patterns.
|
|
2156
|
+
*
|
|
2157
|
+
* Use `primaryAction` and `secondaryAction` for consistent styling, or use `actions`
|
|
2158
|
+
* for complete control over the action area.
|
|
2159
|
+
*/
|
|
2160
|
+
declare function EmptyState({ icon, title, description, primaryAction, secondaryAction, actions, size, alignment, fullHeight, className, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
2161
|
+
|
|
2041
2162
|
interface Props {
|
|
2042
2163
|
children: ReactNode;
|
|
2043
2164
|
fallback?: ReactNode;
|
|
@@ -3041,6 +3162,11 @@ interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
|
3041
3162
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
3042
3163
|
/** Validation result object for functional errorMessage */
|
|
3043
3164
|
validationResult?: ValidationResult;
|
|
3165
|
+
/**
|
|
3166
|
+
* Visual variant of the radio buttons
|
|
3167
|
+
* @default "brand"
|
|
3168
|
+
*/
|
|
3169
|
+
variant?: "default" | "brand";
|
|
3044
3170
|
}
|
|
3045
3171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
3046
3172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3332,6 +3458,11 @@ declare function StatList({ items, layout, dense, valueAlign, showDividers, skel
|
|
|
3332
3458
|
|
|
3333
3459
|
interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
3334
3460
|
children: React__default.ReactNode;
|
|
3461
|
+
/**
|
|
3462
|
+
* Visual variant of the switch
|
|
3463
|
+
* @default "default"
|
|
3464
|
+
*/
|
|
3465
|
+
variant?: "default" | "brand";
|
|
3335
3466
|
}
|
|
3336
3467
|
/**
|
|
3337
3468
|
* Switch
|
|
@@ -3339,9 +3470,9 @@ interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
|
3339
3470
|
* Toggle switch component for binary on/off states.
|
|
3340
3471
|
* Provides an accessible alternative to checkboxes for settings and preferences.
|
|
3341
3472
|
*/
|
|
3342
|
-
declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3473
|
+
declare function Switch({ children, variant, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3343
3474
|
|
|
3344
|
-
type TabVariant = "default" | "
|
|
3475
|
+
type TabVariant = "default" | "brand";
|
|
3345
3476
|
type TabProps = TabProps$1 & {
|
|
3346
3477
|
isSelected?: boolean;
|
|
3347
3478
|
id?: string;
|
|
@@ -3356,7 +3487,7 @@ type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
|
3356
3487
|
* Tabs
|
|
3357
3488
|
*
|
|
3358
3489
|
* Tabbed interface with styled tabs and panels.
|
|
3359
|
-
* @param variant - "default" for
|
|
3490
|
+
* @param variant - "default" for action-default styling, "brand" for action-brand styling
|
|
3360
3491
|
*/
|
|
3361
3492
|
declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
3362
3493
|
/**
|
|
@@ -3416,7 +3547,7 @@ interface TextAreaWithChipsProps extends Omit<React__default.TextareaHTMLAttribu
|
|
|
3416
3547
|
onTriggerDetected?: (triggerInfo: TriggerInfo) => void;
|
|
3417
3548
|
onTriggerDismissed?: () => void;
|
|
3418
3549
|
renderChip?: (chip: ChipData, onRemove: () => void) => React__default.ReactNode;
|
|
3419
|
-
chipVariant?: "default" | "
|
|
3550
|
+
chipVariant?: "default" | "brand" | "secondary";
|
|
3420
3551
|
chipSize?: Size;
|
|
3421
3552
|
}
|
|
3422
3553
|
/**
|
|
@@ -3474,7 +3605,7 @@ declare function TimeField({ label, description, errorMessage, size, tooltip, is
|
|
|
3474
3605
|
|
|
3475
3606
|
type IconName = ComponentProps<typeof Icon>["name"];
|
|
3476
3607
|
interface ToggleButtonProps {
|
|
3477
|
-
variant?: "default" | "
|
|
3608
|
+
variant?: "default" | "brand";
|
|
3478
3609
|
size?: Size;
|
|
3479
3610
|
className?: string;
|
|
3480
3611
|
children: React__default.ReactNode;
|
|
@@ -3586,4 +3717,4 @@ interface ColorModeProviderProps {
|
|
|
3586
3717
|
}
|
|
3587
3718
|
declare const ColorModeProvider: React.FC<ColorModeProviderProps>;
|
|
3588
3719
|
|
|
3589
|
-
export { type Action, ActionCell, type ActionCellProps, ActivityFeed, ActivityFeedGroup, type ActivityFeedGroupProps, type ActivityFeedProps, type ActivityFeedSize, type ActivityFeedVariant, ActivityItem, type ActivityItemProps, type ActivityItemSurface, type ActivityItemTone, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, Autocomplete, BREAKPOINTS, BarSeries, BaseDataPoint, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, BooleanFormat, Breadcrumb, type BreadcrumbItem, Breadcrumbs, type Breakpoint, type BreakpointState, Button, Calendar, CardMobileRenderer, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, type ChartExportMetadata, ChartTooltip, Checkbox, CheckboxGroup, Chip, ClearButton, Collapse, CollapseContent, type CollapseContentProps, type CollapseDensity, CollapseHeader, type CollapseHeaderProps, CollapseItem, type CollapseItemProps, type CollapseProps, type CollapseVariant, ColorModeProvider, type Column, ComponentFormatter, Confirm, type ConfirmProps, CopyToClipboard, CurrencyFormat, CurrentFormat, CustomPinsSpec, DataControls, type Filter as DataControlsFilter, type DataControlsProps, type SortOption as DataControlsSortOption, DataTable, type DataTableProps, DateCell, type DateCellProps, DateFormat, DateRangePicker, Description, type DescriptionProps, Dialog, type DialogAction, type DialogFooterConfig, DialogHeader, type DialogHeaderConfig, type DialogHeaderProps, type DialogProps, DistanceFormat, Drawer, type DrawerProps, EnergyFormat, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, FieldFormat, FieldGroup, type FieldGroupProps, FieldValue, FilterChips, type FilterChipsProps, Form, FormatRegistry, FormattedValue, FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageHeaderProps, PageLayout, type PageLayoutProps, PhoneFormat, PlaceSearch, Popover, PowerFormat, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, ResistanceFormat, type ResponsiveValue, ResultsCount, type ResultsCountProps, SKELETON_SIZES, SearchControl, type SearchControlProps, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, SortControl, type SortControlProps, type SortDirection, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, TemperatureFormat, TemperatureUnit, TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, TextFormat, TimeField, ToggleButton, Tooltip, TooltipData, Tray, type TrayProps, type TrendPoint, type UseBreakpointReturn, VectorLayerSpec, VoltageFormat, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useColorMode, useDebounce, useInputFocus, useLocalStorage, useMediaQuery, useNotice, yardsToMeters };
|
|
3720
|
+
export { type Action, ActionCell, type ActionCellProps, ActivityFeed, ActivityFeedGroup, type ActivityFeedGroupProps, type ActivityFeedProps, type ActivityFeedSize, type ActivityFeedVariant, ActivityItem, type ActivityItemProps, type ActivityItemSurface, type ActivityItemTone, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, Autocomplete, BREAKPOINTS, BarSeries, BaseDataPoint, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, BooleanFormat, Breadcrumb, type BreadcrumbItem, Breadcrumbs, type Breakpoint, type BreakpointState, Button, Calendar, Card, CardMobileRenderer, type CardProps, type CardVariant, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, type ChartExportMetadata, ChartTooltip, Checkbox, CheckboxGroup, Chip, ClearButton, Collapse, CollapseContent, type CollapseContentProps, type CollapseDensity, CollapseHeader, type CollapseHeaderProps, CollapseItem, type CollapseItemProps, type CollapseProps, type CollapseVariant, ColorModeProvider, type Column, ComponentFormatter, Confirm, type ConfirmProps, CopyToClipboard, CurrencyFormat, CurrentFormat, CustomPinsSpec, DataControls, type Filter as DataControlsFilter, type DataControlsProps, type SortOption as DataControlsSortOption, DataTable, type DataTableProps, DateCell, type DateCellProps, DateFormat, DateRangePicker, Description, type DescriptionProps, Dialog, type DialogAction, type DialogFooterConfig, DialogHeader, type DialogHeaderConfig, type DialogHeaderProps, type DialogProps, DistanceFormat, Drawer, type DrawerProps, EmptyState, type EmptyStateAction, type EmptyStateAlignment, type EmptyStateProps, type EmptyStateSize, EnergyFormat, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, FieldFormat, FieldGroup, type FieldGroupProps, FieldValue, FilterChips, type FilterChipsProps, Form, FormatRegistry, FormattedValue, FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageHeaderProps, PageLayout, type PageLayoutProps, PhoneFormat, PlaceSearch, Popover, PowerFormat, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, ResistanceFormat, type ResponsiveValue, ResultsCount, type ResultsCountProps, SKELETON_SIZES, SearchControl, type SearchControlProps, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, SortControl, type SortControlProps, type SortDirection, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, TemperatureFormat, TemperatureUnit, TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, TextFormat, TimeField, ToggleButton, Tooltip, TooltipData, Tray, type TrayProps, type TrendPoint, type UseBreakpointReturn, VectorLayerSpec, VoltageFormat, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useColorMode, useDebounce, useInputFocus, useLocalStorage, useMediaQuery, useNotice, yardsToMeters };
|
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,
|
|
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";
|
|
@@ -1162,6 +1162,75 @@ interface CalendarProps<T extends DateValue> extends Omit<CalendarProps$1<T>, "v
|
|
|
1162
1162
|
}
|
|
1163
1163
|
declare function Calendar<T extends DateValue>({ errorMessage, ...props }: CalendarProps<T>): react_jsx_runtime.JSX.Element;
|
|
1164
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* Card - Enterprise surface container component
|
|
1167
|
+
*
|
|
1168
|
+
* A flexible, composable card component following enterprise design system best practices.
|
|
1169
|
+
* Supports modular content sections with consistent styling and accessibility.
|
|
1170
|
+
*
|
|
1171
|
+
* Usage:
|
|
1172
|
+
* ```tsx
|
|
1173
|
+
* <Card variant="outlined" size="md">
|
|
1174
|
+
* <Card.Header
|
|
1175
|
+
* title="Card Title"
|
|
1176
|
+
* subtitle="Optional subtitle"
|
|
1177
|
+
* actions={<Button variant="ghost" icon="MoreHorizontal" />}
|
|
1178
|
+
* />
|
|
1179
|
+
* <Card.Media src="image.jpg" alt="Description" />
|
|
1180
|
+
* <Card.Content>
|
|
1181
|
+
* <p>Main content goes here</p>
|
|
1182
|
+
* </Card.Content>
|
|
1183
|
+
* <Card.Footer>
|
|
1184
|
+
* <Button variant="brand">Action</Button>
|
|
1185
|
+
* </Card.Footer>
|
|
1186
|
+
* </Card>
|
|
1187
|
+
* ```
|
|
1188
|
+
*/
|
|
1189
|
+
type CardVariant = "outlined" | "elevated" | "filled" | "ghost";
|
|
1190
|
+
interface CardProps {
|
|
1191
|
+
variant?: CardVariant;
|
|
1192
|
+
className?: string;
|
|
1193
|
+
children?: React__default.ReactNode;
|
|
1194
|
+
isLoading?: boolean;
|
|
1195
|
+
}
|
|
1196
|
+
interface CardHeaderProps {
|
|
1197
|
+
title?: React__default.ReactNode;
|
|
1198
|
+
subtitle?: React__default.ReactNode;
|
|
1199
|
+
actions?: React__default.ReactNode;
|
|
1200
|
+
className?: string;
|
|
1201
|
+
isLoading?: boolean;
|
|
1202
|
+
}
|
|
1203
|
+
interface CardMediaProps {
|
|
1204
|
+
src?: string;
|
|
1205
|
+
alt?: string;
|
|
1206
|
+
aspectRatio?: "square" | "video" | "wide" | "auto";
|
|
1207
|
+
className?: string;
|
|
1208
|
+
children?: React__default.ReactNode;
|
|
1209
|
+
isLoading?: boolean;
|
|
1210
|
+
}
|
|
1211
|
+
interface CardContentProps {
|
|
1212
|
+
className?: string;
|
|
1213
|
+
children?: React__default.ReactNode;
|
|
1214
|
+
isLoading?: boolean;
|
|
1215
|
+
}
|
|
1216
|
+
interface CardFooterProps {
|
|
1217
|
+
className?: string;
|
|
1218
|
+
children?: React__default.ReactNode;
|
|
1219
|
+
align?: "start" | "end" | "center" | "between";
|
|
1220
|
+
isLoading?: boolean;
|
|
1221
|
+
}
|
|
1222
|
+
declare function Card({ variant, className, children, isLoading }: CardProps): react_jsx_runtime.JSX.Element;
|
|
1223
|
+
declare namespace Card {
|
|
1224
|
+
var Header: typeof CardHeader;
|
|
1225
|
+
var Media: typeof CardMedia;
|
|
1226
|
+
var Content: typeof CardContent;
|
|
1227
|
+
var Footer: typeof CardFooter;
|
|
1228
|
+
}
|
|
1229
|
+
declare function CardHeader({ title, subtitle, actions, className, isLoading, }: CardHeaderProps): react_jsx_runtime.JSX.Element | null;
|
|
1230
|
+
declare function CardMedia({ src, alt, aspectRatio, className, children, isLoading, }: CardMediaProps): react_jsx_runtime.JSX.Element | null;
|
|
1231
|
+
declare function CardContent({ className, children, isLoading }: CardContentProps): react_jsx_runtime.JSX.Element | null;
|
|
1232
|
+
declare function CardFooter({ className, children, align, isLoading, }: CardFooterProps): react_jsx_runtime.JSX.Element | null;
|
|
1233
|
+
|
|
1165
1234
|
/**
|
|
1166
1235
|
* CheckboxGroup
|
|
1167
1236
|
*
|
|
@@ -1180,6 +1249,11 @@ interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, "children"> {
|
|
|
1180
1249
|
*/
|
|
1181
1250
|
interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
|
|
1182
1251
|
children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
|
|
1252
|
+
/**
|
|
1253
|
+
* Visual variant of the checkbox
|
|
1254
|
+
* @default "brand"
|
|
1255
|
+
*/
|
|
1256
|
+
variant?: "default" | "brand";
|
|
1183
1257
|
}
|
|
1184
1258
|
declare function CheckboxGroup(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1185
1259
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1192,7 +1266,7 @@ interface ChipProps {
|
|
|
1192
1266
|
/** Size variant of the chip */
|
|
1193
1267
|
size?: Size;
|
|
1194
1268
|
/** Visual variant of the chip */
|
|
1195
|
-
variant?: "default" | "
|
|
1269
|
+
variant?: "default" | "brand" | "secondary";
|
|
1196
1270
|
/** Whether the chip can be removed (shows X button) */
|
|
1197
1271
|
isRemovable?: boolean;
|
|
1198
1272
|
/** Whether the chip is disabled */
|
|
@@ -2038,6 +2112,53 @@ declare namespace Drawer {
|
|
|
2038
2112
|
var displayName: string;
|
|
2039
2113
|
}
|
|
2040
2114
|
|
|
2115
|
+
type EmptyStateSize = "sm" | "md" | "lg";
|
|
2116
|
+
type EmptyStateAlignment = "center" | "start";
|
|
2117
|
+
interface EmptyStateAction {
|
|
2118
|
+
/** Label for the action button/link */
|
|
2119
|
+
label: string;
|
|
2120
|
+
/** Click handler for the action */
|
|
2121
|
+
onPress?: () => void;
|
|
2122
|
+
/** Optional href for link-style actions */
|
|
2123
|
+
href?: string;
|
|
2124
|
+
/** Whether the action is loading */
|
|
2125
|
+
isLoading?: boolean;
|
|
2126
|
+
/** Whether the action is disabled */
|
|
2127
|
+
isDisabled?: boolean;
|
|
2128
|
+
}
|
|
2129
|
+
interface EmptyStateProps {
|
|
2130
|
+
/** Optional icon or illustration shown at the top of the empty state. */
|
|
2131
|
+
icon?: ReactNode;
|
|
2132
|
+
/** Primary title describing the state. */
|
|
2133
|
+
title: ReactNode;
|
|
2134
|
+
/** Optional description providing more context. */
|
|
2135
|
+
description?: ReactNode;
|
|
2136
|
+
/** Primary action (rendered as a default button). */
|
|
2137
|
+
primaryAction?: EmptyStateAction;
|
|
2138
|
+
/** Secondary action (rendered as a ghost button or text link). */
|
|
2139
|
+
secondaryAction?: EmptyStateAction;
|
|
2140
|
+
/** Optional custom action area. Use this for complete control over actions. Overrides primaryAction and secondaryAction. */
|
|
2141
|
+
actions?: ReactNode;
|
|
2142
|
+
/** Controls the component padding and typography. */
|
|
2143
|
+
size?: EmptyStateSize;
|
|
2144
|
+
/** Aligns the content horizontally. */
|
|
2145
|
+
alignment?: EmptyStateAlignment;
|
|
2146
|
+
/** When true the component expands to fill the available height and vertically centers content. */
|
|
2147
|
+
fullHeight?: boolean;
|
|
2148
|
+
/** Additional className to merge with default styles. */
|
|
2149
|
+
className?: string;
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* EmptyState
|
|
2153
|
+
*
|
|
2154
|
+
* Minimal, composable empty state surface for communicating lack of data.
|
|
2155
|
+
* Supports optional icon, description and opinionated action patterns.
|
|
2156
|
+
*
|
|
2157
|
+
* Use `primaryAction` and `secondaryAction` for consistent styling, or use `actions`
|
|
2158
|
+
* for complete control over the action area.
|
|
2159
|
+
*/
|
|
2160
|
+
declare function EmptyState({ icon, title, description, primaryAction, secondaryAction, actions, size, alignment, fullHeight, className, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
2161
|
+
|
|
2041
2162
|
interface Props {
|
|
2042
2163
|
children: ReactNode;
|
|
2043
2164
|
fallback?: ReactNode;
|
|
@@ -3041,6 +3162,11 @@ interface RadioGroupProps extends Omit<RadioGroupProps$1, "children"> {
|
|
|
3041
3162
|
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
3042
3163
|
/** Validation result object for functional errorMessage */
|
|
3043
3164
|
validationResult?: ValidationResult;
|
|
3165
|
+
/**
|
|
3166
|
+
* Visual variant of the radio buttons
|
|
3167
|
+
* @default "brand"
|
|
3168
|
+
*/
|
|
3169
|
+
variant?: "default" | "brand";
|
|
3044
3170
|
}
|
|
3045
3171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
3046
3172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3332,6 +3458,11 @@ declare function StatList({ items, layout, dense, valueAlign, showDividers, skel
|
|
|
3332
3458
|
|
|
3333
3459
|
interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
3334
3460
|
children: React__default.ReactNode;
|
|
3461
|
+
/**
|
|
3462
|
+
* Visual variant of the switch
|
|
3463
|
+
* @default "default"
|
|
3464
|
+
*/
|
|
3465
|
+
variant?: "default" | "brand";
|
|
3335
3466
|
}
|
|
3336
3467
|
/**
|
|
3337
3468
|
* Switch
|
|
@@ -3339,9 +3470,9 @@ interface SwitchProps extends Omit<SwitchProps$1, "children"> {
|
|
|
3339
3470
|
* Toggle switch component for binary on/off states.
|
|
3340
3471
|
* Provides an accessible alternative to checkboxes for settings and preferences.
|
|
3341
3472
|
*/
|
|
3342
|
-
declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3473
|
+
declare function Switch({ children, variant, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
3343
3474
|
|
|
3344
|
-
type TabVariant = "default" | "
|
|
3475
|
+
type TabVariant = "default" | "brand";
|
|
3345
3476
|
type TabProps = TabProps$1 & {
|
|
3346
3477
|
isSelected?: boolean;
|
|
3347
3478
|
id?: string;
|
|
@@ -3356,7 +3487,7 @@ type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
|
3356
3487
|
* Tabs
|
|
3357
3488
|
*
|
|
3358
3489
|
* Tabbed interface with styled tabs and panels.
|
|
3359
|
-
* @param variant - "default" for
|
|
3490
|
+
* @param variant - "default" for action-default styling, "brand" for action-brand styling
|
|
3360
3491
|
*/
|
|
3361
3492
|
declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
3362
3493
|
/**
|
|
@@ -3416,7 +3547,7 @@ interface TextAreaWithChipsProps extends Omit<React__default.TextareaHTMLAttribu
|
|
|
3416
3547
|
onTriggerDetected?: (triggerInfo: TriggerInfo) => void;
|
|
3417
3548
|
onTriggerDismissed?: () => void;
|
|
3418
3549
|
renderChip?: (chip: ChipData, onRemove: () => void) => React__default.ReactNode;
|
|
3419
|
-
chipVariant?: "default" | "
|
|
3550
|
+
chipVariant?: "default" | "brand" | "secondary";
|
|
3420
3551
|
chipSize?: Size;
|
|
3421
3552
|
}
|
|
3422
3553
|
/**
|
|
@@ -3474,7 +3605,7 @@ declare function TimeField({ label, description, errorMessage, size, tooltip, is
|
|
|
3474
3605
|
|
|
3475
3606
|
type IconName = ComponentProps<typeof Icon>["name"];
|
|
3476
3607
|
interface ToggleButtonProps {
|
|
3477
|
-
variant?: "default" | "
|
|
3608
|
+
variant?: "default" | "brand";
|
|
3478
3609
|
size?: Size;
|
|
3479
3610
|
className?: string;
|
|
3480
3611
|
children: React__default.ReactNode;
|
|
@@ -3586,4 +3717,4 @@ interface ColorModeProviderProps {
|
|
|
3586
3717
|
}
|
|
3587
3718
|
declare const ColorModeProvider: React.FC<ColorModeProviderProps>;
|
|
3588
3719
|
|
|
3589
|
-
export { type Action, ActionCell, type ActionCellProps, ActivityFeed, ActivityFeedGroup, type ActivityFeedGroupProps, type ActivityFeedProps, type ActivityFeedSize, type ActivityFeedVariant, ActivityItem, type ActivityItemProps, type ActivityItemSurface, type ActivityItemTone, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, Autocomplete, BREAKPOINTS, BarSeries, BaseDataPoint, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, BooleanFormat, Breadcrumb, type BreadcrumbItem, Breadcrumbs, type Breakpoint, type BreakpointState, Button, Calendar, CardMobileRenderer, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, type ChartExportMetadata, ChartTooltip, Checkbox, CheckboxGroup, Chip, ClearButton, Collapse, CollapseContent, type CollapseContentProps, type CollapseDensity, CollapseHeader, type CollapseHeaderProps, CollapseItem, type CollapseItemProps, type CollapseProps, type CollapseVariant, ColorModeProvider, type Column, ComponentFormatter, Confirm, type ConfirmProps, CopyToClipboard, CurrencyFormat, CurrentFormat, CustomPinsSpec, DataControls, type Filter as DataControlsFilter, type DataControlsProps, type SortOption as DataControlsSortOption, DataTable, type DataTableProps, DateCell, type DateCellProps, DateFormat, DateRangePicker, Description, type DescriptionProps, Dialog, type DialogAction, type DialogFooterConfig, DialogHeader, type DialogHeaderConfig, type DialogHeaderProps, type DialogProps, DistanceFormat, Drawer, type DrawerProps, EnergyFormat, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, FieldFormat, FieldGroup, type FieldGroupProps, FieldValue, FilterChips, type FilterChipsProps, Form, FormatRegistry, FormattedValue, FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageHeaderProps, PageLayout, type PageLayoutProps, PhoneFormat, PlaceSearch, Popover, PowerFormat, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, ResistanceFormat, type ResponsiveValue, ResultsCount, type ResultsCountProps, SKELETON_SIZES, SearchControl, type SearchControlProps, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, SortControl, type SortControlProps, type SortDirection, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, TemperatureFormat, TemperatureUnit, TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, TextFormat, TimeField, ToggleButton, Tooltip, TooltipData, Tray, type TrayProps, type TrendPoint, type UseBreakpointReturn, VectorLayerSpec, VoltageFormat, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useColorMode, useDebounce, useInputFocus, useLocalStorage, useMediaQuery, useNotice, yardsToMeters };
|
|
3720
|
+
export { type Action, ActionCell, type ActionCellProps, ActivityFeed, ActivityFeedGroup, type ActivityFeedGroupProps, type ActivityFeedProps, type ActivityFeedSize, type ActivityFeedVariant, ActivityItem, type ActivityItemProps, type ActivityItemSurface, type ActivityItemTone, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, Autocomplete, BREAKPOINTS, BarSeries, BaseDataPoint, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, BooleanFormat, Breadcrumb, type BreadcrumbItem, Breadcrumbs, type Breakpoint, type BreakpointState, Button, Calendar, Card, CardMobileRenderer, type CardProps, type CardVariant, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, type ChartExportMetadata, ChartTooltip, Checkbox, CheckboxGroup, Chip, ClearButton, Collapse, CollapseContent, type CollapseContentProps, type CollapseDensity, CollapseHeader, type CollapseHeaderProps, CollapseItem, type CollapseItemProps, type CollapseProps, type CollapseVariant, ColorModeProvider, type Column, ComponentFormatter, Confirm, type ConfirmProps, CopyToClipboard, CurrencyFormat, CurrentFormat, CustomPinsSpec, DataControls, type Filter as DataControlsFilter, type DataControlsProps, type SortOption as DataControlsSortOption, DataTable, type DataTableProps, DateCell, type DateCellProps, DateFormat, DateRangePicker, Description, type DescriptionProps, Dialog, type DialogAction, type DialogFooterConfig, DialogHeader, type DialogHeaderConfig, type DialogHeaderProps, type DialogProps, DistanceFormat, Drawer, type DrawerProps, EmptyState, type EmptyStateAction, type EmptyStateAlignment, type EmptyStateProps, type EmptyStateSize, EnergyFormat, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, FieldFormat, FieldGroup, type FieldGroupProps, FieldValue, FilterChips, type FilterChipsProps, Form, FormatRegistry, FormattedValue, FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageHeaderProps, PageLayout, type PageLayoutProps, PhoneFormat, PlaceSearch, Popover, PowerFormat, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, ResistanceFormat, type ResponsiveValue, ResultsCount, type ResultsCountProps, SKELETON_SIZES, SearchControl, type SearchControlProps, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, SortControl, type SortControlProps, type SortDirection, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, TemperatureFormat, TemperatureUnit, TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, TextFormat, TimeField, ToggleButton, Tooltip, TooltipData, Tray, type TrayProps, type TrendPoint, type UseBreakpointReturn, VectorLayerSpec, VoltageFormat, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useColorMode, useDebounce, useInputFocus, useLocalStorage, useMediaQuery, useNotice, yardsToMeters };
|