Skip to content

Commit

Permalink
lfg
Browse files Browse the repository at this point in the history
  • Loading branch information
irsyadadl committed Nov 28, 2024
1 parent 8c40654 commit 030da2c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 30 deletions.
10 changes: 2 additions & 8 deletions app/(app)/themes/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ export function Blocks() {
"bg-primary-fg",
"bg-secondary",
"bg-secondary-fg",
"bg-tertiary",
"bg-tertiary-fg",
"bg-overlay",
"bg-overlay-fg",
"bg-muted",
"bg-muted-fg",
"bg-accent",
"bg-accent-fg",
"bg-accent-subtle",
"bg-accent-subtle-fg"
"bg-subtle",
"bg-subtle-fg"
]
return (
<div>
Expand Down Expand Up @@ -74,10 +72,6 @@ export function Blocks() {
</Choicebox>
</div>
</div>
{/*<Control />*/}
{/*<BlockOfCard />*/}
{/*<ListBoxMultipleDemo />*/}
{/*<GridListMultipleDemo />*/}
</div>
</div>
)
Expand Down
Binary file modified bun.lockb
Binary file not shown.
19 changes: 13 additions & 6 deletions components/doc-how.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ type HowProps = {
fullscreenUrl?: string
}

export const DocHow = ({ className, toUse, ...props }: HowProps) => {
export const DocHow = ({
toUse,
className,
minW72 = false,
isCenter = true,
withNoPadding = false,
fullscreenUrl,
...props
}: HowProps) => {
const [rawSourceCode, setRawSourceCode] = useState<string | null>(null)

/*
Expand Down Expand Up @@ -96,13 +104,12 @@ export const DocHow = ({ className, toUse, ...props }: HowProps) => {
return (
<div className={cn("not-prose forced-color-adjust-non relative my-4", className)} {...divProps}>
<Tabs aria-label="Packages">
<TabsList fullscreenUrl={props.fullscreenUrl} />
<TabsList fullscreenUrl={fullscreenUrl} />
<Tabs.Panel className="w-full" id="preview">
<div
className={cn(
!props.withNoPadding && "relative gap-4 rounded-lg border bg-overlay p-6",
props.isCenter &&
"flex min-h-56 lg:min-h-80 items-center justify-center py-6 preview sm:py-24 overflow-x-auto"
!withNoPadding && "relative gap-4 rounded-lg border bg-overlay p-6",
isCenter && "flex min-h-56 lg:min-h-80 items-center justify-center py-6 preview sm:py-24 overflow-x-auto"
)}
>
<React.Suspense
Expand All @@ -113,7 +120,7 @@ export const DocHow = ({ className, toUse, ...props }: HowProps) => {
</div>
}
>
<div className={cn(props.minW72 && "min-w-72", "not-prose", className)}>
<div className={cn(minW72 && "min-w-72", "not-prose", className)}>
<Component />
</div>
</React.Suspense>
Expand Down
4 changes: 2 additions & 2 deletions components/ui/choicebox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ interface ChoiceboxItemProps extends GridListItemProps, VariantProps<typeof choi
description?: string
}

const ChoiceboxItem = ({ children, className, ...props }: ChoiceboxItemProps) => {
const textValue = typeof children === "string" ? children : undefined
const ChoiceboxItem = ({ className, ...props }: ChoiceboxItemProps) => {
const textValue = props.title ?? props.textValue
return (
<GridListItem
textValue={textValue}
Expand Down
11 changes: 0 additions & 11 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const isDev = process.argv.indexOf('dev') !== -1
const isBuild = process.argv.indexOf('build') !== -1
if (!process.env.VELITE_STARTED && (isDev || isBuild)) {
Expand All @@ -16,16 +15,6 @@ export default {
experimental: {
optimizePackageImports: ["shiki"]
},
async headers() {
return [
{
source: '/_next/static/:path*',
headers: [
{ key: 'Cache-Control', value: 'no-cache, no-store, must-revalidate' },
],
},
];
},
async redirects() {
return [
{
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"scripts": {
"prepare": "husky",
"cuc": "bun run resources/scripts/check-use-client.ts",
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"dev:content": "velite --watch",
"build:content": "velite --clean",
"build:next": "next build",
"dev": "next dev --turbopack && velite --watch",
"build": "run build:*",
"lint": "next lint",
"format": "prettier --write \"**/*.{ts,tsx}\"",
"b": "bun run build:registry && prettier --write __registry__/generated.ts",
Expand Down

0 comments on commit 030da2c

Please sign in to comment.