@stenajs-webui/elements 18.1.1 → 18.1.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v18.1.2 (Mon Feb 27 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Button icons now customisable using CSS properties [#563](https://github.com/StenaIT/stenajs-webui/pull/563) ([@mattias800](https://github.com/mattias800))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mattias Andersson ([@mattias800](https://github.com/mattias800))
10
+
11
+ ---
12
+
1
13
  # v18.0.1 (Thu Feb 16 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -2,7 +2,6 @@ import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
2
  import { ReactNode } from "react";
3
3
  export declare type ButtonSize = "medium" | "small" | "large";
4
4
  export declare type ButtonVariant = "normal" | "danger" | "success";
5
- export declare const getIconSizeFromButtonSize: (size: ButtonSize, hasLabel: boolean) => ButtonSize;
6
5
  export interface CommonButtonProps {
7
6
  /** The text on the button. */
8
7
  label?: string;
@@ -14,6 +14,5 @@ export interface ButtonContentProps {
14
14
  spinnerClassName?: string;
15
15
  leftWrapperClassName?: string;
16
16
  rightWrapperClassName?: string;
17
- iconSize?: "large" | "medium" | "small";
18
17
  }
19
18
  export declare const ButtonContent: React.FC<ButtonContentProps>;
@@ -1,10 +1,10 @@
1
1
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
2
  import { FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
3
- import { Omit, BoxProps } from "@stenajs-webui/core";
3
+ import { BoxProps, Omit } from "@stenajs-webui/core";
4
4
  import * as React from "react";
5
5
  export interface IconProps extends Omit<FontAwesomeIconProps, "color" | "size" | "icon" | "display">, Pick<BoxProps, "display"> {
6
6
  icon?: IconDefinition;
7
7
  color?: string;
8
- size?: number;
8
+ size?: number | string;
9
9
  }
10
10
  export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;