Skip to content

Commit 95fa513

Browse files
chore: add missing layout style to generators
1 parent 189ebd4 commit 95fa513

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/design-system/utils/generateStyledSystem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ const generateLayoutsStyle = ({
174174
return {
175175
position,
176176
left,
177+
bottom,
177178
right,
178179
top,
179180
zIndex,

src/utils/removeFalsyProperties.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Removes falsy properties from an object.
3+
* @param obj - The object from which falsy properties will be removed.
4+
* @returns A new object with only truthy properties.
5+
*/
16
export const removeFalsyProperties = <O extends object>(obj: O) => {
27
const filteredObject = Object.entries(obj).reduce<Record<string, unknown>>((acc, curr) => {
38
if (curr[1] || curr[1] === 0) {

0 commit comments

Comments
 (0)