@nextelco/common-ui 1.6.4 → 1.6.6

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.
@@ -1,8 +1,9 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { ComponentProps } from "react";
3
- import Acronym from "./Acronym";
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import Acronym from './Acronym';
4
4
  type StoryProps = ComponentProps<typeof Acronym>;
5
5
  declare const meta: Meta<StoryProps>;
6
6
  export default meta;
7
7
  type Story = StoryObj<typeof meta>;
8
- export declare const AcronymStory: Story;
8
+ export declare const DarkBackground: Story;
9
+ export declare const LightBackground: Story;
@@ -4,7 +4,7 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
4
  import { ButtonTheme } from '../../../../types/ButtonTheme';
5
5
  import './ActionButton.scss';
6
6
  type Props = PropsWithChildren<{
7
- icon: IconProp;
7
+ icon?: IconProp;
8
8
  title: string;
9
9
  theme: ButtonTheme;
10
10
  onClick: () => void;
@@ -3,7 +3,7 @@ import './Header.scss';
3
3
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
4
  type Props = {
5
5
  title: string;
6
- icon: IconProp;
6
+ icon?: IconProp;
7
7
  sideBar: boolean;
8
8
  handleSideBar: () => void;
9
9
  profile: ReactNode;
@@ -5,7 +5,7 @@ type Story = StoryObj<typeof Header>;
5
5
  declare const _default: {
6
6
  component: ({ title, icon, sideBar, handleSideBar, profile, handleHome, }: {
7
7
  title: string;
8
- icon: import("@fortawesome/fontawesome-svg-core").IconProp;
8
+ icon?: import("@fortawesome/fontawesome-svg-core").IconProp;
9
9
  sideBar: boolean;
10
10
  handleSideBar: () => void;
11
11
  profile: React.ReactNode;
@@ -0,0 +1,7 @@
1
+ export declare enum FontWeight {
2
+ LIGHT = "light",
3
+ MEDIUM = "medium",
4
+ REGULAR = "regular",
5
+ SEMIBOLD = "semibold",
6
+ BOLD = "bold"
7
+ }
@@ -1,5 +1,7 @@
1
+ import { FontWeight } from "../contants/FontWeight";
1
2
  export interface ButtonTheme {
2
3
  backgroundColor: string;
3
4
  fontColor: string;
4
5
  iconColor: string;
6
+ fontWeight?: FontWeight;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- type Props = {};
3
- declare const Notification: (props: Props) => React.JSX.Element;
4
- export default Notification;