Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump flowbite-react #4864

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"autoprefixer": "10.4.18",
"fast-xml-parser": "^4.3.5",
"flowbite": "^2.3.0",
"flowbite-react": "^0.7.8",
"flowbite-react": "^0.9.0",
"highlight.js": "^11.9.0",
"md5": "^2.3.0",
"mixpanel-browser": "^2.49.0",
Expand Down
8 changes: 4 additions & 4 deletions website/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions website/src/app/kb/administer/upgrading/readme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ it's up to date:

<Image
src="/images/kb/administer/upgrading/gateway-upgrade-verify.png"
width={500}
height={500}
className="mx-auto"
width={1200}
height={1200}
className="mx-auto rounded shadow"
alt="Gateway upgrade verification"
/>

Expand Down
10 changes: 5 additions & 5 deletions website/src/components/DocsSidebar/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@docsearch/css";

export default function SearchForm() {
// Keep /docs search in /docs (pre-1.0), and exclude /kb (>= 1.0)
const excludePathRegex = new RegExp(/^\/kb/)
const excludePathRegex = new RegExp(/^\/kb/);

return (
<div className="pb-3 -ml-1 flex justify-start border-b border-neutral-200 ">
Expand All @@ -15,11 +15,11 @@ export default function SearchForm() {
transformItems={(items) => {
return items.filter((item) => {
if (item.url) {
const pathname = (new URL(item.url)).pathname
if (pathname.match(excludePathRegex)) return false
const pathname = new URL(item.url).pathname;
if (pathname.match(excludePathRegex)) return false;
}
return true
})
return true;
});
}}
/>
</div>
Expand Down
10 changes: 5 additions & 5 deletions website/src/components/KbSidebar/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@docsearch/css";

export default function SearchForm() {
// Keep /kb search in /kb (>= v1.0), and exclude /docs (pre-1.0)
const excludePathRegex = new RegExp(/^\/docs/)
const excludePathRegex = new RegExp(/^\/docs/);

return (
<div className="pb-3 -ml-1 flex justify-start border-b border-neutral-200 ">
Expand All @@ -15,11 +15,11 @@ export default function SearchForm() {
transformItems={(items) => {
return items.filter((item) => {
if (item.url) {
const pathname = (new URL(item.url)).pathname
if (pathname.match(excludePathRegex)) return false
const pathname = new URL(item.url).pathname;
if (pathname.match(excludePathRegex)) return false;
}
return true
})
return true;
});
}}
/>
</div>
Expand Down
6 changes: 4 additions & 2 deletions website/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const flowbite = require("flowbite-react/tailwind");

const firezoneColors = {
// See our brand palette in Figma.
// These have been reversed to match Tailwind's default order.
Expand Down Expand Up @@ -48,7 +50,7 @@ const firezoneColors = {
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"node_modules/flowbite-react/**/*.{js,ts,jsx,tsx}",
flowbite.content(),
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
Expand Down Expand Up @@ -103,5 +105,5 @@ module.exports = {
},
},
},
plugins: [require("flowbite/plugin"), require("flowbite-typography")],
plugins: [flowbite.plugin(), require("flowbite-typography")],
};