1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

⬆ Update to the latest bluelib version

This commit is contained in:
Steffo 2021-03-20 04:34:27 +01:00
parent 3828b589a1
commit 8f8b348380
Signed by: steffo
GPG key ID: 6965406171929D01
10 changed files with 7 additions and 52 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "bluelib", "name": "bluelib",
"version": "0.24.0", "version": "1.0.0",
"description": "React components for Bluelib", "description": "React components for Bluelib",
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",

@ -1 +1 @@
Subproject commit 9fd45e4d39eb17275ccab0a476141ea9e84d12d7 Subproject commit 7faf276e30b9605a9735ec1543710c9fc470e5dc

View file

@ -5,7 +5,7 @@ import PropTypes from "prop-types";
export default function Aside({children, className}) { export default function Aside({children, className}) {
return ( return (
<aside className={useBluelibClassNames("panel panel-aside", className)}> <aside className={useBluelibClassNames("panel panel-box panel-aside", className)}>
{children} {children}
</aside> </aside>
) )

View file

@ -5,7 +5,7 @@ import PropTypes from "prop-types";
export default function Blockquote({children, className}) { export default function Blockquote({children, className}) {
return ( return (
<blockquote className={useBluelibClassNames("panel panel-blockquote", className)}> <blockquote className={useBluelibClassNames("panel panel-box panel-blockquote", className)}>
{children} {children}
</blockquote> </blockquote>
) )

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import skinRygblue from "../../../bluelib/src/skins/rygblue/rygblue.module.css"; import skinRygblue from "../../../bluelib/src/targets/rygblue.module.css";
import ContextBluelibSkin from "../../../contexts/ContextBluelibSkin"; import ContextBluelibSkin from "../../../contexts/ContextBluelibSkin";
import isString from "../../../utils/isString"; import isString from "../../../utils/isString";
import PropTypes from "prop-types"; import PropTypes from "prop-types";

View file

@ -15,5 +15,5 @@ export default function Color({children, className, value}) {
Color.propTypes = { Color.propTypes = {
children: PropTypes.node, children: PropTypes.node,
className: PropTypes.string, className: PropTypes.string,
value: PropTypes.oneOf(["red", "orange", "yellow", "lime", "cyan", "blue", "magenta"]), value: PropTypes.oneOf(["red", "orange", "yellow", "lime", "cyan", "blue", "magenta", "gray"]),
} }

View file

@ -1,26 +0,0 @@
A **panel** which is rendered like a `<table>` element.
```jsx
import Bluelib from "../Bluelib";
<Bluelib>
<Table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>C</td>
<td>D</td>
</tr>
</tbody>
</Table>
</Bluelib>
```

View file

@ -1,18 +0,0 @@
import React from "react";
import useBluelibClassNames from "../../hooks/useBluelibClassNames";
import PropTypes from "prop-types";
export default function Table({children, className}) {
return (
<table className={useBluelibClassNames("panel panel-table", className)}>
{children}
</table>
)
}
Table.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
}

View file

@ -18,7 +18,6 @@ export {default as Size} from "./Size";
export {default as Split} from "./Split"; export {default as Split} from "./Split";
export {default as Spoiler} from "./Spoiler"; export {default as Spoiler} from "./Spoiler";
export {default as Strike} from "./Strike"; export {default as Strike} from "./Strike";
export {default as Table} from "./Table";
export {default as Title} from "./Title"; export {default as Title} from "./Title";
export {default as Underline} from "./Underline"; export {default as Underline} from "./Underline";
export {default as BaseLink} from "./BaseLink"; export {default as BaseLink} from "./BaseLink";

View file

@ -2,7 +2,7 @@ import {useContext} from "react";
import contextBluelibSkin from "../contexts/ContextBluelibSkin"; import contextBluelibSkin from "../contexts/ContextBluelibSkin";
import classNames from "classnames"; import classNames from "classnames";
import skeleton from "../bluelib/src/skeleton/skeleton.module.css"; import skeleton from "../bluelib/src/targets/skeleton.module.css";
export default function useBluelibClassNames(cn, extra) { export default function useBluelibClassNames(cn, extra) {