Skip to content

Commit

Permalink
chore: update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
cqh963852 committed Nov 27, 2023
1 parent 3f26dae commit 4f27930
Show file tree
Hide file tree
Showing 54 changed files with 9,779 additions and 7,949 deletions.
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.2.cjs

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
compressionLevel: mixed

enableGlobalCache: false

httpProxy: "${http_proxy:-}"

httpsProxy: "${http_proxy:-}"

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
npmAuthToken: "${NODE_AUTH_TOKEN:-}"

npmPublishAccess: public

npmPublishRegistry: "https://registry.npmjs.com/"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs
39 changes: 0 additions & 39 deletions apps/website/docs/components/Actions/popover/BottomHover.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions apps/website/docs/components/DataDisplay/card/Card.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"position": 1,
"label": "Actions",
"link": {
"type": "generated-index",
"title": "Action Components",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ displayed_sidebar: componentsSidebar
# Button

import { previewBlock } from "@idealjs/camphora-styled";
import BrandColorButton from "./button/BrandColorButtons";
import BrandColorButton from "./BrandColorButtons";

<div className={previewBlock}>
<BrandColorButton />
</div>

import CodeBlock from "@theme/CodeBlock";
import ButtonContent from "!!raw-loader!./button/BrandColorButtons";
import ButtonContent from "!!raw-loader!./BrandColorButtons";

<CodeBlock language="tsx">
{ButtonContent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
button,
buttonGhost,
card,
cardContent,
clickReaction,
clickReactionInput,
popover,
Expand All @@ -14,10 +13,7 @@ import React from "react";

const id = "popoverBottom";

const popoverWidthSty = {
width: "max-content",
maxWidth: 300,
}


const Popover = () => {
return (
Expand All @@ -29,16 +25,24 @@ const Popover = () => {
justifyContent: "center",
}}
>
<div className={popover} >
<div className={popover}>
<label
htmlFor={id}
className={clsx(clickReaction, button, buttonGhost)}
>
<input id={id} type="checkbox" className={clickReactionInput} />
open
</label>
<div className={clsx(popoverContent, popoverBottom)} style={popoverWidthSty}>
<div className={clsx(card, cardContent)}>这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!</div>
<div
className={clsx(popoverContent, popoverBottom)}

>
<div className={clsx(card)}>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Expedita,
aperiam excepturi facere alias ut at dolor rem recusandae sunt.
Earum pariatur tempora totam. Quaerat natus non doloribus, commodi
aut assumenda.
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
button,
buttonGhost,
card,
cardContent,
clickReaction,
clickReactionInput,
popover,
Expand All @@ -15,10 +14,7 @@ import React from "react";

const id = "popoverBottomEnd";

const popoverWidthSty = {
width: "max-content",
maxWidth: 300,
}


const Popover = () => {
return (
Expand All @@ -38,8 +34,16 @@ const Popover = () => {
<input id={id} type="checkbox" className={clickReactionInput} />
open
</label>
<div className={clsx(popoverContent, popoverBottom, popoverEnd)} style={popoverWidthSty}>
<div className={clsx(card, cardContent)}>这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!</div>
<div
className={clsx(popoverContent, popoverBottom, popoverEnd)}

>
<div className={clsx(card)}>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nisi
cupiditate dolor unde corporis qui sunt sequi iste molestiae nam
deleniti, maxime quidem distinctio quas aut illum quisquam harum
officiis. Beatae?
</div>
</div>
</div>
</div>
Expand Down
38 changes: 38 additions & 0 deletions apps/website/docs/components/actions/popover/BottomFocus.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import {
button,
buttonGhost,
card,
focusReaction,
popover,
popoverBottom,
popoverContent,
} from "@idealjs/camphora-styled";
import clsx from "clsx";
import React from "react";

const Popover = () => {
return (
<div
style={{
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<div tabIndex={0} className={clsx(popover, focusReaction)}>
<label className={clsx(button, buttonGhost)}>click</label>
<div className={clsx(popoverContent, popoverBottom)}>
<div className={clsx(card)}>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum
cupiditate, dolore harum in optio culpa commodi est ad itaque eum,
hic perferendis numquam quibusdam laboriosam beatae fuga vero!
Reprehenderit, fugit?
</div>
</div>
</div>
</div>
);
};

export default Popover;
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ import {
button,
buttonGhost,
card,
cardContent,
hoverReaction,
popover,
popoverBottom,
popoverContent,
popoverFocus,
} from "@idealjs/camphora-styled";
import clsx from "clsx";
import React from "react";

const popoverWidthSty = {
width: "max-content",
maxWidth: 300,
};


const Popover = () => {
return (
Expand All @@ -26,14 +22,17 @@ const Popover = () => {
justifyContent: "center",
}}
>
<div tabIndex={0} className={clsx(popover, popoverFocus)}>
<label className={clsx(button, buttonGhost)}>click</label>
<div className={clsx(popover, hoverReaction)}>
<button className={clsx(button, buttonGhost)}>hover</button>
<div
className={clsx(popoverContent, popoverBottom)}
style={popoverWidthSty}

>
<div className={clsx(card, cardContent)}>
这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!
<div className={clsx(card)}>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum
voluptate vitae illo, facilis atque omnis rem? Blanditiis porro
neque veniam sint eaque consequuntur velit asperiores tempora at,
vel enim alias.
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
button,
buttonGhost,
card,
cardContent,
clickReaction,
clickReactionInput,
popover,
Expand All @@ -14,10 +13,7 @@ import React from "react";

const id = "popoverLeft";

const popoverWidthSty = {
width: "max-content",
maxWidth: 300,
}


const Popover = () => {
return (
Expand All @@ -37,8 +33,16 @@ const Popover = () => {
<input id={id} type="checkbox" className={clickReactionInput} />
open
</label>
<div className={clsx(popoverContent, popoverLeft)} style={popoverWidthSty}>
<div className={clsx(card, cardContent)}>这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!</div>
<div
className={clsx(popoverContent, popoverLeft)}

>
<div className={clsx(card)}>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum
voluptate vitae illo, facilis atque omnis rem? Blanditiis porro
neque veniam sint eaque consequuntur velit asperiores tempora at,
vel enim alias.
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
button,
buttonGhost,
card,
cardContent,
clickReaction,
clickReactionInput,
popover,
Expand Down Expand Up @@ -38,8 +37,11 @@ const Popover = () => {
<input id={id} type="checkbox" className={clickReactionInput} />
open
</label>
<div className={clsx(popoverContent, popoverLeft, popoverEnd)} style={popoverWidthSty}>
<div className={clsx(card, cardContent)}>这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!</div>
<div className={clsx(popoverContent, popoverLeft, popoverEnd)} >
<div className={clsx(card)}>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum
voluptate vitae illo, facilis atque omnis rem? Blanditiis porro
neque veniam sint eaque consequuntur velit asperiores tempora at,
vel enim alias.</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import {
button,
buttonGhost,
card,
cardContent,
hoverReaction,
popover,
popoverContent,
popoverHover,
popoverLeft
} from "@idealjs/camphora-styled";
import clsx from "clsx";
Expand All @@ -26,10 +25,13 @@ const Popover = () => {
justifyContent: "center",
}}
>
<div className={clsx(popover, popoverHover)} >
<div className={clsx(popover, hoverReaction)} >
<button className={clsx(button, buttonGhost)}>hover</button>
<div className={clsx(popoverContent, popoverLeft)} style={popoverWidthSty}>
<div className={clsx(card, cardContent)}>这是一个弹出框!这是一个弹出框!这是一个弹出框!这是一个弹出框!</div>
<div className={clsx(popoverContent, popoverLeft)} >
<div className={clsx(card)}>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum
voluptate vitae illo, facilis atque omnis rem? Blanditiis porro
neque veniam sint eaque consequuntur velit asperiores tempora at,
vel enim alias.</div>
</div>
</div>
</div>
Expand Down
Loading

1 comment on commit 4f27930

@vercel
Copy link

@vercel vercel bot commented on 4f27930 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

camphora – ./

camphora-idealjs.vercel.app
camphora-git-main-idealjs.vercel.app
camphora-styled.vercel.app

Please sign in to comment.