Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
feat: AI Command bar (#2426)
Ivan Starkov33d640f7aa18
diff --git a/packages/design-system/src/components/ai-input/autogrow-text-area.stories.tsx b/packages/design-system/src/components/ai-command-bar/autogrow-text-area.stories.tsxsimilarity index 100%rename from packages/design-system/src/components/ai-input/autogrow-text-area.stories.tsxrename to packages/design-system/src/components/ai-command-bar/autogrow-text-area.stories.tsxdiff --git a/packages/design-system/src/components/ai-input/autogrow-text-area.tsx b/packages/design-system/src/components/ai-command-bar/autogrow-text-area.tsxsimilarity index 100%rename from packages/design-system/src/components/ai-input/autogrow-text-area.tsxrename to packages/design-system/src/components/ai-command-bar/autogrow-text-area.tsxdiff --git a/packages/design-system/src/components/ai-command-bar/command-bar-button.stories.tsx b/packages/design-system/src/components/ai-command-bar/command-bar-button.stories.tsxnew file mode 100644index 0000000000..1f3cb898bb--- /dev/null+++ b/packages/design-system/src/components/ai-command-bar/command-bar-button.stories.tsx@@ -0,0 +1,54 @@+import { CommandBarButton } from "./command-bar-button";+import { StorySection, StoryGrid } from "../storybook";+import {+ AiIcon,+ StopIcon,+ MicIcon,+ LargeXIcon,+ ChevronUpIcon,+} from "@webstudio-is/icons";++export default {+ title: "Library/AI Command Button",+};++export const Demo = () => {+ return (+ <>+ <StorySection title="AI Menu Buttons">+ <StoryGrid horizontal css={{ backgroundColor: "#1D1D1D", padding: 8 }}>+ <CommandBarButton color="dark-ghost">+ <ChevronUpIcon />+ </CommandBarButton>+ </StoryGrid>+ </StorySection>+ <StorySection title="AI Buttons">+ <StoryGrid horizontal css={{ backgroundColor: "#1D1D1D", padding: 8 }}>+ <CommandBarButton color="gradient">+ <AiIcon />+ </CommandBarButton>+ <CommandBarButton color="gradient" disabled>+ <AiIcon />+ </CommandBarButton>+ <CommandBarButton color="neutral-destructive" disabled>+ <LargeXIcon />+ </CommandBarButton>+ </StoryGrid>+ </StorySection>+ <StorySection title="Sound Buttons">+ <StoryGrid+ horizontal+ css={{ backgroundColor: "#1D1D1D", padding: 8, color: "#FFF" }}+ >+ <CommandBarButton color="dark-ghost">+ <MicIcon />+ </CommandBarButton>+ <CommandBarButton color="destructive">+ <StopIcon />+ </CommandBarButton>+ </StoryGrid>+ </StorySection>+ </>+ );+};+Demo.storyName = "AI Command Button";diff --git a/packages/design-system/src/components/ai-command-bar/command-bar-button.tsx b/packages/design-system/src/components/ai-command-bar/command-bar-button.tsxnew file mode 100644index 0000000000..4edc8145e2--- /dev/null+++ b/packages/design-system/src/components/ai-command-bar/command-bar-button.tsx@@ -0,0 +1,18 @@+import { forwardRef, type ComponentProps, type Ref } from "react";+import { Button } from "../button";+import { styled, theme } from "../../stitches.config";++type CommandButtonProps = ComponentProps<typeof Button>;++const RoundedButton = styled(Button, {+ borderRadius: theme.borderRadius["pill"],+ width: "min-content",+});++export const CommandBarButton = forwardRef(+ ({ children, ...props }: CommandButtonProps, ref: Ref<HTMLButtonElement>) => {+ return <RoundedButton ref={ref} {...props} prefix={children} />;+ }+);++CommandBarButton.displayName = "CommandButton";diff --git a/packages/design-system/src/components/ai-command-bar/command-bar.stories.tsx b/packages/design-system/src/components/ai-command-bar/command-bar.stories.tsxnew file mode 100644index 0000000000..2700be7b06--- /dev/null+++ b/packages/design-system/src/components/ai-command-bar/command-bar.stories.tsx@@ -0,0 +1,133 @@+import { useState } from "react";+import {+ AutogrowTextArea,+ CommandBar,+ CommandBarButton,+ CommandBarContentPrompt,+ CommandBarContentSection,+ CommandBarContentSeparator,+ CommandBarTrigger,+} from "./index";+import { Button, Flex, ScrollArea, Box, Grid, Text, theme } from "../..";+import {+ AiIcon,+ MicIcon,+ ChevronUpIcon,+ ExternalLinkIcon,+} from "@webstudio-is/icons";++export default {+ title: "Library/AI Command Bar",+};++const CommandBarContent = () => {+ return (+ <>+ <CommandBarContentSection>+ <Text variant={"labelsSentenceCase"} align={"center"}>+ Welcome to Webstudio AI alpha!+ </Text>+ <div />+ <Text variant={"labelsSentenceCase"}>+ Ask me to generate or edit sections, text, or images.+ <br /> For example you can say: ”Make a new contact section”+ </Text>+ <Flex align={"end"}>+ <Button+ color="dark"+ css={{+ width: theme.spacing[30],+ }}+ suffix={<ExternalLinkIcon />}+ >+ Learn more+ </Button>+ <Text+ variant={"labelsSentenceCase"}+ color={"subtle"}+ css={{ flex: 1 }}+ align={"center"}+ >+ shortcut ⌘⇧Q+ </Text>+ </Flex>+ </CommandBarContentSection>++ <CommandBarContentSeparator />++ <CommandBarContentSection>+ <Text variant={"labelsSentenceCase"} align={"center"}>+ Previous propmts+ </Text>+ <div />+ <CommandBarContentPrompt>+ Make a new section with a contact form+ </CommandBarContentPrompt>+ <CommandBarContentPrompt>+ Add an image of a cat smiling wearing eyeglasses+ </CommandBarContentPrompt>+ <CommandBarContentPrompt>+ Write a breakup letter for my girlfriend and make it long enough to+ break into multiple lines+ </CommandBarContentPrompt>+ <CommandBarContentPrompt>+ Make all headings bold+ </CommandBarContentPrompt>+ </CommandBarContentSection>+ </>+ );+};++export const Demo = () => {+ const [open, setOpen] = useState(false);++ const commandBarContent = <CommandBarContent />;++ return (+ <Box+ css={{+ position: "fixed",+ bottom: 80,+ left: 0,+ right: 0,+ height: 0,+ display: "flex",+ justifyContent: "center",+ alignItems: "flex-end",+ }}+ >+ <CommandBar+ open={open}+ onOpenChange={setOpen}+ content={commandBarContent}+ >+ <CommandBarTrigger>+ <CommandBarButton color="dark-ghost">+ <ChevronUpIcon />+ </CommandBarButton>+ </CommandBarTrigger>++ <Grid+ css={{+ alignSelf: "center",+ // color: theme.colors.foregroundContrastMain,+ // Set maxWidth to autogrow in width+ width: theme.spacing[31],+ }}+ >+ <ScrollArea css={{ maxHeight: theme.spacing[29] }}>+ <AutogrowTextArea placeholder="Enter value..." />+ </ScrollArea>+ </Grid>++ <CommandBarButton color="dark-ghost">+ <MicIcon />+ </CommandBarButton>+ <CommandBarButton color="gradient">+ <AiIcon />+ </CommandBarButton>+ </CommandBar>+ </Box>+ );+};+Demo.storyName = "AI Command Bar";diff --git a/packages/design-system/src/components/ai-command-bar/command-bar.tsx b/packages/design-system/src/components/ai-command-bar/command-bar.tsxnew file mode 100644index 0000000000..7221232700--- /dev/null+++ b/packages/design-system/src/components/ai-command-bar/command-bar.tsx@@ -0,0 +1,109 @@+/**+ * Implementation of the "ai command bar" component from:+ * https://www.figma.com/file/xCBegXEWxROLqA1Y31z2Xo/%F0%9F%93%96-Webstudio-Design-Docs?node-id=7586%3A48927&mode=dev+ */+import * as Collapsible from "@radix-ui/react-collapsible";+import * as Separator from "@radix-ui/react-separator";+import { styled, theme } from "../../stitches.config";+import { Grid } from "../grid";+import { Button } from "../button";+import { type ReactNode } from "react";++type Props = {+ children: React.ReactNode;+ content?: React.ReactNode;+ open: boolean;+ onOpenChange: (open: boolean) => void;+};++// @todo replace with theme variables, as of now they are no ready yet+const borderRadius = 22;+const backgroundColor = "#1D1D1D";+const borderColor = "#323232";+const boxShadow =+ "0px 5px 17px 0px rgba(0, 0, 0, 0.30), 0px 2px 7px 0px rgba(0, 0, 0, 0.10)";++const GridContainer = styled(Grid, {+ gridTemplateColumns: `max-content 1fr`,+ gridAutoColumns: "max-content",+ gridAutoFlow: "column",+ padding: theme.spacing[5],+ borderRadius,+ variants: {+ open: {+ true: {+ borderTopLeftRadius: 0,+ borderTopRightRadius: 0,+ borderTop: `1px solid ${borderColor}`,+ },+ },+ },+});++const CollapsibleRoot = styled(Collapsible.Root, {+ color: theme.colors.foregroundContrastMain,+ backgroundColor,+ borderRadius,+ border: `1px solid ${borderColor}`,+ boxShadow,+});++const CollapsibleContent = styled(Collapsible.Content, {+ width: "min-content",+ minWidth: "100%",+});++export const CommandBar = (props: Props) => {+ const open = props.content !== undefined && props.open;+ const onOpenChange =+ props.content !== undefined ? props.onOpenChange : undefined;++ return (+ <CollapsibleRoot open={open} onOpenChange={onOpenChange}>+ <CollapsibleContent>{props.content}</CollapsibleContent>+ <GridContainer gap={2} open={props.open}>+ {props.children}+ </GridContainer>+ </CollapsibleRoot>+ );+};++export const CommandBarTrigger = (props: { children: ReactNode }) => (+ <Collapsible.Trigger asChild {...props} />+);++export const CommandBarContentSection = (props: { children: ReactNode }) => (+ <Grid+ css={{+ margin: theme.spacing[9],+ }}+ gap={2}+ {...props}+ />+);++export const CommandBarContentSeparator = styled(Separator.Root, {+ backgroundColor: borderColor,+ height: 1,+});++const CommandBarContentPromptStyled = styled(Button, {+ justifyContent: "start",+ p: theme.spacing[4],+ height: "auto",+});++const CommandBarContentPromptText = styled("span", {+ overflow: "auto",+ whiteSpace: "break-spaces",+});++export const CommandBarContentPrompt = (props: { children: ReactNode }) => {+ return (+ <CommandBarContentPromptStyled color="dark">+ <CommandBarContentPromptText>+ {props.children}+ </CommandBarContentPromptText>+ </CommandBarContentPromptStyled>+ );+};diff --git a/packages/design-system/src/components/ai-command-bar/index.tsx b/packages/design-system/src/components/ai-command-bar/index.tsxnew file mode 100644index 0000000000..cb66f1e49f--- /dev/null+++ b/packages/design-system/src/components/ai-command-bar/index.tsx@@ -0,0 +1,9 @@+export {+ CommandBar,+ CommandBarContentPrompt,+ CommandBarContentSection,+ CommandBarContentSeparator,+ CommandBarTrigger,+} from "./command-bar";+export { AutogrowTextArea } from "./autogrow-text-area";+export { CommandBarButton } from "./command-bar-button";diff --git a/packages/design-system/src/components/button.stories.tsx b/packages/design-system/src/components/button.stories.tsxindex 5dad218230..32ee09f52e 100644--- a/packages/design-system/src/components/button.stories.tsx+++ b/packages/design-system/src/components/button.stories.tsx@@ -30,6 +30,7 @@ const colors: ReadonlyArray<ComponentProps<typeof ButtonComponent>["color"]> = ["ghost","dark","gradient",+ "dark-ghost",];const states: ReadonlyArray<ComponentProps<typeof ButtonComponent>["state"]> = [@@ -60,7 +61,15 @@ export const Button = ({<StorySection title="Colors & States"><StoryGrid>{colors.map((color) => (- <StoryGrid horizontal key={color}>+ <StoryGrid+ horizontal+ key={color}+ css={+ color === "dark-ghost"+ ? { backgroundColor: "#1E1E1E", padding: 8 }+ : undefined+ }+ >{states.map((state) => (<ButtonComponentprefix={<TrashIcon />}diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsxindex 1010bf8722..68ee41f1f1 100644--- a/packages/design-system/src/components/button.tsx+++ b/packages/design-system/src/components/button.tsx@@ -23,6 +23,7 @@ const colors = ["dark","gradient","neutral-destructive",+ "dark-ghost",] as const;type ButtonColor = (typeof colors)[number];@@ -38,6 +39,7 @@ const backgrounds: Record<ButtonColor, string> = {ghost: theme.colors.backgroundHover,dark: theme.colors.backgroundTopbar,gradient: theme.colors.backgroundGradientPrimary,+ "dark-ghost": theme.colors.backgroundTopbar,};const foregrounds: Record<ButtonColor, string> = {@@ -49,6 +51,7 @@ const foregrounds: Record<ButtonColor, string> = {ghost: theme.colors.foregroundMain,dark: theme.colors.foregroundContrastMain,gradient: theme.colors.foregroundContrastMain,+ "dark-ghost": theme.colors.foregroundContrastMain,};// CSS supports multiple gradients as backgrounds but not multiple colors@@ -56,10 +59,17 @@ const backgroundColors = (base: string, overlay: string) =>`linear-gradient(${overlay}, ${overlay}), linear-gradient(${base}, ${base})`;const perColorStyle = (variant: ButtonColor) => ({- background: variant === "ghost" ? "transparent" : backgrounds[variant],- color: foregrounds[variant],+ background:+ variant === "ghost" || variant === "dark-ghost"+ ? "transparent"+ : backgrounds[variant],+ color:+ variant === "dark-ghost"+ ? theme.colors.foregroundMoreSubtle+ : foregrounds[variant],"&[data-state=auto]:hover, &[data-state=hover]": {+ color: foregrounds[variant],background:variant === "gradient"? `linear-gradient(${theme.colors.backgroundButtonHover}, ${theme.colors.backgroundButtonHover}), ${backgrounds[variant]}`@@ -70,11 +80,13 @@ const perColorStyle = (variant: ButtonColor) => ({},"&[data-state=auto]:focus-visible, &[data-state=focus]": {+ color: foregrounds[variant],outline: `2px solid ${theme.colors.borderFocus}`,outlineOffset: "1px",},"&[data-state=auto]:active, &[data-state=pressed]": {+ color: foregrounds[variant],background:variant === "gradient"? `linear-gradient(${theme.colors.backgroundButtonPressed}, ${theme.colors.backgroundButtonPressed}), ${backgrounds[variant]}`@@ -117,6 +129,7 @@ const StyledButton = styled("button", {ghost: perColorStyle("ghost"),dark: perColorStyle("dark"),gradient: perColorStyle("gradient"),+ "dark-ghost": perColorStyle("dark-ghost"),},},diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.tsindex ef3003e426..eba262af2b 100644--- a/packages/design-system/src/index.ts+++ b/packages/design-system/src/index.ts@@ -39,6 +39,7 @@ export * from "./components/component-card";export * from "./components/input-field";export * from "./components/nested-input-button";export * from "./components/panel-tabs";+export * from "./components/ai-command-bar";// Not aligneddiff --git a/packages/icons/icons/ai.svg b/packages/icons/icons/ai.svgnew file mode 100644index 0000000000..02d77306d4--- /dev/null+++ b/packages/icons/icons/ai.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path d="M11.4582 13.305C13.1832 13.305 14.6292 11.8576 14.6292 10.1301V3.9965C14.6292 3.27884 14.0472 2.69531 13.3292 2.69531C12.6122 2.69531 12.0292 3.27884 12.0292 3.9965V10.1301C12.0292 10.4412 11.7694 10.7024 11.4585 10.7026C11.1995 10.7026 10.9663 10.5213 10.9043 10.27C10.6233 9.14402 10.2023 7.46048 9.74527 5.63082C9.31626 3.91025 7.77125 2.70216 5.99824 2.70216C4.22622 2.70216 2.68021 3.91025 2.25021 5.63182L0.738198 11.6883C0.564197 12.385 0.9882 13.0916 1.68421 13.2658C2.38021 13.4399 3.08622 13.0155 3.26022 12.3189C3.26022 12.3189 3.95922 9.51936 4.77323 6.26239C4.91323 5.69988 5.41923 5.30452 5.99824 5.30452C6.57724 5.30452 7.08224 5.69988 7.22325 6.26239C7.67925 8.09106 8.10025 9.77559 8.38125 10.9006C8.73023 12.2988 10.0193 13.3048 11.4582 13.305Z"/>+</svg>\ No newline at end of filediff --git a/packages/icons/icons/mic-off.svg b/packages/icons/icons/mic-off.svgnew file mode 100644index 0000000000..f0d8ca6d30--- /dev/null+++ b/packages/icons/icons/mic-off.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0.87373 0.8737C1.12757 0.619859 1.53913 0.619859 1.79297 0.8737L6.45915 5.53988C6.45902 5.53975 6.45927 5.54 6.45915 5.53988L9.87459 8.95361C9.88413 8.96314 9.89331 8.9729 9.90214 8.98287L11.2626 10.3434C11.7372 9.68382 12.0167 8.87454 12.0167 7.99999V6.66665C12.0167 6.30767 12.3077 6.01665 12.6667 6.01665C13.0257 6.01665 13.3167 6.30767 13.3167 6.66665V7.99999C13.3167 9.23389 12.8963 10.3696 12.1911 11.2718L15.1263 14.207C15.3801 14.4609 15.3801 14.8724 15.1263 15.1263C14.8725 15.3801 14.4609 15.3801 14.2071 15.1263L11.2718 12.191C10.5305 12.7705 9.63156 13.1577 8.65002 13.2773V14.0167H10.6667C11.0257 14.0167 11.3167 14.3077 11.3167 14.6667C11.3167 15.0256 11.0257 15.3167 10.6667 15.3167H5.33335C4.97436 15.3167 4.68335 15.0256 4.68335 14.6667C4.68335 14.3077 4.97436 14.0167 5.33335 14.0167H7.35002V13.2773C4.72031 12.9568 2.68335 10.7163 2.68335 7.99999V6.66665C2.68335 6.30767 2.97436 6.01665 3.33335 6.01665C3.69233 6.01665 3.98335 6.30767 3.98335 6.66665V7.99999C3.98335 10.2183 5.78167 12.0167 8.00002 12.0167C8.87457 12.0167 9.68385 11.7371 10.3434 11.2626L9.35719 10.2764C8.96026 10.5134 8.4958 10.65 8.00002 10.65C6.53646 10.65 5.35002 9.46354 5.35002 7.99999V6.26922L0.87373 1.79294C0.619889 1.5391 0.619889 1.12754 0.87373 0.8737ZM6.65002 7.56922V7.99999C6.65002 8.74557 7.25443 9.34999 8.00002 9.34999C8.13112 9.34999 8.25773 9.3314 8.37745 9.29666L6.65002 7.56922ZM5.62615 2.15451C6.05912 1.28387 6.95884 0.683319 8.00002 0.683319C9.46357 0.683319 10.65 1.86976 10.65 3.33332V6.26665C10.65 6.62564 10.359 6.91665 10 6.91665C9.64103 6.91665 9.35002 6.62564 9.35002 6.26665V3.33332C9.35002 2.58773 8.7456 1.98332 8.00002 1.98332C7.47104 1.98332 7.01191 2.28746 6.79016 2.73337C6.63031 3.0548 6.24015 3.18579 5.91872 3.02595C5.59729 2.8661 5.4663 2.47594 5.62615 2.15451Z" />+</svg>\ No newline at end of filediff --git a/packages/icons/icons/mic.svg b/packages/icons/icons/mic.svgnew file mode 100644index 0000000000..50c6fc2602--- /dev/null+++ b/packages/icons/icons/mic.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" >+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.35002 3.33333C5.35002 1.86978 6.53646 0.683334 8.00002 0.683334C9.46357 0.683334 10.65 1.86978 10.65 3.33333V8C10.65 9.46355 9.46357 10.65 8.00002 10.65C6.53646 10.65 5.35002 9.46355 5.35002 8V3.33333ZM8.00002 1.98333C7.25443 1.98333 6.65002 2.58775 6.65002 3.33333V8C6.65002 8.74558 7.25443 9.35 8.00002 9.35C8.7456 9.35 9.35002 8.74558 9.35002 8V3.33333C9.35002 2.58775 8.7456 1.98333 8.00002 1.98333ZM3.33335 6.01667C3.69233 6.01667 3.98335 6.30768 3.98335 6.66667V8C3.98335 10.2183 5.78167 12.0167 8.00002 12.0167C10.2184 12.0167 12.0167 10.2183 12.0167 8V6.66667C12.0167 6.30768 12.3077 6.01667 12.6667 6.01667C13.0257 6.01667 13.3167 6.30768 13.3167 6.66667V8C13.3167 10.7163 11.2797 12.9568 8.65002 13.2773V14.0167H10.6667C11.0257 14.0167 11.3167 14.3077 11.3167 14.6667C11.3167 15.0257 11.0257 15.3167 10.6667 15.3167H5.33335C4.97436 15.3167 4.68335 15.0257 4.68335 14.6667C4.68335 14.3077 4.97436 14.0167 5.33335 14.0167H7.35002V13.2773C4.72031 12.9568 2.68335 10.7163 2.68335 8V6.66667C2.68335 6.30768 2.97436 6.01667 3.33335 6.01667Z"/>+</svg>\ No newline at end of filediff --git a/packages/icons/icons/stop.svg b/packages/icons/icons/stop.svgnew file mode 100644index 0000000000..430a274eb8--- /dev/null+++ b/packages/icons/icons/stop.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" >+ <rect x="3.5" y="3.5" width="9" height="9" rx="1"/>+</svg>\ No newline at end of filediff --git a/packages/icons/src/__generated__/ai.tsx b/packages/icons/src/__generated__/ai.tsxnew file mode 100644index 0000000000..f39dd24363--- /dev/null+++ b/packages/icons/src/__generated__/ai.tsx@@ -0,0 +1,15 @@+// Generated from icons/ai.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const AiIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path d="M11.458 13.305c1.725 0 3.171-1.447 3.171-3.175V3.996a1.301 1.301 0 0 0-2.6 0v6.134c0 .311-.26.572-.57.573a.576.576 0 0 1-.555-.433c-.28-1.126-.702-2.81-1.159-4.64a3.862 3.862 0 0 0-7.495.002L.738 11.688a1.3 1.3 0 1 0 2.522.63l1.513-6.056a1.263 1.263 0 0 1 2.45 0l1.158 4.639a3.2 3.2 0 0 0 3.077 2.404Z" /></svg>+ );+ }+);++AiIcon.displayName = "AiIcon";diff --git a/packages/icons/src/__generated__/index.ts b/packages/icons/src/__generated__/index.tsindex e35d580917..31d5c5a89d 100644--- a/packages/icons/src/__generated__/index.ts+++ b/packages/icons/src/__generated__/index.ts@@ -17,6 +17,7 @@ export * from "./a-s-stretch";export * from "./accordion-content";export * from "./accordion-trigger";export * from "./accordion";+export * from "./ai";export * from "./alert";export * from "./arrow-down";export * from "./arrow-right";@@ -111,6 +112,8 @@ export * from "./list-item";export * from "./list";export * from "./loading-dots";export * from "./menu-ellipses";+export * from "./mic-off";+export * from "./mic";export * from "./minus";export * from "./navigation-menu";export * from "./no-wrap";@@ -140,6 +143,7 @@ export * from "./slider";export * from "./slot-component";export * from "./small-x";export * from "./spinner";+export * from "./stop";export * from "./subscript";export * from "./subtract";export * from "./superscript";diff --git a/packages/icons/src/__generated__/mic-off.tsx b/packages/icons/src/__generated__/mic-off.tsxnew file mode 100644index 0000000000..9fcae187b7--- /dev/null+++ b/packages/icons/src/__generated__/mic-off.tsx@@ -0,0 +1,15 @@+// Generated from icons/mic-off.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const MicOffIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M.874.874a.65.65 0 0 1 .919 0L6.459 5.54l3.416 3.414.027.029 1.36 1.36c.475-.66.755-1.468.755-2.343V6.667a.65.65 0 1 1 1.3 0V8c0 1.234-.42 2.37-1.126 3.272l2.935 2.935a.65.65 0 0 1-.919.92l-2.935-2.936a5.29 5.29 0 0 1-2.622 1.086v.74h2.017a.65.65 0 1 1 0 1.3H5.333a.65.65 0 0 1 0-1.3H7.35v-.74A5.318 5.318 0 0 1 2.683 8V6.667a.65.65 0 0 1 1.3 0V8a4.017 4.017 0 0 0 6.36 3.263l-.986-.987A2.65 2.65 0 0 1 5.35 8V6.27L.874 1.792a.65.65 0 0 1 0-.92ZM6.65 7.569V8a1.35 1.35 0 0 0 1.727 1.297L6.65 7.569ZM5.626 2.155a2.65 2.65 0 0 1 5.024 1.178v2.934a.65.65 0 1 1-1.3 0V3.333a1.35 1.35 0 0 0-2.56-.6.65.65 0 0 1-1.164-.578Z" clipRule="evenodd" /></svg>+ );+ }+);++MicOffIcon.displayName = "MicOffIcon";diff --git a/packages/icons/src/__generated__/mic.tsx b/packages/icons/src/__generated__/mic.tsxnew file mode 100644index 0000000000..f2800e2717--- /dev/null+++ b/packages/icons/src/__generated__/mic.tsx@@ -0,0 +1,15 @@+// Generated from icons/mic.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const MicIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><path fillRule="evenodd" d="M5.35 3.333a2.65 2.65 0 0 1 5.3 0V8a2.65 2.65 0 1 1-5.3 0V3.333ZM8 1.983a1.35 1.35 0 0 0-1.35 1.35V8a1.35 1.35 0 1 0 2.7 0V3.333A1.35 1.35 0 0 0 8 1.983ZM3.333 6.017a.65.65 0 0 1 .65.65V8a4.017 4.017 0 0 0 8.034 0V6.667a.65.65 0 1 1 1.3 0V8a5.318 5.318 0 0 1-4.667 5.277v.74h2.017a.65.65 0 1 1 0 1.3H5.333a.65.65 0 1 1 0-1.3H7.35v-.74A5.318 5.318 0 0 1 2.683 8V6.667a.65.65 0 0 1 .65-.65Z" clipRule="evenodd" /></svg>+ );+ }+);++MicIcon.displayName = "MicIcon";diff --git a/packages/icons/src/__generated__/stop.tsx b/packages/icons/src/__generated__/stop.tsxnew file mode 100644index 0000000000..e4b3988af9--- /dev/null+++ b/packages/icons/src/__generated__/stop.tsx@@ -0,0 +1,15 @@+// Generated from icons/stop.svg++import { forwardRef } from "react";+import type { IconProps } from "../types";++// prettier-ignore+export const StopIcon = forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", size = 16, ...props }, forwardedRef) => {+ return (+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...props} ref={forwardedRef}><rect width="9" height="9" x="3.5" y="3.5" rx="1" /></svg>+ );+ }+);++StopIcon.displayName = "StopIcon";diff --git a/packages/icons/src/__generated__/svg/ai.ts b/packages/icons/src/__generated__/svg/ai.tsnew file mode 100644index 0000000000..0d039ccb2f--- /dev/null+++ b/packages/icons/src/__generated__/svg/ai.ts@@ -0,0 +1 @@+export const AiIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><path d="M11.458 13.305c1.725 0 3.171-1.447 3.171-3.175V3.996a1.301 1.301 0 0 0-2.6 0v6.134c0 .311-.26.572-.57.573a.576.576 0 0 1-.555-.433c-.28-1.126-.702-2.81-1.159-4.64a3.862 3.862 0 0 0-7.495.002L.738 11.688a1.3 1.3 0 1 0 2.522.63l1.513-6.056a1.263 1.263 0 0 1 2.45 0l1.158 4.639a3.2 3.2 0 0 0 3.077 2.404Z"/></svg>`;diff --git a/packages/icons/src/__generated__/svg/index.ts b/packages/icons/src/__generated__/svg/index.tsindex cf7305479a..163a9cf240 100644--- a/packages/icons/src/__generated__/svg/index.ts+++ b/packages/icons/src/__generated__/svg/index.ts@@ -17,6 +17,7 @@ export { ASStretchIcon } from "./a-s-stretch";export { AccordionContentIcon } from "./accordion-content";export { AccordionTriggerIcon } from "./accordion-trigger";export { AccordionIcon } from "./accordion";+export { AiIcon } from "./ai";export { AlertIcon } from "./alert";export { ArrowDownIcon } from "./arrow-down";export { ArrowRightIcon } from "./arrow-right";@@ -111,6 +112,8 @@ export { ListItemIcon } from "./list-item";export { ListIcon } from "./list";export { LoadingDotsIcon } from "./loading-dots";export { MenuEllipsesIcon } from "./menu-ellipses";+export { MicOffIcon } from "./mic-off";+export { MicIcon } from "./mic";export { MinusIcon } from "./minus";export { NavigationMenuIcon } from "./navigation-menu";export { NoWrapIcon } from "./no-wrap";@@ -140,6 +143,7 @@ export { SliderIcon } from "./slider";export { SlotComponentIcon } from "./slot-component";export { SmallXIcon } from "./small-x";export { SpinnerIcon } from "./spinner";+export { StopIcon } from "./stop";export { SubscriptIcon } from "./subscript";export { SubtractIcon } from "./subtract";export { SuperscriptIcon } from "./superscript";diff --git a/packages/icons/src/__generated__/svg/mic-off.ts b/packages/icons/src/__generated__/svg/mic-off.tsnew file mode 100644index 0000000000..072ace2834--- /dev/null+++ b/packages/icons/src/__generated__/svg/mic-off.ts@@ -0,0 +1 @@+export const MicOffIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><path fill-rule="evenodd" d="M.874.874a.65.65 0 0 1 .919 0L6.459 5.54l3.416 3.414.027.029 1.36 1.36c.475-.66.755-1.468.755-2.343V6.667a.65.65 0 1 1 1.3 0V8c0 1.234-.42 2.37-1.126 3.272l2.935 2.935a.65.65 0 0 1-.919.92l-2.935-2.936a5.29 5.29 0 0 1-2.622 1.086v.74h2.017a.65.65 0 1 1 0 1.3H5.333a.65.65 0 0 1 0-1.3H7.35v-.74A5.318 5.318 0 0 1 2.683 8V6.667a.65.65 0 0 1 1.3 0V8a4.017 4.017 0 0 0 6.36 3.263l-.986-.987A2.65 2.65 0 0 1 5.35 8V6.27L.874 1.792a.65.65 0 0 1 0-.92ZM6.65 7.569V8a1.35 1.35 0 0 0 1.727 1.297L6.65 7.569ZM5.626 2.155a2.65 2.65 0 0 1 5.024 1.178v2.934a.65.65 0 1 1-1.3 0V3.333a1.35 1.35 0 0 0-2.56-.6.65.65 0 0 1-1.164-.578Z" clip-rule="evenodd"/></svg>`;diff --git a/packages/icons/src/__generated__/svg/mic.ts b/packages/icons/src/__generated__/svg/mic.tsnew file mode 100644index 0000000000..332e58d9a1--- /dev/null+++ b/packages/icons/src/__generated__/svg/mic.ts@@ -0,0 +1 @@+export const MicIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><path fill-rule="evenodd" d="M5.35 3.333a2.65 2.65 0 0 1 5.3 0V8a2.65 2.65 0 1 1-5.3 0V3.333ZM8 1.983a1.35 1.35 0 0 0-1.35 1.35V8a1.35 1.35 0 1 0 2.7 0V3.333A1.35 1.35 0 0 0 8 1.983ZM3.333 6.017a.65.65 0 0 1 .65.65V8a4.017 4.017 0 0 0 8.034 0V6.667a.65.65 0 1 1 1.3 0V8a5.318 5.318 0 0 1-4.667 5.277v.74h2.017a.65.65 0 1 1 0 1.3H5.333a.65.65 0 1 1 0-1.3H7.35v-.74A5.318 5.318 0 0 1 2.683 8V6.667a.65.65 0 0 1 .65-.65Z" clip-rule="evenodd"/></svg>`;diff --git a/packages/icons/src/__generated__/svg/stop.ts b/packages/icons/src/__generated__/svg/stop.tsnew file mode 100644index 0000000000..91f5d495d5--- /dev/null+++ b/packages/icons/src/__generated__/svg/stop.ts@@ -0,0 +1 @@+export const StopIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><rect width="9" height="9" x="3.5" y="3.5" rx="1"/></svg>`;