Skip to content

Commit

Permalink
Merge pull request #53 from Jersyfi/v2.x
Browse files Browse the repository at this point in the history
V2.x
  • Loading branch information
Jersyfi authored Feb 25, 2023
2 parents 08ebf3e + 89802c2 commit b4e8973
Show file tree
Hide file tree
Showing 8 changed files with 303 additions and 390 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to `react-cookify` will be documented in this file.

## v2.1.7 - 2023-02-25

* Deleted preview text in Readme
* Changed the type of TableTypesType desc by adding JSX.Element to it
* Changed the HTML Element from p to div to match the above change

## v2.1.4 - 2023-02-14

* Fixed stupid mistake with wrong version number
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ This React library provides a customizable, simple to use and also a headless so

How to handle GDPR correctly can be found on [Cookies, the GDPR, and the ePrivacy Directive](https://gdpr.eu/cookies).

## Preview
View and test how Cookify works in either [Bootstrap](https://jersyfi.github.io/cookify/test/preview/bootstrap.html) or [Tailwind CSS](https://jersyfi.github.io/cookify/test/preview/tailwindcss.html).

## Documentation
react-cookify is essentially a set of npm packages.

Expand Down
670 changes: 288 additions & 382 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-cookify",
"version": "2.1.4",
"version": "2.1.7",
"description": "Simple, customizable open source cookie consent banner for GDPR law",
"scripts": {
"lint": "eslint src/**/*.{js,jsx,ts,tsx,json}",
Expand Down
2 changes: 1 addition & 1 deletion src/components/consent/detail/body/collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const Collapsible: React.FC<ConsentDetailBodyCollapsibleProps> = ({
>
<div className="bg-[var(--c-c-extend-bg-color)] rounded-b-[var(--c-c-extend-border-radius)] border-x-2 border-b-2 border-[var(--c-c-extend-border-color)] overflow-hidden text-[var(--c-c-extend-text-color)]">
<div className="p-3">
<p>{type.desc}</p>
<div>{type.desc}</div>
</div>

{_this.body?.length > 0 && (
Expand Down
5 changes: 4 additions & 1 deletion src/components/consent/detail/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const Detail: React.FC<ConsentDetailProps> = ({
}) => {
return (
<Wrapper
className={'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]' + (show ? '' : ' hidden')}
className={
'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]' +
(show ? '' : ' hidden')
}
>
<Header title={content.title} support={support} />

Expand Down
3 changes: 2 additions & 1 deletion src/components/consent/info/info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const Info: React.FC<ConsentInfoProps> = ({
return (
<Wrapper
className={
(force && 'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]') + (show ? '' : ' hidden')
(force && 'fixed inset-0 z-10 bg-[var(--c-bg-overlay-color)]') +
(show ? '' : ' hidden')
}
>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ type TableType = {
export type TableTypesType = {
for: string
title: string
desc: string
desc: string | JSX.Element
body?: TableRowType[]
}

Expand Down

0 comments on commit b4e8973

Please sign in to comment.