Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/leemonade/bubbles into d…
Browse files Browse the repository at this point in the history
…evelop

* 'develop' of https://github.com/leemonade/bubbles:
  chore: version bump
  fix(ScoreFrontStage): refactor styles and colors
  • Loading branch information
johan-fx committed Feb 7, 2024
2 parents 465cc65 + 82e1fa8 commit f685eb0
Show file tree
Hide file tree
Showing 21 changed files with 105 additions and 30 deletions.
9 changes: 9 additions & 0 deletions packages/calendars/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @bubbles-ui/calendars

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/components@1.2.153
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/calendars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/calendars",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -59,8 +59,8 @@
"rrule": "^2.6.8"
},
"peerDependencies": {
"@bubbles-ui/components": "^1.2.152",
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/components": "^1.2.153",
"@bubbles-ui/icons": "^1.2.153",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"webpack": "*"
Expand Down
8 changes: 8 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @bubbles-ui/components

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/components",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -61,7 +61,7 @@
"chromatic": "npx chromatic --project-token=7b10302a7b6b --build-script-name=build:storybook:raw"
},
"dependencies": {
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/icons": "^1.2.153",
"@emotion/react": "^11.10.0",
"@heroicons/react": "^1.0.5",
"@hookform/resolvers": "^3.3.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { isDate, isFunction } from 'lodash';
import { ItemStyles } from './Item.styles';
import { ITEM_DEFAULT_PROPS, ITEM_PROP_TYPES } from './Item.constants';
import { Box } from '../../../layout';
import { isDate, isFunction } from 'lodash';
import { Badge } from '../Badge';

const Item = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { createStyles } from '@mantine/styles';
import { pxToRem, getPaddings, getFontExpressive, getFontProductive } from '../../../theme.mixins';

export const ItemStyles = createStyles((theme, {}) => {
const ItemStyles = createStyles((theme, {}) => {
const scoreTheme = theme.other.score;
return {
root: {
borderTop: `${scoreTheme.border.width} solid ${scoreTheme.border.color.neutral.emphasis}`,
backgroundColor: scoreTheme.background.color.neutral.subtle,
padding: scoreTheme.spacing.padding.md,
'&:hover': {
backgroundColor: scoreTheme.background.color.neutral.hover,
Expand Down Expand Up @@ -41,3 +39,5 @@ export const ItemStyles = createStyles((theme, {}) => {
},
};
});

export { ItemStyles };
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ScoreFronstage = ({
maxGrade,
values,
locale,
subjectColor,
...props
}) => {
const { classes } = ScoreFronstageStyles({}, { name: 'ScoreFronstage' });
Expand All @@ -34,6 +35,7 @@ const ScoreFronstage = ({
size="lg"
icon={icon ? <ImageLoader src={icon} height={'100%'} forceImage /> : null}
showIconAndImage
subjectColor={subjectColor}
/>
</Box>
<Box className={classes.header}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createStyles } from '@mantine/styles';

export const ScoreFronstageStyles = createStyles((theme, {}) => {
const ScoreFronstageStyles = createStyles((theme, {}) => {
const scoreTheme = theme.other.score;
const paddingLg = scoreTheme.spacing.padding.lg;
return {
Expand All @@ -18,7 +18,7 @@ export const ScoreFronstageStyles = createStyles((theme, {}) => {
},
header: {
padding: `56px ${paddingLg} ${paddingLg} ${paddingLg}`,
backgroundColor: scoreTheme.background.color.neutral.subtle,
// backgroundColor: scoreTheme.background.color.neutral.subtle,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
Expand All @@ -42,3 +42,5 @@ export const ScoreFronstageStyles = createStyles((theme, {}) => {
},
};
});

export { ScoreFronstageStyles };
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const AVATAR_DEFAULT_PROPS = {
size: 'md',
state: 'normal',
showIconAndImage: false,
subjectColor: '#96D47F',
};
export const AVATAR_PROP_TYPES = {
image: PropTypes.string,
Expand All @@ -32,4 +33,5 @@ export const AVATAR_PROP_TYPES = {
fullName: PropTypes.string,
icon: PropTypes.any,
alt: PropTypes.string,
subjectColor: PropTypes.string,
};
10 changes: 9 additions & 1 deletion packages/components/src/informative/Avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const Avatar = forwardRef(
image,
icon,
color,
subjectColor,
initials,
fullName,
radius = true,
Expand Down Expand Up @@ -43,7 +44,14 @@ const Avatar = forwardRef(
}
}

const { classes, theme } = AvatarStyles({ radius, color, size, state, activityStatus });
const { classes, theme } = AvatarStyles({
radius,
color,
size,
state,
activityStatus,
subjectColor,
});

return (
<Box className={classes.avatarWrapper}>
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/informative/Avatar/Avatar.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const getIconWrapperStyles = (size, theme, badgeTheme) => {
};

export const AvatarStyles = createStyles(
(theme, { size, radius, color, state, activityStatus }) => {
(theme, { size, radius, color, state, activityStatus, subjectColor }) => {
const avatarTheme = theme.other.avatar;
const badgeTheme = theme.other.badge;

Expand All @@ -89,7 +89,7 @@ export const AvatarStyles = createStyles(
iconWrapper: {
display: size === 'sm' && 'none',
boxSizing: 'content-box',
backgroundColor: badgeTheme.background.color.primary.default,
backgroundColor: subjectColor,
borderRadius: radius ? badgeTheme.border.radius : 0,
position: 'absolute',
...getIconWrapperStyles(size, theme, badgeTheme),
Expand All @@ -100,5 +100,5 @@ export const AvatarStyles = createStyles(
},
},
};
}
},
);
9 changes: 9 additions & 0 deletions packages/editors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @bubbles-ui/editors

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/components@1.2.153
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/editors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/editors",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -79,8 +79,8 @@
"styled-icons": "^10.45.0"
},
"peerDependencies": {
"@bubbles-ui/components": "^1.2.152",
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/components": "^1.2.153",
"@bubbles-ui/icons": "^1.2.153",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"webpack": "*"
Expand Down
9 changes: 9 additions & 0 deletions packages/extras/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @bubbles-ui/extras

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/components@1.2.153
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/extras/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/extras",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -53,8 +53,8 @@
"swiper": "^8.1.4"
},
"peerDependencies": {
"@bubbles-ui/components": "^1.2.152",
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/components": "^1.2.153",
"@bubbles-ui/icons": "^1.2.153",
"@mantine/core": "5.2.4",
"@mantine/hooks": "5.2.4",
"react": "^17.0.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @bubbles-ui/icons

## 1.2.153

### Patch Changes

- Versions bump

## 1.2.152

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/icons",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System icons library.",
"license": "MIT",
"repository": {
Expand Down
11 changes: 11 additions & 0 deletions packages/leemons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @bubbles-ui/leemons

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/components@1.2.153
- @bubbles-ui/calendars@1.2.153
- @bubbles-ui/editors@1.2.153
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/leemons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/leemons",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -72,10 +72,10 @@
"ajv": "6.12.6"
},
"peerDependencies": {
"@bubbles-ui/calendars": "^1.2.152",
"@bubbles-ui/components": "^1.2.152",
"@bubbles-ui/editors": "^1.2.152",
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/calendars": "^1.2.153",
"@bubbles-ui/components": "^1.2.153",
"@bubbles-ui/editors": "^1.2.153",
"@bubbles-ui/icons": "^1.2.153",
"dayjs": "^1.10.7",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
9 changes: 9 additions & 0 deletions packages/notifications/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @bubbles-ui/notifications

## 1.2.153

### Patch Changes

- Versions bump
- Updated dependencies
- @bubbles-ui/components@1.2.153
- @bubbles-ui/icons@1.2.153

## 1.2.152

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/notifications/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bubbles-ui/notifications",
"version": "1.2.152",
"version": "1.2.153",
"description": "The Bubbles Design System is Leemonade's open-source design system for products and experiences.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -52,8 +52,8 @@
"react-transition-group": "^4.4.2"
},
"peerDependencies": {
"@bubbles-ui/components": "^1.2.152",
"@bubbles-ui/icons": "^1.2.152",
"@bubbles-ui/components": "^1.2.153",
"@bubbles-ui/icons": "^1.2.153",
"@mantine/core": "5.2.4",
"@mantine/hooks": "5.2.4",
"react": "^17.0.1",
Expand Down

0 comments on commit f685eb0

Please sign in to comment.