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 +17 -0
- package/dist/componentProps/atoms/button/ButtonProps.d.ts +3 -1
- package/dist/componentProps/atoms/icon/IconProps.d.ts +9 -4
- package/dist/componentProps/molecules/selectors/RadioButtonProps.d.ts +10 -0
- package/dist/componentProps/organisms/menu/BrandNavBarProps.d.ts +7 -0
- package/dist/componentProps/organisms/menu/TopNavBarProps.d.ts +6 -0
- package/dist/index.cjs +33 -11
- package/dist/index.js +917 -851
- package/dist/stories/atoms/button/Button.d.ts +23 -1
- package/dist/stories/atoms/button/Button.test.d.ts +1 -0
- package/dist/stories/atoms/icon/Icon.d.ts +7 -2
- package/dist/stories/atoms/icon/Icon.test.d.ts +1 -0
- package/dist/stories/molecules/radioButtons/RadioButtons.d.ts +15 -0
- package/dist/stories/molecules/radioButtons/RadioButtons.test.d.ts +1 -0
- package/dist/stories/organisms/menu/BrandNavBar/BrandNavBar.d.ts +4 -0
- package/package.json +77 -59
- package/dist/componentProps/organisms/menu/GlobalNavBarProps.d.ts +0 -29
- package/dist/stories/organisms/menu/GlobalNavBar/GlobalNavBar.d.ts +0 -4
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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?:
|
|
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
|
+
}
|
|
@@ -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
|
}
|