Skip to content

Commit

Permalink
Merge pull request #82 from qwikerx/feat/use-icons
Browse files Browse the repository at this point in the history
feat: use flowbite-qwik-icons
  • Loading branch information
jcfauchet authored Jun 10, 2024
2 parents 36173b3 + 9ff9a6e commit 441d272
Show file tree
Hide file tree
Showing 591 changed files with 131 additions and 6,646 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"flowbite-qwik": "workspace:*",
"flowbite-qwik-icons": "^0.1.4",
"postcss": "^8.4.38",
"prettier": "^3.3.0",
"prettier-plugin-tailwindcss": "^0.6.1",
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import rehypeParse from 'rehype-parse'
import rehypeSanitize from 'rehype-sanitize'
import rehypeStringify from 'rehype-stringify'
import styles from './code-block.css?inline'
import { Button, IconCopySolid, useToggle } from 'flowbite-qwik'
import { Button, useToggle } from 'flowbite-qwik'
import { IconCopySolid } from 'flowbite-qwik-icons'

type CodeBlockProps = { content: string; language: string; expandable?: boolean }

Expand Down
14 changes: 2 additions & 12 deletions apps/web/src/components/Preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@ import { PropsOf, component$, useComputed$, useSignal, useTask$, useStyles$ } fr
import { isBrowser } from '@builder.io/qwik/build'
import styles from './preview.css?inline'
import { toSlug } from '~/utils/slug'
import {
Button,
IconDesktopPcOutline,
IconGithubSolid,
IconMobilePhoneOutline,
IconTabletOutline,
Spinner,
useDark,
useMediaQuery,
useFlowbiteThemable,
useToggle,
} from 'flowbite-qwik'
import { Button, Spinner, useDark, useMediaQuery, useFlowbiteThemable, useToggle } from 'flowbite-qwik'
import { IconDesktopPcOutline, IconGithubSolid, IconMobilePhoneOutline, IconTabletOutline } from 'flowbite-qwik-icons'
import { CodeBlock } from '~/components/CodeBlock/CodeBlock'

