@baseline-ui/core 0.12.0 → 0.13.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.mts CHANGED
@@ -1396,6 +1396,18 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
1396
1396
  deleteAriaLabel?: string;
1397
1397
  /** The callback to be called when the preview is clicked. */
1398
1398
  addAriaLabel?: string;
1399
+ /**
1400
+ * The accent variable represents the type of accent color used in the
1401
+ * application. It can have one of the following values:
1402
+ *
1403
+ * - "theme": Represents the accent color defined by the current application
1404
+ * theme.
1405
+ * - "positive": Represents a positive accent color that doesn't change with
1406
+ * theme.
1407
+ *
1408
+ * @default "theme"
1409
+ */
1410
+ accent?: "theme" | "positive";
1399
1411
  }
1400
1412
 
1401
1413
  declare const Preview: React.ForwardRefExoticComponent<PreviewProps & React.RefAttributes<HTMLDivElement>>;
@@ -1598,8 +1610,15 @@ interface ToggleIconButtonProps extends StylingProps, Omit<ToggleProps, "childre
1598
1610
  size?: "xxs" | "xs" | "sm" | "md" | "lg";
1599
1611
  /** Represents the variant of a component. */
1600
1612
  variant?: "primary" | "secondary" | "tertiary" | "toolbar";
1601
- /** The icon to be displayed on the button. */
1602
- icon: React.FC<IconProps>;
1613
+ /**
1614
+ * The icon to be displayed on the button. You can pass an object with
1615
+ * `selected` and `unselected` keys to display different icons based on the
1616
+ * state of the button.
1617
+ */
1618
+ icon: React.FC<IconProps> | {
1619
+ selected: React.FC<IconProps>;
1620
+ unselected: React.FC<IconProps>;
1621
+ };
1603
1622
  }
1604
1623
 
1605
1624
  declare const ToggleIconButton: React.ForwardRefExoticComponent<ToggleIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
package/dist/index.d.ts CHANGED
@@ -1396,6 +1396,18 @@ interface PreviewProps extends StylingProps, AriaLabelingProps {
1396
1396
  deleteAriaLabel?: string;
1397
1397
  /** The callback to be called when the preview is clicked. */
1398
1398
  addAriaLabel?: string;
1399
+ /**
1400
+ * The accent variable represents the type of accent color used in the
1401
+ * application. It can have one of the following values:
1402
+ *
1403
+ * - "theme": Represents the accent color defined by the current application
1404
+ * theme.
1405
+ * - "positive": Represents a positive accent color that doesn't change with
1406
+ * theme.
1407
+ *
1408
+ * @default "theme"
1409
+ */
1410
+ accent?: "theme" | "positive";
1399
1411
  }
1400
1412
 
1401
1413
  declare const Preview: React.ForwardRefExoticComponent<PreviewProps & React.RefAttributes<HTMLDivElement>>;
@@ -1598,8 +1610,15 @@ interface ToggleIconButtonProps extends StylingProps, Omit<ToggleProps, "childre
1598
1610
  size?: "xxs" | "xs" | "sm" | "md" | "lg";
1599
1611
  /** Represents the variant of a component. */
1600
1612
  variant?: "primary" | "secondary" | "tertiary" | "toolbar";
1601
- /** The icon to be displayed on the button. */
1602
- icon: React.FC<IconProps>;
1613
+ /**
1614
+ * The icon to be displayed on the button. You can pass an object with
1615
+ * `selected` and `unselected` keys to display different icons based on the
1616
+ * state of the button.
1617
+ */
1618
+ icon: React.FC<IconProps> | {
1619
+ selected: React.FC<IconProps>;
1620
+ unselected: React.FC<IconProps>;
1621
+ };
1603
1622
  }
1604
1623
 
1605
1624
  declare const ToggleIconButton: React.ForwardRefExoticComponent<ToggleIconButtonProps & React.RefAttributes<HTMLButtonElement>>;