Skip to content

Commit

Permalink
Merge pull request #434 from layer5io/368-themeprovider
Browse files Browse the repository at this point in the history
feat(components): Export ThemeProvider
  • Loading branch information
nebula-aac authored Jan 13, 2024
2 parents 44df8e0 + b626ec1 commit f9b7c8a
Show file tree
Hide file tree
Showing 92 changed files with 1,452 additions and 162 deletions.
341 changes: 313 additions & 28 deletions packages/components/CHANGELOG.md

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@layer5/sistent-components",
"version": "0.12.4",
"version": "0.13.0-alpha.10",
"description": "Reusable React Components",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"require": "./dist/index.js",
"import": "./dist/index.js",
Expand All @@ -15,7 +16,8 @@
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
"dist/**",
"src/assets/fonts/*"
],
"scripts": {
"build": "NODE_ENV=production tsup",
Expand All @@ -25,7 +27,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@layer5/sistent-svg": "workspace:^"
"@layer5/sistent-svg": "^0.14.2"
},
"devDependencies": {
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -87,5 +89,6 @@
"default": "./dist/index.js"
}
}
}
},
"gitHead": "60385738bf351777627b212e623eb15c64a36ccc"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { ConditionalTooltip } from './tooltip-for-desc';
import ConditionalTooltip from './tooltip-for-desc';
export { ConditionalTooltip };
8 changes: 7 additions & 1 deletion packages/components/src/custom/TooltipIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ interface TooltipIconProps {
style?: React.CSSProperties;
}

export function TooltipIcon({ title, onClick, icon, style, arrow = false }: TooltipIconProps) {
export function TooltipIcon({
title,
onClick,
icon,
style,
arrow = false
}: TooltipIconProps): JSX.Element {
return (
<Tooltip title={title} arrow={arrow}>
<IconButton
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ export {
type FilterColumn,
type UniversalFilterProps
} from './custom/UniversalFilter';
export { default as SistentThemeProvider } from './theme';
export * from './theme/colors';
12 changes: 7 additions & 5 deletions packages/components/src/patches/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ export interface ChildrenPropType<T> {
export const Tooltip = React.forwardRef<
HTMLDivElement,
TooltipProps & ChildrenPropType<React.ReactNode>
>((props, ref) => (
<MuiTooltip {...props} ref={ref}>
<span>{props.children}</span>
</MuiTooltip>
));
>(
(props, ref): JSX.Element => (
<MuiTooltip {...props} ref={ref}>
<span>{props.children}</span>
</MuiTooltip>
)
);

export default Tooltip;
Empty file.
Loading

0 comments on commit f9b7c8a

Please sign in to comment.