creates video voice memos from audio clips; with bluesky integration. trill.ptr.pet
at main 1.3 kB view raw
1import { type Assign, Switch } from '@ark-ui/solid' 2import type { ComponentProps } from 'solid-js' 3import { type SwitchRecipeVariantProps, switchRecipe } from 'styled-system/recipes' 4import type { HTMLStyledProps } from 'styled-system/types' 5import { createStyleContext } from './utils/create-style-context' 6 7const { withProvider, withContext } = createStyleContext(switchRecipe) 8 9export type RootProviderProps = ComponentProps<typeof RootProvider> 10export const RootProvider = withProvider< 11 Assign<Assign<HTMLStyledProps<'label'>, Switch.RootProviderBaseProps>, SwitchRecipeVariantProps> 12>(Switch.RootProvider, 'root') 13 14export type RootProps = ComponentProps<typeof Root> 15export const Root = withProvider< 16 Assign<Assign<HTMLStyledProps<'label'>, Switch.RootBaseProps>, SwitchRecipeVariantProps> 17>(Switch.Root, 'root') 18 19export const Control = withContext<Assign<HTMLStyledProps<'span'>, Switch.ControlBaseProps>>( 20 Switch.Control, 21 'control', 22) 23 24export const Label = withContext<Assign<HTMLStyledProps<'span'>, Switch.LabelBaseProps>>( 25 Switch.Label, 26 'label', 27) 28 29export const Thumb = withContext<Assign<HTMLStyledProps<'span'>, Switch.ThumbBaseProps>>( 30 Switch.Thumb, 31 'thumb', 32) 33 34export { 35 SwitchContext as Context, 36 SwitchHiddenInput as HiddenInput, 37} from '@ark-ui/solid'