@adea-ai/ui 0.107.0 → 0.109.0
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/dist/NOTICE +13 -0
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts +55 -0
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.d.ts.map +1 -0
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js +199 -0
- package/dist/components/layout/contextual-sidebar/contextual-sidebar.js.map +1 -0
- package/dist/components/layout/contextual-sidebar/index.d.ts +3 -0
- package/dist/components/layout/contextual-sidebar/index.d.ts.map +1 -0
- package/dist/components/layout/contextual-sidebar/index.js +3 -0
- package/dist/components/layout/pixel-resize-handle/index.d.ts +2 -0
- package/dist/components/layout/pixel-resize-handle/index.d.ts.map +1 -0
- package/dist/components/layout/pixel-resize-handle/index.js +2 -0
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts +29 -0
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -0
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +183 -0
- package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -0
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts +3 -19
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.d.ts.map +1 -1
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js +8 -76
- package/dist/components/layout/sidebar-nav/sidebar-nav-resize-handle.js.map +1 -1
- package/dist/components/ui/annotation-surface/annotation-surface.css +27 -0
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts +66 -0
- package/dist/components/ui/annotation-surface/annotation-surface.d.ts.map +1 -0
- package/dist/components/ui/annotation-surface/annotation-surface.js +244 -0
- package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -0
- package/dist/components/ui/annotation-surface/geometry.d.ts +10 -0
- package/dist/components/ui/annotation-surface/geometry.d.ts.map +1 -0
- package/dist/components/ui/annotation-surface/geometry.js +19 -0
- package/dist/components/ui/annotation-surface/geometry.js.map +1 -0
- package/dist/components/ui/annotation-surface/index.d.ts +4 -0
- package/dist/components/ui/annotation-surface/index.d.ts.map +1 -0
- package/dist/components/ui/annotation-surface/index.js +2 -0
- package/dist/components/ui/resizable/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable/resizable.js +2 -2
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint.js +154 -20
- package/dist/lint.js.map +1 -1
- package/dist/r/annotation-surface.json +32 -0
- package/dist/r/contextual-sidebar.json +25 -0
- package/dist/r/pixel-resize-handle.json +23 -0
- package/dist/r/registry.json +81 -1
- package/dist/r/sidebar-nav.json +1 -1
- package/dist/r/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +180 -0
- package/dist/r/src/components/layout/contextual-sidebar/index.ts +6 -0
- package/dist/r/src/components/layout/pixel-resize-handle/index.ts +1 -0
- package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +177 -0
- package/dist/r/src/components/layout/sidebar-nav/sidebar-nav-resize-handle.tsx +7 -55
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.css +27 -0
- package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +316 -0
- package/dist/r/src/components/ui/annotation-surface/geometry.ts +31 -0
- package/dist/r/src/components/ui/annotation-surface/index.ts +13 -0
- package/dist/r/src/components/ui/resizable/resizable.tsx +4 -2
- package/package.json +5 -2
- package/registry.json +81 -1
- package/src/components/layout/contextual-sidebar/contextual-sidebar.tsx +180 -0
- package/src/components/layout/contextual-sidebar/index.ts +6 -0
- package/src/components/layout/pixel-resize-handle/index.ts +1 -0
- package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +177 -0
- package/src/components/layout/sidebar-nav/sidebar-nav-resize-handle.tsx +7 -55
- package/src/components/ui/annotation-surface/annotation-surface.css +27 -0
- package/src/components/ui/annotation-surface/annotation-surface.tsx +316 -0
- package/src/components/ui/annotation-surface/geometry.ts +31 -0
- package/src/components/ui/annotation-surface/index.ts +13 -0
- package/src/components/ui/resizable/resizable.tsx +4 -2
- package/src/index.ts +2 -0
- package/src/lint/index.ts +234 -22
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export * from './components/ui/accordion';
|
|
17
17
|
export * from './components/ui/alert';
|
|
18
18
|
export * from './components/ui/alert-dialog';
|
|
19
|
+
export * from './components/ui/annotation-surface';
|
|
19
20
|
export * from './components/ui/aspect-ratio';
|
|
20
21
|
export * from './components/ui/avatar';
|
|
21
22
|
export * from './components/ui/board';
|
|
@@ -83,6 +84,7 @@ export * from './components/layout/page';
|
|
|
83
84
|
export * from './components/layout/panel';
|
|
84
85
|
export * from './components/layout/side-rail';
|
|
85
86
|
export * from './components/layout/sidebar-nav';
|
|
87
|
+
export * from './components/layout/contextual-sidebar';
|
|
86
88
|
export * from './components/layout/status-bar';
|
|
87
89
|
export * from './components/layout/top-bar';
|
|
88
90
|
export * from './components/conversation';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,C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EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3F,OAAO,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,SAAS,GACf,MAAM,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { controlInteractive, controlSize, controlSizeIcon, controlSizes, cva, su
|
|
|
4
4
|
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/ui/alert/alert.js";
|
|
5
5
|
import { Heading, Text, headingElement, headingVariants, textElement, textVariants } from "./components/ui/typography/typography.js";
|
|
6
6
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/ui/alert-dialog/alert-dialog.js";
|
|
7
|
+
import { AnnotationSurface } from "./components/ui/annotation-surface/annotation-surface.js";
|
|
7
8
|
import { AspectRatio } from "./components/ui/aspect-ratio/aspect-ratio.js";
|
|
8
9
|
import { Avatar, AvatarFallback, AvatarImage, initialsFrom } from "./components/ui/avatar/avatar.js";
|
|
9
10
|
import { Badge, badgeVariants } from "./components/ui/badge/badge.js";
|
|
@@ -83,7 +84,9 @@ import { Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFoote
|
|
|
83
84
|
import { useSideRail } from "./components/layout/side-rail/side-rail-context.js";
|
|
84
85
|
import { SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection } from "./components/layout/side-rail/side-rail.js";
|
|
85
86
|
import { SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavRow, SidebarNavSection, SidebarNavTitle, sidebarNavItemClass, sidebarNavItemStateClass } from "./components/layout/sidebar-nav/sidebar-nav.js";
|
|
87
|
+
import { PixelResizeHandle } from "./components/layout/pixel-resize-handle/pixel-resize-handle.js";
|
|
86
88
|
import { SidebarNavResizeHandle } from "./components/layout/sidebar-nav/sidebar-nav-resize-handle.js";
|
|
89
|
+
import { ContextualSidebar } from "./components/layout/contextual-sidebar/contextual-sidebar.js";
|
|
87
90
|
import { StatusBar, StatusBarItem, StatusBarSpacer } from "./components/layout/status-bar/status-bar.js";
|
|
88
91
|
import { TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle } from "./components/layout/top-bar/top-bar.js";
|
|
89
92
|
import { BusySendButton } from "./components/conversation/busy-send-button.js";
|
|
@@ -126,4 +129,4 @@ import { AboutDialog } from "./components/composites/about-dialog/about-dialog.j
|
|
|
126
129
|
import { HelpCenter } from "./components/composites/help-center/help-center.js";
|
|
127
130
|
import { WorkspaceMark } from "./components/composites/workspace-mark/workspace-mark.js";
|
|
128
131
|
import { writeClipboardText } from "./lib/clipboard.js";
|
|
129
|
-
export { APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChatComposer, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationAvatar, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, TranscriptComposition, Tree, TreeRow, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, accentPresets, alertVariants, allTokens, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, countLines, createAppMenuItems, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, expandAll, findTokenRanges, focusPane, fontOptions, fontSettingsBootstrapScript, formatBytes, formatReleaseDate, formatToken, headingElement, headingVariants, initialsFrom, inlineScriptLiteral, isPasteBlock, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeLayout, parseDiff, plainTextFromMarkdown, pruneBlocks, radiusTokens, recollapsePastes, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveAccentPreset, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolvedDensity, sheetVariants, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, stripTrailingBlankLines, surfaceInteractive, swapPanes, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, transcriptDisclosureKey, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, withAccent, writeClipboardText, zIndexTokens };
|
|
132
|
+
export { APPEARANCE_EDITOR_FONT_AXES, APPEARANCE_EDITOR_FONT_SIZE_MAX, APPEARANCE_EDITOR_FONT_SIZE_MIN, AboutDialog, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, ActionButton, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnnotationSurface, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearanceEditorActions, AppearanceFontSettingsGroup, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, BoardCardTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CatalogBrowser, CatalogDetail, CatalogDetailSection, ChatComposer, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ContextualSidebar, ConversationAvatar, ConversationSurface, DEFAULT_APPEARANCE_EDITOR_FONT_SETTINGS, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, EntityIcon, FLOATING_PREVIEW_CORNER_RADIUS, FLOATING_PREVIEW_EDGE_GAP, Field, FieldDescription, FieldError, FieldGroup, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, FloatingPreview, FormField, Heading, HelpCenter, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputControl, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdChord, KbdGroup, Label, ListGroup, ListRow, ListRowControl, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NO_FLOATING_PREVIEW_OBSTACLES, NO_PREVIEW_MINI_PLAYER_OBSTACLES, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, NumberField, OrbitItem, OrbitLayout, PASTE_THRESHOLD_CHARS, PASTE_THRESHOLD_LINES, PASTE_TOKEN_REGEX, PREVIEW_MINI_PLAYER_CORNER_RADIUS, PREVIEW_MINI_PLAYER_EDGE_GAP, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, PixelResizeHandle, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, SceneControls, ScrollArea, SecretInputGroup, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsLayout, SettingsNavigation, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavLabel, SidebarNavResizeHandle, SidebarNavRow, SidebarNavSection, SidebarNavTitle, Skeleton, SkipLink, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemeModeToggle, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, TranscriptComposition, Tree, TreeRow, UpdateDialog, ValueCombobox, VirtualWindow, WorkspaceMark, accentPresets, alertVariants, allTokens, appearancePreviewThemes, applyAppearanceFontSettings, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, clampFloatingPreviewPosition, clampPreviewMiniPlayerPosition, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, countLines, createAppMenuItems, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, expandAll, findTokenRanges, focusPane, fontOptions, fontSettingsBootstrapScript, formatBytes, formatReleaseDate, formatToken, headingElement, headingVariants, initialsFrom, inlineScriptLiteral, isPasteBlock, isThemeAccentId, itemVariants, kbdChordKeys, kbdGroupVariants, kbdVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, nextSeq, normalizeAppearanceEditorFontSettings, normalizeAppearanceEditorFontSize, normalizeLayout, parseDiff, plainTextFromMarkdown, pruneBlocks, radiusTokens, recollapsePastes, remapCarriedBlocks, resizeFloatingPreview, resizePreviewMiniPlayer, resizeSplit, resolveAccentPreset, resolveFloatingPreviewFrame, resolvePreviewMiniPlayerFrame, resolvedDensity, sheetVariants, shouldCollapse, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, stripTrailingBlankLines, surfaceInteractive, swapPanes, textElement, textVariants, textareaVariants, themeAccentsFor, themeById, themeCssVariables, themeFamilies, themeRecordById, themeRecords, themeScript, themesForAppearance, toast, toaster, toggleVariants, tokenRangeAt, transcriptDisclosureKey, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, withAccent, writeClipboardText, zIndexTokens };
|
package/dist/lint/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lint/index.ts"],"names":[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;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAa/E,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS,CAAA;QACf,IAAI,EAAE;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;QAC7B,MAAM,EAAE,IAAI,EAAE,CAAA;QACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,CAAA;CACtE,CAAA;AAED,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,GAAG,SAAS,CAAA;KACpD,CAAA;IACD,MAAM,EAAE,CAAC,UAAU,EAAE;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;KAC5B,KAAK,IAAI,CAAA;CACX;AAED,UAAU,SAAS;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAkhCD,QAAA,MAAM,MAAM;;;;;;;;;;;;CAUX,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/lint.js
CHANGED
|
@@ -575,6 +575,111 @@ var staticStringValue = (node) => {
|
|
|
575
575
|
if (node?.type === "TemplateLiteral" && node.expressions.length === 0) return node.quasis[0].value.cooked ?? node.quasis[0].value.raw;
|
|
576
576
|
return null;
|
|
577
577
|
};
|
|
578
|
+
var isImportedJsxComponent = (name, imports, context, namespaceExport) => {
|
|
579
|
+
if (name?.type === "JSXIdentifier" || name?.type === "Identifier") return isImportedBinding(name, imports.named, context);
|
|
580
|
+
const memberName = name?.property?.name;
|
|
581
|
+
return (name?.type === "JSXMemberExpression" || name?.type === "MemberExpression") && (name.object?.type === "JSXIdentifier" || name.object?.type === "Identifier") && (name.property?.type === "JSXIdentifier" || name.property?.type === "Identifier") && (namespaceExport ? memberName === namespaceExport : /^[A-Z]/.test(memberName ?? "")) && isImportedBinding(name.object, imports.namespaces, context);
|
|
582
|
+
};
|
|
583
|
+
var CONTENT_OVERRIDE_PROPS = /* @__PURE__ */ new Set([
|
|
584
|
+
"children",
|
|
585
|
+
"dangerouslySetInnerHTML",
|
|
586
|
+
"innerHTML",
|
|
587
|
+
"textContent"
|
|
588
|
+
]);
|
|
589
|
+
/** Opaque spreads and objects containing content props may override children. */
|
|
590
|
+
var spreadMayOverrideContent = (argument) => {
|
|
591
|
+
while (argument?.type === "TSAsExpression" || argument?.type === "TSSatisfiesExpression" || argument?.type === "TSNonNullExpression") argument = argument.expression;
|
|
592
|
+
if (argument?.type !== "ObjectExpression") return true;
|
|
593
|
+
return argument.properties.some((property) => {
|
|
594
|
+
if (property.type !== "Property") return true;
|
|
595
|
+
const key = staticPropertyKey(property.key, property.computed === true);
|
|
596
|
+
return key === null || CONTENT_OVERRIDE_PROPS.has(key);
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
var hasContentOverride = (openingElement) => (openingElement?.attributes ?? []).some((attribute) => {
|
|
600
|
+
if (attribute.type === "JSXSpreadAttribute") return spreadMayOverrideContent(attribute.argument);
|
|
601
|
+
return attribute.type === "JSXAttribute" && attribute.name?.type === "JSXIdentifier" && CONTENT_OVERRIDE_PROPS.has(attribute.name.name);
|
|
602
|
+
});
|
|
603
|
+
var iconChildrenKind = (children, icons, context) => {
|
|
604
|
+
let hasIcon = false;
|
|
605
|
+
for (const child of children) {
|
|
606
|
+
const kind = iconChildKind(child, icons, context);
|
|
607
|
+
if (kind === "text" || kind === "unknown") return kind;
|
|
608
|
+
if (kind === "icon") hasIcon = true;
|
|
609
|
+
}
|
|
610
|
+
return hasIcon ? "icon" : "empty";
|
|
611
|
+
};
|
|
612
|
+
var SVG_TEXT_CONTAINERS = /* @__PURE__ */ new Set(["text", "foreignObject"]);
|
|
613
|
+
/** A raw SVG may be labelled or contain dynamic text instead of an icon. */
|
|
614
|
+
var svgMayContainVisibleText = (children) => {
|
|
615
|
+
for (const child of children) {
|
|
616
|
+
if (!child) return true;
|
|
617
|
+
if (child.type === "JSXText") {
|
|
618
|
+
if (String(child.value ?? "").trim()) return true;
|
|
619
|
+
continue;
|
|
620
|
+
}
|
|
621
|
+
if (child.type === "JSXFragment") {
|
|
622
|
+
if (svgMayContainVisibleText(child.children ?? [])) return true;
|
|
623
|
+
continue;
|
|
624
|
+
}
|
|
625
|
+
if (child.type === "JSXExpressionContainer") {
|
|
626
|
+
const expression = child.expression;
|
|
627
|
+
if (!expression || expression.type === "JSXEmptyExpression") continue;
|
|
628
|
+
if (expression.type === "JSXElement" || expression.type === "JSXFragment") {
|
|
629
|
+
if (svgMayContainVisibleText(expression.type === "JSXElement" ? [expression] : expression.children ?? [])) return true;
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
const text = staticStringValue(expression);
|
|
633
|
+
if (text !== null) {
|
|
634
|
+
if (text.trim()) return true;
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
if (expression.type === "Literal" && (expression.value === null || typeof expression.value === "boolean")) continue;
|
|
638
|
+
return true;
|
|
639
|
+
}
|
|
640
|
+
if (child.type !== "JSXElement") return true;
|
|
641
|
+
const name = child.openingElement?.name;
|
|
642
|
+
if (name?.type !== "JSXIdentifier") return true;
|
|
643
|
+
if (SVG_TEXT_CONTAINERS.has(name.name)) return true;
|
|
644
|
+
if (hasContentOverride(child.openingElement)) return true;
|
|
645
|
+
if (name.name === "title" || name.name === "desc") continue;
|
|
646
|
+
if (!/^[a-z]/.test(name.name) || name.name.includes("-")) return true;
|
|
647
|
+
if (svgMayContainVisibleText(child.children ?? [])) return true;
|
|
648
|
+
}
|
|
649
|
+
return false;
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Proves only the uncomplicated icon-only forms that can be read without
|
|
653
|
+
* executing Solid expressions: imported Lucide components, raw SVG, fragments,
|
|
654
|
+
* whitespace, and spans that contain only those forms.
|
|
655
|
+
*/
|
|
656
|
+
var iconChildKind = (child, icons, context) => {
|
|
657
|
+
if (!child) return "unknown";
|
|
658
|
+
if (child.type === "JSXText") return String(child.value ?? "").trim() ? "text" : "empty";
|
|
659
|
+
if (child.type === "JSXFragment") return iconChildrenKind(child.children ?? [], icons, context);
|
|
660
|
+
if (child.type === "JSXExpressionContainer") {
|
|
661
|
+
const expression = child.expression;
|
|
662
|
+
if (!expression || expression.type === "JSXEmptyExpression") return "empty";
|
|
663
|
+
if (expression.type === "JSXElement" || expression.type === "JSXFragment") return iconChildKind(expression, icons, context);
|
|
664
|
+
const text = staticStringValue(expression);
|
|
665
|
+
if (text !== null) return text.trim() ? "text" : "empty";
|
|
666
|
+
if (expression.type === "Literal" && (expression.value === null || typeof expression.value === "boolean")) return "empty";
|
|
667
|
+
if (expression.type === "Literal" && typeof expression.value === "number") return "text";
|
|
668
|
+
return "unknown";
|
|
669
|
+
}
|
|
670
|
+
if (child.type !== "JSXElement") return "unknown";
|
|
671
|
+
const name = child.openingElement?.name;
|
|
672
|
+
if (name?.type === "JSXIdentifier" && name.name === "svg") return hasContentOverride(child.openingElement) || svgMayContainVisibleText(child.children ?? []) ? "unknown" : "icon";
|
|
673
|
+
if (isImportedJsxComponent(name, icons, context)) return hasContentOverride(child.openingElement) ? "unknown" : "icon";
|
|
674
|
+
if (name?.type === "JSXIdentifier" && name.name === "span") {
|
|
675
|
+
if (hasContentOverride(child.openingElement)) return "unknown";
|
|
676
|
+
return iconChildrenKind(child.children ?? [], icons, context);
|
|
677
|
+
}
|
|
678
|
+
return "unknown";
|
|
679
|
+
};
|
|
680
|
+
var hasStaticallyIconOnlyChildren = (node, icons, context) => {
|
|
681
|
+
return !hasContentOverride(node.openingElement) && iconChildrenKind(node.children ?? [], icons, context) === "icon";
|
|
682
|
+
};
|
|
578
683
|
var isIconButtonSize = (node) => attributeValues(node, "size").some((value) => {
|
|
579
684
|
const size = staticStringValue(value);
|
|
580
685
|
return size !== null && ICON_BUTTON_SIZES.has(size);
|
|
@@ -587,7 +692,6 @@ var actionTooltipStatus = (node) => {
|
|
|
587
692
|
if (strings.every((value) => value !== null)) return "blank";
|
|
588
693
|
return "unknown";
|
|
589
694
|
};
|
|
590
|
-
var isImportedComponent = (identifier, imports) => identifier?.type === "Identifier" && imports.has(identifier.name);
|
|
591
695
|
var plugin = {
|
|
592
696
|
meta: { name: "adea" },
|
|
593
697
|
rules: {
|
|
@@ -652,47 +756,77 @@ var plugin = {
|
|
|
652
756
|
"require-action-button-tooltip": {
|
|
653
757
|
meta: {
|
|
654
758
|
type: "problem",
|
|
655
|
-
docs: { description: "
|
|
759
|
+
docs: { description: "Icon-sized shared Buttons and statically proven icon-only Buttons use ActionButton with a tooltip; icon-only ActionButtons need one too." },
|
|
656
760
|
schema: [],
|
|
657
761
|
messages: {
|
|
658
|
-
useActionButton: "Icon-size Button actions use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.",
|
|
659
|
-
missingTooltip: "An icon-size ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well."
|
|
762
|
+
useActionButton: "Icon-size or icon-only Button actions must use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.",
|
|
763
|
+
missingTooltip: "An icon-size or icon-only ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well."
|
|
660
764
|
}
|
|
661
765
|
},
|
|
662
766
|
create(context) {
|
|
663
|
-
const buttons =
|
|
664
|
-
|
|
767
|
+
const buttons = {
|
|
768
|
+
named: /* @__PURE__ */ new WeakSet(),
|
|
769
|
+
namespaces: /* @__PURE__ */ new WeakSet()
|
|
770
|
+
};
|
|
771
|
+
const actionButtons = {
|
|
772
|
+
named: /* @__PURE__ */ new WeakSet(),
|
|
773
|
+
namespaces: /* @__PURE__ */ new WeakSet()
|
|
774
|
+
};
|
|
775
|
+
const icons = {
|
|
776
|
+
named: /* @__PURE__ */ new WeakSet(),
|
|
777
|
+
namespaces: /* @__PURE__ */ new WeakSet()
|
|
778
|
+
};
|
|
665
779
|
const recordImports = (node) => {
|
|
666
780
|
const source = node.source?.value;
|
|
667
781
|
const target = source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null;
|
|
782
|
+
if (source === "lucide-solid") {
|
|
783
|
+
if (node.importKind === "type") return;
|
|
784
|
+
for (const specifier of node.specifiers ?? []) {
|
|
785
|
+
if (!specifier.local || specifier.importKind === "type") continue;
|
|
786
|
+
if (specifier.type === "ImportNamespaceSpecifier") icons.namespaces.add(specifier.local);
|
|
787
|
+
else if (specifier.type === "ImportSpecifier") {
|
|
788
|
+
const imported = specifier.imported?.name ?? specifier.imported?.value;
|
|
789
|
+
if (typeof imported === "string" && /^[A-Z]/.test(imported)) icons.named.add(specifier.local);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
668
794
|
if (!target) return;
|
|
795
|
+
if (node.importKind === "type") return;
|
|
669
796
|
for (const specifier of node.specifiers ?? []) {
|
|
670
|
-
if (specifier.type
|
|
797
|
+
if (specifier.type === "ImportNamespaceSpecifier" && specifier.local) {
|
|
798
|
+
target.namespaces.add(specifier.local);
|
|
799
|
+
continue;
|
|
800
|
+
}
|
|
801
|
+
if (specifier.type !== "ImportSpecifier" || !specifier.local || specifier.importKind === "type") continue;
|
|
671
802
|
const imported = specifier.imported?.name ?? specifier.imported?.value;
|
|
672
|
-
if (source === BUTTON_MODULE && imported === "Button" || source === ACTION_BUTTON_MODULE && imported === "ActionButton") target.add(specifier.local
|
|
803
|
+
if (source === BUTTON_MODULE && imported === "Button" || source === ACTION_BUTTON_MODULE && imported === "ActionButton") target.named.add(specifier.local);
|
|
673
804
|
}
|
|
674
805
|
};
|
|
675
806
|
return {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
const
|
|
682
|
-
const
|
|
683
|
-
const
|
|
684
|
-
const
|
|
807
|
+
Program(node) {
|
|
808
|
+
for (const statement of node.body ?? []) if (statement.type === "ImportDeclaration") recordImports(statement);
|
|
809
|
+
},
|
|
810
|
+
JSXElement(node) {
|
|
811
|
+
const opening = node.openingElement;
|
|
812
|
+
const isButton = isImportedJsxComponent(opening.name, buttons, context, "Button");
|
|
813
|
+
const isActionButton = isImportedJsxComponent(opening.name, actionButtons, context, "ActionButton");
|
|
814
|
+
const asValues = attributeValues(opening, "as");
|
|
815
|
+
const targetsButton = asValues.some((value) => isImportedJsxComponent(value, buttons, context, "Button"));
|
|
816
|
+
const targetsActionButton = asValues.some((value) => isImportedJsxComponent(value, actionButtons, context, "ActionButton"));
|
|
817
|
+
if (!isButton && !isActionButton && !targetsButton && !targetsActionButton) return;
|
|
818
|
+
if (!isIconButtonSize(opening) && !hasStaticallyIconOnlyChildren(node, icons, context)) return;
|
|
685
819
|
if (isButton || targetsButton) {
|
|
686
820
|
context.report({
|
|
687
|
-
node,
|
|
821
|
+
node: opening,
|
|
688
822
|
messageId: "useActionButton"
|
|
689
823
|
});
|
|
690
824
|
return;
|
|
691
825
|
}
|
|
692
826
|
if (!isActionButton && !targetsActionButton) return;
|
|
693
|
-
const status = actionTooltipStatus(
|
|
827
|
+
const status = actionTooltipStatus(opening);
|
|
694
828
|
if (status === "missing" || status === "blank") context.report({
|
|
695
|
-
node,
|
|
829
|
+
node: opening,
|
|
696
830
|
messageId: "missingTooltip"
|
|
697
831
|
});
|
|
698
832
|
}
|
package/dist/lint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","names":[],"sources":["../src/lint/index.ts"],"sourcesContent":["/*\n * The design system's own oxlint plugin.\n *\n * The styling rules live in `@shadcn/lint`; what that plugin cannot know is which\n * *elements* the design system owns. This is the other half of the contract, for\n * the applications that consume the library: an interactive element this package\n * provides is not re-implemented at the application layer, and the primitive\n * libraries this package is built from are not imported around it.\n *\n * Loaded as an oxlint jsPlugin:\n *\n * // .oxlintrc.json\n * { \"jsPlugins\": [\"@adea-ai/ui/lint\"], \"rules\": { \"adea/no-raw-interactive-elements\": \"error\" } }\n *\n * Rules are errors by intent. A violation means an application composed its own\n * control out of raw markup — unreachable focus behaviour, an absent keyboard\n * story, a second implementation of a decision this package exists to make once.\n */\n\ntype Json = string | number | boolean | null | Json[] | { [key: string]: Json }\n\n/** The raw elements this package replaces, and the primitive that replaces them. */\nconst ELEMENT_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n input: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n textarea: { primitive: 'Textarea', path: '@adea-ai/ui/components/ui/textarea' },\n select: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n option: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n label: { primitive: 'Label', path: '@adea-ai/ui/components/ui/label' },\n })\n\ntype RuleModule = {\n meta: {\n type: 'problem'\n docs: { description: string }\n schema: Json[]\n messages: Record<string, string>\n }\n create: (context: LintContext) => Record<string, (node: any) => void>\n}\n\ninterface LintContext {\n options?: unknown[]\n sourceCode?: {\n getScope?: (node: unknown) => LintScope | undefined\n }\n report: (descriptor: {\n node: unknown\n messageId?: string\n message?: string\n data?: Record<string, Json>\n }) => void\n}\n\ninterface LintScope {\n set?: Map<string, any>\n upper?: LintScope\n}\n\ninterface LintVariable {\n defs?: { type?: string; parent?: { kind?: string }; node?: { init?: unknown } }[]\n identifiers?: object[]\n}\n\nconst variableOf = (node: any, context: LintContext): LintVariable | null => {\n if (node?.type !== 'Identifier' && node?.type !== 'JSXIdentifier') return null\n for (let scope = context.sourceCode?.getScope?.(node); scope; scope = scope.upper) {\n const variable = scope.set?.get(node.name)\n if (variable) return variable\n }\n return null\n}\n\n/** Reads a static object-property key without evaluating a computed expression. */\nconst staticPropertyKey = (node: any, computed: boolean): string | null => {\n if (!computed && node?.type === 'Identifier') return node.name\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\n/** Detects named props in a literal JSX spread, including nested literal spreads. */\nconst objectHasStaticProperty = (node: any, name: string, seen = new Set<unknown>()): boolean => {\n if (!node || seen.has(node)) return false\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return objectHasStaticProperty(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return false\n return node.properties.some((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n if (property.type === 'SpreadElement')\n return objectHasStaticProperty(property.argument, name, seen)\n return false\n })\n}\n\n/** Returns literal values for a statically named property in an object spread. */\nconst staticObjectPropertyValues = (node: any, name: string, seen = new Set<unknown>()): any[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticObjectPropertyValues(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return []\n return node.properties.flatMap((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n ? [property.value]\n : []\n if (property.type === 'SpreadElement')\n return staticObjectPropertyValues(property.argument, name, seen)\n return []\n })\n}\n\nconst noInlineStyles: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Consumer components cannot set appearance or layout with JSX style props; use shared variants and token-backed classes.',\n },\n schema: [],\n messages: {\n inlineStyle:\n 'JSX style attributes are not permitted, including layout values and CSS custom properties. Use shared variants and token-backed classes.',\n inlineStyleElement:\n 'A JSX style element bypasses the shared design system. Use shared variants and token-backed classes.',\n inlineStyleSpread:\n 'A JSX spread contains a style prop. Pass named shared component props instead of hiding inline styles in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyle' })\n },\n JSXOpeningElement(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyleElement' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'style'))\n context.report({ node, messageId: 'inlineStyleSpread' })\n },\n }\n },\n}\n\nconst noClassList: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Solid classList props hide conditional classes from static design-system lint; use cn() with its object-key form.',\n },\n schema: [],\n messages: {\n classList:\n 'classList hides classes from design-system lint. Use cn() with its object-key form and statically readable class names.',\n classListSpread:\n 'A JSX spread contains classList. Use cn() with its object-key form instead of hiding classes in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'classList')\n context.report({ node, messageId: 'classList' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'classList'))\n context.report({ node, messageId: 'classListSpread' })\n },\n }\n },\n}\n\ninterface RawElementOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst noRawInteractiveElements: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Interactive elements this package provides (button, input, textarea, select, option, label), including statically known Solid Dynamic tags, are composed from the package, not written as raw markup.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n rawElement:\n '{{element}} is provided by the design system: use {{primitive}} from {{path}}. A raw element has no keyboard story, no focus behaviour and no token styling — that is the work the primitive already did.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as RawElementOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n const emit = (node: unknown, element: string) => {\n const target = ELEMENT_PRIMITIVES[element]!\n context.report({\n node,\n messageId: 'rawElement',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (!(element in ELEMENT_PRIMITIVES) || allowed.has(element)) continue\n emit(node, element)\n }\n },\n }\n },\n}\n\ninterface PrimitiveImportOptions {\n /** Package prefixes this rule reports. Defaults to the primitive libraries the ui package wraps. */\n packages?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst DEFAULT_PRIMITIVE_PACKAGES = Object.freeze([\n '@kobalte/core',\n '@corvu',\n 'cmdk-solid',\n '@ark-ui',\n '@zag-js',\n '@radix-ui',\n 'radix-ui',\n '@base-ui-components',\n '@base-ui',\n])\n\n/**\n * The interactive ARIA roles an application can dress a generic element in, and\n * the published primitive that owns each role. Native anchors are not generic\n * elements, so their built-in link semantics are unaffected by the `link` entry.\n */\nconst ROLE_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n link: { primitive: 'TextLink', path: '@adea-ai/ui/components/ui/text-link' },\n checkbox: { primitive: 'Checkbox', path: '@adea-ai/ui/components/ui/checkbox' },\n radio: { primitive: 'RadioGroupItem', path: '@adea-ai/ui/components/ui/radio-group' },\n radiogroup: { primitive: 'RadioGroup', path: '@adea-ai/ui/components/ui/radio-group' },\n switch: { primitive: 'Switch', path: '@adea-ai/ui/components/ui/switch' },\n tab: { primitive: 'TabsTrigger', path: '@adea-ai/ui/components/ui/tabs' },\n tablist: { primitive: 'TabsList', path: '@adea-ai/ui/components/ui/tabs' },\n tabpanel: { primitive: 'TabsContent', path: '@adea-ai/ui/components/ui/tabs' },\n option: { primitive: 'SelectItem', path: '@adea-ai/ui/components/ui/select' },\n listbox: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n combobox: { primitive: 'Combobox', path: '@adea-ai/ui/components/ui/combobox' },\n searchbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n menu: { primitive: 'DropdownMenuContent', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitem: { primitive: 'DropdownMenuItem', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitemcheckbox: {\n primitive: 'DropdownMenuCheckboxItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n menuitemradio: {\n primitive: 'DropdownMenuRadioItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n textbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n tree: { primitive: 'Tree', path: '@adea-ai/ui/components/composites/tree' },\n treeitem: { primitive: 'TreeRow', path: '@adea-ai/ui/components/composites/tree' },\n })\n\n/**\n * The elements whose only job is layout or text. A click handler or a tabindex on\n * one of these is a control being hand-built out of a non-control.\n */\nconst GENERIC_ELEMENTS: ReadonlySet<string> = new Set([\n 'div',\n 'span',\n 'li',\n 'ul',\n 'ol',\n 'td',\n 'th',\n 'p',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'section',\n 'article',\n 'aside',\n 'header',\n 'footer',\n 'nav',\n 'main',\n 'img',\n 'svg',\n])\n\nconst CLICK_HANDLERS: ReadonlySet<string> = new Set(\n [\n 'onClick',\n 'onDblClick',\n 'onDoubleClick',\n 'onPointerDown',\n 'onPointerUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onTouchStart',\n 'onTouchEnd',\n 'on:click',\n 'on:dblclick',\n 'on:pointerdown',\n 'on:pointerup',\n 'on:mousedown',\n 'on:mouseup',\n 'on:touchstart',\n 'on:touchend',\n ].flatMap((handler) => [handler, handler.toLowerCase()])\n)\n\ninterface InteractiveWrapperOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Also reject opaque generic-element props and Solid Dynamic tag overrides. */\n rejectUnknownSpreads?: boolean\n /** Replaces the default report message. */\n message?: string\n}\n\n/** Returns a const binding's immutable initializer, when its value is statically knowable. */\nconst constInitializer = (node: any, context: LintContext): any => {\n const variable = variableOf(node, context)\n const definition = variable?.defs?.[0]\n if (definition?.type !== 'Variable' || definition.parent?.kind !== 'const') return null\n return definition.node?.init ?? null\n}\n\n/** Reads literal strings through static branches and local const aliases. */\nconst staticStrings = (node: any, context?: LintContext, seen = new Set<unknown>()): string[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticStrings(node.expression, context, seen)\n if (node?.type === 'Literal' && typeof node.value === 'string') return [node.value]\n if (node?.type === 'JSXExpressionContainer') return staticStrings(node.expression, context, seen)\n if (node?.type === 'ConditionalExpression')\n return [\n ...staticStrings(node.consequent, context, new Set(seen)),\n ...staticStrings(node.alternate, context, new Set(seen)),\n ]\n if (node?.type === 'LogicalExpression')\n return [\n ...staticStrings(node.left, context, new Set(seen)),\n ...staticStrings(node.right, context, new Set(seen)),\n ]\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return [node.quasis[0].value.cooked ?? node.quasis[0].value.raw]\n if (node?.type === 'Identifier' && context) {\n const initializer = constInitializer(node, context)\n return initializer ? staticStrings(initializer, context, seen) : []\n }\n return []\n}\n\ninterface SolidDynamicImports {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst collectSolidDynamicImport = (node: any, imports: SolidDynamicImports): void => {\n if (node.source?.value !== 'solid-js/web') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local)\n imports.namespaces.add(specifier.local)\n if (specifier.type !== 'ImportSpecifier') continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (imported === 'Dynamic' && specifier.local) imports.named.add(specifier.local)\n }\n}\n\nconst collectSolidDynamicImports = (program: any, imports: SolidDynamicImports): void => {\n for (const statement of program.body ?? [])\n if (statement.type === 'ImportDeclaration') collectSolidDynamicImport(statement, imports)\n}\n\nconst isImportedBinding = (node: any, bindings: WeakSet<object>, context: LintContext): boolean =>\n variableOf(node, context)?.identifiers?.some((identifier: object) => bindings.has(identifier)) ??\n false\n\nconst isSolidDynamic = (name: any, imports: SolidDynamicImports, context: LintContext): boolean => {\n if (name?.type === 'JSXIdentifier') return isImportedBinding(name, imports.named, context)\n return (\n name?.type === 'JSXMemberExpression' &&\n name.property?.name === 'Dynamic' &&\n name.object?.type === 'JSXIdentifier' &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ninterface DynamicComponentResolution {\n values: any[]\n opaqueAfterKnownIntrinsic: boolean\n}\n\nconst valuesIncludeKnownIntrinsic = (values: any[], context: LintContext): boolean =>\n values\n .flatMap((value) => staticStrings(value, context))\n .some((element) => GENERIC_ELEMENTS.has(element) || element in ELEMENT_PRIMITIVES)\n\n/** Applies `component` assignments made by a spread, tracking opaque overrides. */\nconst applyDynamicComponentSpread = (\n node: any,\n resolution: DynamicComponentResolution,\n context: LintContext\n): DynamicComponentResolution => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || node.type !== 'ObjectExpression')\n return {\n values: [],\n opaqueAfterKnownIntrinsic:\n resolution.opaqueAfterKnownIntrinsic ||\n valuesIncludeKnownIntrinsic(resolution.values, context),\n }\n\n let current = resolution\n for (const property of node.properties ?? []) {\n if (property.type === 'SpreadElement') {\n current = applyDynamicComponentSpread(property.argument, current, context)\n continue\n }\n if (property.type !== 'Property') continue\n const key = staticPropertyKey(property.key, property.computed === true)\n if (key === 'component')\n current = { values: [property.value], opaqueAfterKnownIntrinsic: false }\n else if (property.computed && key === null)\n current = {\n values: [],\n opaqueAfterKnownIntrinsic:\n current.opaqueAfterKnownIntrinsic || valuesIncludeKnownIntrinsic(current.values, context),\n }\n }\n return current\n}\n\nconst dynamicComponentResolution = (\n node: any,\n context: LintContext\n): DynamicComponentResolution => {\n let resolution: DynamicComponentResolution = {\n values: [],\n opaqueAfterKnownIntrinsic: false,\n }\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === 'component') {\n resolution = {\n values: attribute.value ? [attribute.value] : [],\n opaqueAfterKnownIntrinsic: false,\n }\n continue\n }\n if (attribute.type === 'JSXSpreadAttribute')\n resolution = applyDynamicComponentSpread(attribute.argument, resolution, context)\n }\n return resolution\n}\n\n/** Resolves native tags passed to Solid Dynamic while leaving component values alone. */\nconst jsxElementNames = (\n node: any,\n imports: SolidDynamicImports,\n context: LintContext\n): string[] => {\n if (isSolidDynamic(node.name, imports, context))\n return [\n ...new Set(\n dynamicComponentResolution(node, context).values.flatMap((value) =>\n staticStrings(value, context)\n )\n ),\n ]\n if (node.name?.type === 'JSXIdentifier') return [node.name.name]\n return []\n}\n\nconst roleOf = (node: any, context: LintContext): string | null => {\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXSpreadAttribute') {\n const role = staticObjectPropertyValues(attribute.argument, 'role')\n .flatMap((value) => staticStrings(value, context))\n .flatMap((value) => value.split(/\\s+/))\n .find((value) => value in ROLE_PRIMITIVES)\n if (role) return role\n continue\n }\n if (attribute.type !== 'JSXAttribute' || attribute.name?.name !== 'role') continue\n return (\n staticStrings(attribute.value, context)\n .flatMap((role) => role.split(/\\s+/))\n .find((role) => role in ROLE_PRIMITIVES) ?? null\n )\n }\n return null\n}\n\n/** Whether the element carries the attribute, by name. */\nconst has = (node: any, name: string): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) =>\n (attribute.type === 'JSXAttribute' &&\n (attribute.name?.type === 'JSXNamespacedName'\n ? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n : attribute.name?.name) === name) ||\n (attribute.type === 'JSXSpreadAttribute' && objectHasStaticProperty(attribute.argument, name))\n )\n\nconst tabStopValue = (value: any): boolean => {\n const expression = value?.type === 'JSXExpressionContainer' ? value.expression : value\n if (expression?.type === 'Literal') return !(Number(expression.value) < 0)\n if (\n expression?.type === 'UnaryExpression' &&\n expression.operator === '-' &&\n expression.argument?.type === 'Literal'\n )\n return !(Number(expression.argument.value) > 0)\n return true\n}\n\nconst hasTabStop = (node: any): boolean =>\n (node.attributes ?? []).some((attribute: any) => {\n if (\n attribute.type === 'JSXAttribute' &&\n ['tabIndex', 'tabindex'].includes(attribute.name?.name)\n )\n return tabStopValue(attribute.value)\n if (attribute.type === 'JSXSpreadAttribute')\n return ['tabIndex', 'tabindex'].some((name) =>\n staticObjectPropertyValues(attribute.argument, name).some(tabStopValue)\n )\n return false\n })\n\n/** Unknown/computed props make a JSX object spread opaque to interaction checks. */\nconst opaqueSpread = (node: any, seen = new Set<unknown>()): boolean => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || seen.has(node) || node.type !== 'ObjectExpression') return true\n seen.add(node)\n return node.properties.some((property: any) => {\n if (property.type === 'SpreadElement') return opaqueSpread(property.argument, seen)\n if (property.type !== 'Property') return true\n return staticPropertyKey(property.key, property.computed === true) === null\n })\n}\n\nconst hasOpaqueSpread = (node: any): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) => attribute.type === 'JSXSpreadAttribute' && opaqueSpread(attribute.argument)\n )\n\nconst noInteractiveWrappers: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Generic elements dressed as interactive controls — an interactive role, a click handler or a tabindex on a layout element — re-implement a primitive by hand. Compose the real component.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n rejectUnknownSpreads: { type: 'boolean' },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n roleWrapper:\n 'A {{element}} with role=\"{{role}}\" hand-builds {{primitive}}: use {{primitive}} from {{path}}. The primitive brings keyboard activation, focus behaviour and ARIA wiring; the wrapper re-implements them badly.',\n clickWrapper:\n 'A click handler on {{element}} composes {{primitive}} by hand: use {{primitive}} from {{path}}. A div that reacts to clicks is a button that cannot be reached by keyboard.',\n tabindexWrapper:\n 'A tabindex on {{element}} makes a layout element focusable, which is focus management the primitives already own: compose the real component instead.',\n opaqueSpreadWrapper:\n 'A spread on {{element}} may hide a role, activation handler, or tab stop. Pass statically named props or compose the shared component instead.',\n opaqueDynamicComponentWrapper:\n 'An opaque spread follows a known raw design-system or generic tag on Solid Dynamic and may replace the tag or hide interactive props. Pass statically named props or a shared component so the interaction rule can inspect the final component.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as InteractiveWrapperOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n if (options.rejectUnknownSpreads && isSolidDynamic(node.name, dynamicImports, context)) {\n const resolution = dynamicComponentResolution(node, context)\n if (resolution.opaqueAfterKnownIntrinsic) {\n context.report({\n node,\n messageId: 'opaqueDynamicComponentWrapper',\n ...(options.message ? { message: options.message } : {}),\n })\n return\n }\n }\n\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (allowed.has(element) || element in ELEMENT_PRIMITIVES) continue\n // Capitalized JSX components are composed controls, not raw elements.\n // Solid Dynamic is resolved above only when its component is a known tag.\n if (element[0] === element[0]?.toUpperCase()) continue\n if (!GENERIC_ELEMENTS.has(element)) continue\n\n if (options.rejectUnknownSpreads && hasOpaqueSpread(node)) {\n context.report({\n node,\n messageId: 'opaqueSpreadWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n break\n }\n\n const role = roleOf(node, context)\n if (role && role in ROLE_PRIMITIVES) {\n const target = ROLE_PRIMITIVES[role]!\n context.report({\n node,\n messageId: 'roleWrapper',\n data: { element, role, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n\n const click = [...CLICK_HANDLERS].find((handler) => has(node, handler))\n if (click) {\n const target = ROLE_PRIMITIVES.button!\n context.report({\n node,\n messageId: 'clickWrapper',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n if (hasTabStop(node))\n context.report({\n node,\n messageId: 'tabindexWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n },\n }\n },\n}\n\nconst BUTTON_MODULE = '@adea-ai/ui/components/ui/button'\nconst ACTION_BUTTON_MODULE = '@adea-ai/ui/components/composites/action-button'\nconst ICON_BUTTON_SIZES: ReadonlySet<string> = new Set([\n 'icon-2xs',\n 'icon-xs',\n 'icon-sm',\n 'icon-md',\n 'icon-lg',\n 'icon-xl',\n 'icon-2xl',\n])\n\nconst staticJsxValues = (value: any): any[] =>\n value?.type === 'JSXExpressionContainer' ? [value.expression] : value ? [value] : []\n\nconst attributeValues = (node: any, name: string): any[] => {\n const values: any[] = []\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === name)\n values.splice(0, values.length, ...staticJsxValues(attribute.value))\n if (attribute.type === 'JSXSpreadAttribute') {\n const spreadValues = staticObjectPropertyValues(attribute.argument, name)\n if (spreadValues.length > 0) values.splice(0, values.length, spreadValues.at(-1))\n }\n }\n return values\n}\n\nconst staticStringValue = (node: any): string | null => {\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\nconst isIconButtonSize = (node: any): boolean =>\n attributeValues(node, 'size').some((value) => {\n const size = staticStringValue(value)\n return size !== null && ICON_BUTTON_SIZES.has(size)\n })\n\nconst actionTooltipStatus = (node: any): 'valid' | 'blank' | 'unknown' | 'missing' => {\n const values = attributeValues(node, 'tooltip')\n if (values.length === 0) return 'missing'\n const strings = values.map(staticStringValue)\n if (strings.some((value) => value !== null && value.trim().length > 0)) return 'valid'\n if (strings.every((value) => value !== null)) return 'blank'\n return 'unknown'\n}\n\nconst isImportedComponent = (identifier: any, imports: Set<string>): boolean =>\n identifier?.type === 'Identifier' && imports.has(identifier.name)\n\n/** Requires shared icon actions to carry the shared explanatory-tooltip contract. */\nconst requireActionButtonTooltip: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Consumer icon-size shared Button actions use ActionButton with a nonblank tooltip; dynamic values remain a review boundary.',\n },\n schema: [],\n messages: {\n useActionButton:\n 'Icon-size Button actions use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.',\n missingTooltip:\n 'An icon-size ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well.',\n },\n },\n create(context) {\n const buttons = new Set<string>()\n const actionButtons = new Set<string>()\n const recordImports = (node: any) => {\n const source = node.source?.value\n const target =\n source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null\n if (!target) return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type !== 'ImportSpecifier') continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (\n (source === BUTTON_MODULE && imported === 'Button') ||\n (source === ACTION_BUTTON_MODULE && imported === 'ActionButton')\n )\n target.add(specifier.local?.name)\n }\n }\n\n return {\n ImportDeclaration: recordImports,\n JSXOpeningElement(node: any) {\n if (!isIconButtonSize(node)) return\n const name = node.name?.type === 'JSXIdentifier' ? node.name.name : null\n const isButton = name !== null && buttons.has(name)\n const isActionButton = name !== null && actionButtons.has(name)\n const asValues = attributeValues(node, 'as')\n const targetsButton = asValues.some((value) => isImportedComponent(value, buttons))\n const targetsActionButton = asValues.some((value) =>\n isImportedComponent(value, actionButtons)\n )\n if (isButton || targetsButton) {\n context.report({ node, messageId: 'useActionButton' })\n return\n }\n if (!isActionButton && !targetsActionButton) return\n const status = actionTooltipStatus(node)\n if (status === 'missing' || status === 'blank')\n context.report({ node, messageId: 'missingTooltip' })\n },\n }\n },\n}\n\nconst noPrimitiveLibraryImports: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'The primitive libraries the design system is built on (Kobalte and friends) are its internal affair — compose the exported components instead of importing the primitives.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n packages: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n primitiveImport:\n 'Import from the design system, not from {{package}}: the primitives it wraps carry the focus, keyboard and ARIA behaviour the components exist to provide.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as PrimitiveImportOptions\n const prefixes = options.packages ?? DEFAULT_PRIMITIVE_PACKAGES\n const offender = (source: unknown): string | null => {\n const name = String(source ?? '')\n return prefixes.find((prefix) => name === prefix || name.startsWith(`${prefix}/`)) ?? null\n }\n const report = (node: unknown, source: unknown) => {\n const pkg = offender(source)!\n context.report({\n node,\n messageId: 'primitiveImport',\n data: { package: pkg },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n ImportDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ImportExpression(node: any) {\n if (typeof node.source?.value === 'string' && offender(node.source.value))\n report(node, node.source.value)\n },\n ExportNamedDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ExportAllDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n CallExpression(node: any) {\n if (node.callee?.type !== 'Identifier' || node.callee.name !== 'require') return\n const source = node.arguments?.[0]?.value\n if (typeof source === 'string' && offender(source)) report(node, source)\n },\n }\n },\n}\n\nconst plugin = {\n meta: { name: 'adea' },\n rules: {\n 'no-inline-styles': noInlineStyles,\n 'no-class-list': noClassList,\n 'no-raw-interactive-elements': noRawInteractiveElements,\n 'no-primitive-library-imports': noPrimitiveLibraryImports,\n 'no-interactive-wrappers': noInteractiveWrappers,\n 'require-action-button-tooltip': requireActionButtonTooltip,\n },\n}\n\nexport default plugin\n"],"mappings":";;AAsBA,IAAM,qBACJ,OAAO,OAAO;CACZ,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;CACrE,UAAU;EAAE,WAAW;EAAY,MAAM;CAAqC;CAC9E,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;AACvE,CAAC;AAmCH,IAAM,cAAc,MAAW,YAA8C;CAC3E,IAAI,MAAM,SAAS,gBAAgB,MAAM,SAAS,iBAAiB,OAAO;CAC1E,KAAK,IAAI,QAAQ,QAAQ,YAAY,WAAW,IAAI,GAAG,OAAO,QAAQ,MAAM,OAAO;EACjF,MAAM,WAAW,MAAM,KAAK,IAAI,KAAK,IAAI;EACzC,IAAI,UAAU,OAAO;CACvB;CACA,OAAO;AACT;;AAGA,IAAM,qBAAqB,MAAW,aAAqC;CACzE,IAAI,CAAC,YAAY,MAAM,SAAS,cAAc,OAAO,KAAK;CAC1D,IAAI,MAAM,SAAS,aAAa,OAAO,KAAK,UAAU,UAAU,OAAO,KAAK;CAC5E,IAAI,MAAM,SAAS,qBAAqB,KAAK,YAAY,WAAW,GAClE,OAAO,KAAK,OAAO,EAAE,CAAC,MAAM,UAAU,KAAK,OAAO,EAAE,CAAC,MAAM;CAC7D,OAAO;AACT;;AAGA,IAAM,2BAA2B,MAAW,MA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;OAAM,WAAW;MAAiB,CAAC;KACxD;IACF;GACF;EAwEmC;CACnC;AACF"}
|
|
1
|
+
{"version":3,"file":"lint.js","names":[],"sources":["../src/lint/index.ts"],"sourcesContent":["/*\n * The design system's own oxlint plugin.\n *\n * The styling rules live in `@shadcn/lint`; what that plugin cannot know is which\n * *elements* the design system owns. This is the other half of the contract, for\n * the applications that consume the library: an interactive element this package\n * provides is not re-implemented at the application layer, and the primitive\n * libraries this package is built from are not imported around it.\n *\n * Loaded as an oxlint jsPlugin:\n *\n * // .oxlintrc.json\n * { \"jsPlugins\": [\"@adea-ai/ui/lint\"], \"rules\": { \"adea/no-raw-interactive-elements\": \"error\" } }\n *\n * Rules are errors by intent. A violation means an application composed its own\n * control out of raw markup — unreachable focus behaviour, an absent keyboard\n * story, a second implementation of a decision this package exists to make once.\n */\n\ntype Json = string | number | boolean | null | Json[] | { [key: string]: Json }\n\n/** The raw elements this package replaces, and the primitive that replaces them. */\nconst ELEMENT_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n input: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n textarea: { primitive: 'Textarea', path: '@adea-ai/ui/components/ui/textarea' },\n select: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n option: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n label: { primitive: 'Label', path: '@adea-ai/ui/components/ui/label' },\n })\n\ntype RuleModule = {\n meta: {\n type: 'problem'\n docs: { description: string }\n schema: Json[]\n messages: Record<string, string>\n }\n create: (context: LintContext) => Record<string, (node: any) => void>\n}\n\ninterface LintContext {\n options?: unknown[]\n sourceCode?: {\n getScope?: (node: unknown) => LintScope | undefined\n }\n report: (descriptor: {\n node: unknown\n messageId?: string\n message?: string\n data?: Record<string, Json>\n }) => void\n}\n\ninterface LintScope {\n set?: Map<string, any>\n upper?: LintScope\n}\n\ninterface LintVariable {\n defs?: { type?: string; parent?: { kind?: string }; node?: { init?: unknown } }[]\n identifiers?: object[]\n}\n\nconst variableOf = (node: any, context: LintContext): LintVariable | null => {\n if (node?.type !== 'Identifier' && node?.type !== 'JSXIdentifier') return null\n for (let scope = context.sourceCode?.getScope?.(node); scope; scope = scope.upper) {\n const variable = scope.set?.get(node.name)\n if (variable) return variable\n }\n return null\n}\n\n/** Reads a static object-property key without evaluating a computed expression. */\nconst staticPropertyKey = (node: any, computed: boolean): string | null => {\n if (!computed && node?.type === 'Identifier') return node.name\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\n/** Detects named props in a literal JSX spread, including nested literal spreads. */\nconst objectHasStaticProperty = (node: any, name: string, seen = new Set<unknown>()): boolean => {\n if (!node || seen.has(node)) return false\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return objectHasStaticProperty(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return false\n return node.properties.some((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n if (property.type === 'SpreadElement')\n return objectHasStaticProperty(property.argument, name, seen)\n return false\n })\n}\n\n/** Returns literal values for a statically named property in an object spread. */\nconst staticObjectPropertyValues = (node: any, name: string, seen = new Set<unknown>()): any[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticObjectPropertyValues(node.expression, name, seen)\n if (node.type !== 'ObjectExpression') return []\n return node.properties.flatMap((property: any) => {\n if (property.type === 'Property')\n return staticPropertyKey(property.key, property.computed === true) === name\n ? [property.value]\n : []\n if (property.type === 'SpreadElement')\n return staticObjectPropertyValues(property.argument, name, seen)\n return []\n })\n}\n\nconst noInlineStyles: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Consumer components cannot set appearance or layout with JSX style props; use shared variants and token-backed classes.',\n },\n schema: [],\n messages: {\n inlineStyle:\n 'JSX style attributes are not permitted, including layout values and CSS custom properties. Use shared variants and token-backed classes.',\n inlineStyleElement:\n 'A JSX style element bypasses the shared design system. Use shared variants and token-backed classes.',\n inlineStyleSpread:\n 'A JSX spread contains a style prop. Pass named shared component props instead of hiding inline styles in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyle' })\n },\n JSXOpeningElement(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'style')\n context.report({ node, messageId: 'inlineStyleElement' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'style'))\n context.report({ node, messageId: 'inlineStyleSpread' })\n },\n }\n },\n}\n\nconst noClassList: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Solid classList props hide conditional classes from static design-system lint; use cn() with its object-key form.',\n },\n schema: [],\n messages: {\n classList:\n 'classList hides classes from design-system lint. Use cn() with its object-key form and statically readable class names.',\n classListSpread:\n 'A JSX spread contains classList. Use cn() with its object-key form instead of hiding classes in a spread.',\n },\n },\n create(context) {\n return {\n JSXAttribute(node: any) {\n if (node.name?.type === 'JSXIdentifier' && node.name.name === 'classList')\n context.report({ node, messageId: 'classList' })\n },\n JSXSpreadAttribute(node: any) {\n if (objectHasStaticProperty(node.argument, 'classList'))\n context.report({ node, messageId: 'classListSpread' })\n },\n }\n },\n}\n\ninterface RawElementOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst noRawInteractiveElements: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Interactive elements this package provides (button, input, textarea, select, option, label), including statically known Solid Dynamic tags, are composed from the package, not written as raw markup.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n rawElement:\n '{{element}} is provided by the design system: use {{primitive}} from {{path}}. A raw element has no keyboard story, no focus behaviour and no token styling — that is the work the primitive already did.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as RawElementOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n const emit = (node: unknown, element: string) => {\n const target = ELEMENT_PRIMITIVES[element]!\n context.report({\n node,\n messageId: 'rawElement',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (!(element in ELEMENT_PRIMITIVES) || allowed.has(element)) continue\n emit(node, element)\n }\n },\n }\n },\n}\n\ninterface PrimitiveImportOptions {\n /** Package prefixes this rule reports. Defaults to the primitive libraries the ui package wraps. */\n packages?: string[]\n /** Replaces the default report message. */\n message?: string\n}\n\nconst DEFAULT_PRIMITIVE_PACKAGES = Object.freeze([\n '@kobalte/core',\n '@corvu',\n 'cmdk-solid',\n '@ark-ui',\n '@zag-js',\n '@radix-ui',\n 'radix-ui',\n '@base-ui-components',\n '@base-ui',\n])\n\n/**\n * The interactive ARIA roles an application can dress a generic element in, and\n * the published primitive that owns each role. Native anchors are not generic\n * elements, so their built-in link semantics are unaffected by the `link` entry.\n */\nconst ROLE_PRIMITIVES: Readonly<Record<string, { primitive: string; path: string }>> =\n Object.freeze({\n button: { primitive: 'Button', path: '@adea-ai/ui/components/ui/button' },\n link: { primitive: 'TextLink', path: '@adea-ai/ui/components/ui/text-link' },\n checkbox: { primitive: 'Checkbox', path: '@adea-ai/ui/components/ui/checkbox' },\n radio: { primitive: 'RadioGroupItem', path: '@adea-ai/ui/components/ui/radio-group' },\n radiogroup: { primitive: 'RadioGroup', path: '@adea-ai/ui/components/ui/radio-group' },\n switch: { primitive: 'Switch', path: '@adea-ai/ui/components/ui/switch' },\n tab: { primitive: 'TabsTrigger', path: '@adea-ai/ui/components/ui/tabs' },\n tablist: { primitive: 'TabsList', path: '@adea-ai/ui/components/ui/tabs' },\n tabpanel: { primitive: 'TabsContent', path: '@adea-ai/ui/components/ui/tabs' },\n option: { primitive: 'SelectItem', path: '@adea-ai/ui/components/ui/select' },\n listbox: { primitive: 'Select', path: '@adea-ai/ui/components/ui/select' },\n combobox: { primitive: 'Combobox', path: '@adea-ai/ui/components/ui/combobox' },\n searchbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n menu: { primitive: 'DropdownMenuContent', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitem: { primitive: 'DropdownMenuItem', path: '@adea-ai/ui/components/ui/dropdown-menu' },\n menuitemcheckbox: {\n primitive: 'DropdownMenuCheckboxItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n menuitemradio: {\n primitive: 'DropdownMenuRadioItem',\n path: '@adea-ai/ui/components/ui/dropdown-menu',\n },\n textbox: { primitive: 'Input', path: '@adea-ai/ui/components/ui/input' },\n tree: { primitive: 'Tree', path: '@adea-ai/ui/components/composites/tree' },\n treeitem: { primitive: 'TreeRow', path: '@adea-ai/ui/components/composites/tree' },\n })\n\n/**\n * The elements whose only job is layout or text. A click handler or a tabindex on\n * one of these is a control being hand-built out of a non-control.\n */\nconst GENERIC_ELEMENTS: ReadonlySet<string> = new Set([\n 'div',\n 'span',\n 'li',\n 'ul',\n 'ol',\n 'td',\n 'th',\n 'p',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'section',\n 'article',\n 'aside',\n 'header',\n 'footer',\n 'nav',\n 'main',\n 'img',\n 'svg',\n])\n\nconst CLICK_HANDLERS: ReadonlySet<string> = new Set(\n [\n 'onClick',\n 'onDblClick',\n 'onDoubleClick',\n 'onPointerDown',\n 'onPointerUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onTouchStart',\n 'onTouchEnd',\n 'on:click',\n 'on:dblclick',\n 'on:pointerdown',\n 'on:pointerup',\n 'on:mousedown',\n 'on:mouseup',\n 'on:touchstart',\n 'on:touchend',\n ].flatMap((handler) => [handler, handler.toLowerCase()])\n)\n\ninterface InteractiveWrapperOptions {\n /** Element names this rule should not report (rare; prefer fixing the file). */\n allow?: string[]\n /** Also reject opaque generic-element props and Solid Dynamic tag overrides. */\n rejectUnknownSpreads?: boolean\n /** Replaces the default report message. */\n message?: string\n}\n\n/** Returns a const binding's immutable initializer, when its value is statically knowable. */\nconst constInitializer = (node: any, context: LintContext): any => {\n const variable = variableOf(node, context)\n const definition = variable?.defs?.[0]\n if (definition?.type !== 'Variable' || definition.parent?.kind !== 'const') return null\n return definition.node?.init ?? null\n}\n\n/** Reads literal strings through static branches and local const aliases. */\nconst staticStrings = (node: any, context?: LintContext, seen = new Set<unknown>()): string[] => {\n if (!node || seen.has(node)) return []\n seen.add(node)\n if (\n node.type === 'TSAsExpression' ||\n node.type === 'TSSatisfiesExpression' ||\n node.type === 'TSNonNullExpression'\n )\n return staticStrings(node.expression, context, seen)\n if (node?.type === 'Literal' && typeof node.value === 'string') return [node.value]\n if (node?.type === 'JSXExpressionContainer') return staticStrings(node.expression, context, seen)\n if (node?.type === 'ConditionalExpression')\n return [\n ...staticStrings(node.consequent, context, new Set(seen)),\n ...staticStrings(node.alternate, context, new Set(seen)),\n ]\n if (node?.type === 'LogicalExpression')\n return [\n ...staticStrings(node.left, context, new Set(seen)),\n ...staticStrings(node.right, context, new Set(seen)),\n ]\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return [node.quasis[0].value.cooked ?? node.quasis[0].value.raw]\n if (node?.type === 'Identifier' && context) {\n const initializer = constInitializer(node, context)\n return initializer ? staticStrings(initializer, context, seen) : []\n }\n return []\n}\n\ninterface SolidDynamicImports {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst collectSolidDynamicImport = (node: any, imports: SolidDynamicImports): void => {\n if (node.source?.value !== 'solid-js/web') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local)\n imports.namespaces.add(specifier.local)\n if (specifier.type !== 'ImportSpecifier') continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (imported === 'Dynamic' && specifier.local) imports.named.add(specifier.local)\n }\n}\n\nconst collectSolidDynamicImports = (program: any, imports: SolidDynamicImports): void => {\n for (const statement of program.body ?? [])\n if (statement.type === 'ImportDeclaration') collectSolidDynamicImport(statement, imports)\n}\n\nconst isImportedBinding = (node: any, bindings: WeakSet<object>, context: LintContext): boolean =>\n variableOf(node, context)?.identifiers?.some((identifier: object) => bindings.has(identifier)) ??\n false\n\nconst isSolidDynamic = (name: any, imports: SolidDynamicImports, context: LintContext): boolean => {\n if (name?.type === 'JSXIdentifier') return isImportedBinding(name, imports.named, context)\n return (\n name?.type === 'JSXMemberExpression' &&\n name.property?.name === 'Dynamic' &&\n name.object?.type === 'JSXIdentifier' &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ninterface DynamicComponentResolution {\n values: any[]\n opaqueAfterKnownIntrinsic: boolean\n}\n\nconst valuesIncludeKnownIntrinsic = (values: any[], context: LintContext): boolean =>\n values\n .flatMap((value) => staticStrings(value, context))\n .some((element) => GENERIC_ELEMENTS.has(element) || element in ELEMENT_PRIMITIVES)\n\n/** Applies `component` assignments made by a spread, tracking opaque overrides. */\nconst applyDynamicComponentSpread = (\n node: any,\n resolution: DynamicComponentResolution,\n context: LintContext\n): DynamicComponentResolution => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || node.type !== 'ObjectExpression')\n return {\n values: [],\n opaqueAfterKnownIntrinsic:\n resolution.opaqueAfterKnownIntrinsic ||\n valuesIncludeKnownIntrinsic(resolution.values, context),\n }\n\n let current = resolution\n for (const property of node.properties ?? []) {\n if (property.type === 'SpreadElement') {\n current = applyDynamicComponentSpread(property.argument, current, context)\n continue\n }\n if (property.type !== 'Property') continue\n const key = staticPropertyKey(property.key, property.computed === true)\n if (key === 'component')\n current = { values: [property.value], opaqueAfterKnownIntrinsic: false }\n else if (property.computed && key === null)\n current = {\n values: [],\n opaqueAfterKnownIntrinsic:\n current.opaqueAfterKnownIntrinsic || valuesIncludeKnownIntrinsic(current.values, context),\n }\n }\n return current\n}\n\nconst dynamicComponentResolution = (\n node: any,\n context: LintContext\n): DynamicComponentResolution => {\n let resolution: DynamicComponentResolution = {\n values: [],\n opaqueAfterKnownIntrinsic: false,\n }\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === 'component') {\n resolution = {\n values: attribute.value ? [attribute.value] : [],\n opaqueAfterKnownIntrinsic: false,\n }\n continue\n }\n if (attribute.type === 'JSXSpreadAttribute')\n resolution = applyDynamicComponentSpread(attribute.argument, resolution, context)\n }\n return resolution\n}\n\n/** Resolves native tags passed to Solid Dynamic while leaving component values alone. */\nconst jsxElementNames = (\n node: any,\n imports: SolidDynamicImports,\n context: LintContext\n): string[] => {\n if (isSolidDynamic(node.name, imports, context))\n return [\n ...new Set(\n dynamicComponentResolution(node, context).values.flatMap((value) =>\n staticStrings(value, context)\n )\n ),\n ]\n if (node.name?.type === 'JSXIdentifier') return [node.name.name]\n return []\n}\n\nconst roleOf = (node: any, context: LintContext): string | null => {\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXSpreadAttribute') {\n const role = staticObjectPropertyValues(attribute.argument, 'role')\n .flatMap((value) => staticStrings(value, context))\n .flatMap((value) => value.split(/\\s+/))\n .find((value) => value in ROLE_PRIMITIVES)\n if (role) return role\n continue\n }\n if (attribute.type !== 'JSXAttribute' || attribute.name?.name !== 'role') continue\n return (\n staticStrings(attribute.value, context)\n .flatMap((role) => role.split(/\\s+/))\n .find((role) => role in ROLE_PRIMITIVES) ?? null\n )\n }\n return null\n}\n\n/** Whether the element carries the attribute, by name. */\nconst has = (node: any, name: string): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) =>\n (attribute.type === 'JSXAttribute' &&\n (attribute.name?.type === 'JSXNamespacedName'\n ? `${attribute.name.namespace.name}:${attribute.name.name.name}`\n : attribute.name?.name) === name) ||\n (attribute.type === 'JSXSpreadAttribute' && objectHasStaticProperty(attribute.argument, name))\n )\n\nconst tabStopValue = (value: any): boolean => {\n const expression = value?.type === 'JSXExpressionContainer' ? value.expression : value\n if (expression?.type === 'Literal') return !(Number(expression.value) < 0)\n if (\n expression?.type === 'UnaryExpression' &&\n expression.operator === '-' &&\n expression.argument?.type === 'Literal'\n )\n return !(Number(expression.argument.value) > 0)\n return true\n}\n\nconst hasTabStop = (node: any): boolean =>\n (node.attributes ?? []).some((attribute: any) => {\n if (\n attribute.type === 'JSXAttribute' &&\n ['tabIndex', 'tabindex'].includes(attribute.name?.name)\n )\n return tabStopValue(attribute.value)\n if (attribute.type === 'JSXSpreadAttribute')\n return ['tabIndex', 'tabindex'].some((name) =>\n staticObjectPropertyValues(attribute.argument, name).some(tabStopValue)\n )\n return false\n })\n\n/** Unknown/computed props make a JSX object spread opaque to interaction checks. */\nconst opaqueSpread = (node: any, seen = new Set<unknown>()): boolean => {\n while (\n node?.type === 'TSAsExpression' ||\n node?.type === 'TSSatisfiesExpression' ||\n node?.type === 'TSNonNullExpression'\n )\n node = node.expression\n if (!node || seen.has(node) || node.type !== 'ObjectExpression') return true\n seen.add(node)\n return node.properties.some((property: any) => {\n if (property.type === 'SpreadElement') return opaqueSpread(property.argument, seen)\n if (property.type !== 'Property') return true\n return staticPropertyKey(property.key, property.computed === true) === null\n })\n}\n\nconst hasOpaqueSpread = (node: any): boolean =>\n (node.attributes ?? []).some(\n (attribute: any) => attribute.type === 'JSXSpreadAttribute' && opaqueSpread(attribute.argument)\n )\n\nconst noInteractiveWrappers: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Generic elements dressed as interactive controls — an interactive role, a click handler or a tabindex on a layout element — re-implement a primitive by hand. Compose the real component.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n allow: { type: 'array', items: { type: 'string' } },\n rejectUnknownSpreads: { type: 'boolean' },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n roleWrapper:\n 'A {{element}} with role=\"{{role}}\" hand-builds {{primitive}}: use {{primitive}} from {{path}}. The primitive brings keyboard activation, focus behaviour and ARIA wiring; the wrapper re-implements them badly.',\n clickWrapper:\n 'A click handler on {{element}} composes {{primitive}} by hand: use {{primitive}} from {{path}}. A div that reacts to clicks is a button that cannot be reached by keyboard.',\n tabindexWrapper:\n 'A tabindex on {{element}} makes a layout element focusable, which is focus management the primitives already own: compose the real component instead.',\n opaqueSpreadWrapper:\n 'A spread on {{element}} may hide a role, activation handler, or tab stop. Pass statically named props or compose the shared component instead.',\n opaqueDynamicComponentWrapper:\n 'An opaque spread follows a known raw design-system or generic tag on Solid Dynamic and may replace the tag or hide interactive props. Pass statically named props or a shared component so the interaction rule can inspect the final component.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as InteractiveWrapperOptions\n const allowed = new Set(options.allow ?? [])\n const dynamicImports: SolidDynamicImports = {\n named: new WeakSet(),\n namespaces: new WeakSet(),\n }\n return {\n Program(node: any) {\n collectSolidDynamicImports(node, dynamicImports)\n },\n JSXOpeningElement(node: any) {\n if (options.rejectUnknownSpreads && isSolidDynamic(node.name, dynamicImports, context)) {\n const resolution = dynamicComponentResolution(node, context)\n if (resolution.opaqueAfterKnownIntrinsic) {\n context.report({\n node,\n messageId: 'opaqueDynamicComponentWrapper',\n ...(options.message ? { message: options.message } : {}),\n })\n return\n }\n }\n\n for (const element of jsxElementNames(node, dynamicImports, context)) {\n if (allowed.has(element) || element in ELEMENT_PRIMITIVES) continue\n // Capitalized JSX components are composed controls, not raw elements.\n // Solid Dynamic is resolved above only when its component is a known tag.\n if (element[0] === element[0]?.toUpperCase()) continue\n if (!GENERIC_ELEMENTS.has(element)) continue\n\n if (options.rejectUnknownSpreads && hasOpaqueSpread(node)) {\n context.report({\n node,\n messageId: 'opaqueSpreadWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n break\n }\n\n const role = roleOf(node, context)\n if (role && role in ROLE_PRIMITIVES) {\n const target = ROLE_PRIMITIVES[role]!\n context.report({\n node,\n messageId: 'roleWrapper',\n data: { element, role, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n\n const click = [...CLICK_HANDLERS].find((handler) => has(node, handler))\n if (click) {\n const target = ROLE_PRIMITIVES.button!\n context.report({\n node,\n messageId: 'clickWrapper',\n data: { element, primitive: target.primitive, path: target.path },\n ...(options.message ? { message: options.message } : {}),\n })\n continue\n }\n if (hasTabStop(node))\n context.report({\n node,\n messageId: 'tabindexWrapper',\n data: { element },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n },\n }\n },\n}\n\nconst BUTTON_MODULE = '@adea-ai/ui/components/ui/button'\nconst ACTION_BUTTON_MODULE = '@adea-ai/ui/components/composites/action-button'\nconst ICON_BUTTON_SIZES: ReadonlySet<string> = new Set([\n 'icon-2xs',\n 'icon-xs',\n 'icon-sm',\n 'icon-md',\n 'icon-lg',\n 'icon-xl',\n 'icon-2xl',\n])\n\nconst staticJsxValues = (value: any): any[] =>\n value?.type === 'JSXExpressionContainer' ? [value.expression] : value ? [value] : []\n\nconst attributeValues = (node: any, name: string): any[] => {\n const values: any[] = []\n for (const attribute of node.attributes ?? []) {\n if (attribute.type === 'JSXAttribute' && attribute.name?.name === name)\n values.splice(0, values.length, ...staticJsxValues(attribute.value))\n if (attribute.type === 'JSXSpreadAttribute') {\n const spreadValues = staticObjectPropertyValues(attribute.argument, name)\n if (spreadValues.length > 0) values.splice(0, values.length, spreadValues.at(-1))\n }\n }\n return values\n}\n\nconst staticStringValue = (node: any): string | null => {\n if (node?.type === 'Literal' && typeof node.value === 'string') return node.value\n if (node?.type === 'TemplateLiteral' && node.expressions.length === 0)\n return node.quasis[0].value.cooked ?? node.quasis[0].value.raw\n return null\n}\n\ninterface ImportedJsxBindings {\n named: WeakSet<object>\n namespaces: WeakSet<object>\n}\n\nconst isImportedJsxComponent = (\n name: any,\n imports: ImportedJsxBindings,\n context: LintContext,\n namespaceExport?: string\n): boolean => {\n if (name?.type === 'JSXIdentifier' || name?.type === 'Identifier')\n return isImportedBinding(name, imports.named, context)\n const memberName = name?.property?.name\n return (\n (name?.type === 'JSXMemberExpression' || name?.type === 'MemberExpression') &&\n (name.object?.type === 'JSXIdentifier' || name.object?.type === 'Identifier') &&\n (name.property?.type === 'JSXIdentifier' || name.property?.type === 'Identifier') &&\n (namespaceExport ? memberName === namespaceExport : /^[A-Z]/.test(memberName ?? '')) &&\n isImportedBinding(name.object, imports.namespaces, context)\n )\n}\n\ntype IconChildKind = 'empty' | 'icon' | 'text' | 'unknown'\n\nconst CONTENT_OVERRIDE_PROPS = new Set([\n 'children',\n 'dangerouslySetInnerHTML',\n 'innerHTML',\n 'textContent',\n])\n\n/** Opaque spreads and objects containing content props may override children. */\nconst spreadMayOverrideContent = (argument: any): boolean => {\n while (\n argument?.type === 'TSAsExpression' ||\n argument?.type === 'TSSatisfiesExpression' ||\n argument?.type === 'TSNonNullExpression'\n )\n argument = argument.expression\n if (argument?.type !== 'ObjectExpression') return true\n return argument.properties.some((property: any) => {\n if (property.type !== 'Property') return true\n const key = staticPropertyKey(property.key, property.computed === true)\n return key === null || CONTENT_OVERRIDE_PROPS.has(key)\n })\n}\n\nconst hasContentOverride = (openingElement: any): boolean =>\n (openingElement?.attributes ?? []).some((attribute: any) => {\n if (attribute.type === 'JSXSpreadAttribute') return spreadMayOverrideContent(attribute.argument)\n return (\n attribute.type === 'JSXAttribute' &&\n attribute.name?.type === 'JSXIdentifier' &&\n CONTENT_OVERRIDE_PROPS.has(attribute.name.name)\n )\n })\n\nconst iconChildrenKind = (\n children: any[],\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n let hasIcon = false\n for (const child of children) {\n const kind = iconChildKind(child, icons, context)\n if (kind === 'text' || kind === 'unknown') return kind\n if (kind === 'icon') hasIcon = true\n }\n return hasIcon ? 'icon' : 'empty'\n}\n\nconst SVG_TEXT_CONTAINERS = new Set(['text', 'foreignObject'])\n\n/** A raw SVG may be labelled or contain dynamic text instead of an icon. */\nconst svgMayContainVisibleText = (children: any[]): boolean => {\n for (const child of children) {\n if (!child) return true\n if (child.type === 'JSXText') {\n if (String(child.value ?? '').trim()) return true\n continue\n }\n if (child.type === 'JSXFragment') {\n if (svgMayContainVisibleText(child.children ?? [])) return true\n continue\n }\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') continue\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment') {\n if (\n svgMayContainVisibleText(\n expression.type === 'JSXElement' ? [expression] : (expression.children ?? [])\n )\n )\n return true\n continue\n }\n const text = staticStringValue(expression)\n if (text !== null) {\n if (text.trim()) return true\n continue\n }\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n continue\n return true\n }\n if (child.type !== 'JSXElement') return true\n\n const name = child.openingElement?.name\n if (name?.type !== 'JSXIdentifier') return true\n if (SVG_TEXT_CONTAINERS.has(name.name)) return true\n if (hasContentOverride(child.openingElement)) return true\n if (name.name === 'title' || name.name === 'desc') continue\n if (!/^[a-z]/.test(name.name) || name.name.includes('-')) return true\n if (svgMayContainVisibleText(child.children ?? [])) return true\n }\n return false\n}\n\n/**\n * Proves only the uncomplicated icon-only forms that can be read without\n * executing Solid expressions: imported Lucide components, raw SVG, fragments,\n * whitespace, and spans that contain only those forms.\n */\nconst iconChildKind = (\n child: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): IconChildKind => {\n if (!child) return 'unknown'\n if (child.type === 'JSXText') return String(child.value ?? '').trim() ? 'text' : 'empty'\n if (child.type === 'JSXFragment') return iconChildrenKind(child.children ?? [], icons, context)\n if (child.type === 'JSXExpressionContainer') {\n const expression = child.expression\n if (!expression || expression.type === 'JSXEmptyExpression') return 'empty'\n if (expression.type === 'JSXElement' || expression.type === 'JSXFragment')\n return iconChildKind(expression, icons, context)\n const text = staticStringValue(expression)\n if (text !== null) return text.trim() ? 'text' : 'empty'\n if (\n expression.type === 'Literal' &&\n (expression.value === null || typeof expression.value === 'boolean')\n )\n return 'empty'\n if (expression.type === 'Literal' && typeof expression.value === 'number') return 'text'\n return 'unknown'\n }\n if (child.type !== 'JSXElement') return 'unknown'\n\n const name = child.openingElement?.name\n if (name?.type === 'JSXIdentifier' && name.name === 'svg')\n return hasContentOverride(child.openingElement) ||\n svgMayContainVisibleText(child.children ?? [])\n ? 'unknown'\n : 'icon'\n if (isImportedJsxComponent(name, icons, context))\n return hasContentOverride(child.openingElement) ? 'unknown' : 'icon'\n if (name?.type === 'JSXIdentifier' && name.name === 'span') {\n if (hasContentOverride(child.openingElement)) return 'unknown'\n return iconChildrenKind(child.children ?? [], icons, context)\n }\n return 'unknown'\n}\n\nconst hasStaticallyIconOnlyChildren = (\n node: any,\n icons: ImportedJsxBindings,\n context: LintContext\n): boolean => {\n return (\n !hasContentOverride(node.openingElement) &&\n iconChildrenKind(node.children ?? [], icons, context) === 'icon'\n )\n}\n\nconst isIconButtonSize = (node: any): boolean =>\n attributeValues(node, 'size').some((value) => {\n const size = staticStringValue(value)\n return size !== null && ICON_BUTTON_SIZES.has(size)\n })\n\nconst actionTooltipStatus = (node: any): 'valid' | 'blank' | 'unknown' | 'missing' => {\n const values = attributeValues(node, 'tooltip')\n if (values.length === 0) return 'missing'\n const strings = values.map(staticStringValue)\n if (strings.some((value) => value !== null && value.trim().length > 0)) return 'valid'\n if (strings.every((value) => value !== null)) return 'blank'\n return 'unknown'\n}\n\n/** Requires shared icon actions to carry the shared explanatory-tooltip contract. */\nconst requireActionButtonTooltip: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'Icon-sized shared Buttons and statically proven icon-only Buttons use ActionButton with a tooltip; icon-only ActionButtons need one too.',\n },\n schema: [],\n messages: {\n useActionButton:\n 'Icon-size or icon-only Button actions must use ActionButton with a nonblank tooltip. Keep the control name in aria-label; the tooltip explains the action.',\n missingTooltip:\n 'An icon-size or icon-only ActionButton needs a supplied nonblank tooltip. Keep its accessible name in aria-label as well.',\n },\n },\n create(context) {\n const buttons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const actionButtons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const icons: ImportedJsxBindings = { named: new WeakSet(), namespaces: new WeakSet() }\n const recordImports = (node: any) => {\n const source = node.source?.value\n const target =\n source === BUTTON_MODULE ? buttons : source === ACTION_BUTTON_MODULE ? actionButtons : null\n if (source === 'lucide-solid') {\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (!specifier.local || specifier.importKind === 'type') continue\n if (specifier.type === 'ImportNamespaceSpecifier') icons.namespaces.add(specifier.local)\n else if (specifier.type === 'ImportSpecifier') {\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (typeof imported === 'string' && /^[A-Z]/.test(imported))\n icons.named.add(specifier.local)\n }\n }\n return\n }\n if (!target) return\n if (node.importKind === 'type') return\n for (const specifier of node.specifiers ?? []) {\n if (specifier.type === 'ImportNamespaceSpecifier' && specifier.local) {\n target.namespaces.add(specifier.local)\n continue\n }\n if (\n specifier.type !== 'ImportSpecifier' ||\n !specifier.local ||\n specifier.importKind === 'type'\n )\n continue\n const imported = specifier.imported?.name ?? specifier.imported?.value\n if (\n (source === BUTTON_MODULE && imported === 'Button') ||\n (source === ACTION_BUTTON_MODULE && imported === 'ActionButton')\n )\n target.named.add(specifier.local)\n }\n }\n\n return {\n Program(node: any) {\n for (const statement of node.body ?? [])\n if (statement.type === 'ImportDeclaration') recordImports(statement)\n },\n JSXElement(node: any) {\n const opening = node.openingElement\n const isButton = isImportedJsxComponent(opening.name, buttons, context, 'Button')\n const isActionButton = isImportedJsxComponent(\n opening.name,\n actionButtons,\n context,\n 'ActionButton'\n )\n const asValues = attributeValues(opening, 'as')\n const targetsButton = asValues.some((value) =>\n isImportedJsxComponent(value, buttons, context, 'Button')\n )\n const targetsActionButton = asValues.some((value) =>\n isImportedJsxComponent(value, actionButtons, context, 'ActionButton')\n )\n if (!isButton && !isActionButton && !targetsButton && !targetsActionButton) return\n const iconSized = isIconButtonSize(opening)\n if (!iconSized && !hasStaticallyIconOnlyChildren(node, icons, context)) return\n if (isButton || targetsButton) {\n context.report({ node: opening, messageId: 'useActionButton' })\n return\n }\n if (!isActionButton && !targetsActionButton) return\n const status = actionTooltipStatus(opening)\n if (status === 'missing' || status === 'blank')\n context.report({ node: opening, messageId: 'missingTooltip' })\n },\n }\n },\n}\n\nconst noPrimitiveLibraryImports: RuleModule = {\n meta: {\n type: 'problem',\n docs: {\n description:\n 'The primitive libraries the design system is built on (Kobalte and friends) are its internal affair — compose the exported components instead of importing the primitives.',\n },\n schema: [\n {\n type: 'object',\n properties: {\n packages: { type: 'array', items: { type: 'string' } },\n message: { type: 'string' },\n },\n additionalProperties: false,\n },\n ],\n messages: {\n primitiveImport:\n 'Import from the design system, not from {{package}}: the primitives it wraps carry the focus, keyboard and ARIA behaviour the components exist to provide.',\n },\n },\n create(context) {\n const options = (context.options?.[0] ?? {}) as PrimitiveImportOptions\n const prefixes = options.packages ?? DEFAULT_PRIMITIVE_PACKAGES\n const offender = (source: unknown): string | null => {\n const name = String(source ?? '')\n return prefixes.find((prefix) => name === prefix || name.startsWith(`${prefix}/`)) ?? null\n }\n const report = (node: unknown, source: unknown) => {\n const pkg = offender(source)!\n context.report({\n node,\n messageId: 'primitiveImport',\n data: { package: pkg },\n ...(options.message ? { message: options.message } : {}),\n })\n }\n return {\n ImportDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ImportExpression(node: any) {\n if (typeof node.source?.value === 'string' && offender(node.source.value))\n report(node, node.source.value)\n },\n ExportNamedDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n ExportAllDeclaration(node: any) {\n if (offender(node.source?.value)) report(node, node.source.value)\n },\n CallExpression(node: any) {\n if (node.callee?.type !== 'Identifier' || node.callee.name !== 'require') return\n const source = node.arguments?.[0]?.value\n if (typeof source === 'string' && offender(source)) report(node, source)\n },\n }\n },\n}\n\nconst plugin = {\n meta: { name: 'adea' },\n rules: {\n 'no-inline-styles': noInlineStyles,\n 'no-class-list': noClassList,\n 'no-raw-interactive-elements': noRawInteractiveElements,\n 'no-primitive-library-imports': noPrimitiveLibraryImports,\n 'no-interactive-wrappers': noInteractiveWrappers,\n 'require-action-button-tooltip': requireActionButtonTooltip,\n },\n}\n\nexport default plugin\n"],"mappings":";;AAsBA,IAAM,qBACJ,OAAO,OAAO;CACZ,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;CACrE,UAAU;EAAE,WAAW;EAAY,MAAM;CAAqC;CAC9E,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,QAAQ;EAAE,WAAW;EAAU,MAAM;CAAmC;CACxE,OAAO;EAAE,WAAW;EAAS,MAAM;CAAkC;AACvE,CAAC;AAmCH,IAAM,cAAc,MAAW,YAA8C;CAC3E,IAAI,MAAM,SAAS,gBAAgB,MAAM,SAAS,iBAAiB,OAAO;CAC1E,KAAK,IAAI,QAAQ,QAAQ,YAAY,WAAW,IAAI,GAAG,OAAO,QAAQ,MAAM,OAAO;EACjF,MAAM,WAAW,MAAM,KAAK,IAAI,KAAK,IAAI;EACzC,IAAI,UAAU,OAAO;CACvB;CACA,OAAO;AACT;;AAGA,IAAM,qBAAqB,MAAW,aAAqC;CACzE,IAAI,CAAC,YAAY,MAAM,SAAS,cAAc,OAAO,KAAK;C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