type PreviewProps = PropsOf<'iframe'> & {
Expand Down
48 changes: 24 additions & 24 deletions apps/web/src/examples.ts

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion apps/web/src/routes/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { $, component$, Slot, useSignal } from '@builder.io/qwik'
import { DocFooter } from '~/components/Footer/Footer'
import { Button, IconDotsVerticalOutline, Sidebar, SidebarCollapse, SidebarItem, SidebarItemGroup, useComponentOuterClick } from 'flowbite-qwik'
import { Button, Sidebar, SidebarCollapse, SidebarItem, SidebarItemGroup, useComponentOuterClick } from 'flowbite-qwik'
import { IconDotsVerticalOutline } from 'flowbite-qwik-icons'
import { NavLink } from '~/components/NavLink/NavLink'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Alert, IconInfoCircleOutline } from 'flowbite-qwik'
import { Alert } from 'flowbite-qwik'
import { IconInfoCircleOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Alert, IconEyeOutline, IconInfoCircleOutline } from 'flowbite-qwik'
import { Alert } from 'flowbite-qwik'
import { IconEyeOutline, IconInfoCircleOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Alert, IconEyeOutline, IconInfoCircleOutline } from 'flowbite-qwik'
import { Alert } from 'flowbite-qwik'
import { IconEyeOutline, IconInfoCircleOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/
import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Badge, IconRocketOutline } from 'flowbite-qwik'
import { Badge } from 'flowbite-qwik'
import { IconRocketOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/
import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Badge, IconRocketOutline } from 'flowbite-qwik'
import { Badge } from 'flowbite-qwik'
import { IconRocketOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Breadcrumb, BreadcrumbItem, IconArrowLeftOutline, IconBarsOutline } from 'flowbite-qwik'
import { Breadcrumb, BreadcrumbItem } from 'flowbite-qwik'
import { IconArrowLeftOutline, IconBarsOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconArrowLeftOutline, IconArrowRightOutline } from 'flowbite-qwik'
import { Button } from 'flowbite-qwik'
import { IconArrowLeftOutline, IconArrowRightOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconArrowLeftOutline, useToggle } from 'flowbite-qwik'
import { Button, useToggle } from 'flowbite-qwik'
import { IconArrowLeftOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconHomeOutline } from 'flowbite-qwik'
import { Button } from 'flowbite-qwik'
import { IconHomeOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconArrowRightOutline, IconArrowRightSolid } from 'flowbite-qwik'
import { Button } from 'flowbite-qwik'
import { IconArrowRightOutline, IconArrowRightSolid } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconHomeOutline } from 'flowbite-qwik'
import { Button } from 'flowbite-qwik'
import { IconHomeOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconArrowRightOutline } from 'flowbite-qwik'
import { Button } from 'flowbite-qwik'
import { IconArrowRightOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { component$, Fragment, Signal, Slot, useSignal } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, Drawer, DrawerPosition, IconHomeOutline } from 'flowbite-qwik'
import { Button, Drawer, DrawerPosition } from 'flowbite-qwik'
import { IconHomeOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Dropdown, DropdownItem, IconHomeOutline, IconSearchSolid, IconTextSizeOutline } from 'flowbite-qwik'
import { Dropdown, DropdownItem } from 'flowbite-qwik'
import { IconHomeOutline, IconSearchSolid, IconTextSizeOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,8 @@
*/

import { component$ } from '@builder.io/qwik'
import {
Footer,
FooterCopyright,
FooterLink,
FooterLinkGroup,
FooterBrand,
FooterDivider,
FooterTitle,
FooterIcon,
IconFacebookSolid,
IconGithubSolid,
IconDribbbleSolid,
IconLinkedinSolid,
} from 'flowbite-qwik'
import { Footer, FooterCopyright, FooterLink, FooterLinkGroup, FooterBrand, FooterDivider, FooterTitle, FooterIcon } from 'flowbite-qwik'
import { IconFacebookSolid, IconGithubSolid, IconDribbbleSolid, IconLinkedinSolid } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@
*/

import { component$ } from '@builder.io/qwik'
import {
Footer,
FooterCopyright,
FooterLink,
FooterLinkGroup,
FooterTitle,
FooterIcon,
IconFacebookSolid,
IconGithubSolid,
IconDribbbleSolid,
IconLinkedinSolid,
} from 'flowbite-qwik'
import { Footer, FooterCopyright, FooterLink, FooterLinkGroup, FooterTitle, FooterIcon } from 'flowbite-qwik'
import { IconFacebookSolid, IconGithubSolid, IconDribbbleSolid, IconLinkedinSolid } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/

import { component$, useSignal } from '@builder.io/qwik'
import { IconSearchOutline, Input } from 'flowbite-qwik'
import { Input } from 'flowbite-qwik'
import { IconSearchOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/

import { component$, useSignal } from '@builder.io/qwik'
import { IconSearchOutline, Input, Button } from 'flowbite-qwik'
import { Input, Button } from 'flowbite-qwik'
import { IconSearchOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import { component$, useSignal } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { Button, IconBullhornSolid, Modal } from 'flowbite-qwik'
import { Button, Modal } from 'flowbite-qwik'
import { IconBullhornSolid } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* height: 400
*/
import { component$, useSignal } from '@builder.io/qwik'
import { IconSearchOutline, Input, Navbar, NavbarBrand, NavbarCollapse, NavbarLink, NavbarToggle } from 'flowbite-qwik'
import { Input, Navbar, NavbarBrand, NavbarCollapse, NavbarLink, NavbarToggle } from 'flowbite-qwik'
import { IconSearchOutline } from 'flowbite-qwik-icons'
import { Link, StaticGenerateHandler } from '@builder.io/qwik-city'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
*/

import { component$ } from '@builder.io/qwik'
import {
Sidebar,
SidebarItemGroup,
IconHomeOutline,
IconInboxOutline,
IconUserCircleOutline,
IconShoppingBagOutline,
SidebarItem,
} from 'flowbite-qwik'
import { Sidebar, SidebarItemGroup, SidebarItem } from 'flowbite-qwik'
import { IconHomeOutline, IconInboxOutline, IconUserCircleOutline, IconShoppingBagOutline } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@
*/

import { component$ } from '@builder.io/qwik'
import { Sidebar, SidebarItemGroup, SidebarItem, SidebarCollapse } from 'flowbite-qwik'
import {
Sidebar,
SidebarItemGroup,
IconHomeOutline,
IconInboxOutline,
IconUserCircleOutline,
IconShoppingBagOutline,
SidebarItem,
IconFileEditSolid,
IconAdressBookOutline,
IconGearSolid,
IconAtomSolid,
SidebarCollapse,
IconAdjustmentsHorizontalSolid,
} from 'flowbite-qwik'
} from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@
*/

import { component$, useSignal } from '@builder.io/qwik'
import { Sidebar, SidebarItemGroup, SidebarItem, SidebarCollapse, SidebarCta, Badge } from 'flowbite-qwik'
import {
Sidebar,
SidebarItemGroup,
IconHomeOutline,
IconInboxOutline,
IconUserCircleOutline,
IconShoppingBagOutline,
SidebarItem,
IconFileEditSolid,
IconAdressBookOutline,
IconGearSolid,
IconAtomSolid,
SidebarCollapse,
IconAdjustmentsHorizontalSolid,
SidebarCta,
Badge,
} from 'flowbite-qwik'
} from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'
import { StaticGenerateHandler } from '@builder.io/qwik-city'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/
import { component$ } from '@builder.io/qwik'
import { StaticGenerateHandler } from '@builder.io/qwik-city'
import { IconGridOutline, IconGridPlusOutline, IconProfileCardOutline, IconUserCircleSolid, Tab, Tabs } from 'flowbite-qwik'
import { Tab, Tabs } from 'flowbite-qwik'
import { IconGridOutline, IconGridPlusOutline, IconProfileCardOutline, IconUserCircleSolid } from 'flowbite-qwik-icons'
import { staticGenerateHandler } from '~/routes/examples/[theme-rtl]/layout'

export default component$(() => {
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { component$ } from '@builder.io/qwik'
import { DocFooter } from '~/components/Footer/Footer'
import { Button, Jumbotron, JumbotronHeading, JumbotronSubText, IconArrowRightOutline } from 'flowbite-qwik'
import { Button, Jumbotron, JumbotronHeading, JumbotronSubText } from 'flowbite-qwik'
import { IconArrowRightOutline } from 'flowbite-qwik-icons'
import { DocumentHead } from '@builder.io/qwik-city'

export default component$(() => {
Expand Down
5 changes: 1 addition & 4 deletions apps/web/src/routes/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import {
Dropdown,
DropdownItem,
FlowbiteTheme,
IconCheckOutline,
IconGithubSolid,
IconMoonOutline,
IconSunOutline,
Navbar,
NavbarBrand,
NavbarCollapse,
Expand All @@ -18,6 +14,7 @@ import {
useDark,
useFlowbiteThemable,
} from 'flowbite-qwik'
import { IconCheckOutline, IconGithubSolid, IconMoonOutline, IconSunOutline } from 'flowbite-qwik-icons'
import pkg from 'flowbite-qwik/package.json'

export default component$(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flowbite-qwik",
"version": "0.17.0",
"version": "0.17.1",
"description": "Unofficial Qwik components built for Flowbite and Tailwind CSS",
"keywords": [
"design-system",
Expand Down Expand Up @@ -62,10 +62,10 @@
},
"dependencies": {
"flowbite": "^2.3.0",
"flowbite-qwik-icons": "^0.1.4",
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@qwikest/icons": "^0.0.13",
"@types/eslint": "^8.56.10",
"@types/node": "^20.14.1",
"@vitest/coverage-v8": "^1.6.0",
Expand Down
Loading

0 comments on commit 441d272

Please sign in to comment.