Skip to content

Commit

Permalink
release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi6jp committed Feb 12, 2024
1 parent d1af68c commit 8c6a8a7
Show file tree
Hide file tree
Showing 9 changed files with 1,672 additions and 1,383 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default (props) => {

#### Layout

- [ ] Artboard
- [x] Artboard
- [ ] Divider
- [ ] Drawer
- [ ] Footer
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"next": "^14.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rsc-daisyui": "^0.7.0"
"rsc-daisyui": "^0.8.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.5.6",
Expand Down
32 changes: 16 additions & 16 deletions packages/rsc-daisyui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rsc-daisyui",
"main": "./dist/index.js",
"version": "0.7.0",
"version": "0.8.0",
"description": "daisyUI for React Server Component",
"homepage": "https://yoshi6jp.github.io/rsc-daisyui/",
"bugs": {
Expand Down Expand Up @@ -42,34 +42,34 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@storybook/addon-essentials": "^7.6.10",
"@storybook/addon-interactions": "^7.6.10",
"@storybook/addon-links": "^7.6.10",
"@storybook/addon-onboarding": "^1.0.10",
"@storybook/addon-storysource": "^7.6.10",
"@storybook/blocks": "^7.6.10",
"@storybook/react": "^7.6.10",
"@storybook/react-vite": "^7.6.10",
"@storybook/test": "^7.6.10",
"@storybook/addon-essentials": "^7.6.14",
"@storybook/addon-interactions": "^7.6.14",
"@storybook/addon-links": "^7.6.14",
"@storybook/addon-onboarding": "^1.0.11",
"@storybook/addon-storysource": "^7.6.14",
"@storybook/blocks": "^7.6.14",
"@storybook/react": "^7.6.14",
"@storybook/react-vite": "^7.6.14",
"@storybook/test": "^7.6.14",
"@tailwindcss/typography": "^0.5.10",
"@tw-classed/core": "^1.7.0",
"@types/react": "^18.2.48",
"@types/react": "^18.2.55",
"autoprefixer": "^10.4.17",
"daisyui": "^4.6.0",
"daisyui": "^4.6.2",
"eslint-config-custom": "workspace:*",
"eslint-plugin-storybook": "^0.6.15",
"postcss": "^8.4.33",
"postcss": "^8.4.35",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.10",
"storybook": "^7.6.14",
"tailwind-config": "workspace:*",
"tailwindcss": "^3.4.1",
"tsconfig": "workspace:*",
"tsup": "^6.0.1",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@tw-classed/react": "^1.7.0",
"tailwind-merge": "^2.2.0"
"tailwind-merge": "^2.2.1"
}
}
1 change: 1 addition & 0 deletions packages/rsc-daisyui/src/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export const Alert = classed("div", "alert", {
role: "alert",
},
});
Alert.displayName = "Alert";
106 changes: 106 additions & 0 deletions packages/rsc-daisyui/src/artboard/artboard.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import React from "react";
import type { Meta, StoryObj } from "@storybook/react";
import { getVariantConfig } from "@tw-classed/react";
import { toArgTypes } from "../storybook-helpers";
import { Artboard } from ".";

const meta: Meta<typeof Artboard> = {
title: "Layout/Artboard",
component: Artboard,
argTypes: toArgTypes(getVariantConfig(Artboard)),
};

export default meta;
type Story = StoryObj<typeof Artboard>;
export const Default: Story = {
args: {
children: "320×568",
},
render: (args) => {
return <Artboard {...args} />;
},
};

export const Size2: Story = {
...Default,
args: {
size: "2",
children: "375×667",
},
};
export const Size3: Story = {
...Default,
args: {
size: "3",
children: "414×736",
},
};
export const Size4: Story = {
...Default,
args: {
size: "4",
children: "375×812",
},
};
export const Size5: Story = {
...Default,
args: {
size: "5",
children: "414×896",
},
};
export const Size6: Story = {
...Default,
args: {
size: "6",
children: "320×1024",
},
};
export const HorizontalSize1: Story = {
...Default,
args: {
children: "320×568",
horizontal: true,
},
};

export const HorizontalSize2: Story = {
...Default,
args: {
size: "2",
children: "375×667",
horizontal: true,
},
};
export const HorizontalSize3: Story = {
...Default,
args: {
size: "3",
children: "414×736",
horizontal: true,
},
};
export const HorizontalSize4: Story = {
...Default,
args: {
size: "4",
children: "375×812",
horizontal: true,
},
};
export const HorizontalSize5: Story = {
...Default,
args: {
size: "5",
children: "414×896",
horizontal: true,
},
};
export const HorizontalSize6: Story = {
...Default,
args: {
size: "6",
children: "320×1024",
horizontal: true,
},
};
26 changes: 26 additions & 0 deletions packages/rsc-daisyui/src/artboard/artboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { classed } from "../classed.config";
import { configWithThemeFn } from "../config";

export const Artboard = classed("div", "artboard", {
...configWithThemeFn({
demo: {
true: "artboard-demo",
},
size: {
"1": "phone-1",
"2": "phone-2",
"3": "phone-3",
"4": "phone-4",
"5": "phone-5",
"6": "phone-6",
},
horizontal: {
true: "artboard-horizontal",
},
}),
defaultVariants: {
demo: true,
size: "1",
},
});
Artboard.displayName = "Artboard";
1 change: 1 addition & 0 deletions packages/rsc-daisyui/src/artboard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Artboard } from "./artboard";
1 change: 1 addition & 0 deletions packages/rsc-daisyui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// components
export * from "./accordion";
export * from "./alert";
export * from "./artboard";
export * from "./avatar";
export * from "./badge";
export * from "./bottom-navigation";
Expand Down
Loading

0 comments on commit 8c6a8a7

Please sign in to comment.