react-dockable-desktop 7.4.1 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2223,7 +2223,7 @@ interface RddPanelToolbarProps {
2223
2223
  variant?: ToolbarVariant;
2224
2224
  /** Default button style inherited by `ToolbarButton` and `ToolbarToggle` children. @default 'ghost' */
2225
2225
  buttonVariant?: ButtonVariant;
2226
- /** Icon size in pixels for all buttons in this toolbar. Falls back to CSS default when unset. */
2226
+ /** Button size in pixels for all buttons in this toolbar (sets `--rdd-panel-toolbar-btn-size`). The icon inside follows `--rdd-panel-toolbar-icon-size`. Falls back to the stylesheet when unset. */
2227
2227
  buttonSize?: number;
2228
2228
  style?: React$1.CSSProperties;
2229
2229
  className?: string;
@@ -2242,7 +2242,7 @@ interface RddPanelToolbarProps {
2242
2242
  declare function PanelToolbar({ position, variant, buttonVariant, buttonSize, style, className, children }: RddPanelToolbarProps): React$1.ReactElement;
2243
2243
  /** Props for `<RddToolbarButton>`. */
2244
2244
  interface RddToolbarButtonProps {
2245
- /** Button icon — typically a small SVG component. */
2245
+ /** Button icon: an SVG, an icon component or an icon-font glyph. Pass no size: the library sizes it with `--rdd-panel-toolbar-icon-size`. */
2246
2246
  icon: React$1.ReactNode;
2247
2247
  /** Click handler. */
2248
2248
  onClick(): void;
@@ -2256,7 +2256,7 @@ interface RddToolbarButtonProps {
2256
2256
  declare function ToolbarButton({ icon, onClick, disabled, title, variant }: RddToolbarButtonProps): React$1.ReactElement;
2257
2257
  /** Props for `<RddToolbarToggle>`. */
2258
2258
  interface RddToolbarToggleProps {
2259
- /** Button icon — typically a small SVG component. */
2259
+ /** Button icon: an SVG, an icon component or an icon-font glyph. Pass no size: the library sizes it with `--rdd-panel-toolbar-icon-size`. */
2260
2260
  icon: React$1.ReactNode;
2261
2261
  /** Whether the toggle is in the active/pressed state. Sets `aria-pressed` automatically. */
2262
2262
  active: boolean;
package/dist/index.d.ts CHANGED
@@ -2223,7 +2223,7 @@ interface RddPanelToolbarProps {
2223
2223
  variant?: ToolbarVariant;
2224
2224
  /** Default button style inherited by `ToolbarButton` and `ToolbarToggle` children. @default 'ghost' */
2225
2225
  buttonVariant?: ButtonVariant;
2226
- /** Icon size in pixels for all buttons in this toolbar. Falls back to CSS default when unset. */
2226
+ /** Button size in pixels for all buttons in this toolbar (sets `--rdd-panel-toolbar-btn-size`). The icon inside follows `--rdd-panel-toolbar-icon-size`. Falls back to the stylesheet when unset. */
2227
2227
  buttonSize?: number;
2228
2228
  style?: React$1.CSSProperties;
2229
2229
  className?: string;
@@ -2242,7 +2242,7 @@ interface RddPanelToolbarProps {
2242
2242
  declare function PanelToolbar({ position, variant, buttonVariant, buttonSize, style, className, children }: RddPanelToolbarProps): React$1.ReactElement;
2243
2243
  /** Props for `<RddToolbarButton>`. */
2244
2244
  interface RddToolbarButtonProps {
2245
- /** Button icon — typically a small SVG component. */
2245
+ /** Button icon: an SVG, an icon component or an icon-font glyph. Pass no size: the library sizes it with `--rdd-panel-toolbar-icon-size`. */
2246
2246
  icon: React$1.ReactNode;
2247
2247
  /** Click handler. */
2248
2248
  onClick(): void;
@@ -2256,7 +2256,7 @@ interface RddToolbarButtonProps {
2256
2256
  declare function ToolbarButton({ icon, onClick, disabled, title, variant }: RddToolbarButtonProps): React$1.ReactElement;
2257
2257
  /** Props for `<RddToolbarToggle>`. */
2258
2258
  interface RddToolbarToggleProps {
2259
- /** Button icon — typically a small SVG component. */
2259
+ /** Button icon: an SVG, an icon component or an icon-font glyph. Pass no size: the library sizes it with `--rdd-panel-toolbar-icon-size`. */
2260
2260
  icon: React$1.ReactNode;
2261
2261
  /** Whether the toggle is in the active/pressed state. Sets `aria-pressed` automatically. */
2262
2262
  active: boolean;