@graphysdk/react-renderer 1.9.0-beta.1792505847409 → 1.9.0-beta.1792510459918

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.
@@ -98,7 +98,7 @@ declare type BrandMarkVisual = 'full' | 'mini' | 'hidden';
98
98
  * Every press is its own undo entry, so there is no transient run to commit here — a button has no
99
99
  * gesture to hold open the way a drag or a run of keystrokes does.
100
100
  */
101
- export declare const Button: ({ label, icon, onClick, variant, isExpanded, isDisabled, ariaLabel, ariaLabelledBy, id, }: ButtonControlProps) => JSX.Element;
101
+ export declare const Button: ({ label, icon, onClick, variant, expanded, disabled, ariaLabel, ariaLabelledBy, id, }: ButtonControlProps) => JSX.Element;
102
102
 
103
103
  declare interface ButtonBaseProps extends ControlBaseProps {
104
104
  onClick: () => void;
@@ -108,7 +108,7 @@ declare interface ButtonBaseProps extends ControlBaseProps {
108
108
  */
109
109
  variant?: 'default' | 'tile' | 'icon';
110
110
  /** Whether what the button opens is open, for a button that discloses the content below it. */
111
- isExpanded?: boolean;
111
+ expanded?: boolean;
112
112
  }
113
113
 
114
114
  /**
@@ -152,7 +152,7 @@ export declare const CaptionSection: ({ title, layout, preview }: OverridableSec
152
152
  declare type ChartPhrases = typeof EN_GB;
153
153
 
154
154
  /** A grid of color chips, for picking one color from a fixed set such as the palette. */
155
- export declare const ColorSwatches: ({ title, colors, value, onChange, trailing, isClearable, isDisabled, id, ariaLabel, ariaLabelledBy, }: ColorSwatchesControlProps) => JSX.Element;
155
+ export declare const ColorSwatches: ({ title, colors, value, onChange, trailing, clearable, disabled, id, ariaLabel, ariaLabelledBy, }: ColorSwatchesControlProps) => JSX.Element;
156
156
 
157
157
  /**
158
158
  * A grid of color chips. A click reports the color.
@@ -166,7 +166,7 @@ export declare interface ColorSwatchesControlProps extends Omit<DiscreteControlP
166
166
  /** Chips after the colors and a separator, such as a custom picker's trigger. They wrap with the colors. */
167
167
  trailing?: ReactNode;
168
168
  /** Ends the row in a chip for no color at all, after `trailing`, reported as `TRANSPARENT_COLOR`. */
169
- isClearable?: boolean;
169
+ clearable?: boolean;
170
170
  }
171
171
 
172
172
  /**
@@ -192,7 +192,7 @@ export declare interface ContinuousControlProps<Value> extends ControlBaseProps
192
192
 
193
193
  /** Props every control shares. */
194
194
  export declare interface ControlBaseProps {
195
- isDisabled?: boolean;
195
+ disabled?: boolean;
196
196
  /** Required unless the control is labeled by a section row, which passes `ariaLabelledBy` instead. */
197
197
  ariaLabel?: string;
198
198
  ariaLabelledBy?: string;
@@ -216,7 +216,7 @@ export declare interface ControlOption {
216
216
  description?: string;
217
217
  /** Shown beside the label, or alone where the control is icon-only. */
218
218
  icon?: ReactNode;
219
- isDisabled?: boolean;
219
+ disabled?: boolean;
220
220
  }
221
221
 
222
222
  /**
@@ -258,14 +258,14 @@ export declare interface ControlRegistryProviderProps {
258
258
  }
259
259
 
260
260
  /** Names an option that shows only an icon, on hover and focus the Base UI way, and at once in a hovered row or menu head. */
261
- export declare const ControlTooltip: ({ label, isChecked, children }: ControlTooltipProps) => JSX.Element;
261
+ export declare const ControlTooltip: ({ label, checked, children }: ControlTooltipProps) => JSX.Element;
262
262
 
263
263
  /** What a host's own control passes to name an option that shows only an icon, as Graphy's controls do. */
264
264
  export declare interface ControlTooltipProps {
265
265
  /** The option's name: the words the tooltip shows, and the option's accessible name unless it carries its own. */
266
266
  label: string;
267
267
  /** The option the control holds, which names itself while its row or the menu head is hovered. */
268
- isChecked?: boolean;
268
+ checked?: boolean;
269
269
  /** The option's element, which must pass the props and ref it is given on to one DOM element, as a `<button>` does. */
270
270
  children: ReactElement;
271
271
  }
@@ -691,7 +691,7 @@ declare interface EditorSurfaceSlotProps {
691
691
  /** The axes as the chart paints them, whose ticks a stamped tick index addresses. */
692
692
  formattedAxes: readonly FormattedAxis[];
693
693
  /** Whether the chart animates between states, so what the editor draws over its geoms can follow. */
694
- shouldAnimateTransitions: boolean;
694
+ animateTransitions: boolean;
695
695
  }
696
696
 
697
697
  /**
@@ -814,9 +814,9 @@ declare interface FooterSlotProps {
814
814
  footerRect: Rect;
815
815
  mode?: GraphMode;
816
816
  caption: TextContent | null;
817
- isCaptionVisible: boolean;
817
+ showCaption: boolean;
818
818
  source: SourceContent | null;
819
- isSourceVisible: boolean;
819
+ showSource: boolean;
820
820
  captionStyle: TextStyle;
821
821
  sourceStyle: SourceStyle;
822
822
  /**
@@ -1048,9 +1048,9 @@ declare interface HeaderSlotProps {
1048
1048
  headerRect: Rect;
1049
1049
  mode?: GraphMode;
1050
1050
  title: TextContent | null;
1051
- isTitleVisible: boolean;
1051
+ showTitle: boolean;
1052
1052
  subtitle: TextContent | null;
1053
- isSubtitleVisible: boolean;
1053
+ showSubtitle: boolean;
1054
1054
  headingStyle: TextStyle;
1055
1055
  subtitleStyle: TextStyle;
1056
1056
  /**
@@ -1079,7 +1079,7 @@ declare interface HeadlineSlotProps {
1079
1079
  * Whether this figure sits in the donut hole. Strip polar totals reuse the grand-total class, so
1080
1080
  * paint cannot infer the hole from CSS — only the placement input knows.
1081
1081
  */
1082
- isInDonutHole?: boolean;
1082
+ inDonutHole?: boolean;
1083
1083
  }
