-
-
Notifications
You must be signed in to change notification settings - Fork 703
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
Showing
13 changed files
with
186 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { addons } from '@storybook/manager-api'; | ||
import theme from './theme'; | ||
|
||
addons.setConfig({ | ||
theme, | ||
}); |
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,5 @@ | ||
import './storybook-base.css'; | ||
|
||
export const parameters = { | ||
backgrounds: { | ||
default: 'light', | ||
|
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,15 @@ | ||
/* Base styles */ | ||
:root { | ||
--basic-font-family: system-ui; | ||
--basic-font-size: 16px; | ||
background: var(--background-color); | ||
font-family: var(--basic-font-family); | ||
font-size: var(--basic-font-size); | ||
line-height: 1.5; | ||
} | ||
|
||
.sbdocs.sbdocs-content { | ||
p { | ||
font-size: 16px; | ||
} | ||
} |
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,10 @@ | ||
import { create } from '@storybook/theming/create'; | ||
import logo from './Logo.svg'; | ||
|
||
export default create({ | ||
base: 'light', | ||
brandTitle: '@plone/components StoryBook', | ||
brandUrl: 'https://plone-components.netlify.app/', | ||
brandImage: logo, | ||
brandTarget: '_self', | ||
}); |
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
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,35 @@ | ||
import { Meta } from '@storybook/blocks'; | ||
|
||
<Meta title="Introduction" /> | ||
|
||
|
||
# `@plone/components` | ||
|
||
This package contains ReactJS components for using Plone as a headless CMS. | ||
|
||
The purpose of this package is to provide an agnostic set of baseline components to build Plone sites upon. | ||
|
||
## Usage | ||
|
||
Using the package manager of your choice (npm, yarn, pnpm) install the package: | ||
|
||
```shell | ||
yarn add @plone/components | ||
``` | ||
|
||
Whenever you want to use the components, all are exported as named exports: | ||
|
||
```ts | ||
import { TextField } from '@plone/components'; | ||
|
||
const MyComponent = (props) => { | ||
return ( | ||
<> | ||
<TextField label="Username" /> | ||
</>; | ||
) | ||
} | ||
|
||
export default MyComponent; | ||
``` | ||
|
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 |
---|---|---|
|
@@ -43,6 +43,6 @@ | |
"stylelint-prettier": "4.0.2" | ||
}, | ||
"peerDependencies": { | ||
"@plone/volto": "^17.0.0" | ||
"@plone/volto": "^18.0.0" | ||
} | ||
} |
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 @@ | ||
Switch peerDependencies to Volto 18 for generator-volto alpha's/latest. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.