Skip to content

Commit

Permalink
fix: export Link component
Browse files Browse the repository at this point in the history
  • Loading branch information
orrgottlieb committed May 11, 2021
1 parent b6bb726 commit a37d4c7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monday-ui-react-core",
"version": "0.3.21",
"version": "0.3.22",
"description": "Official monday.com UI resources for application development in React.js",
"main": "dist/main.js",
"scripts": {
Expand Down
17 changes: 17 additions & 0 deletions src/general-stories/colors/ColorItem.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.content-color {
width: 100%;
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 var(--spacing-small);
.color-element {
height: 100%;
}
.color-name {
padding: 0 8px;
color: var(--primary-text-color);
flex-grow: 1;
}
}

.color-item-component {
width: 100%;
height: 115px;
Expand Down
27 changes: 22 additions & 5 deletions src/general-stories/colors/colors.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function ContentColors({ color, isFirst, isLast }) {

const ContentColorItem = ({ color }) => {
return (
<section className="color-item-component">
<section className="content-color">
<div className="color-name" style={{ width: "200px" }}>
<span style={{ padding: "0 8px", fontSize: "16px" }}>--color-{color}</span>
</div>
Expand All @@ -138,7 +138,8 @@ const ContentColorItem = ({ color }) => {
height: "100%",
backgroundColor: "var(--primary-background-color)",
display: "flex",
alignItems: "center"
alignItems: "center",
padding: "0 8px"
}}
>
<ContentColors color={color} isFirst />
Expand All @@ -149,7 +150,8 @@ const ContentColorItem = ({ color }) => {
height: "100%",
backgroundColor: "var(--primary-background-color)",
display: "flex",
alignItems: "center"
alignItems: "center",
padding: "0 8px"
}}
>
<ContentColors color={color} />
Expand All @@ -161,7 +163,8 @@ const ContentColorItem = ({ color }) => {
height: "100%",
backgroundColor: "var(--primary-background-color)",
display: "flex",
alignItems: "center"
alignItems: "center",
padding: "0 8px"
}}
>
<ContentColors color={color} isLast />
Expand Down Expand Up @@ -195,7 +198,7 @@ export const Colors = () => {
<div className="colors-container">
<div className="themes-icon-container">
<div className="theme-name-spacer">Color Keys</div>
<span className="theme-container">
<span className="theme-container light-app-theme">
<Sun className="theme-icon" /> Light
</span>
<span className="theme-container dark-app-theme">
Expand All @@ -219,6 +222,20 @@ export const Colors = () => {
gives understanding and indication of orientation and belonging. The board’s main strength is its simple and
visual appearance. That’s why the status colors should appear on the board and nowhere else in the UI.
</DescriptionLabel>
<div className="colors-container">
<div className="themes-icon-container">
<div className="theme-name-spacer">Color Keys</div>
<span className="theme-container light-app-theme" style={{ width: "175px" }}>
<Sun className="theme-icon" /> Light
</span>
<span className="theme-container dark-app-theme" style={{ width: "175px" }}>
<Moon className="theme-icon" /> Dark
</span>
<span className="theme-container black-app-theme" style={{ width: "175px" }}>
<Bolt className="theme-icon" /> Dark
</span>
</div>
</div>
{contentColors.map(color => {
return <ContentColorItem color={color} />;
})}
Expand Down
3 changes: 2 additions & 1 deletion src/published-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const publishedComponents = {
useDebounceEvent: "/src/hooks/useDebounceEvent.js",
useClickOutside: "/src/hooks/useClickOutside.js",
useResizeObserver: "/src/hooks/useResizeObserver.js",
allIcons: "/src/components/Icon/Icons"
allIcons: "/src/components/Icon/Icons",
Link: "/src/components/Link/Link.jsx"
};

function getPublishedComponents(dirPath = "") {
Expand Down

0 comments on commit a37d4c7

Please sign in to comment.