Skip to content

Commit b1cdf38

Browse files
authored
Merge branch 'master' into customize-switch
2 parents 19c4ab1 + bc929c7 commit b1cdf38

File tree

83 files changed

+6363
-3724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+6363
-3724
lines changed

.github/workflows/chromatic.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
# Job steps
1313
steps:
1414
- uses: actions/checkout@v1
15+
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 16
19+
1520
- name: Install dependencies
1621
run: npm ci
1722

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
- name: Check out
1313
uses: actions/checkout@v1
1414

15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
1519
- name: Install dependencies
1620
run: npm ci
1721

.storybook/main.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
module.exports = {
22
stories: ["../src/**/*.stories.@(js|jsx|mdx)"],
3-
3+
core: {
4+
disableTelemetry: true,
5+
},
46
addons: [
57
"@storybook/addon-postcss",
68
"@storybook/addon-links",
7-
"@storybook/addon-essentials",
89
"storybook-css-modules-preset",
10+
"storybook-addon-designs",
11+
{
12+
name: "@storybook/addon-essentials",
13+
options: {
14+
backgrounds: false,
15+
},
16+
},
917
],
1018
};

.storybook/manager-head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
document.title = "Xola UI Kit";
99
</script>
1010
<style type="text/css">
11-
/* Make the style consistent with the Xola theme. This can't be styled by variables so raw CSS is neeeded */
11+
/* Make the style consistent with the Xola theme. This can't be styled by variables so raw CSS is needed */
1212
.sidebar-subheading {
1313
color: #505254 !important; /* text-gray-darker */
1414
font-size: 12px !important;

.storybook/preview.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import "../index.css";
1+
import React from "react";
2+
import { Provider } from "../src";
23
import xola from "./xola";
4+
import "../index.css";
35

46
export const parameters = {
57
actions: { argTypesRegex: "^on[A-Z].*" },
@@ -14,3 +16,11 @@ export const parameters = {
1416
},
1517
},
1618
};
19+
20+
export const decorators = [
21+
(Story) => (
22+
<Provider>
23+
<Story />
24+
</Provider>
25+
),
26+
];

.storybook/xola.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ export default create({
3232
inputBorderRadius: 4,
3333

3434
brandTitle: "Xola's UI Components",
35-
brandImage: "https://xola.com/images/xola-logo-header.png",
35+
brandImage: "https://www.xola.com/wp-content/themes/xola/assets/images/Xola.svg",
3636
});

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,23 @@ Or:
142142
```bash
143143
$ npm install some-package --legacy-peer-deps
144144
```
145+
146+
## Publishing the Package
147+
148+
Install [np](https://github.com/sindresorhus/np#readme) which will help you publish the package
149+
150+
```bash
151+
npm -g install np
152+
```
153+
154+
Once you're ready, run this command to publish your package
155+
156+
```bash
157+
npm run build
158+
np <your-new-version> --tag=latest --yolo
159+
```
160+
161+
Then make sure to push all the tags upstream to `xola/ui-kit` repo:
162+
```
163+
git push <upstream-remote> master --tags
164+
```

index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
top: -1px;
7373
}
7474

75+
sup {
76+
top: -7px;
77+
}
78+
7579
.font-bold {
7680
@apply antialiased;
7781
}

0 commit comments

Comments
 (0)