-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
442adf5
commit 35c06b2
Showing
142 changed files
with
7,010 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
import { defineConfig } from "@pandacss/dev"; | ||
import pandaPreset from "@pandacss/preset-panda"; | ||
|
||
export default defineConfig({ | ||
// Whether to use css reset | ||
preflight: true, | ||
|
||
// Where to look for your css declarations | ||
presets: ["@pandacss/preset-base", pandaPreset, "@park-ui/presets"], | ||
include: ["./src/**/*.tsx"], | ||
|
||
jsxFramework: "react", | ||
|
||
// Files to exclude | ||
exclude: [], | ||
|
||
// Useful for theme customization | ||
theme: { | ||
extend: {}, | ||
}, | ||
|
||
// The output directory for your css system | ||
theme: { extend: {} }, | ||
outdir: "styled-system", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as Ark from "@ark-ui/react/accordion"; | ||
import { styled } from "styled-system/jsx"; | ||
import { type AccordionVariantProps, accordion } from "styled-system/recipes"; | ||
|
||
import { createStyleContext } from "src/lib/create-style-context"; | ||
|
||
const { withProvider, withContext } = createStyleContext(accordion); | ||
|
||
export * from "@ark-ui/react/accordion"; | ||
export type AccordionProps = Ark.AccordionProps & AccordionVariantProps; | ||
|
||
const AccordionRoot = withProvider(styled(Ark.Accordion.Root), "root"); | ||
export const AccordionContent = withContext( | ||
styled(Ark.Accordion.Content), | ||
"content", | ||
); | ||
export const AccordionItem = withContext(styled(Ark.Accordion.Item), "item"); | ||
export const AccordionTrigger = withContext( | ||
styled(Ark.Accordion.Trigger), | ||
"trigger", | ||
); | ||
|
||
export const Accordion = Object.assign(AccordionRoot, { | ||
Root: AccordionRoot, | ||
Content: AccordionContent, | ||
Item: AccordionItem, | ||
Trigger: AccordionTrigger, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { ComponentPropsWithoutRef } from "react"; | ||
import { styled } from "styled-system/jsx"; | ||
import { type AlertVariantProps, alert } from "styled-system/recipes"; | ||
|
||
export type AlertProps = AlertVariantProps & ComponentPropsWithoutRef<"div">; | ||
export const Alert = styled("div", alert); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as Ark from "@ark-ui/react/avatar"; | ||
import { styled } from "styled-system/jsx"; | ||
import { type AvatarVariantProps, avatar } from "styled-system/recipes"; | ||
|
||
import { createStyleContext } from "src/lib/create-style-context"; | ||
|
||
const { withProvider, withContext } = createStyleContext(avatar); | ||
|
||
export * from "@ark-ui/react/avatar"; | ||
export type AvatarProps = Ark.AvatarProps & AvatarVariantProps; | ||
|
||
const AvatarRoot = withProvider(styled(Ark.Avatar.Root), "root"); | ||
export const AvatarFallback = withContext( | ||
styled(Ark.Avatar.Fallback), | ||
"fallback", | ||
); | ||
export const AvatarImage = withContext(styled(Ark.Avatar.Image), "image"); | ||
|
||
export const Avatar = Object.assign(AvatarRoot, { | ||
Root: AvatarRoot, | ||
Fallback: AvatarFallback, | ||
Image: AvatarImage, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { ComponentPropsWithoutRef } from 'react' | ||
import { styled } from 'styled-system/jsx' | ||
import { badge, type BadgeVariantProps } from 'styled-system/recipes' | ||
|
||
export type BadgeProps = BadgeVariantProps & ComponentPropsWithoutRef<'div'> | ||
export const Badge = styled('div', badge) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { ComponentPropsWithoutRef } from 'react' | ||
import { styled } from 'styled-system/jsx' | ||
import { button, type ButtonVariantProps } from 'styled-system/recipes' | ||
|
||
export type ButtonProps = ButtonVariantProps & ComponentPropsWithoutRef<'button'> | ||
export const Button = styled('button', button) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import * as Ark from "@ark-ui/react/carousel"; | ||
import { styled } from "styled-system/jsx"; | ||
import { type CarouselVariantProps, carousel } from "styled-system/recipes"; | ||
|
||
import { createStyleContext } from "src/lib/create-style-context"; | ||
|
||
const { withProvider, withContext } = createStyleContext(carousel); | ||
|
||
export * from "@ark-ui/react/carousel"; | ||
export type CarouselProps = Ark.CarouselProps & CarouselVariantProps; | ||
|
||
const CarouselRoot = withProvider(styled(Ark.Carousel.Root), "root"); | ||
export const CarouselControl = withContext( | ||
styled(Ark.Carousel.Control), | ||
"control", | ||
); | ||
export const CarouselIndicator = withContext( | ||
styled(Ark.Carousel.Indicator), | ||
"indicator", | ||
); | ||
export const CarouselIndicatorGroup = withContext( | ||
styled(Ark.Carousel.IndicatorGroup), | ||
"indicatorGroup", | ||
); | ||
export const CarouselNextSlideTrigger = withContext( | ||
styled(Ark.Carousel.NextSlideTrigger), | ||
"nextSlideTrigger", | ||
); | ||
export const CarouselPrevSlideTrigger = withContext( | ||
styled(Ark.Carousel.PrevSlideTrigger), | ||
"prevSlideTrigger", | ||
); | ||
export const CarouselSlide = withContext(styled(Ark.Carousel.Slide), "slide"); | ||
export const CarouselSlideGroup = withContext( | ||
styled(Ark.Carousel.SlideGroup), | ||
"slideGroup", | ||
); | ||
export const CarouselViewport = withContext( | ||
styled(Ark.Carousel.Viewport), | ||
"viewport", | ||
); | ||
|
||
export const Carousel = Object.assign(CarouselRoot, { | ||
Root: CarouselRoot, | ||
Control: CarouselControl, | ||
Indicator: CarouselIndicator, | ||
IndicatorGroup: CarouselIndicatorGroup, | ||
NextSlideTrigger: CarouselNextSlideTrigger, | ||
PrevSlideTrigger: CarouselPrevSlideTrigger, | ||
Slide: CarouselSlide, | ||
SlideGroup: CarouselSlideGroup, | ||
Viewport: CarouselViewport, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as Ark from "@ark-ui/react/checkbox"; | ||
import { styled } from "styled-system/jsx"; | ||
import { type CheckboxVariantProps, checkbox } from "styled-system/recipes"; | ||
|
||
import { createStyleContext } from "src/lib/create-style-context"; | ||
|
||
const { withProvider, withContext } = createStyleContext(checkbox); | ||
|
||
export * from "@ark-ui/react/checkbox"; | ||
export type CheckboxProps = Ark.CheckboxProps & CheckboxVariantProps; | ||
|
||
const CheckboxRoot = withProvider(styled(Ark.Checkbox.Root), "root"); | ||
export const CheckboxControl = withContext( | ||
styled(Ark.Checkbox.Control), | ||
"control", | ||
); | ||
export const CheckboxLabel = withContext(styled(Ark.Checkbox.Label), "label"); | ||
|
||
export const Checkbox = Object.assign(CheckboxRoot, { | ||
Root: CheckboxRoot, | ||
Control: CheckboxControl, | ||
Label: CheckboxLabel, | ||
}); |
Oops, something went wrong.