-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dsod
committed
Feb 19, 2024
1 parent
8a48e13
commit 6029ffa
Showing
12 changed files
with
7,574 additions
and
1,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,6 @@ Thumbs.db | |
## Panda | ||
**/styled-system | ||
**/styled-system-studio | ||
|
||
|
||
storybook-static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
{ | ||
"name": "@dui/source", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"prepare": "husky" | ||
}, | ||
"private": false, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.5.3", | ||
"@builder.io/mitosis": "^0.0.145", | ||
"@builder.io/mitosis-cli": "^0.0.145", | ||
"@builder.io/qwik": "^1.4.3", | ||
"@nx/js": "18.0.2", | ||
"@nx/vite": "^18.0.2", | ||
"@nx/workspace": "18.0.2", | ||
"@pandacss/dev": "^0.30.1", | ||
"@types/node": "18.16.9", | ||
"@types/react": "^18.2.55", | ||
"@types/react-dom": "^18.2.18", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"husky": "^9.0.10", | ||
"nx": "18.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"solid-js": "^1.8.14", | ||
"typescript": "~5.3.2", | ||
"vite": "^5.0.12", | ||
"vite-plugin-solid": "^2.9.1" | ||
}, | ||
"engines": { | ||
"pnpm": ">=8.0.0", | ||
"node": ">=16.0.0" | ||
} | ||
"name": "@dui/source", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"prepare": "husky" | ||
}, | ||
"private": false, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.5.3", | ||
"@builder.io/mitosis": "^0.0.145", | ||
"@builder.io/mitosis-cli": "^0.0.145", | ||
"@builder.io/qwik": "^1.4.3", | ||
"@nx/js": "18.0.2", | ||
"@nx/storybook": "18.0.2", | ||
"@nx/vite": "^18.0.2", | ||
"@nx/web": "18.0.2", | ||
"@nx/workspace": "18.0.2", | ||
"@pandacss/dev": "^0.30.1", | ||
"@storybook/addon-essentials": "^7.4.6", | ||
"@storybook/addon-links": "^7.4.6", | ||
"@storybook/blocks": "^7.4.6", | ||
"@storybook/builder-vite": "^7.4.6", | ||
"@storybook/html": "^7.4.6", | ||
"@storybook/html-vite": "^7.4.6", | ||
"@types/node": "18.16.9", | ||
"@types/react": "^18.2.55", | ||
"@types/react-dom": "^18.2.18", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"husky": "^9.0.10", | ||
"nx": "18.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"solid-js": "^1.8.14", | ||
"storybook": "^7.4.6", | ||
"storybook-framework-qwik": "^0.2.4", | ||
"typescript": "~5.3.2", | ||
"vite": "^5.0.12", | ||
"vite-plugin-solid": "^2.9.1" | ||
}, | ||
"engines": { | ||
"pnpm": ">=8.0.0", | ||
"node": ">=16.0.0" | ||
}, | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { StorybookConfig } from "storybook-framework-qwik"; | ||
|
||
const config: StorybookConfig = { | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"], | ||
framework: { | ||
name: "storybook-framework-qwik", | ||
}, | ||
core: { | ||
renderer: "storybook-framework-qwik", | ||
}, | ||
stories: [ | ||
// ...rootMain.stories, | ||
"../src/components/**/*.stories.mdx", | ||
"../src/components/**/*.stories.@(js|jsx|ts|tsx)", | ||
], | ||
|
||
// biome-ignore lint/suspicious/noExplicitAny: <explanation> | ||
viteFinal: async (config: any) => { | ||
return config; | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<script> | ||
window.global = window; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Parameters } from "storybook-framework-qwik"; | ||
|
||
import "../src/global.css"; | ||
|
||
export const parameters: Parameters = { | ||
a11y: { | ||
config: {}, | ||
options: { | ||
checks: { "color-contrast": { options: { noScroll: true } } }, | ||
restoreScroll: true, | ||
}, | ||
}, | ||
options: { | ||
showRoots: true, | ||
}, | ||
docs: { | ||
iframeHeight: "200px", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
}, | ||
|
||
"exclude": [ | ||
"../**/*.spec.ts", | ||
"../**/*.test.ts", | ||
"../**/*.spec.tsx", | ||
"../**/*.test.tsx", | ||
], | ||
"include": [ | ||
"../src/**/*.stories.ts", | ||
"../src/**/*.stories.js", | ||
"../src/**/*.stories.jsx", | ||
"../src/**/*.stories.tsx", | ||
"../src/**/*.stories.mdx", | ||
"*.ts", | ||
"*.js", | ||
"preview.tsx", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"type": "module" | ||
"type": "module", | ||
"scripts": { | ||
"build-storybook": "nx build-storybook", | ||
"storybook": "nx storybook -p 6006" | ||
}, | ||
"nx": { | ||
"includedScripts": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Meta, StoryObj } from "storybook-framework-qwik"; | ||
import { Button, type ButtonProps } from "./button"; | ||
|
||
const meta: Meta<ButtonProps> = { | ||
component: Button, | ||
}; | ||
|
||
type Story = StoryObj<ButtonProps>; | ||
|
||
export default meta; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
size: "medium", | ||
}, | ||
render: (props) => <Button {...props}>Some button</Button>, | ||
}; |
2 changes: 1 addition & 1 deletion
2
packages/qwik/src/components/button.tsx → ...ges/qwik/src/components/button/button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { AspectRatio, Divider, Circle } from "../styled-system/jsx"; | ||
export type { AspectRatioProps, DividerProps, CircleProps } from "../styled-system/jsx"; | ||
export { Button } from "./button"; | ||
export { Button } from "./button/button"; |
Oops, something went wrong.