Skip to content

Commit ac739cf

Browse files
committed
Merge branch 'main' into storybook-ci
2 parents 923170b + 3cc7c96 commit ac739cf

File tree

357 files changed

+15109
-6507
lines changed

Some content is hidden

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

357 files changed

+15109
-6507
lines changed

.all-contributorsrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,26 @@
262262
"contributions": [
263263
"code"
264264
]
265+
},
266+
{
267+
"login": "naorpeled",
268+
"name": "Naor Peled",
269+
"avatar_url": "https://avatars.githubusercontent.com/u/6171622?v=4",
270+
"profile": "https://naor.dev",
271+
"contributions": [
272+
"test",
273+
"code"
274+
]
275+
},
276+
{
277+
"login": "igalklebanov",
278+
"name": "Igal Klebanov",
279+
"avatar_url": "https://avatars.githubusercontent.com/u/14938291?v=4",
280+
"profile": "https://github.com/igalklebanov",
281+
"contributions": [
282+
"test",
283+
"code"
284+
]
265285
}
266286
],
267287
"contributorsPerLine": 7,

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nrwl/nx/typescript"],
26+
"extends": ["plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{

.github/actions/test/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
shell: bash
2323
run: npx nx affected:lint --base=last-release --exclude=website
2424

25-
- name: Build Headless
25+
- name: Build Headless Kit
2626
shell: bash
2727
run: npx nx build headless
2828

@@ -39,9 +39,9 @@ runs:
3939
storybookBuildDir: dist/storybook/headless
4040
zip: true
4141

42-
# - name: Build Daisy Theme
42+
# - name: Build Tailwind Theme
4343
# shell: bash
44-
# run: npx nx build daisy
44+
# run: npx nx build tailwind
4545

4646
# - name: Build
4747
# shell: bash

.github/workflows/website.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Website Deploy
2+
3+
on:
4+
- workflow_dispatch
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
if: github.ref == 'refs/heads/main'
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup
15+
uses: ./.github/actions/setup
16+
- name: Deploy
17+
env:
18+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
19+
shell: bash
20+
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npx nx deploy website

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ testem.log
6363

6464
# System Files
6565
.DS_Store
66-
Thumbs.db
66+
Thumbs.db
67+
68+
# Storybook
69+
**/storybook-static/*

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"git.pullTags": false,
3-
"conventionalCommits.scopes": ["daisy"]
3+
"conventionalCommits.scopes": ["tailwind"]
44
}

CODING_STANDARDS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export type TooltipProps = QwikIntrinsicElements['div'] & {
6464
};
6565
```
6666

67-
For **Daisy, Material and other components variations**, you can define the new props in a new type, named with the component name and the variation as prefix. For example:
67+
For **Tailwind, Material and other components variations**, you can define the new props in a new type, named with the component name and the variation as prefix. For example:
6868

6969
```ts
70-
type DaisyTooltipProps = {
70+
type TailwindTooltipProps = {
7171
size?: 'sm' | 'md';
7272
};
7373
```
@@ -77,7 +77,7 @@ The final exported type will extend from the headless props type. For example:
7777
```ts
7878
import { TooltipProps as HeadlessTooltipProps } from '@qwik-ui/headless';
7979

80-
export type TooltipProps = HeadlessTooltipProps & DaisyTooltipProps;
80+
export type TooltipProps = HeadlessTooltipProps & TailwindTooltipProps;
8181
```
8282

8383
- Use object destructuring in the component$ declaration on all the props you are going to use. For example:
@@ -104,15 +104,15 @@ return (
104104
- Use accessibility attributes whenever they are needed.
105105
- For simple primitive states use signals. For object state, use stores.
106106

107-
## Example of headless button customisation with Daisy
107+
## Example of headless button customisation with Tailwind
108108

109109
```tsx
110110
import { component$, QwikIntrinsicElements, Slot } from '@builder.io/qwik';
111111
import { Button as HeadlessButton, ButtonProps as ButtonHeadlessProps } from '@qwik-ui/headless';
112112
import { clsq } from '@qwik-ui/shared';
113113

114-
type DaisyButtonProps = { size?: 'sm' | 'md', ... };
115-
export type ButtonProps = ButtonHeadlessProps & DaisyButtonProps;
114+
type TailwindButtonProps = { size?: 'sm' | 'md', ... };
115+
export type ButtonProps = ButtonHeadlessProps & TailwindButtonProps;
116116

117117
export const Button = component$(
118118
({ size = 'md', class: classNames, ...rest }: ButtonProps) => {

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ git checkout -b my-fix-branch main
6464

6565
- Visit the URL printed in the console and you'll have a page opened with the suite of widgets.
6666

67-
- Once you made some changes in either package (`headless`, `daisy` or `material`), you will see them immediately reflected on the page.
67+
- Once you made some changes in either package (`headless`, `tailwind` or `material`), you will see them immediately reflected on the page.
6868

6969
### ▶ 5. Make sure you add / modify tests
7070

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<details>
2727
<summary>Table of Contents</summary>
2828

29-
- [⚠ This is not ready for production!](#-this-is-not-ready-for-production)
3029
- [Installation of the headless components](#installation-of-the-headless-components)
3130
- [Contributing](#contributing)
3231
- [Code Of Conduct](#code-of-conduct)
@@ -40,13 +39,16 @@
4039

4140
This library is still in early stages and once we'll collect enough feedback from the community we'll release the first beta version.
4241

43-
We still need to
42+
### ROADMAP
4443

45-
- [x] Design a normal logo
46-
- [ ] Build a proper documentation website
47-
- [ ] Add tests
48-
- [ ] Fix bugs
49-
- [ ] more...
44+
- [ ] Deploy the documentation site
45+
- [ ] Add "Readiness" statuses to the components
46+
- [ ] Add a getting started video tutorial
47+
- [ ] Make a public storybook url
48+
- [ ] Deploy the tailwind-kit package
49+
- [ ] Cover all of the components with storybook tests
50+
- [ ] Add testing coverage reports
51+
- [ ] Add a contribution tutorial video
5052

5153
<br/>
5254

@@ -117,6 +119,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
117119
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PatrykGodlewski"><img src="https://avatars.githubusercontent.com/u/81991100?v=4?s=100" width="100px;" alt="Patryk Godlewski"/><br /><sub><b>Patryk Godlewski</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/issues?q=author%3APatrykGodlewski" title="Bug reports">🐛</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=PatrykGodlewski" title="Code">💻</a></td>
118120
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pranit-yawalkar"><img src="https://avatars.githubusercontent.com/u/64571514?v=4?s=100" width="100px;" alt="Pranit Yawalkar"/><br /><sub><b>Pranit Yawalkar</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/issues?q=author%3Apranit-yawalkar" title="Bug reports">🐛</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=pranit-yawalkar" title="Code">💻</a></td>
119121
<td align="center" valign="top" width="14.28%"><a href="https://github.com/gederer"><img src="https://avatars.githubusercontent.com/u/705111?v=4?s=100" width="100px;" alt="Greg Ederer"/><br /><sub><b>Greg Ederer</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=gederer" title="Code">💻</a></td>
122+
<td align="center" valign="top" width="14.28%"><a href="https://naor.dev"><img src="https://avatars.githubusercontent.com/u/6171622?v=4?s=100" width="100px;" alt="Naor Peled"/><br /><sub><b>Naor Peled</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=naorpeled" title="Tests">⚠️</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=naorpeled" title="Code">💻</a></td>
123+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/igalklebanov"><img src="https://avatars.githubusercontent.com/u/14938291?v=4?s=100" width="100px;" alt="Igal Klebanov"/><br /><sub><b>Igal Klebanov</b></sub></a><br /><a href="https://github.com/qwikifiers/qwik-ui/commits?author=igalklebanov" title="Tests">⚠️</a> <a href="https://github.com/qwikifiers/qwik-ui/commits?author=igalklebanov" title="Code">💻</a></td>
120124
</tr>
121125
</tbody>
122126
</table>

apps/website-e2e/cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'cypress';
2-
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
2+
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
33

44
export default defineConfig({
55
e2e: nxE2EPreset(__dirname, {

0 commit comments

Comments
 (0)