Skip to content

Commit

Permalink
Fixed: Date Picker Dark Mode Issue Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arifulislam5577 committed Jun 24, 2024
1 parent cd05afe commit 958831c
Show file tree
Hide file tree
Showing 30 changed files with 168 additions and 133 deletions.
13 changes: 6 additions & 7 deletions app/components/MobileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
AccordionIcon,
AccordionPanel,
AccordionTitle,
Button,
Drawer,
DrawerContent,
DrawerOverlay,
Expand Down Expand Up @@ -78,11 +79,11 @@ const MobileMenu = () => {
<button onClick={() => setShowDrawer(!showDrawer)}>
{active ? (
<span>
<X size={24} color="#455468" />
<X size={24} className="text-metal-900 dark:text-white" />
</span>
) : (
<span>
<List size={24} color="#455468" />
<List size={24} className="text-metal-900 dark:text-white" />
</span>
)}
</button>
Expand All @@ -91,11 +92,9 @@ const MobileMenu = () => {
<Drawer onClose={() => setShowDrawer(!showDrawer)} isOpen={showDrawer} position="right">
<DrawerOverlay />
<DrawerContent className="space-y-3 rounded-none p-6">
<button
onClick={() => setShowDrawer(!showDrawer)}
className="mb-4 max-w-max rounded-lg bg-metal-900 p-3 dark:bg-metal-800">
<ArrowLeft className="size-5 text-white dark:text-white" />
</button>
<Button onClick={() => setShowDrawer(!showDrawer)} color="secondary" className="mb-4 max-w-max p-3">
<ArrowLeft className="size-5 text-white dark:text-metal-900" />
</Button>
<Accordion flush openFirstPanel>
<AccordionPanel className="!border-b-0">
<AccordionContainer className="p-0">
Expand Down
2 changes: 1 addition & 1 deletion app/docs/components/datePicker/variant/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const DatePickerComponent = () => {
<Popover showArrow={false} placement="bottom-start">
<PopoverTrigger asChild>
<Button
className="w-[286px] justify-start gap-2 rounded-xl border border-metal-50 px-4 text-left text-body-4 font-normal text-metal-600 hover:bg-white active:focus:scale-100 dark:border-metal-900 dark:bg-metal-900 dark:text-white dark:hover:bg-metal-800"
className="w-[286px] justify-start gap-2 rounded-xl border border-metal-50 px-4 text-left text-body-4 font-normal text-metal-600 hover:bg-white active:focus:scale-100 dark:border-metal-900 dark:bg-metal-900 dark:text-white dark:hover:bg-metal-800"
variant="outline"
color="secondary">
<Calendar size={20} className="text-metal-400 dark:text-white" />
Expand Down
4 changes: 2 additions & 2 deletions app/docs/components/drawer/variant/DefaultDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DefaultDrawer = () => {
Elevate your web projects with Keep React&apos;s 40+ customizable components. Access open-source resources
for efficient development and bring your ideas to life with ease.
</p>
<Button onClick={() => setIsOpen(false)} className="bg-metal-900 dark:bg-metal-800" color="secondary">
<Button onClick={() => setIsOpen(false)} color="secondary">
Explore Now
</Button>
</div>
Expand Down Expand Up @@ -49,7 +49,7 @@ export const DrawerComponent = () => {
Elevate your web projects with Keep React&apos;s 40+ customizable components. Access open-source resources
for efficient development and bring your ideas to life with ease.
</p>
<Button onClick={() => setIsOpen(false)} className="bg-metal-900 dark:bg-metal-800" color="secondary">
<Button onClick={() => setIsOpen(false)} color="secondary">
Explore Now
</Button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/docs/components/drawer/variant/DrawerPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DrawerPosition = () => {
Elevate your web projects with Keep React&apos;s 40+ customizable components. Access open-source resources
for efficient development and bring your ideas to life with ease.
</p>
<Button onClick={() => setIsOpen(false)} className="bg-metal-900 dark:bg-metal-800" color="secondary">
<Button onClick={() => setIsOpen(false)} color="secondary">
Explore Now
</Button>
</div>
Expand Down Expand Up @@ -73,7 +73,7 @@ export const DrawerComponent = () => {
Elevate your web projects with Keep React&apos;s 40+ customizable components. Access open-source resources
for efficient development and bring your ideas to life with ease.
</p>
<Button onClick={() => setIsOpen(false)} className="bg-metal-900 dark:bg-metal-800" color="secondary">
<Button onClick={() => setIsOpen(false)} color="secondary">
Explore Now
</Button>
</div>
Expand Down
16 changes: 4 additions & 12 deletions app/docs/components/dropdown/variant/CustomDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar, Button, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'
import { Avatar, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'

const dropdownData = [
{
Expand Down Expand Up @@ -36,11 +36,7 @@ const dropdownData = [
const CustomDropdown = () => {
return (
<Dropdown>
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
{dropdownData.map((data) => (
Expand All @@ -61,16 +57,12 @@ const CustomDropdown = () => {
}

const CustomDropdownCode = `
import { Avatar, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList ,Button } from 'keep-react'
import { Avatar, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from 'keep-react'
export const DropdownComponent = () => {
return (
<Dropdown>
<DropdownAction>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
{dropdownData.map((data) => (
Expand Down
16 changes: 4 additions & 12 deletions app/docs/components/dropdown/variant/DefaultDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { Button, Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'

const DefaultDropdown = () => {
return (
<Dropdown>
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>Contacts</DropdownItem>
Expand All @@ -26,16 +22,12 @@ const DefaultDropdown = () => {
}

const DefaultDropdownCode = `
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList, Button } from 'keep-react'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from 'keep-react'

export const DropdownComponent = () => {
return (
<Dropdown>
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>Contacts</DropdownItem>
Expand Down
16 changes: 4 additions & 12 deletions app/docs/components/dropdown/variant/DropdownTrigger.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
'use client'
import { ChartPieSlice, Copy, Pen, Phone, SignOut, UserCircle, Users } from 'phosphor-react'
import { Button, Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'

const DropdownTrigger = () => {
return (
<Dropdown trigger="hover">
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>
Expand Down Expand Up @@ -51,16 +47,12 @@ const DropdownTrigger = () => {
const DropdownTriggerCode = `
'use client'
import { ChartPieSlice, Copy, Pen, Phone, SignOut, UserCircle, Users } from 'phosphor-react'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList, Button } from 'keep-react'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from 'keep-react'

export const DropdownComponent = () => {
return (
<Dropdown trigger="hover">
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>
Expand Down
16 changes: 4 additions & 12 deletions app/docs/components/dropdown/variant/DropdownWithIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
'use client'
import { ChartPieSlice, Copy, Pen, Phone, SignOut, UserCircle, Users } from 'phosphor-react'
import { Button, Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList } from '../../../../src'

const DropdownWithIcon = () => {
return (
<Dropdown>
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>
Expand Down Expand Up @@ -51,16 +47,12 @@ const DropdownWithIcon = () => {
const DropdownWithIconCode = `
'use client'
import { ChartPieSlice, Copy, Pen, Phone, SignOut, UserCircle, Users } from 'phosphor-react'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList, Button} from 'keep-react'
import { Divider, Dropdown, DropdownAction, DropdownContent, DropdownItem, DropdownList} from 'keep-react'

export const DropdownComponent = () => {
return (
<Dropdown>
<DropdownAction asChild>
<Button color="secondary" size="xs">
Dropdown
</Button>
</DropdownAction>
<DropdownAction>Dropdown</DropdownAction>
<DropdownContent>
<DropdownList>
<DropdownItem>
Expand Down
Loading

0 comments on commit 958831c

Please sign in to comment.