@react-spot/ui-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -0
- package/dist/index.cjs +853 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +313 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +313 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +825 -0
- package/dist/index.js.map +1 -0
- package/dist/index.prod.cjs +105 -0
- package/dist/index.prod.cjs.map +1 -0
- package/dist/index.prod.d.cts +106 -0
- package/dist/index.prod.d.cts.map +1 -0
- package/dist/index.prod.d.ts +106 -0
- package/dist/index.prod.d.ts.map +1 -0
- package/dist/index.prod.js +77 -0
- package/dist/index.prod.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["TooltipPrimitive","baseStyle","ButtonPrimitive","Button","Button","SeparatorPrimitive","StyledPopup","PopoverPrimitive","StyledTrigger","ComboboxPrimitive","StyledPositioner","StyledPopup","StyledList","StyledItem","StyledPopup","StyledItem","SelectPrimitive"],"sources":["../src/Kbd.tsx","../src/Tooltip.tsx","../src/Button.tsx","../src/IconButton.tsx","../src/ToolbarButton.tsx","../src/PanelHeader.tsx","../src/Textarea.tsx","../src/Separator.tsx","../src/icons.tsx","../src/Popover.tsx","../src/Combobox.tsx","../src/DropdownMenu.tsx","../src/Select.tsx","../src/Logo.tsx"],"sourcesContent":["import type { ComponentProps, CSSProperties } from 'react'\n\nconst kbdStyle: CSSProperties = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: 20,\n minWidth: 20,\n padding: '0 4px',\n gap: 4,\n borderRadius: 4,\n background: '#27272a',\n border: '1px solid #52525b',\n fontFamily: 'system-ui, sans-serif',\n fontSize: 11,\n fontWeight: 500,\n color: '#a1a1aa',\n pointerEvents: 'none',\n userSelect: 'none',\n whiteSpace: 'nowrap',\n}\n\nconst kbdGroupStyle: CSSProperties = {\n display: 'inline-flex',\n alignItems: 'center',\n gap: 4,\n}\n\nexport function Kbd({ style, ...props }: ComponentProps<'kbd'>) {\n return <kbd style={{ ...kbdStyle, ...style }} {...props} />\n}\n\nexport function KbdGroup({ style, ...props }: ComponentProps<'div'>) {\n return <div style={{ ...kbdGroupStyle, ...style }} {...props} />\n}\n","import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip'\nimport type {\n ButtonHTMLAttributes,\n CSSProperties,\n ReactElement,\n ReactNode,\n} from 'react'\n\nimport { Kbd } from './Kbd'\n\nexport interface TooltipProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n label: ReactNode\n shortcut?: string\n container: TooltipPrimitive.Portal.Props['container']\n render?: ReactElement\n children: ReactNode\n}\n\nconst popupStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 6,\n background: '#09090b',\n border: '1px solid #3f3f46',\n borderRadius: 6,\n padding: '5px 8px',\n boxShadow: '0 4px 12px rgba(0,0,0,0.5)',\n whiteSpace: 'nowrap',\n fontFamily: 'system-ui, sans-serif',\n fontSize: 12,\n color: '#d4d4d8',\n pointerEvents: 'none',\n zIndex: 9999999,\n}\n\nexport function Tooltip({\n label,\n shortcut,\n container,\n render,\n children,\n ...triggerProps\n}: TooltipProps) {\n return (\n <TooltipPrimitive.Root>\n <TooltipPrimitive.Trigger render={render} {...triggerProps}>\n {children}\n </TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal container={container}>\n <TooltipPrimitive.Positioner sideOffset={10}>\n <TooltipPrimitive.Popup style={popupStyle}>\n {label}\n {shortcut && <Kbd>{shortcut}</Kbd>}\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n )\n}\n\nTooltip.Provider = TooltipPrimitive.Provider\n","import { Button as ButtonPrimitive } from '@base-ui/react/button'\nimport type { CSSProperties } from 'react'\n\nexport interface ButtonProps extends Omit<\n React.ButtonHTMLAttributes<HTMLButtonElement>,\n 'style'\n> {\n variant: 'primary' | 'secondary' | 'accent'\n style?: CSSProperties\n render?: React.ReactElement\n}\n\nconst baseStyle: CSSProperties = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 4,\n height: 28,\n padding: '0 8px',\n borderRadius: 6,\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n fontWeight: 500,\n transition: 'opacity 0.15s',\n cursor: 'pointer',\n whiteSpace: 'nowrap',\n}\n\nconst variantStyles: Record<'primary' | 'secondary' | 'accent', CSSProperties> =\n {\n primary: {\n background: '#fafafa',\n border: 'none',\n color: '#18181b',\n },\n secondary: {\n background: 'transparent',\n border: '1px solid #3f3f46',\n color: '#d4d4d8',\n },\n accent: {\n background: 'rgba(59,130,246,0.15)',\n border: '1px solid rgba(59,130,246,0.3)',\n color: '#93c5fd',\n },\n }\n\nexport function Button({ variant, style, render, ...props }: ButtonProps) {\n return (\n <ButtonPrimitive\n render={render}\n style={(state) => ({\n ...baseStyle,\n ...variantStyles[variant],\n opacity: state.disabled ? 0.5 : 1,\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n ...style,\n })}\n {...props}\n />\n )\n}\n","import { Button } from '@base-ui/react/button'\nimport type { ButtonHTMLAttributes, CSSProperties, ReactElement } from 'react'\n\nexport interface IconButtonProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n 'style'\n> {\n style?: CSSProperties\n render?: ReactElement\n}\n\nconst iconButtonStyle: CSSProperties = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'transparent',\n border: 'none',\n color: '#52525b',\n padding: 4,\n borderRadius: 4,\n lineHeight: 1,\n transition: 'color 0.1s, opacity 0.15s',\n}\n\nexport function IconButton({ style, render, ...props }: IconButtonProps) {\n return (\n <Button\n render={render}\n style={(state) => ({\n ...iconButtonStyle,\n opacity: state.disabled ? 0.4 : 1,\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n ...style,\n })}\n {...props}\n />\n )\n}\n","import { Button } from '@base-ui/react/button'\nimport type { ButtonHTMLAttributes, CSSProperties, ReactElement } from 'react'\nimport { forwardRef } from 'react'\n\nexport interface ToolbarButtonProps extends Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n 'style'\n> {\n style?: CSSProperties\n render?: ReactElement\n}\n\nconst toolbarButtonStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 32,\n height: 32,\n borderRadius: 7,\n cursor: 'pointer',\n padding: 0,\n background: 'transparent',\n border: 0,\n outline: 'none',\n color: '#fafafa',\n fontSize: 14,\n transition: 'background 0.15s, border-color 0.15s',\n}\n\nexport const ToolbarButton = forwardRef<HTMLButtonElement, ToolbarButtonProps>(\n function ToolbarButton({ style, render, type = 'button', ...props }, ref) {\n return (\n <Button\n ref={ref}\n type={type}\n render={render}\n style={(state) => ({\n ...toolbarButtonStyle,\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n opacity: state.disabled ? 0.4 : 1,\n ...style,\n })}\n {...props}\n />\n )\n },\n)\n","import type { CSSProperties, ReactNode } from 'react'\n\nexport interface PanelHeaderProps {\n title: ReactNode\n actionsRender?: ReactNode\n style?: CSSProperties\n titleStyle?: CSSProperties\n}\n\nconst headerStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: '10px 12px 8px',\n borderBottom: '1px solid #27272a',\n}\n\nconst titleBaseStyle: CSSProperties = {\n color: '#fafafa',\n fontSize: 13,\n fontWeight: 600,\n fontFamily: 'system-ui, sans-serif',\n}\n\nexport function PanelHeader({\n title,\n actionsRender,\n style,\n titleStyle,\n}: PanelHeaderProps) {\n return (\n <div style={{ ...headerStyle, ...style }}>\n <span style={{ ...titleBaseStyle, ...titleStyle }}>{title}</span>\n {actionsRender}\n </div>\n )\n}\n","import type { CSSProperties } from 'react'\nimport { forwardRef, useState } from 'react'\n\nexport interface TextareaProps extends Omit<\n React.TextareaHTMLAttributes<HTMLTextAreaElement>,\n 'style'\n> {\n style?: CSSProperties\n}\n\nconst baseStyle: CSSProperties = {\n width: '100%',\n background: '#0f0f11',\n borderRadius: 4,\n outline: 'none',\n resize: 'vertical',\n color: '#fafafa',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n lineHeight: 1.4,\n padding: '4px 6px',\n boxSizing: 'border-box',\n caretColor: '#3b82f6',\n}\n\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\n function Textarea({ style, onFocus, onBlur, ...props }, ref) {\n const [focused, setFocused] = useState(false)\n\n return (\n <textarea\n ref={ref}\n style={{\n ...baseStyle,\n border: `1px solid ${focused ? '#3b82f6' : '#3f3f46'}`,\n ...style,\n }}\n onFocus={(e) => {\n setFocused(true)\n onFocus?.(e)\n }}\n onBlur={(e) => {\n setFocused(false)\n onBlur?.(e)\n }}\n {...props}\n />\n )\n },\n)\n","import { Separator as SeparatorPrimitive } from '@base-ui/react/separator'\nimport type { CSSProperties } from 'react'\n\nexport interface SeparatorProps {\n style?: CSSProperties\n}\n\nexport function Separator({ style }: SeparatorProps) {\n return (\n <SeparatorPrimitive\n style={{ borderTop: '1px solid #27272a', margin: '2px 0', ...style }}\n />\n )\n}\n","import {\n ChevronLeft,\n ChevronRight,\n Clipboard,\n ExternalLink,\n Folder,\n Maximize2,\n MessageSquare,\n Minimize2,\n Save,\n Settings,\n Trash2,\n X,\n} from 'lucide-react'\n\nconst DEFAULT_STROKE_WIDTH = 2\nconst DEFAULT_SIZE = 16\n\nexport function SettingsIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return <Settings size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n}\n\nexport function ClipboardIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <Clipboard size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function XIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return <X size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n}\n\nexport function ChevronLeftIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <ChevronLeft size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function ChevronRightIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <ChevronRight size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function OpenInEditorIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <ExternalLink size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function ChatBubbleIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <MessageSquare size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function TrashIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return <Trash2 size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n}\n\nexport function SaveIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return <Save size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n}\n\nexport function ExpandIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <Maximize2 size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function CollapseIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return (\n <Minimize2 size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n )\n}\n\nexport function FolderIcon({ size = DEFAULT_SIZE }: { size?: number }) {\n return <Folder size={size} strokeWidth={DEFAULT_STROKE_WIDTH} aria-hidden />\n}\n\n// OpenCode brand icon — not available in Lucide\nexport function OpencodeIcon({ size = 13 }: { size?: number }) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 512 512\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path fill=\"#131010\" d=\"M0 0h512v512H0z\" />\n <path d=\"M320 224v128H192V224h128z\" fill=\"#5A5858\" />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M384 416H128V96h256v320zm-64-256H192v192h128V160z\"\n fill=\"#fff\"\n />\n </svg>\n )\n}\n","import { Popover as PopoverPrimitive } from '@base-ui/react/popover'\nimport type { ComponentProps, CSSProperties } from 'react'\n\n/**\n * Shared panel popup style (exported for callers that extend it)\n */\nexport const panelPopupStyle: CSSProperties = {\n background: '#18181b',\n border: '1px solid #27272a',\n borderRadius: 8,\n boxShadow: '0 8px 24px rgba(0,0,0,0.6)',\n}\n\nfunction StyledPopup({\n style,\n ...props\n}: ComponentProps<typeof PopoverPrimitive.Popup>) {\n return (\n <PopoverPrimitive.Popup\n style={{ ...panelPopupStyle, ...style }}\n {...props}\n />\n )\n}\n\nexport const Popover = {\n Root: PopoverPrimitive.Root,\n Trigger: PopoverPrimitive.Trigger,\n Portal: PopoverPrimitive.Portal,\n Positioner: PopoverPrimitive.Positioner,\n Close: PopoverPrimitive.Close,\n Popup: StyledPopup,\n}\n","import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox'\nimport { ChevronDown } from 'lucide-react'\nimport type { ComponentProps, CSSProperties } from 'react'\n\nimport { panelPopupStyle } from './Popover'\n\nfunction StyledTrigger({\n style,\n children,\n ...props\n}: ComponentProps<typeof ComboboxPrimitive.Trigger>) {\n return (\n <ComboboxPrimitive.Trigger\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 4,\n width: '100%',\n background: '#0f0f11',\n border: '1px solid #3f3f46',\n borderRadius: 5,\n color: '#fafafa',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n padding: '5px 8px',\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n opacity: state.disabled ? 0.5 : 1,\n boxSizing: 'border-box',\n ...(typeof style === 'function' ? style(state) : style),\n })}\n {...props}\n >\n {children}\n <ChevronDown size={12} strokeWidth={1.75} aria-hidden />\n </ComboboxPrimitive.Trigger>\n )\n}\n\nfunction StyledInput() {\n return (\n <ComboboxPrimitive.Input\n style={{\n background: '#0f0f11',\n color: '#fafafa',\n border: 'none',\n outline: 'none',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n width: '100%',\n }}\n />\n )\n}\n\nfunction StyledPositioner({\n ...props\n}: ComponentProps<typeof ComboboxPrimitive.Positioner>) {\n return (\n <ComboboxPrimitive.Positioner\n align=\"start\"\n side=\"top\"\n sideOffset={8}\n {...props}\n />\n )\n}\n\nfunction StyledPopup({\n style,\n ...props\n}: ComponentProps<typeof ComboboxPrimitive.Popup>) {\n return (\n <ComboboxPrimitive.Popup\n style={{ ...panelPopupStyle, paddingBlock: 4, ...style }}\n {...props}\n />\n )\n}\n\nfunction StyledList({\n style,\n ...props\n}: ComponentProps<typeof ComboboxPrimitive.List>) {\n return (\n <ComboboxPrimitive.List\n style={{\n ...style,\n width: 'var(--anchor-width)',\n }}\n {...props}\n />\n )\n}\n\ninterface StyledItemProps extends Omit<\n ComponentProps<typeof ComboboxPrimitive.Item>,\n 'style'\n> {\n style?: CSSProperties\n}\n\nfunction StyledItem({ style: callerStyle, ...props }: StyledItemProps) {\n return (\n <ComboboxPrimitive.Item\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n gap: 6,\n padding: '7px 12px',\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n userSelect: 'none',\n outline: 'none',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n color: state.selected ? '#fafafa' : '#d4d4d8',\n background: state.highlighted ? 'rgba(59,130,246,0.2)' : 'transparent',\n transition: 'background 0.1s',\n ...callerStyle,\n })}\n {...props}\n />\n )\n}\n\nexport const Combobox = {\n Root: ComboboxPrimitive.Root,\n Trigger: StyledTrigger,\n Value: ComboboxPrimitive.Value,\n Portal: ComboboxPrimitive.Portal,\n Positioner: StyledPositioner,\n Popup: StyledPopup,\n List: StyledList,\n Empty: ComboboxPrimitive.Empty,\n Item: StyledItem,\n Input: StyledInput,\n ItemIndicator: ComboboxPrimitive.ItemIndicator,\n Group: ComboboxPrimitive.Group,\n GroupLabel: ComboboxPrimitive.GroupLabel,\n Separator: ComboboxPrimitive.Separator,\n}\n","import type {\n MenuItemState,\n MenuSubmenuTriggerState,\n} from '@base-ui/react/menu'\nimport { Menu } from '@base-ui/react/menu'\nimport type { ComponentProps, CSSProperties } from 'react'\n\nimport { panelPopupStyle } from './Popover'\n\nfunction StyledPopup({ style, ...props }: ComponentProps<typeof Menu.Popup>) {\n return <Menu.Popup style={{ ...panelPopupStyle, ...style }} {...props} />\n}\n\ninterface StyledItemProps extends Omit<\n ComponentProps<typeof Menu.Item>,\n 'style'\n> {\n style?: CSSProperties | ((state: MenuItemState) => CSSProperties)\n}\n\nfunction StyledItem({ style: callerStyle, ...props }: StyledItemProps) {\n return (\n <Menu.Item\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n gap: 6,\n padding: '7px 12px',\n cursor: 'pointer',\n userSelect: 'none',\n outline: 'none',\n fontSize: 12,\n color: '#d4d4d8',\n fontFamily: 'system-ui, sans-serif',\n background: state.highlighted ? 'rgba(59,130,246,0.2)' : 'transparent',\n transition: 'background 0.1s',\n ...(typeof callerStyle === 'function'\n ? callerStyle(state)\n : callerStyle),\n })}\n {...props}\n />\n )\n}\n\nfunction StyledSeparator({ style }: { style?: CSSProperties }) {\n return (\n <div\n style={{ borderTop: '1px solid #27272a', margin: '2px 0', ...style }}\n />\n )\n}\n\ninterface StyledSubmenuTriggerProps extends Omit<\n ComponentProps<typeof Menu.SubmenuTrigger>,\n 'style'\n> {\n style?: CSSProperties | ((state: MenuSubmenuTriggerState) => CSSProperties)\n}\n\nfunction StyledSubmenuTrigger({\n style: callerStyle,\n ...props\n}: StyledSubmenuTriggerProps) {\n return (\n <Menu.SubmenuTrigger\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n padding: '7px 12px',\n cursor: 'pointer',\n userSelect: 'none',\n outline: 'none',\n width: '100%',\n boxSizing: 'border-box',\n border: 'none',\n textAlign: 'left',\n background:\n state.highlighted || state.open\n ? 'rgba(59,130,246,0.2)'\n : 'transparent',\n transition: 'background 0.1s',\n ...(typeof callerStyle === 'function'\n ? callerStyle(state)\n : callerStyle),\n })}\n {...props}\n />\n )\n}\n\nexport const DropdownMenu = {\n Root: Menu.Root,\n Trigger: Menu.Trigger,\n Portal: Menu.Portal,\n Positioner: Menu.Positioner,\n Popup: StyledPopup,\n Item: StyledItem,\n Separator: StyledSeparator,\n SubmenuRoot: Menu.SubmenuRoot,\n SubmenuTrigger: StyledSubmenuTrigger,\n}\n\nexport type {\n MenuRootProps as DropdownMenuRootProps,\n MenuItemState as DropdownMenuItemState,\n MenuSubmenuRootProps as DropdownMenuSubmenuRootProps,\n MenuSubmenuTriggerState as DropdownMenuSubmenuTriggerState,\n} from '@base-ui/react/menu'\nexport { StyledItemProps as DropdownMenuItemProps }\nexport type { StyledSubmenuTriggerProps as DropdownMenuSubmenuTriggerProps }\n","import { Select as SelectPrimitive } from '@base-ui/react/select'\nimport { ChevronDown } from 'lucide-react'\nimport type { ComponentProps, CSSProperties } from 'react'\n\nimport { panelPopupStyle } from './Popover'\n\nfunction StyledTrigger({\n style,\n children,\n ...props\n}: ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 4,\n width: '100%',\n background: '#0f0f11',\n border: '1px solid #3f3f46',\n borderRadius: 5,\n color: '#fafafa',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n padding: '5px 8px',\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n opacity: state.disabled ? 0.5 : 1,\n boxSizing: 'border-box',\n ...(typeof style === 'function' ? style(state) : style),\n })}\n {...props}\n >\n {children}\n <ChevronDown size={12} strokeWidth={1.75} aria-hidden />\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction StyledPositioner({\n ...props\n}: ComponentProps<typeof SelectPrimitive.Positioner>) {\n return (\n <SelectPrimitive.Positioner\n align=\"start\"\n side=\"top\"\n sideOffset={4}\n alignItemWithTrigger={false}\n {...props}\n />\n )\n}\n\nfunction StyledPopup({\n style,\n ...props\n}: ComponentProps<typeof SelectPrimitive.Popup>) {\n return (\n <SelectPrimitive.Popup\n style={{ ...panelPopupStyle, paddingBlock: 4, ...style }}\n {...props}\n />\n )\n}\n\nfunction StyledList({\n style,\n ...props\n}: ComponentProps<typeof SelectPrimitive.List>) {\n return (\n <SelectPrimitive.List\n style={{\n ...style,\n width: 'var(--anchor-width)',\n }}\n {...props}\n />\n )\n}\n\ninterface StyledItemProps extends Omit<\n ComponentProps<typeof SelectPrimitive.Item>,\n 'style'\n> {\n style?: CSSProperties\n}\n\nfunction StyledItem({ style: callerStyle, ...props }: StyledItemProps) {\n return (\n <SelectPrimitive.Item\n style={(state) => ({\n display: 'flex',\n alignItems: 'center',\n gap: 6,\n padding: '7px 12px',\n cursor: state.disabled ? 'not-allowed' : 'pointer',\n userSelect: 'none',\n outline: 'none',\n fontSize: 12,\n fontFamily: 'system-ui, sans-serif',\n color: state.selected ? '#fafafa' : '#d4d4d8',\n background: state.highlighted ? 'rgba(59,130,246,0.2)' : 'transparent',\n transition: 'background 0.1s',\n ...callerStyle,\n })}\n {...props}\n />\n )\n}\n\nexport const Select = {\n Root: SelectPrimitive.Root,\n Trigger: StyledTrigger,\n Value: SelectPrimitive.Value,\n Portal: SelectPrimitive.Portal,\n Positioner: StyledPositioner,\n Popup: StyledPopup,\n List: StyledList,\n Item: StyledItem,\n ItemText: SelectPrimitive.ItemText,\n ItemIndicator: SelectPrimitive.ItemIndicator,\n Group: SelectPrimitive.Group,\n GroupLabel: SelectPrimitive.GroupLabel,\n Separator: SelectPrimitive.Separator,\n}\n","import { useId } from 'react'\n\nexport function Logo({\n bgColor,\n size = 16,\n}: {\n bgColor?: string\n size?: number\n}) {\n const linear1 = useId()\n const linear2 = useId()\n const linear3 = useId()\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"12 16 132 130\"\n fill=\"none\"\n width={size}\n height={size}\n >\n <defs>\n <linearGradient id={linear1} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" stopColor=\"#2196f3\" />\n <stop offset=\"100%\" stopColor=\"#345580\" />\n </linearGradient>\n <linearGradient\n id={linear2}\n href={`#${linear1}`}\n x1=\"100%\"\n y1=\"0%\"\n x2=\"0%\"\n y2=\"0%\"\n />\n <linearGradient id={linear3} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" stopColor=\"#4dabf5\" />\n <stop offset=\"50%\" stopColor=\"#58a0c3\" />\n <stop offset=\"100%\" stopColor=\"#4dabf5\" />\n </linearGradient>\n </defs>\n <g\n transform=\"matrix(5.5 0 0 5.5 75 75)\"\n stroke={`url(#${linear3})`}\n strokeWidth=\"1.5\"\n >\n <circle r=\"2\" fill={`url(#${linear3})`} />\n <ellipse rx=\"10\" ry=\"4.5\" />\n <ellipse rx=\"10\" ry=\"4.5\" transform=\"rotate(60)\" />\n <ellipse rx=\"10\" ry=\"4.5\" transform=\"rotate(120)\" />\n </g>\n <circle cx=\"95\" cy=\"95\" r=\"38\" fill={bgColor || '#18181b'} />\n <g transform=\"matrix(3.2 0 0 3.2 70 70)\">\n <circle cx=\"8\" cy=\"8\" r=\"8\" fill=\"#fff\" />\n <circle cx=\"8\" cy=\"8\" r=\"8\" fill={`url(#${linear1})`} opacity=\".8\" />\n <path\n stroke={`url(#${linear2})`}\n strokeWidth=\"4\"\n strokeLinecap=\"round\"\n d=\"M14 14l6 6\"\n />\n <circle\n cx=\"8\"\n cy=\"8\"\n r=\"8\"\n stroke={`url(#${linear1})`}\n strokeWidth=\"3\"\n />\n <path\n d=\"M6 5.5L4 8l2 2.5M10 10.5L12 8l-2-2.5\"\n stroke=\"#fff\"\n strokeWidth=\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AD;MACE,QAAQ,QAAQ,QAAQ;MACxB,aAAY;MACZ,eAAc;MACd,GAAE;MACF;KACF,oBAAC,UAAD;MACE,IAAG;MACH,IAAG;MACH,GAAE;MACF,QAAQ,QAAQ,QAAQ;MACxB,aAAY;MACZ;KACF,oBAAC,QAAD;MACE,GAAE;MACF,QAAO;MACP,aAAY;MACZ,eAAc;MACd,gBAAe;MACf;KACA;;GACA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/index.prod.ts
|
|
4
|
+
const panelPopupStyle = {};
|
|
5
|
+
const Kbd = () => null;
|
|
6
|
+
const KbdGroup = () => null;
|
|
7
|
+
const Tooltip = () => null;
|
|
8
|
+
const Button = () => null;
|
|
9
|
+
const IconButton = () => null;
|
|
10
|
+
const ToolbarButton = () => null;
|
|
11
|
+
const PanelHeader = () => null;
|
|
12
|
+
const Textarea = () => null;
|
|
13
|
+
const Separator = () => null;
|
|
14
|
+
const ChevronLeftIcon = () => null;
|
|
15
|
+
const ClipboardIcon = () => null;
|
|
16
|
+
const XIcon = () => null;
|
|
17
|
+
const ChevronRightIcon = () => null;
|
|
18
|
+
const OpenInEditorIcon = () => null;
|
|
19
|
+
const ChatBubbleIcon = () => null;
|
|
20
|
+
const TrashIcon = () => null;
|
|
21
|
+
const SaveIcon = () => null;
|
|
22
|
+
const ExpandIcon = () => null;
|
|
23
|
+
const CollapseIcon = () => null;
|
|
24
|
+
const FolderIcon = () => null;
|
|
25
|
+
const SettingsIcon = () => null;
|
|
26
|
+
const OpencodeIcon = () => null;
|
|
27
|
+
const Popover = {
|
|
28
|
+
Root: ({ children }) => children,
|
|
29
|
+
Trigger: () => null,
|
|
30
|
+
Portal: () => null,
|
|
31
|
+
Positioner: () => null,
|
|
32
|
+
Close: () => null,
|
|
33
|
+
Popup: () => null
|
|
34
|
+
};
|
|
35
|
+
const DropdownMenu = {
|
|
36
|
+
Root: ({ children }) => children,
|
|
37
|
+
Trigger: () => null,
|
|
38
|
+
Portal: () => null,
|
|
39
|
+
Positioner: () => null,
|
|
40
|
+
Popup: () => null,
|
|
41
|
+
Item: () => null,
|
|
42
|
+
Separator: () => null,
|
|
43
|
+
SubmenuRoot: ({ children }) => children,
|
|
44
|
+
SubmenuTrigger: () => null
|
|
45
|
+
};
|
|
46
|
+
const Select = {
|
|
47
|
+
Root: ({ children }) => children,
|
|
48
|
+
Trigger: () => null,
|
|
49
|
+
Value: () => null,
|
|
50
|
+
Positioner: () => null,
|
|
51
|
+
Portal: () => null,
|
|
52
|
+
Popup: () => null,
|
|
53
|
+
List: () => null,
|
|
54
|
+
Item: () => null,
|
|
55
|
+
ItemText: () => null,
|
|
56
|
+
ItemIndicator: () => null,
|
|
57
|
+
Group: ({ children }) => children,
|
|
58
|
+
GroupLabel: () => null,
|
|
59
|
+
Separator: () => null
|
|
60
|
+
};
|
|
61
|
+
const Combobox = {
|
|
62
|
+
Root: ({ children }) => children,
|
|
63
|
+
Trigger: () => null,
|
|
64
|
+
Value: () => null,
|
|
65
|
+
Positioner: () => null,
|
|
66
|
+
Popup: () => null,
|
|
67
|
+
List: () => null,
|
|
68
|
+
Empty: () => null,
|
|
69
|
+
Item: () => null,
|
|
70
|
+
Input: () => null,
|
|
71
|
+
ItemIndicator: () => null,
|
|
72
|
+
Group: ({ children }) => children,
|
|
73
|
+
GroupLabel: () => null,
|
|
74
|
+
Separator: () => null
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
exports.Button = Button;
|
|
79
|
+
exports.ChatBubbleIcon = ChatBubbleIcon;
|
|
80
|
+
exports.ChevronLeftIcon = ChevronLeftIcon;
|
|
81
|
+
exports.ChevronRightIcon = ChevronRightIcon;
|
|
82
|
+
exports.ClipboardIcon = ClipboardIcon;
|
|
83
|
+
exports.CollapseIcon = CollapseIcon;
|
|
84
|
+
exports.Combobox = Combobox;
|
|
85
|
+
exports.DropdownMenu = DropdownMenu;
|
|
86
|
+
exports.ExpandIcon = ExpandIcon;
|
|
87
|
+
exports.FolderIcon = FolderIcon;
|
|
88
|
+
exports.IconButton = IconButton;
|
|
89
|
+
exports.Kbd = Kbd;
|
|
90
|
+
exports.KbdGroup = KbdGroup;
|
|
91
|
+
exports.OpenInEditorIcon = OpenInEditorIcon;
|
|
92
|
+
exports.OpencodeIcon = OpencodeIcon;
|
|
93
|
+
exports.PanelHeader = PanelHeader;
|
|
94
|
+
exports.Popover = Popover;
|
|
95
|
+
exports.SaveIcon = SaveIcon;
|
|
96
|
+
exports.Select = Select;
|
|
97
|
+
exports.Separator = Separator;
|
|
98
|
+
exports.SettingsIcon = SettingsIcon;
|
|
99
|
+
exports.Textarea = Textarea;
|
|
100
|
+
exports.ToolbarButton = ToolbarButton;
|
|
101
|
+
exports.Tooltip = Tooltip;
|
|
102
|
+
exports.TrashIcon = TrashIcon;
|
|
103
|
+
exports.XIcon = XIcon;
|
|
104
|
+
exports.panelPopupStyle = panelPopupStyle;
|
|
105
|
+
//# sourceMappingURL=index.prod.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.cjs","names":[],"sources":["../src/index.prod.ts"],"sourcesContent":["/**\n * Production stub for @react-spot/ui-components.\n *\n * All React components render null — zero runtime cost in production.\n * panelPopupStyle is an empty object; nothing renders to apply styles to.\n */\nimport type { CSSProperties, ReactNode } from 'react'\n\nexport const panelPopupStyle: CSSProperties = {}\n\nexport const Kbd = () => null\nexport const KbdGroup = () => null\n\nexport const Tooltip = () => null\n\nexport const Button = () => null\nexport const IconButton = () => null\nexport const ToolbarButton = () => null\nexport const PanelHeader = () => null\nexport const Textarea = () => null\nexport const Separator = () => null\n\nexport const ChevronLeftIcon = () => null\nexport const ClipboardIcon = () => null\nexport const XIcon = () => null\nexport const ChevronRightIcon = () => null\nexport const OpenInEditorIcon = () => null\nexport const ChatBubbleIcon = () => null\nexport const TrashIcon = () => null\nexport const SaveIcon = () => null\nexport const ExpandIcon = () => null\nexport const CollapseIcon = () => null\nexport const FolderIcon = () => null\nexport const SettingsIcon = () => null\nexport const OpencodeIcon = () => null\n\nexport const Popover = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Portal: () => null,\n Positioner: () => null,\n Close: () => null,\n Popup: () => null,\n}\n\nexport const DropdownMenu = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Portal: () => null,\n Positioner: () => null,\n Popup: () => null,\n Item: () => null,\n Separator: () => null,\n SubmenuRoot: ({ children }: { children?: ReactNode }) => children,\n SubmenuTrigger: () => null,\n}\n\nexport const Select = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Value: () => null,\n Positioner: () => null,\n Portal: () => null,\n Popup: () => null,\n List: () => null,\n Item: () => null,\n ItemText: () => null,\n ItemIndicator: () => null,\n Group: ({ children }: { children?: ReactNode }) => children,\n GroupLabel: () => null,\n Separator: () => null,\n}\n\nexport const Combobox = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Value: () => null,\n Positioner: () => null,\n Popup: () => null,\n List: () => null,\n Empty: () => null,\n Item: () => null,\n Input: () => null,\n ItemIndicator: () => null,\n Group: ({ children }: { children?: ReactNode }) => children,\n GroupLabel: () => null,\n Separator: () => null,\n}\n"],"mappings":";;;AAQA,MAAa,kBAAiC,EAAE;AAEhD,MAAa,YAAY;AACzB,MAAa,iBAAiB;AAE9B,MAAa,gBAAgB;AAE7B,MAAa,eAAe;AAC5B,MAAa,mBAAmB;AAChC,MAAa,sBAAsB;AACnC,MAAa,oBAAoB;AACjC,MAAa,iBAAiB;AAC9B,MAAa,kBAAkB;AAE/B,MAAa,wBAAwB;AACrC,MAAa,sBAAsB;AACnC,MAAa,cAAc;AAC3B,MAAa,yBAAyB;AACtC,MAAa,yBAAyB;AACtC,MAAa,uBAAuB;AACpC,MAAa,kBAAkB;AAC/B,MAAa,iBAAiB;AAC9B,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAElC,MAAa,UAAU;CACrB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,cAAc;CACd,kBAAkB;CAClB,aAAa;CACb,aAAa;CACd;AAED,MAAa,eAAe;CAC1B,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,cAAc;CACd,kBAAkB;CAClB,aAAa;CACb,YAAY;CACZ,iBAAiB;CACjB,cAAc,EAAE,eAAyC;CACzD,sBAAsB;CACvB;AAED,MAAa,SAAS;CACpB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,aAAa;CACb,kBAAkB;CAClB,cAAc;CACd,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,gBAAgB;CAChB,qBAAqB;CACrB,QAAQ,EAAE,eAAyC;CACnD,kBAAkB;CAClB,iBAAiB;CAClB;AAED,MAAa,WAAW;CACtB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,aAAa;CACb,kBAAkB;CAClB,aAAa;CACb,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,aAAa;CACb,qBAAqB;CACrB,QAAQ,EAAE,eAAyC;CACnD,kBAAkB;CAClB,iBAAiB;CAClB"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/index.prod.d.ts
|
|
4
|
+
declare const panelPopupStyle: CSSProperties;
|
|
5
|
+
declare const Kbd: () => null;
|
|
6
|
+
declare const KbdGroup: () => null;
|
|
7
|
+
declare const Tooltip: () => null;
|
|
8
|
+
declare const Button: () => null;
|
|
9
|
+
declare const IconButton: () => null;
|
|
10
|
+
declare const ToolbarButton: () => null;
|
|
11
|
+
declare const PanelHeader: () => null;
|
|
12
|
+
declare const Textarea: () => null;
|
|
13
|
+
declare const Separator: () => null;
|
|
14
|
+
declare const ChevronLeftIcon: () => null;
|
|
15
|
+
declare const ClipboardIcon: () => null;
|
|
16
|
+
declare const XIcon: () => null;
|
|
17
|
+
declare const ChevronRightIcon: () => null;
|
|
18
|
+
declare const OpenInEditorIcon: () => null;
|
|
19
|
+
declare const ChatBubbleIcon: () => null;
|
|
20
|
+
declare const TrashIcon: () => null;
|
|
21
|
+
declare const SaveIcon: () => null;
|
|
22
|
+
declare const ExpandIcon: () => null;
|
|
23
|
+
declare const CollapseIcon: () => null;
|
|
24
|
+
declare const FolderIcon: () => null;
|
|
25
|
+
declare const SettingsIcon: () => null;
|
|
26
|
+
declare const OpencodeIcon: () => null;
|
|
27
|
+
declare const Popover: {
|
|
28
|
+
Root: ({
|
|
29
|
+
children
|
|
30
|
+
}: {
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}) => ReactNode;
|
|
33
|
+
Trigger: () => null;
|
|
34
|
+
Portal: () => null;
|
|
35
|
+
Positioner: () => null;
|
|
36
|
+
Close: () => null;
|
|
37
|
+
Popup: () => null;
|
|
38
|
+
};
|
|
39
|
+
declare const DropdownMenu: {
|
|
40
|
+
Root: ({
|
|
41
|
+
children
|
|
42
|
+
}: {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}) => ReactNode;
|
|
45
|
+
Trigger: () => null;
|
|
46
|
+
Portal: () => null;
|
|
47
|
+
Positioner: () => null;
|
|
48
|
+
Popup: () => null;
|
|
49
|
+
Item: () => null;
|
|
50
|
+
Separator: () => null;
|
|
51
|
+
SubmenuRoot: ({
|
|
52
|
+
children
|
|
53
|
+
}: {
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
}) => ReactNode;
|
|
56
|
+
SubmenuTrigger: () => null;
|
|
57
|
+
};
|
|
58
|
+
declare const Select: {
|
|
59
|
+
Root: ({
|
|
60
|
+
children
|
|
61
|
+
}: {
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
}) => ReactNode;
|
|
64
|
+
Trigger: () => null;
|
|
65
|
+
Value: () => null;
|
|
66
|
+
Positioner: () => null;
|
|
67
|
+
Portal: () => null;
|
|
68
|
+
Popup: () => null;
|
|
69
|
+
List: () => null;
|
|
70
|
+
Item: () => null;
|
|
71
|
+
ItemText: () => null;
|
|
72
|
+
ItemIndicator: () => null;
|
|
73
|
+
Group: ({
|
|
74
|
+
children
|
|
75
|
+
}: {
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
}) => ReactNode;
|
|
78
|
+
GroupLabel: () => null;
|
|
79
|
+
Separator: () => null;
|
|
80
|
+
};
|
|
81
|
+
declare const Combobox: {
|
|
82
|
+
Root: ({
|
|
83
|
+
children
|
|
84
|
+
}: {
|
|
85
|
+
children?: ReactNode;
|
|
86
|
+
}) => ReactNode;
|
|
87
|
+
Trigger: () => null;
|
|
88
|
+
Value: () => null;
|
|
89
|
+
Positioner: () => null;
|
|
90
|
+
Popup: () => null;
|
|
91
|
+
List: () => null;
|
|
92
|
+
Empty: () => null;
|
|
93
|
+
Item: () => null;
|
|
94
|
+
Input: () => null;
|
|
95
|
+
ItemIndicator: () => null;
|
|
96
|
+
Group: ({
|
|
97
|
+
children
|
|
98
|
+
}: {
|
|
99
|
+
children?: ReactNode;
|
|
100
|
+
}) => ReactNode;
|
|
101
|
+
GroupLabel: () => null;
|
|
102
|
+
Separator: () => null;
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { Button, ChatBubbleIcon, ChevronLeftIcon, ChevronRightIcon, ClipboardIcon, CollapseIcon, Combobox, DropdownMenu, ExpandIcon, FolderIcon, IconButton, Kbd, KbdGroup, OpenInEditorIcon, OpencodeIcon, PanelHeader, Popover, SaveIcon, Select, Separator, SettingsIcon, Textarea, ToolbarButton, Tooltip, TrashIcon, XIcon, panelPopupStyle };
|
|
106
|
+
//# sourceMappingURL=index.prod.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.d.cts","names":[],"sources":["../src/index.prod.ts"],"mappings":";;;cAQa,eAAA,EAAiB,aAAA;AAAA,cAEjB,GAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cAEA,MAAA;AAAA,cACA,UAAA;AAAA,cACA,aAAA;AAAA,cACA,WAAA;AAAA,cACA,QAAA;AAAA,cACA,SAAA;AAAA,cAEA,eAAA;AAAA,cACA,aAAA;AAAA,cACA,KAAA;AAAA,cACA,gBAAA;AAAA,cACA,gBAAA;AAAA,cACA,cAAA;AAAA,cACA,SAAA;AAAA,cACA,QAAA;AAAA,cACA,UAAA;AAAA,cACA,YAAA;AAAA,cACA,UAAA;AAAA,cACA,YAAA;AAAA,cACA,YAAA;AAAA,cAEA,OAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;cAQlC,YAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;IAOf,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;cAIzC,MAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;;;;IAUrB,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;cAKnC,QAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;;;;IAUrB,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/index.prod.d.ts
|
|
4
|
+
declare const panelPopupStyle: CSSProperties;
|
|
5
|
+
declare const Kbd: () => null;
|
|
6
|
+
declare const KbdGroup: () => null;
|
|
7
|
+
declare const Tooltip: () => null;
|
|
8
|
+
declare const Button: () => null;
|
|
9
|
+
declare const IconButton: () => null;
|
|
10
|
+
declare const ToolbarButton: () => null;
|
|
11
|
+
declare const PanelHeader: () => null;
|
|
12
|
+
declare const Textarea: () => null;
|
|
13
|
+
declare const Separator: () => null;
|
|
14
|
+
declare const ChevronLeftIcon: () => null;
|
|
15
|
+
declare const ClipboardIcon: () => null;
|
|
16
|
+
declare const XIcon: () => null;
|
|
17
|
+
declare const ChevronRightIcon: () => null;
|
|
18
|
+
declare const OpenInEditorIcon: () => null;
|
|
19
|
+
declare const ChatBubbleIcon: () => null;
|
|
20
|
+
declare const TrashIcon: () => null;
|
|
21
|
+
declare const SaveIcon: () => null;
|
|
22
|
+
declare const ExpandIcon: () => null;
|
|
23
|
+
declare const CollapseIcon: () => null;
|
|
24
|
+
declare const FolderIcon: () => null;
|
|
25
|
+
declare const SettingsIcon: () => null;
|
|
26
|
+
declare const OpencodeIcon: () => null;
|
|
27
|
+
declare const Popover: {
|
|
28
|
+
Root: ({
|
|
29
|
+
children
|
|
30
|
+
}: {
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}) => ReactNode;
|
|
33
|
+
Trigger: () => null;
|
|
34
|
+
Portal: () => null;
|
|
35
|
+
Positioner: () => null;
|
|
36
|
+
Close: () => null;
|
|
37
|
+
Popup: () => null;
|
|
38
|
+
};
|
|
39
|
+
declare const DropdownMenu: {
|
|
40
|
+
Root: ({
|
|
41
|
+
children
|
|
42
|
+
}: {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}) => ReactNode;
|
|
45
|
+
Trigger: () => null;
|
|
46
|
+
Portal: () => null;
|
|
47
|
+
Positioner: () => null;
|
|
48
|
+
Popup: () => null;
|
|
49
|
+
Item: () => null;
|
|
50
|
+
Separator: () => null;
|
|
51
|
+
SubmenuRoot: ({
|
|
52
|
+
children
|
|
53
|
+
}: {
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
}) => ReactNode;
|
|
56
|
+
SubmenuTrigger: () => null;
|
|
57
|
+
};
|
|
58
|
+
declare const Select: {
|
|
59
|
+
Root: ({
|
|
60
|
+
children
|
|
61
|
+
}: {
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
}) => ReactNode;
|
|
64
|
+
Trigger: () => null;
|
|
65
|
+
Value: () => null;
|
|
66
|
+
Positioner: () => null;
|
|
67
|
+
Portal: () => null;
|
|
68
|
+
Popup: () => null;
|
|
69
|
+
List: () => null;
|
|
70
|
+
Item: () => null;
|
|
71
|
+
ItemText: () => null;
|
|
72
|
+
ItemIndicator: () => null;
|
|
73
|
+
Group: ({
|
|
74
|
+
children
|
|
75
|
+
}: {
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
}) => ReactNode;
|
|
78
|
+
GroupLabel: () => null;
|
|
79
|
+
Separator: () => null;
|
|
80
|
+
};
|
|
81
|
+
declare const Combobox: {
|
|
82
|
+
Root: ({
|
|
83
|
+
children
|
|
84
|
+
}: {
|
|
85
|
+
children?: ReactNode;
|
|
86
|
+
}) => ReactNode;
|
|
87
|
+
Trigger: () => null;
|
|
88
|
+
Value: () => null;
|
|
89
|
+
Positioner: () => null;
|
|
90
|
+
Popup: () => null;
|
|
91
|
+
List: () => null;
|
|
92
|
+
Empty: () => null;
|
|
93
|
+
Item: () => null;
|
|
94
|
+
Input: () => null;
|
|
95
|
+
ItemIndicator: () => null;
|
|
96
|
+
Group: ({
|
|
97
|
+
children
|
|
98
|
+
}: {
|
|
99
|
+
children?: ReactNode;
|
|
100
|
+
}) => ReactNode;
|
|
101
|
+
GroupLabel: () => null;
|
|
102
|
+
Separator: () => null;
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { Button, ChatBubbleIcon, ChevronLeftIcon, ChevronRightIcon, ClipboardIcon, CollapseIcon, Combobox, DropdownMenu, ExpandIcon, FolderIcon, IconButton, Kbd, KbdGroup, OpenInEditorIcon, OpencodeIcon, PanelHeader, Popover, SaveIcon, Select, Separator, SettingsIcon, Textarea, ToolbarButton, Tooltip, TrashIcon, XIcon, panelPopupStyle };
|
|
106
|
+
//# sourceMappingURL=index.prod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.d.ts","names":[],"sources":["../src/index.prod.ts"],"mappings":";;;cAQa,eAAA,EAAiB,aAAA;AAAA,cAEjB,GAAA;AAAA,cACA,QAAA;AAAA,cAEA,OAAA;AAAA,cAEA,MAAA;AAAA,cACA,UAAA;AAAA,cACA,aAAA;AAAA,cACA,WAAA;AAAA,cACA,QAAA;AAAA,cACA,SAAA;AAAA,cAEA,eAAA;AAAA,cACA,aAAA;AAAA,cACA,KAAA;AAAA,cACA,gBAAA;AAAA,cACA,gBAAA;AAAA,cACA,cAAA;AAAA,cACA,SAAA;AAAA,cACA,QAAA;AAAA,cACA,UAAA;AAAA,cACA,YAAA;AAAA,cACA,UAAA;AAAA,cACA,YAAA;AAAA,cACA,YAAA;AAAA,cAEA,OAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;cAQlC,YAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;IAOf,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;cAIzC,MAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;;;;IAUrB,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;cAKnC,QAAA;;;;IACY,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA;;;;;;;;;;;;;IAUrB,QAAA,GAAW,SAAA;EAAA,MAAW,SAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//#region src/index.prod.ts
|
|
2
|
+
const panelPopupStyle = {};
|
|
3
|
+
const Kbd = () => null;
|
|
4
|
+
const KbdGroup = () => null;
|
|
5
|
+
const Tooltip = () => null;
|
|
6
|
+
const Button = () => null;
|
|
7
|
+
const IconButton = () => null;
|
|
8
|
+
const ToolbarButton = () => null;
|
|
9
|
+
const PanelHeader = () => null;
|
|
10
|
+
const Textarea = () => null;
|
|
11
|
+
const Separator = () => null;
|
|
12
|
+
const ChevronLeftIcon = () => null;
|
|
13
|
+
const ClipboardIcon = () => null;
|
|
14
|
+
const XIcon = () => null;
|
|
15
|
+
const ChevronRightIcon = () => null;
|
|
16
|
+
const OpenInEditorIcon = () => null;
|
|
17
|
+
const ChatBubbleIcon = () => null;
|
|
18
|
+
const TrashIcon = () => null;
|
|
19
|
+
const SaveIcon = () => null;
|
|
20
|
+
const ExpandIcon = () => null;
|
|
21
|
+
const CollapseIcon = () => null;
|
|
22
|
+
const FolderIcon = () => null;
|
|
23
|
+
const SettingsIcon = () => null;
|
|
24
|
+
const OpencodeIcon = () => null;
|
|
25
|
+
const Popover = {
|
|
26
|
+
Root: ({ children }) => children,
|
|
27
|
+
Trigger: () => null,
|
|
28
|
+
Portal: () => null,
|
|
29
|
+
Positioner: () => null,
|
|
30
|
+
Close: () => null,
|
|
31
|
+
Popup: () => null
|
|
32
|
+
};
|
|
33
|
+
const DropdownMenu = {
|
|
34
|
+
Root: ({ children }) => children,
|
|
35
|
+
Trigger: () => null,
|
|
36
|
+
Portal: () => null,
|
|
37
|
+
Positioner: () => null,
|
|
38
|
+
Popup: () => null,
|
|
39
|
+
Item: () => null,
|
|
40
|
+
Separator: () => null,
|
|
41
|
+
SubmenuRoot: ({ children }) => children,
|
|
42
|
+
SubmenuTrigger: () => null
|
|
43
|
+
};
|
|
44
|
+
const Select = {
|
|
45
|
+
Root: ({ children }) => children,
|
|
46
|
+
Trigger: () => null,
|
|
47
|
+
Value: () => null,
|
|
48
|
+
Positioner: () => null,
|
|
49
|
+
Portal: () => null,
|
|
50
|
+
Popup: () => null,
|
|
51
|
+
List: () => null,
|
|
52
|
+
Item: () => null,
|
|
53
|
+
ItemText: () => null,
|
|
54
|
+
ItemIndicator: () => null,
|
|
55
|
+
Group: ({ children }) => children,
|
|
56
|
+
GroupLabel: () => null,
|
|
57
|
+
Separator: () => null
|
|
58
|
+
};
|
|
59
|
+
const Combobox = {
|
|
60
|
+
Root: ({ children }) => children,
|
|
61
|
+
Trigger: () => null,
|
|
62
|
+
Value: () => null,
|
|
63
|
+
Positioner: () => null,
|
|
64
|
+
Popup: () => null,
|
|
65
|
+
List: () => null,
|
|
66
|
+
Empty: () => null,
|
|
67
|
+
Item: () => null,
|
|
68
|
+
Input: () => null,
|
|
69
|
+
ItemIndicator: () => null,
|
|
70
|
+
Group: ({ children }) => children,
|
|
71
|
+
GroupLabel: () => null,
|
|
72
|
+
Separator: () => null
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Button, ChatBubbleIcon, ChevronLeftIcon, ChevronRightIcon, ClipboardIcon, CollapseIcon, Combobox, DropdownMenu, ExpandIcon, FolderIcon, IconButton, Kbd, KbdGroup, OpenInEditorIcon, OpencodeIcon, PanelHeader, Popover, SaveIcon, Select, Separator, SettingsIcon, Textarea, ToolbarButton, Tooltip, TrashIcon, XIcon, panelPopupStyle };
|
|
77
|
+
//# sourceMappingURL=index.prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.prod.js","names":[],"sources":["../src/index.prod.ts"],"sourcesContent":["/**\n * Production stub for @react-spot/ui-components.\n *\n * All React components render null — zero runtime cost in production.\n * panelPopupStyle is an empty object; nothing renders to apply styles to.\n */\nimport type { CSSProperties, ReactNode } from 'react'\n\nexport const panelPopupStyle: CSSProperties = {}\n\nexport const Kbd = () => null\nexport const KbdGroup = () => null\n\nexport const Tooltip = () => null\n\nexport const Button = () => null\nexport const IconButton = () => null\nexport const ToolbarButton = () => null\nexport const PanelHeader = () => null\nexport const Textarea = () => null\nexport const Separator = () => null\n\nexport const ChevronLeftIcon = () => null\nexport const ClipboardIcon = () => null\nexport const XIcon = () => null\nexport const ChevronRightIcon = () => null\nexport const OpenInEditorIcon = () => null\nexport const ChatBubbleIcon = () => null\nexport const TrashIcon = () => null\nexport const SaveIcon = () => null\nexport const ExpandIcon = () => null\nexport const CollapseIcon = () => null\nexport const FolderIcon = () => null\nexport const SettingsIcon = () => null\nexport const OpencodeIcon = () => null\n\nexport const Popover = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Portal: () => null,\n Positioner: () => null,\n Close: () => null,\n Popup: () => null,\n}\n\nexport const DropdownMenu = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Portal: () => null,\n Positioner: () => null,\n Popup: () => null,\n Item: () => null,\n Separator: () => null,\n SubmenuRoot: ({ children }: { children?: ReactNode }) => children,\n SubmenuTrigger: () => null,\n}\n\nexport const Select = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Value: () => null,\n Positioner: () => null,\n Portal: () => null,\n Popup: () => null,\n List: () => null,\n Item: () => null,\n ItemText: () => null,\n ItemIndicator: () => null,\n Group: ({ children }: { children?: ReactNode }) => children,\n GroupLabel: () => null,\n Separator: () => null,\n}\n\nexport const Combobox = {\n Root: ({ children }: { children?: ReactNode }) => children,\n Trigger: () => null,\n Value: () => null,\n Positioner: () => null,\n Popup: () => null,\n List: () => null,\n Empty: () => null,\n Item: () => null,\n Input: () => null,\n ItemIndicator: () => null,\n Group: ({ children }: { children?: ReactNode }) => children,\n GroupLabel: () => null,\n Separator: () => null,\n}\n"],"mappings":";AAQA,MAAa,kBAAiC,EAAE;AAEhD,MAAa,YAAY;AACzB,MAAa,iBAAiB;AAE9B,MAAa,gBAAgB;AAE7B,MAAa,eAAe;AAC5B,MAAa,mBAAmB;AAChC,MAAa,sBAAsB;AACnC,MAAa,oBAAoB;AACjC,MAAa,iBAAiB;AAC9B,MAAa,kBAAkB;AAE/B,MAAa,wBAAwB;AACrC,MAAa,sBAAsB;AACnC,MAAa,cAAc;AAC3B,MAAa,yBAAyB;AACtC,MAAa,yBAAyB;AACtC,MAAa,uBAAuB;AACpC,MAAa,kBAAkB;AAC/B,MAAa,iBAAiB;AAC9B,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAElC,MAAa,UAAU;CACrB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,cAAc;CACd,kBAAkB;CAClB,aAAa;CACb,aAAa;CACd;AAED,MAAa,eAAe;CAC1B,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,cAAc;CACd,kBAAkB;CAClB,aAAa;CACb,YAAY;CACZ,iBAAiB;CACjB,cAAc,EAAE,eAAyC;CACzD,sBAAsB;CACvB;AAED,MAAa,SAAS;CACpB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,aAAa;CACb,kBAAkB;CAClB,cAAc;CACd,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,gBAAgB;CAChB,qBAAqB;CACrB,QAAQ,EAAE,eAAyC;CACnD,kBAAkB;CAClB,iBAAiB;CAClB;AAED,MAAa,WAAW;CACtB,OAAO,EAAE,eAAyC;CAClD,eAAe;CACf,aAAa;CACb,kBAAkB;CAClB,aAAa;CACb,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,aAAa;CACb,qBAAqB;CACrB,QAAQ,EAAE,eAAyC;CACnD,kBAAkB;CAClB,iBAAiB;CAClB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-spot/ui-components",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Shared UI primitives (buttons, tooltips, popovers, icons) for react-trace plugins",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react-trace"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "Vitor Buzinaro",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/buzinas/react-trace",
|
|
13
|
+
"directory": "packages/ui-components"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"development": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/index.d.cts",
|
|
31
|
+
"default": "./dist/index.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"production": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"default": "./dist/index.prod.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/index.d.cts",
|
|
41
|
+
"default": "./dist/index.prod.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"default": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/index.d.ts",
|
|
47
|
+
"default": "./dist/index.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/index.d.cts",
|
|
51
|
+
"default": "./dist/index.cjs"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsdown",
|
|
61
|
+
"dev": "tsdown --watch --no-clean",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"lint": "oxlint src",
|
|
64
|
+
"prepublishOnly": "pnpm build"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@base-ui/react": "^1.2.0",
|
|
68
|
+
"lucide-react": "^0.511.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/react": "^19",
|
|
72
|
+
"oxlint": "latest",
|
|
73
|
+
"react": "^19",
|
|
74
|
+
"tsdown": "^0.21.0-beta.2",
|
|
75
|
+
"typescript": "^5"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"react": ">=18"
|
|
79
|
+
}
|
|
80
|
+
}
|