Skip to content

Commit

Permalink
Merge pull request #262 from TobiTRy/247-cleanup-storybook-and-update…
Browse files Browse the repository at this point in the history
…-storys

247 cleanup storybook and update storys
  • Loading branch information
TobiTRy authored Mar 18, 2024
2 parents 0452162 + 087265c commit 6d120e2
Show file tree
Hide file tree
Showing 418 changed files with 6,586 additions and 3,407 deletions.
3 changes: 1 addition & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Preview } from '@storybook/react';
import { withThemeFromJSXProvider } from '@storybook/addon-styling';
import { DocsContainer } from './DocsContainer';
import themeStore from '../src/design/theme/themeStore/themeStore';
import DefaultStyle from '../src/design/theme/globalStyle/DefaultStyle/DefaultStyle';
import { DefaultStyle } from '../src/design/theme/globalStyle/DefaultStyle';
import { ThemeProvider } from 'styled-components';
import storyBookThemeLight from './storyBookThemeLight';
import storyBookThemeDark from './storyBookThemeDark';
Expand All @@ -15,7 +15,6 @@ const preview: Preview = {
docs: {
container: DocsContainer,
},
actions: { argTypesRegex: '^on[A-Z].*' },
options: {
storySort: {
order: [
Expand Down
2 changes: 1 addition & 1 deletion .storybook/storyBookThemeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const storyBookThemeDark = create({

brandTitle: 'FUI-FancyUI',
brandUrl: 'http://FUI.cool',
brandImage: 'https://storybook.js.org/images/placeholders/350x150.png',
brandImage: 'https://tobitry.de/bilder/fui/FancyUI%20-02FITStorybookWide.png',
brandTarget: '_blank',

textColor: rawTheme.colors.secondary[0],
Expand Down
2 changes: 1 addition & 1 deletion .storybook/storyBookThemeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const storyBookThemeLight = create({

brandTitle: 'FUI-FancyUI',
brandUrl: 'http://FUI.cool',
brandImage: 'https://storybook.js.org/images/placeholders/350x150.png',
brandImage: 'https://tobitry.de/bilder/fui/FancyUI%20-01FITStorybookWide.png',
brandTarget: '_blank',

textColor: rawTheme.colors.primary[0],
Expand Down
Binary file added fuiicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/fuiicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<title>FancyUILibary</title>
Expand Down
18 changes: 10 additions & 8 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
export * from '@/components/atoms/BackDrop';
export * from '@/components/atoms/ColorIndicator';
export * from '@/components/atoms/BackDrop';
export * from '@/components/atoms/ActionItem';
export * from '@/components/molecules/ActionItem';
export * from '@/components/atoms/ColorIndicator';
export * from '@/components/atoms/DynamicElementWrapper';
export * from '@/components/atoms/DateNumberAtom';
export * from '@/components/atoms/DateOutput';
export * from '@/components/atoms/DropDownSelect';
Expand Down Expand Up @@ -66,28 +67,27 @@ export * from '@/components/molecules/FancyDropDownUL';
export * from '@/components/molecules/FancySpeedDailButton';
export * from '@/components/molecules/InputWrapper';
export * from '@/components/molecules/Modal';
export * from '@/components/molecules/ColorInputs';
export * from '@/components/molecules/MonthWithDays';
export * from '@/components/molecules/Card';
export * from '@/components/molecules/Calendar';
export * from '@/components/molecules/ScalingSection';
export * from '@/components/atoms/ScalingSection';
export * from '@/components/molecules/SearchBar';
export * from '@/components/molecules/SingleInputs';
export * from '@/components/molecules/SingleToastMessage';
export * from '@/components/molecules/SwipeUpModal';
export * from '@/components/molecules/ColorDisplay';
export * from '@/components/molecules/FancyOpacitySlider';
export * from '@/components/molecules/FancyHueSlider';
export * from '@/components/molecules/FancyTabSwitch';
export * from '@/components/organisms/FancyTabSwitch';
export * from '@/components/molecules/FancyColorArea';
export * from '@/components/molecules/FancyColorOutput';
export * from '@/components/molecules/FancyModalHeadLine';
export * from '@/components/molecules/HeaderTitleWithLogo';
export * from '@/components/molecules/FancyPageList';
export * from '@/components/molecules/Paginator';
export * from '@/components/molecules/FancyProgressBar';
export * from '@/components/molecules/FancyMiniProfile';
export * from '@/components/molecules/FancyCheckbox';
export * from '@/components/molecules/Header';
export * from '@/components/atoms/Header';
export * from '@/components/molecules/FancyContent';
export * from '@/components/molecules/InfoCard';
export * from '@/components/molecules/ComponentAndActionWrapper';
Expand All @@ -112,11 +112,11 @@ export * from '@/components/organisms/FancyDropDownMenue';
export * from '@/components/organisms/FancyDropDownSelect';
export * from '@/components/organisms/FancyRangeSlider';
export * from '@/components/organisms/FancySearchBar';
export * from '@/components/organisms/FancyCheckbox';
export * from '@/components/organisms/FancyModal';
export * from '@/components/organisms/FancyCodeVerificationInput';
export * from '@/components/organisms/FancySwipeUpModal';
export * from '@/components/organisms/FancyDateInput';
export * from '@/components/templates/FancyDateDropDown';
export * from '@/components/organisms/FancyToastMessage';
export * from '@/components/organisms/FancyEditBar';
export * from '@/components/organisms/FancyRadio';
Expand All @@ -125,9 +125,11 @@ export * from '@/components/organisms/FancyColorPicker'; // Note: Please check i
export * from '@/components/organisms/FancyNumberInput';
export * from '@/components/organisms/FancyPasswordInput';
export * from '@/components/organisms/FancyTextInput';
export * from '@/components/organisms/FancyColorInput';

// ---------- Templates ------- //
export * from '@/components/templates/FancyInfoCard';
export * from '@/components/templates/FancyDateDropDown';
export * from '@/components/templates/FancyMenueComponent/FancyMenu';
export * from '@/components/templates/FancyMenueComponent/FancyMenuItem';
export * from '@/components/templates/FancyGrid';
Expand All @@ -140,7 +142,6 @@ export * from '@/components/templates/FancyAlignBox';
export * from '@/components/templates/FancyGridTemplate';
export * from '@/components/templates/FancyGridTemplateItem';
export * from '@/components/templates/FancySkeletonGrid';
export * from '@/components/templates/FancyCard';

// ---------- Utils/Hooks ------- //
export * from '@/components/shared/FancyPopover';
Expand Down Expand Up @@ -172,6 +173,7 @@ export * from '@/design/designFunctions/arrayToCssValues';
export * from '@/design/designFunctions/generateInsetBorderRadius';
export * from '@/design/designFunctions/checkThemeValue';
export * from '@/design/designFunctions/leftRightCenterToFlexJustify';
export * from '@/design/designFunctions/getThemeOrValueAsCss';

// ---------- Interfaces ------- //
export * from '@/types';
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@
"vite-plugin-dts": "^3.1.1"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.6.8",
"@storybook/addon-interactions": "^7.6.8",
"@storybook/addon-links": "^7.6.8",
"@storybook/addon-mdx-gfm": "^7.6.8",
"@storybook/addon-onboarding": "^1.0.10",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/addon-links": "^8.0.0",
"@storybook/addon-mdx-gfm": "^8.0.0",
"@storybook/addon-onboarding": "^8.0.0",
"@storybook/addon-styling": "1.3.7",
"@storybook/blocks": "^7.6.8",
"@storybook/react": "^7.6.8",
"@storybook/react-vite": "^7.6.8",
"@storybook/blocks": "^8.0.0",
"@storybook/react": "^8.0.0",
"@storybook/react-vite": "^8.0.0",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.6.17",
"@storybook/theming": "^8.0.0",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.95",
"@testing-library/jest-dom": "^6.1.6",
Expand All @@ -72,7 +72,7 @@
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^8.0.3",
"jest-styled-components": "^7.2.0",
"jsdom": "^23.0.1",
Expand All @@ -83,7 +83,7 @@
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rollup-plugin-visualizer": "^5.9.3",
"storybook": "^7.6.8",
"storybook": "^8.0.0",
"storybook-dark-mode": "^3.0.3",
"typescript": "^5.0.2",
"vite": "^5.0.11",
Expand Down
3 changes: 0 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import SwitchesRoute from './Routes/Switches/SwitchesRoute';
import TabSwitchRoute from './Routes/TabSwitchRoute/TabSwitchRoute';
import ToastMessageRoute from './Routes/ToastMessageRoute/ToastMessageRoute';
import Typogrphy from './Routes/Typography/Typogrphy';
import themeStore from './design/theme/themeStore/themeStore';

import FancyListBoxRoute from '@/Routes/FancyListBoxRoute/FancyListBoxRoute';
import SkeletonRoute from '@/Routes/SkeletonRoute/SkeletonRoute';
Expand Down Expand Up @@ -70,8 +69,6 @@ const OwnUl = styled.ul<{ theme: TTheme }>`
`;

function App() {
const theme = themeStore((state) => state.theme);

return (
<div className="App">
<Router>
Expand Down
Loading

0 comments on commit 6d120e2

Please sign in to comment.