Skip to content

Commit

Permalink
feature: Toast component
Browse files Browse the repository at this point in the history
fix dependencies

fix framer-motion

fix storybook webpack

update framer-motion

downgrade framer-motion

modify toast styles

modify export

cancel some exports

update toast

fix navbar issue

add useMutationsHandler in core-ui

review fixes

minor fixes

fix theme issue

fix generic type

try new generic types

fix generic modify type

fix type

typescript wizard

fix mutationconfig

update mutation

fix unknown

minor fixes

useMutationsHandler works fire !!

fix css color

fix toastprovider

modify toastProps

modify rgbacolor

fix description builder
  • Loading branch information
hervedombya committed Oct 20, 2023
1 parent ac443f3 commit 99ac811
Show file tree
Hide file tree
Showing 16 changed files with 1,064 additions and 14 deletions.
12 changes: 12 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,16 @@ module.exports = {
'@storybook/addon-storysource',
'@storybook/addon-knobs',
],
webpackFinal: async (config, { configType }) => {
// Resolve error when webpack-ing storybook:
// Can't import the named export 'Children' from non EcmaScript module (only
// default export is available)
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
});

return config;
},
};
181 changes: 172 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@storybook/theming": "^6.4.22",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^13.1.9",
"@types/jest": "^27.5.0",
"@types/react": "^18.0.8",
Expand Down Expand Up @@ -95,12 +96,12 @@
"vega-tooltip": "^0.27.0"
},
"peerDependencies": {
"@js-temporal/polyfill": "^0.4.3",
"@fortawesome/fontawesome-free": "^5.10.2",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-regular-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"@js-temporal/polyfill": "^0.4.3",
"polished": "3.4.1",
"pretty-bytes": "^5.6.0",
"react": "^17.0.2",
Expand Down Expand Up @@ -137,6 +138,7 @@
}
},
"dependencies": {
"@floating-ui/dom": "^0.1.10"
"@floating-ui/dom": "^0.1.10",
"framer-motion": "^4.1.17"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import { space, fontSize } from '../../style/theme';
*/
type Theme = {
statusHealthy: string;
statusHealthyRGB: string;
statusWarning: string;
statusWarningRGB: string;
statusCritical: string;
statusCriticalRGB: string;
selectedActive: string;
highlight: string;
border: string;
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/icon/Icon.component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {
CSSProperties,
HTMLProps,
PropsWithChildren,
useEffect,
Expand Down Expand Up @@ -145,7 +146,7 @@ export type IconColor = keyof typeof brand;
type Props = {
name: IconName;
size?: SizeProp;
color?: IconColor;
color?: IconColor | CSSProperties['color'];
ariaLabel?: string;
withWrapper?: boolean;
};
Expand Down
Loading

0 comments on commit 99ac811

Please sign in to comment.