diff --git a/playgrounds/app/src/components/Editor.tsx b/playgrounds/app/src/components/Editor.tsx
index 7650aa1..40e2fe9 100644
--- a/playgrounds/app/src/components/Editor.tsx
+++ b/playgrounds/app/src/components/Editor.tsx
@@ -23,6 +23,7 @@ import {
import { MagicMoveElement } from 'shiki-magic-move/types'
import {
DropdownMenu,
+ DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuGroupLabel,
@@ -44,7 +45,7 @@ import {
} from '~/components/ui/slider'
import clsx from 'clsx'
import { TbCheck, TbSettings } from 'solid-icons/tb'
-import { Checkbox } from '~/components/ui/checkbox'
+import { SimplerCheckbox } from '~/components/ui/checkbox'
import { Label } from '~/components/ui/label'
import {
Dialog,
@@ -323,9 +324,7 @@ export default function Editor(props: EditorProps) {
placeholder="Search a theme..."
itemComponent={props => (
-
- {props.item.rawValue}
-
+ {props.item.rawValue}
)}
@@ -372,8 +371,7 @@ export default function Editor(props: EditorProps) {
Background
-
-
+
Type
@@ -548,7 +546,7 @@ export default function Editor(props: EditorProps) {
}}
>
-
+
=
+type CheckboxRootProps =
CheckboxPrimitive.CheckboxRootProps & { class?: string | undefined }
-const Checkbox = (
- props: PolymorphicProps>
+const Checkbox = (
+ props: PolymorphicProps>,
) => {
- const [local, others] = splitProps(props as CheckboxRootProps, ["class"])
+ const [local, others] = splitProps(props as CheckboxRootProps, ['class'])
return (
-
+
@@ -54,4 +54,49 @@ const Checkbox = (
)
}
-export { Checkbox }
+const SimplerCheckbox = (
+ props: PolymorphicProps>,
+) => {
+ const [local, others] = splitProps(props as CheckboxRootProps, ['class'])
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export { Checkbox, SimplerCheckbox }
diff --git a/playgrounds/app/src/components/ui/combobox.tsx b/playgrounds/app/src/components/ui/combobox.tsx
index 8f9facd..b9c9002 100644
--- a/playgrounds/app/src/components/ui/combobox.tsx
+++ b/playgrounds/app/src/components/ui/combobox.tsx
@@ -21,7 +21,7 @@ const ComboboxItem = (
return (
(
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
- class="size-4 dark:text-black"
+ class="size-4"
>
@@ -157,7 +157,7 @@ const ComboboxContent = (
= (props) => {
+const DropdownMenu: Component = props => {
return
}
-type DropdownMenuContentProps =
+type DropdownMenuContentProps =
DropdownMenuPrimitive.DropdownMenuContentProps & {
class?: string | undefined
}
-const DropdownMenuContent = (
- props: PolymorphicProps>
+const DropdownMenuContent = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuContentProps, ["class"])
+ const [, rest] = splitProps(props as DropdownMenuContentProps, ['class'])
return (
@@ -38,73 +38,73 @@ const DropdownMenuContent = (
)
}
-type DropdownMenuItemProps =
+type DropdownMenuItemProps =
DropdownMenuPrimitive.DropdownMenuItemProps & {
class?: string | undefined
}
-const DropdownMenuItem = (
- props: PolymorphicProps>
+const DropdownMenuItem = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuItemProps, ["class"])
+ const [, rest] = splitProps(props as DropdownMenuItemProps, ['class'])
return (
)
}
-const DropdownMenuShortcut: Component> = (props) => {
- const [, rest] = splitProps(props, ["class"])
- return
+const DropdownMenuShortcut: Component> = props => {
+ const [, rest] = splitProps(props, ['class'])
+ return
}
-const DropdownMenuLabel: Component & { inset?: boolean }> = (props) => {
- const [, rest] = splitProps(props, ["class", "inset"])
+const DropdownMenuLabel: Component & { inset?: boolean }> = props => {
+ const [, rest] = splitProps(props, ['class', 'inset'])
return (
)
}
-type DropdownMenuSeparatorProps =
+type DropdownMenuSeparatorProps =
DropdownMenuPrimitive.DropdownMenuSeparatorProps & {
class?: string | undefined
}
-const DropdownMenuSeparator = (
- props: PolymorphicProps>
+const DropdownMenuSeparator = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuSeparatorProps, ["class"])
+ const [, rest] = splitProps(props as DropdownMenuSeparatorProps, ['class'])
return (
)
}
-type DropdownMenuSubTriggerProps =
+type DropdownMenuSubTriggerProps =
DropdownMenuPrimitive.DropdownMenuSubTriggerProps & {
class?: string | undefined
children?: JSX.Element
}
-const DropdownMenuSubTrigger = (
- props: PolymorphicProps>
+const DropdownMenuSubTrigger = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuSubTriggerProps, ["class", "children"])
+ const [, rest] = splitProps(props as DropdownMenuSubTriggerProps, ['class', 'children'])
return (
@@ -125,41 +125,41 @@ const DropdownMenuSubTrigger = (
)
}
-type DropdownMenuSubContentProps =
+type DropdownMenuSubContentProps =
DropdownMenuPrimitive.DropdownMenuSubContentProps & {
class?: string | undefined
}
-const DropdownMenuSubContent = (
- props: PolymorphicProps>
+const DropdownMenuSubContent = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuSubContentProps, ["class"])
+ const [, rest] = splitProps(props as DropdownMenuSubContentProps, ['class'])
return (
)
}
-type DropdownMenuCheckboxItemProps =
+type DropdownMenuCheckboxItemProps =
DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & {
class?: string | undefined
children?: JSX.Element
}
-const DropdownMenuCheckboxItem = (
- props: PolymorphicProps>
+const DropdownMenuCheckboxItem = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuCheckboxItemProps, ["class", "children"])
+ const [, rest] = splitProps(props as DropdownMenuCheckboxItemProps, ['class', 'children'])
return (
@@ -184,38 +184,38 @@ const DropdownMenuCheckboxItem = (
)
}
-type DropdownMenuGroupLabelProps =
+type DropdownMenuGroupLabelProps =
DropdownMenuPrimitive.DropdownMenuGroupLabelProps & {
class?: string | undefined
}
-const DropdownMenuGroupLabel = (
- props: PolymorphicProps>
+const DropdownMenuGroupLabel = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuGroupLabelProps, ["class"])
+ const [, rest] = splitProps(props as DropdownMenuGroupLabelProps, ['class'])
return (
)
}
-type DropdownMenuRadioItemProps =
+type DropdownMenuRadioItemProps =
DropdownMenuPrimitive.DropdownMenuRadioItemProps & {
class?: string | undefined
children?: JSX.Element
}
-const DropdownMenuRadioItem = (
- props: PolymorphicProps>
+const DropdownMenuRadioItem = (
+ props: PolymorphicProps>,
) => {
- const [, rest] = splitProps(props as DropdownMenuRadioItemProps, ["class", "children"])
+ const [, rest] = splitProps(props as DropdownMenuRadioItemProps, ['class', 'children'])
return (
@@ -256,5 +256,5 @@ export {
DropdownMenuGroup,
DropdownMenuGroupLabel,
DropdownMenuRadioGroup,
- DropdownMenuRadioItem
+ DropdownMenuRadioItem,
}
diff --git a/playgrounds/app/src/components/ui/slider.tsx b/playgrounds/app/src/components/ui/slider.tsx
index c1750d7..692e72d 100644
--- a/playgrounds/app/src/components/ui/slider.tsx
+++ b/playgrounds/app/src/components/ui/slider.tsx
@@ -1,74 +1,77 @@
-import type { JSX, ValidComponent } from "solid-js"
-import { splitProps } from "solid-js"
+import type { JSX, ValidComponent } from 'solid-js'
+import { splitProps } from 'solid-js'
-import type { PolymorphicProps } from "@kobalte/core/polymorphic"
-import * as SliderPrimitive from "@kobalte/core/slider"
+import type { PolymorphicProps } from '@kobalte/core/polymorphic'
+import * as SliderPrimitive from '@kobalte/core/slider'
-import { cn } from "~/lib/utils"
-import { Label } from "~/components/ui/label"
+import { cn } from '~/lib/utils'
+import { Label } from '~/components/ui/label'
-type SliderRootProps = SliderPrimitive.SliderRootProps & {
+type SliderRootProps = SliderPrimitive.SliderRootProps & {
class?: string | undefined
}
-const Slider = (
- props: PolymorphicProps>
+const Slider = (
+ props: PolymorphicProps>,
) => {
- const [local, others] = splitProps(props as SliderRootProps, ["class"])
+ const [local, others] = splitProps(props as SliderRootProps, ['class'])
return (
)
}
-type SliderTrackProps = SliderPrimitive.SliderTrackProps & {
+type SliderTrackProps = SliderPrimitive.SliderTrackProps & {
class?: string | undefined
}
-const SliderTrack = (
- props: PolymorphicProps>
+const SliderTrack = (
+ props: PolymorphicProps>,
) => {
- const [local, others] = splitProps(props as SliderTrackProps, ["class"])
+ const [local, others] = splitProps(props as SliderTrackProps, ['class'])
return (
)
}
-type SliderFillProps = SliderPrimitive.SliderFillProps & {
+type SliderFillProps = SliderPrimitive.SliderFillProps & {
class?: string | undefined
}
-const SliderFill = (
- props: PolymorphicProps>
+const SliderFill = (
+ props: PolymorphicProps>,
) => {
- const [local, others] = splitProps(props as SliderFillProps, ["class"])
+ const [local, others] = splitProps(props as SliderFillProps, ['class'])
return (
)
}
-type SliderThumbProps = SliderPrimitive.SliderThumbProps & {
+type SliderThumbProps = SliderPrimitive.SliderThumbProps & {
class?: string | undefined
children?: JSX.Element
}
-const SliderThumb = (
- props: PolymorphicProps>
+const SliderThumb = (
+ props: PolymorphicProps>,
) => {
- const [local, others] = splitProps(props as SliderThumbProps, ["class", "children"])
+ const [local, others] = splitProps(props as SliderThumbProps, ['class', 'children'])
return (
@@ -77,14 +80,14 @@ const SliderThumb = (
)
}
-const SliderLabel = (
- props: PolymorphicProps>
+const SliderLabel = (
+ props: PolymorphicProps>,
) => {
return
}
-const SliderValueLabel = (
- props: PolymorphicProps>
+const SliderValueLabel = (
+ props: PolymorphicProps>,
) => {
return
}
diff --git a/playgrounds/app/src/routes/api/authenticated/_middleware.ts b/playgrounds/app/src/routes/api/authenticated/_middleware.ts
new file mode 100644
index 0000000..3e28e14
--- /dev/null
+++ b/playgrounds/app/src/routes/api/authenticated/_middleware.ts
@@ -0,0 +1 @@
+export function middleware(event: APIEvent): Promise | undefined {}
diff --git a/playgrounds/app/src/routes/api/authenticated/widgets.ts b/playgrounds/app/src/routes/api/authenticated/widgets.ts
new file mode 100644
index 0000000..e69de29