Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(components): Export ThemeProvider #434

Merged
merged 35 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4c6864b
feat(components): Export ThemeProvider
nebula-aac Dec 13, 2023
cf39047
feat(components): add fonts to assets
nebula-aac Dec 14, 2023
a318d99
chore(components): fix linting issue
nebula-aac Dec 14, 2023
7383b52
style(components): format files
nebula-aac Dec 14, 2023
e46e3a0
chore(components): publish v0.13.0-alpha.0
nebula-aac Dec 14, 2023
30ea6e6
chore(components): verison bump
nebula-aac Dec 14, 2023
421f1ea
chore: version bump
nebula-aac Dec 14, 2023
13e4229
fix(components): return the theme
nebula-aac Dec 14, 2023
74e35fc
chore(components): alpha version bump
nebula-aac Dec 14, 2023
30e1e76
chore(componenets): add fonts assets to path
nebula-aac Dec 14, 2023
22596c4
chore(compoenents): version bump
nebula-aac Dec 14, 2023
b48a889
feat(components): change path to fonts, and add other colors
nebula-aac Dec 15, 2023
0d9919b
style(components): format changelog
nebula-aac Dec 15, 2023
2244389
chore(components): version bump
nebula-aac Dec 15, 2023
13da43f
feat(components): add outlined input component
nebula-aac Dec 15, 2023
f524e6f
fix(components): fix font path again
nebula-aac Dec 15, 2023
b3f2568
feat(components): add placeholder for button style
nebula-aac Dec 15, 2023
b114360
refactor(components): rename sistentprovider to SistentThemeProvider
nebula-aac Dec 15, 2023
6b7852c
style(components): format CHANGELOG.md
nebula-aac Dec 15, 2023
e6692bb
chore(components): version bump
nebula-aac Dec 15, 2023
a36ddef
feat(components): Move initialMode state into props
nebula-aac Dec 15, 2023
e8b3f86
chore(components): version bump
nebula-aac Dec 15, 2023
f392abb
fix(componenets): Add CssBaseline
nebula-aac Dec 15, 2023
e33761f
chore(componenets): version bump
nebula-aac Dec 15, 2023
9d5c28a
fix(components): Fix Drawer's color in theme mode
nebula-aac Dec 15, 2023
cd07a93
chore(components): version bump
nebula-aac Dec 15, 2023
f937a2f
fix(components): add fallback fonts
nebula-aac Dec 15, 2023
6038573
chore(components): verison bump
nebula-aac Dec 15, 2023
762cae2
fix(components): remove font import
nebula-aac Dec 15, 2023
2b6be9c
chore(components): version bump
nebula-aac Dec 15, 2023
cd77487
chore: update fork
nebula-aac Dec 18, 2023
718e1b8
chore: update fork
nebula-aac Dec 19, 2023
e4b1723
chore: update
nebula-aac Dec 26, 2023
c8c2adf
chore: Merge branch 'master' of https://github.com/layer5io/sistent i…
nebula-aac Jan 8, 2024
b626ec1
style: format
nebula-aac Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
291 changes: 291 additions & 0 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.3",
"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;
Loading