1084
1084
 
1085
1085
  declare type I18nLocale = keyof typeof dictionaries;
@@ -1176,7 +1176,7 @@ export declare const MappingSection: ({ title, layout }: OverridableSectionProps
1176
1176
  * Base UI's `onValueCommitted` already fires on blur and at the end of a scrub or a button press,
1177
1177
  * which is exactly the grain `onCommit` wants — so a scrub is one undo entry, not one per pixel.
1178
1178
  */
1179
- export declare const NumberField: ({ value, onChange, onCommit, min, max, step, placeholder, prefix, suffix, isDisabled, hasError, ariaLabel, ariaLabelledBy, id, }: NumberFieldControlProps) => JSX.Element;
1179
+ export declare const NumberField: ({ value, onChange, onCommit, min, max, step, placeholder, prefix, suffix, disabled, hasError, ariaLabel, ariaLabelledBy, id, }: NumberFieldControlProps) => JSX.Element;
1180
1180
 
1181
1181
  /** `null` is an empty field, which is a state of its own rather than zero. */
1182
1182
  export declare interface NumberFieldControlProps extends ContinuousControlProps<number | null> {
@@ -1288,7 +1288,7 @@ export declare const PolarSection: ({ title, layout, preview }: OverridableSecti
1288
1288
  * Base UI reports every change with the same reason, so which gesture is under way is tracked here
1289
1289
  * rather than read off the event.
1290
1290
  */
1291
- export declare const RadioGrid: ({ options, value, onChange, onCommit, columns, itemLayout, isDisabled, ariaLabel, ariaLabelledBy, id, }: RadioGridControlProps) => JSX.Element;
1291
+ export declare const RadioGrid: ({ options, value, onChange, onCommit, columns, itemLayout, disabled, ariaLabel, ariaLabelledBy, id, }: RadioGridControlProps) => JSX.Element;
1292
1292
 
1293
1293
  /**
1294
1294
  * Single-select grid of icon buttons, for choices that read as pictures rather than words.
@@ -1326,7 +1326,7 @@ declare interface ResizeObserverState {
1326
1326
  width: number;
1327
1327
  height: number;
1328
1328
  /** True until the first ResizeObserver measurement lands. */
1329
- isDefault: boolean;
1329
+ unmeasured: boolean;
1330
1330
  }
1331
1331
 
1332
1332
  /** A {@link ControlRegistry} with every member filled in, as sections consume it. */
@@ -1386,7 +1386,7 @@ export declare interface SectionProps {
1386
1386
  }
1387
1387
 
1388
1388
  /** A single-choice dropdown, for a set too long or too wordy for a segmented row. */
1389
- export declare const Select: ({ options, value, onChange, placeholder, isDisabled, hasError, ariaLabel, ariaLabelledBy, id, }: SelectControlProps) => JSX.Element;
1389
+ export declare const Select: ({ options, value, onChange, placeholder, disabled, hasError, ariaLabel, ariaLabelledBy, id, }: SelectControlProps) => JSX.Element;
1390
1390
 
1391
1391
  /**
1392
1392
  * Single-choice dropdown, for a set too long or too wordy to sit in a segmented row.
@@ -1423,7 +1423,7 @@ declare interface SettingRowProps {
1423
1423
  * committed on key up instead — the keyboard's equivalent of releasing the thumb. Blur commits too,
1424
1424
  * for focus leaving mid-hold with no key up ever arriving.
1425
1425
  */
1426
- export declare const Slider: ({ value, onChange, onCommit, min, max, step, suffix, formatValue, showValue, isDisabled, ariaLabel, ariaLabelledBy, }: SliderControlProps) => JSX.Element;
1426
+ export declare const Slider: ({ value, onChange, onCommit, min, max, step, suffix, formatValue, showValue, disabled, ariaLabel, ariaLabelledBy, }: SliderControlProps) => JSX.Element;
1427
1427
 
1428
1428
  export declare interface SliderControlProps extends ContinuousControlProps<number> {
1429
1429
  min: number;
@@ -1536,16 +1536,16 @@ declare interface SwatchSlotProps {
1536
1536
  declare type SwatchSurface = 'legend' | 'tooltip' | 'headline' | 'callout' | 'rule-label';
1537
1537
 
1538
1538
  /** An on/off toggle, for a setting whose whole value is whether it is on. */
1539
- export declare const Switch: ({ isChecked, onChange, isDisabled, ariaLabel, ariaLabelledBy, id }: SwitchControlProps) => JSX.Element;
1539
+ export declare const Switch: ({ checked, onChange, disabled, ariaLabel, ariaLabelledBy, id }: SwitchControlProps) => JSX.Element;
1540
1540
 
1541
1541
  /**
1542
1542
  * An on/off toggle.
1543
1543
  *
1544
- * Named `isChecked` rather than `value`: the state is the whole value, and every flip is its own
1544
+ * Named `checked` rather than `value`: the state is the whole value, and every flip is its own
1545
1545
  * undo entry, so there is no gesture left to commit.
1546
1546
  */
1547
1547
  export declare interface SwitchControlProps extends ControlBaseProps {
1548
- isChecked: boolean;
1548
+ checked: boolean;
1549
1549
  onChange: (isChecked: boolean) => void;
1550
1550
  }
1551
1551
 
@@ -1566,7 +1566,7 @@ declare type TextDirection = 'ltr' | 'rtl';
1566
1566
  * Typing fires `onChange` per keystroke and blur fires `onCommit`, so a burst of typing dispatches
1567
1567
  * transiently and commits into one undo entry when the field is left.
1568
1568
  */
1569
- export declare const TextField: ({ value, onChange, onCommit, placeholder, isDisabled, hasError, ariaLabel, ariaLabelledBy, id, }: TextFieldControlProps) => JSX.Element;
1569
+ export declare const TextField: ({ value, onChange, onCommit, placeholder, disabled, hasError, ariaLabel, ariaLabelledBy, id, }: TextFieldControlProps) => JSX.Element;
1570
1570
 
1571
1571
  export declare interface TextFieldControlProps extends ContinuousControlProps<string> {
1572
1572
  placeholder?: string;
@@ -1588,12 +1588,12 @@ export declare const TitleSection: ({ title, layout, preview }: OverridableSecti
1588
1588
  * A section whose feature is switched on and off from its own header. The coupling runs both ways: on
1589
1589
  * opens it, off closes it, and opening it while off switches it on.
1590
1590
  */
1591
- export declare const ToggledSection: ({ title, isChecked, onToggle, isDisabled, preview, children }: ToggledSectionProps) => JSX.Element;
1591
+ export declare const ToggledSection: ({ title, checked, onToggle, disabled, preview, children }: ToggledSectionProps) => JSX.Element;
1592
1592
 
1593
1593
  declare interface ToggledSectionProps extends Omit<SectionProps, 'layout' | 'accessory' | 'onOpenChange'> {
1594
- isChecked: boolean;
1594
+ checked: boolean;
1595
1595
  onToggle: (isChecked: boolean) => void;
1596
- isDisabled?: boolean;
1596
+ disabled?: boolean;
1597
1597
  }
1598
1598
 
1599
1599
  /**
@@ -1608,7 +1608,7 @@ declare interface ToggledSectionProps extends Omit<SectionProps, 'layout' | 'acc
1608
1608
  * transient run committed on key up. Only the layout differs — a row of words here, a grid of pictures
1609
1609
  * there — which is the whole of why they are two controls.
1610
1610
  */
1611
- export declare const ToggleGroup: ({ options, value, onChange, onCommit, itemLayout, hasEqualWidths, isDisabled, ariaLabel, ariaLabelledBy, id, }: ToggleGroupControlProps) => JSX.Element;
1611
+ export declare const ToggleGroup: ({ options, value, onChange, onCommit, itemLayout, hasEqualWidths, disabled, ariaLabel, ariaLabelledBy, id, }: ToggleGroupControlProps) => JSX.Element;
1612
1612
 
1613
1613
  /**
1614
1614
  * Single-select segmented control.