diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index af38baee1..40fd9c11b 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -18,7 +18,7 @@ jobs:
run: npm install
- name: Check Prettier Formatting
- run: npx prettier --check .
+ run: npm run format
- name: Run Lint Check
run: npm run lint
diff --git a/.prettierrc b/.prettierrc
index 05a360b87..97a3f82ed 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,5 +1,5 @@
{
"singleQuote": true,
"trailingComma": "es5",
- "printWidth": 140
+ "printWidth": 120
}
diff --git a/lib/index.ts b/lib/index.ts
index 454d92ef3..25ff18c9f 100644
--- a/lib/index.ts
+++ b/lib/index.ts
@@ -1,12 +1,11 @@
// ---------- atoms ------- //
export { default as BackDrop } from '@/components/atoms/BackDrop/BackDrop';
-export { default as ColorDisplay } from '@/components/atoms/ColorDisplay/ColorDisplay';
export { default as ColorIndicator } from '@/components/atoms/ColorIndicator/ColorIndicator';
export { default as DateNumberAtom } from '@/components/atoms/DateNumberAtom/DateNumberAtom';
export { default as DateOutput } from '@/components/atoms/DateOutput/DateOutput';
export { default as DropDownSelect } from '@/components/atoms/DropDownSelect/DropDownSelect';
export { default as EditBarModal } from '@/components/atoms/EditBarModal/EditBarModal';
-
+export { default as FancyPill } from '@/components/atoms/FancyPill/FancyPill';
export { default as FancyCard } from '@/components/atoms/FancyCard/FancyCard';
export { default as FancyLine } from '@/components/atoms/FancyLine/FancyLine';
export { default as FancyLI } from '@/components/atoms/FancyLI/FancyLI';
@@ -43,7 +42,6 @@ export { default as ActionWrapper } from '@/components/atoms/ActionWrapper/Actio
export { default as RawRadio } from '@/components/atoms/RawRadio/RawRadio';
export { default as LoadingSVGArrows } from '@/components/atoms/LoadingSVGArrows/LoadingSVGArrows';
export { default as SwitchActiveIndicator } from '@/components/atoms/SwitchActiveIndicator/SwitchActiveIndicator';
-export { default as ComponentAsWrapper } from '@/components/atoms/ComponentAsWrapper/ComponentAsWrapper';
export { default as FancyActionWrapper } from '@/components/atoms/FancyActionWrapper/FancyActionWrapper';
export { default as ListDivider } from '@/components/atoms/ListDivider/ListDivider';
export { default as MenuItem } from '@/components/atoms/MenuItem/MenuItem';
@@ -75,6 +73,7 @@ export { default as SearchBarList } from '@/components/molecules/SearchBarList/S
export { default as SingleInputs } from '@/components/molecules/SingleInputs/SingleInputs';
export { default as SingleToastMessage } from '@/components/molecules/SingleToastMessage/SingleToastMessage';
export { default as SwipeUpModal } from '@/components/molecules/SwipeUpModal/SwipeUpModal';
+export { default as ColorDisplay } from '@/components/molecules/ColorDisplay/ColorDisplay';
export { default as TextInput } from '@/components/molecules/TextInput/TextInput';
export { default as FancyOpacitySlider } from '@/components/molecules/FancyOpacitySlider/FancyOpacitySlider';
export { default as FancyButton } from '@/components/organisms/FancyButton/FancyButton';
@@ -93,7 +92,6 @@ export { default as Paginator } from '@/components/molecules/Paginator/Paginator
export { default as FancyProgressBar } from '@/components/molecules/FancyProgressBar/FancyProgressBar';
export { default as FancyMiniProfile } from '@/components/molecules/FancyMiniProfile/FancyMiniProfile';
export { default as FancyCheckbox } from '@/components/molecules/FancyCheckbox/FancyCheckbox';
-export { default as FancyChip } from '@/components/organisms/FancyChip/FancyChip';
export { default as Header } from '@/components/molecules/Header/Header';
export { default as FancyContent } from '@/components/molecules/FancyContent/FancyContent';
export { default as InfoCard } from '@/components/molecules/InfoCard/InfoCard';
@@ -108,6 +106,7 @@ export { default as FancyTabSwitchButton } from '@/components/molecules/FancyTab
export { default as MenuList } from '@/components/molecules/MenuList/MenuList';
export { default as SwitchList } from '@/components/molecules/SwitchList/SwitchList';
export { default as TabSwitch } from '@/components/molecules/TabSwitch/TabSwitch';
+export { default as FancyNavBar } from '@/components/molecules/FancyNavBar/FancyNavBar';
// ---------- Organisms ------- //
export { default as FancyColorPicker } from '@/components/organisms/FancyColorPicker/FancyColorPicker';
@@ -146,6 +145,7 @@ export { default as FancyBottomBarIcon } from '@/components/templates/FancyBotto
// ---------- Utils/Hooks ------- //
export { default as FancyPopover } from '@/components/shared/FancyPopover/FancyPopover';
export { default as Delay } from '@/components/shared/Delay/Delay';
+export { default as ComponentAsWrapper } from '@/components/shared/ComponentAsWrapper/ComponentAsWrapper';
export { default as FancyPortal } from '@/components/shared/FancyPortal/FancyPortal';
export { default as useIntersectionObserver } from '@/utils/hooks/useIntersectionObserver/useIntersectionObserver';
export { default as useWindowDimensions } from '@/utils/hooks/useWindowDimensions/useWindowDimensions';
@@ -154,7 +154,12 @@ export { default as useWindowDimensions } from '@/utils/hooks/useWindowDimension
export { default as calcBorderRadiusOnAlignment } from '@/design/designFunctions/calcBorderRadiusOnAlignment/calcBorderRadiusOnAlignment';
export { default as calcColorState } from '@/design/designFunctions/calcColorState/calcColorState';
export { default as checkThemeOrColor } from '@/design/designFunctions/checkThemeOrColor/checkThemeOrColor';
-export { getColorsForComponent, getBackgroundColor, getTextColor } from '@/design/designFunctions/colorCalculatorForComponent';
+export {
+ getColorsForComponent,
+ getBackgroundColor,
+ getTextColor,
+} from '@/design/designFunctions/colorCalculatorForComponent';
+export { default as focusStyle } from '@/design/designFunctions/focusStyle/focusStyle';
export { default as colorTransparencyCalculator } from '@/design/designFunctions/colorTransparencyCalculator/colorTransparencyCalculator';
export { default as disabledStyle } from '@/design/designFunctions/disabledStyle/disableStyle';
export { default as flipThemeColor } from '@/design/designFunctions/flipThemeColor/flipThemeColor';
@@ -172,6 +177,7 @@ export * from '@/interface';
export type { default as IGenerateThemeForCardProps } from '@/design/designFunctions/generateThemeForCard/IGenerateThemeForCardProps';
export type { default as IGenerateThemeDesignForComponentProps } from '@/design/designFunctions/generateThemeDesignForComponent/IGenerateThemeDesignForComponentProps';
export type { IAvailableDot } from '@/components/atoms/AvilableDot/IAvailableDot.model';
+export type { IFancyBox } from '@/components/atoms/FancyBox/FancyBox.model';
// ---------- Store ------- //
export { default as themeStore } from '@/design/theme/themeStore/themeStore';
diff --git a/package.json b/package.json
index b66607369..abd997882 100644
--- a/package.json
+++ b/package.json
@@ -11,28 +11,28 @@
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
- "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --fix --max-warnings=-1",
- "checkFormat": "prettier --check .",
- "format": "prettier --write .",
- "predeploy": "npm run lint && npm run checkFormat && npm run build"
+ "lint": "npx eslint src --ext ts,tsx --report-unused-disable-directives --fix --max-warnings=-1",
+ "checkFormat": "npx prettier --check .",
+ "format": "npx prettier --write .",
+ "predeploy": "npm run lint && npm run build && npm run checkFormat "
},
"lint-staged": {
"*.ts": [
- "eslint src --ext ts --report-unused-disable-directives --fix --max-warnings=-1",
- "prettier --write"
+ "npx eslint src --ext ts --report-unused-disable-directives --fix --max-warnings=-1",
+ "npm run format"
],
"*.tsx": [
- "eslint src --ext tsx --report-unused-disable-directives --fix --max-warnings=-1",
- "prettier --write"
+ "npx eslint src --ext tsx --report-unused-disable-directives --fix --max-warnings=-1",
+ "npm run format"
],
"*.mdx": [
- "prettier --write"
+ "npm run format"
],
"*.yml": [
- "prettier --write"
+ "npm run format"
],
"*.json": [
- "prettier --write"
+ "npm run format"
]
},
"dependencies": {
@@ -58,7 +58,7 @@
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitejs/plugin-react-swc": "^3.3.2",
- "eslint": "^8.44.0",
+ "eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"eslint-plugin-storybook": "^0.6.15",
@@ -69,7 +69,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-visualizer": "^5.9.3",
- "storybook": "^7.6.1",
+ "storybook": "^7.6.4",
"typescript": "^5.0.2",
"vite": "^4.4.0"
},
diff --git a/src/Routes/BottonRoute/ButtonRoute.tsx b/src/Routes/BottonRoute/ButtonRoute.tsx
index c5f52f991..74dc277ba 100644
--- a/src/Routes/BottonRoute/ButtonRoute.tsx
+++ b/src/Routes/BottonRoute/ButtonRoute.tsx
@@ -30,9 +30,9 @@ export default function ButtonRoute() {
-
-
-
+
+
+
@@ -45,7 +45,11 @@ export default function ButtonRoute() {
-
+
@@ -69,7 +73,14 @@ export default function ButtonRoute() {
themeType="primary"
outlined
/>
- setIsLoading(false)} themeType="secondary" outlined />
+ setIsLoading(false)}
+ themeType="secondary"
+ outlined
+ />
-
+
@@ -70,8 +73,20 @@ export default function CheckboxRoute() {
>
-
-
+
+
diff --git a/src/Routes/ChipsRoute/ChipsRoute.tsx b/src/Routes/ChipsRoute/ChipsRoute.tsx
index 2fc5a5943..c693453cc 100644
--- a/src/Routes/ChipsRoute/ChipsRoute.tsx
+++ b/src/Routes/ChipsRoute/ChipsRoute.tsx
@@ -1,15 +1,19 @@
-/* eslint-disable @typescript-eslint/no-unused-vars */
import React from 'react';
-import Chip from '../../components/organisms/FancyChip/FancyChip';
-
import { DesignArea, DesignWrapper } from '../DesignWrapper/Wrapper';
import ClipBoardIconCheck from '../../components/icons/SVGClipBoardIconChecked/SVGClipBoardIconChecked';
import { FancyCard } from '@/components/atoms/FancyCard';
import ChipList from '../../components/molecules/ChipList/ChipList';
import FancyChipList from '../../components/organisms/FancyChipList/FancyChipList';
+import FancyChip from '@/components/templates/FancyChip/FancyChip';
-const chipList = ['12', '1212', '1212', '121221', '121212211', '12121212', '12121212'];
+const chipList = [
+ { label: 'Item 1', id: '1' },
+ { label: 'Item 2', id: '2' },
+ { label: 'Item 3', id: '3' },
+ { label: 'Item 4', id: '4' },
+ { label: 'Item 5', id: '5' },
+];
export default function ChipsRoute() {
const [isActive, setIsActive] = React.useState(false);
@@ -26,62 +30,120 @@ export default function ChipsRoute() {
- {/*
- clickHandler('hi')} image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg" />
- clickHandler('hi')} onDelete={() => console.log('DELETE')} />
- console.log('hii')} />
-
-
-
- console.log('DELETE')} />
- console.log('hii')}
- image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg"
- />
-
-
-
- console.log('DELETE')} />
- console.log('hii')}
- image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg"
- />
-
-
- } size="sm" />
- } size="md" onDelete={() => console.log('DELETE')} />
- } size="lg" onClick={() => console.log('hii')} />
-
-
- } size="sm" />
- } size="md" onDelete={() => console.log('DELETE')} />
- } size="lg" onClick={() => console.log('hii')} />
-
-
- } size="sm" />
- } size="md" onDelete={() => console.log('DELETE')} />
- } size="lg" onClick={() => console.log('hii')} />
-
-
- } size="sm" />
- } size="md" onDelete={() => console.log('DELETE')} />
- console.log('hii')} />
- console.log('hii')} />
- */}
+
+ clickHandler('hi')}
+ image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg"
+ />
+ clickHandler('hi')} onDelete={() => console.log('DELETE')} />
+ console.log('hii')} />
+
+
+
+ console.log('DELETE')} />
+ console.log('hii')}
+ image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg"
+ />
+
+
+
+ console.log('DELETE')} />
+ console.log('hii')}
+ image="https://www.az-online.de/bilder/2019/08/23/12938342/2113799823-tobias-rester-2tyMMSkM2R73.jpg"
+ />
+
+
+ } size="sm" />
+ } size="md" onDelete={() => console.log('DELETE')} />
+ } size="lg" onClick={() => console.log('hii')} />
+
+
+ }
+ size="sm"
+ />
+ }
+ size="md"
+ onDelete={() => console.log('DELETE')}
+ />
+ }
+ size="lg"
+ onClick={() => console.log('hii')}
+ />
+
+
+ } size="sm" />
+ }
+ size="md"
+ onDelete={() => console.log('DELETE')}
+ />
+ }
+ size="lg"
+ onClick={() => console.log('hii')}
+ />
+
+
+ }
+ size="sm"
+ />
+ }
+ size="md"
+ onDelete={() => console.log('DELETE')}
+ />
+ console.log('hii')}
+ />
+ console.log('hii')} />
+
);
diff --git a/src/Routes/ColorGeneratorRoute/ColorGeneratorRoute.tsx b/src/Routes/ColorGeneratorRoute/ColorGeneratorRoute.tsx
index f3b2cd84a..c74717edb 100644
--- a/src/Routes/ColorGeneratorRoute/ColorGeneratorRoute.tsx
+++ b/src/Routes/ColorGeneratorRoute/ColorGeneratorRoute.tsx
@@ -21,38 +21,73 @@ export default function ColorGeneratorRoute() {
{primaryKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{accentKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{infoKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{secondaryKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{warningKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{errorKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
{successKeys?.map((color, index) => {
- return
;
+ return (
+
+ );
})}
diff --git a/src/Routes/DesignWrapper/Wrapper.tsx b/src/Routes/DesignWrapper/Wrapper.tsx
index 280d9439e..d73b910ee 100644
--- a/src/Routes/DesignWrapper/Wrapper.tsx
+++ b/src/Routes/DesignWrapper/Wrapper.tsx
@@ -3,7 +3,6 @@ import { styled, CSSProp } from 'styled-components';
import { TTheme } from '@/interface/TTheme';
-// eslint-disable-next-line react-refresh/only-export-components
export const DesignWrapper = styled.section`
display: flex;
flex-direction: column;
diff --git a/src/Routes/ExperimentalRoute/ExperimentalRoute.tsx b/src/Routes/ExperimentalRoute/ExperimentalRoute.tsx
index b05827ce1..739d73958 100644
--- a/src/Routes/ExperimentalRoute/ExperimentalRoute.tsx
+++ b/src/Routes/ExperimentalRoute/ExperimentalRoute.tsx
@@ -8,15 +8,15 @@ import FancyContent from '../../components/molecules/FancyContent/FancyContent';
import BottomBarList from '../../components/molecules/SwitchList/SwitchList';
import Button from '../../components/molecules/Button/Button';
import { DesignArea, DesignWrapper } from '../DesignWrapper/Wrapper';
-import ComponentAsWrapper from '../../components/atoms/ComponentAsWrapper/ComponentAsWrapper';
+import ComponentAsWrapper from '../../components/shared/ComponentAsWrapper/ComponentAsWrapper';
import ActionWrapper from '../../components/atoms/ActionWrapper/ActionWrapper';
import FancyActionWrapper from '../../components/atoms/FancyActionWrapper/FancyActionWrapper';
import BottomBarIcon from '../../components/molecules/BottomBarIcon/BottomBarIcon';
import FancyBottomBarIcon from '@/components/templates/FancyBottomBarIcon/FancyBottomBarIcon';
import { FancyButton } from '@/components/organisms/FancyButton';
import { SingleToastMessage } from '@/components/molecules/SingleToastMessage';
-import { FancyCard } from '@/components/atoms/FancyCard';
-import { FancyChip } from '@/components/organisms/FancyChip';
+
+import { FancyNumberInput } from '@/components/organisms/FancyNumberInput';
const Icon = (