formica-ui-lib 1.0.21 → 1.0.22

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/README.md CHANGED
@@ -1,2 +1,19 @@
1
1
  # formicaui
2
2
 
3
+ This is the home of Formica's Storybook components for the UI
4
+
5
+ ## Branching / Git Workflow
6
+
7
+ ⚠️ **Direct commits to `main` are not allowed.** All work must be done in a feature branch created from `dev`.
8
+
9
+ ### Create a feature branch from `dev`
10
+
11
+ 1. Checkout `dev` and pull the latest changes
12
+ 2. Create a new feature branch named `feature/YourFeature`
13
+
14
+ **Commands:**
15
+ ```bash
16
+ git fetch
17
+ git checkout dev
18
+ git pull
19
+ git checkout -b feature/YourFeature
@@ -1,4 +1,5 @@
1
- export type ButtonVariant = 'nav' | 'standard' | 'text' | 'icon' | 'free';
1
+ import React from "react";
2
+ export type ButtonVariant = 'nav' | 'standard' | 'secondary' | 'text' | 'icon' | 'free';
2
3
  export type IconPosition = 'left' | 'right';
3
4
  export interface ButtonProps {
4
5
  label?: string;
@@ -10,4 +11,5 @@ export interface ButtonProps {
10
11
  className?: string;
11
12
  active?: boolean;
12
13
  href?: string;
14
+ style?: string;
13
15
  }
@@ -1,6 +1,11 @@
1
- export interface IconProps {
2
- src: string;
1
+ import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ export type IconSize = 'base' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
3
+ export type IconColor = 'primary' | 'secondary' | 'accent';
4
+ export type IconProps = {
5
+ icon?: IconDefinition;
3
6
  alt?: string;
4
- size?: number;
7
+ size?: IconSize;
8
+ color?: IconColor;
5
9
  className?: string;
6
- }
10
+ title?: string;
11
+ };
@@ -0,0 +1,10 @@
1
+ export interface RadioButtonsProps {
2
+ options: string[];
3
+ defaultValue?: string;
4
+ onChange?: (value: string, index: number) => void;
5
+ ariaLabel?: string;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ containerClassName?: string;
9
+ buttonClassName?: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface Brands {
2
+ label: string;
3
+ href: string;
4
+ }
5
+ export interface BrandNavBarProps {
6
+ Brands: Brands[];
7
+ }
@@ -1,3 +1,8 @@
1
+ export interface Login {
2
+ label: string;
3
+ icon: string;
4
+ href: string;
5
+ }
1
6
  export interface NavSubItem {
2
7
  label: string;
3
8
  href: string;
@@ -18,4 +23,5 @@ export interface Country {
18
23
  export interface TopNavBarProps {
19
24
  NavMenuWithSubItems: NavItem[];
20
25
  Countries: Country[];
26
+ Login: Login;
21
27
  }