@bcgov-sso/common-react-components 1.28.3 → 1.28.5

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.
@@ -20,6 +20,7 @@ declare type Variant = 'danger' | 'success' | 'info';
20
20
  interface Props {
21
21
  variant?: Variant;
22
22
  content?: string;
23
+ closable?: boolean;
23
24
  [key: string]: any;
24
25
  }
25
26
  declare const Alert: (props: Props) => JSX.Element;
package/dist/esm/index.js CHANGED
@@ -12631,7 +12631,7 @@ const Alert = (props) => (React__default.createElement(DefaultAlert, Object.assi
12631
12631
  props.variant === 'success' ? SuccessIcon : props.variant === 'danger' ? DangerIcon : InfoIcon,
12632
12632
  props.children,
12633
12633
  props.content,
12634
- React__default.createElement(DefaultAlert.Close, null, "X")));
12634
+ props.closable && React__default.createElement(DefaultAlert.Close, null, "X")));
12635
12635
 
12636
12636
  const TABLE_BACKGROUND_COLOR = '#ededed';
12637
12637
  const TABLE_ROW_ACTIVE_COLOR = '#4950FA';