@medway-ui/core 1.8.0 → 1.9.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.
@@ -310,6 +310,12 @@
310
310
  --color-content-paragraph: var(--color-gray-600);
311
311
  --color-content-link: var(--color-secondary-darken-2);
312
312
 
313
+ /* === Base state colors === */
314
+ --color-state-hover: var(--color-gray-50);
315
+ --color-state-focus: var(--color-gray-70);
316
+ --color-state-active: var(--color-primary-16);
317
+ --color-state-error: var(--color-red-16);
318
+
313
319
  /* === Base surfacecolors === */
314
320
  --color-surface-elevated: var(--color-white);
315
321
  --color-surface-card: var(--color-white);
@@ -584,6 +590,12 @@
584
590
  --color-input: var(--color-gray-600);
585
591
  --color-ring: var(--color-gray-500);
586
592
 
593
+ /* === Dark state colors === */
594
+ --color-state-hover: var(--color-gray-800);
595
+ --color-state-focus: var(--color-gray-700);
596
+ --color-state-active: var(--color-white-16);
597
+ --color-state-error: var(--color-red-16);
598
+
587
599
  /* === Base content colors === */
588
600
  --color-content-title: var(--color-white);
589
601
  --color-content-paragraph: var(--color-gray-150);
@@ -14,6 +14,12 @@ export const colors = {
14
14
  paragraph: "var(--color-content-paragraph)",
15
15
  link: "var(--color-content-link)",
16
16
  },
17
+ state: {
18
+ hover: "var(--color-state-hover)",
19
+ focus: "var(--color-state-focus)",
20
+ active: "var(--color-state-active)",
21
+ error: "var(--color-state-error)",
22
+ },
17
23
  surface: {
18
24
  elevated: "var(--color-surface-elevated)",
19
25
  card: "var(--color-surface-card)",
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { AlertDialog as AlertDialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, ScrollArea as ScrollArea$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1 } from 'radix-ui';
5
+ import { AlertDialog as AlertDialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1 } from 'radix-ui';
6
6
 
7
7
  interface AlertProps extends React.ComponentProps<"div"> {
8
8
  variant?: "regular" | "emphasis" | "success" | "warning" | "error";
@@ -189,6 +189,14 @@ declare function DropdownMenuSubContent({ className, ...props }: React.Component
189
189
 
190
190
  declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
191
191
 
192
+ declare const labelVariants: (props?: ({
193
+ variant?: "regular" | null | undefined;
194
+ size?: "sm" | "md" | "lg" | null | undefined;
195
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
196
+ interface LabelProps extends React.ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
197
+ }
198
+ declare function Label({ className, variant, size, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
199
+
192
200
  interface LoadingProps {
193
201
  size?: number;
194
202
  className?: string;
@@ -241,6 +249,15 @@ declare function PaginationEllipsis({ className, size, ...props }: React.Compone
241
249
  }): react_jsx_runtime.JSX.Element;
242
250
  declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
243
251
 
252
+ declare const radioGroupVariants: (props?: ({
253
+ variant?: "regular" | null | undefined;
254
+ size?: "sm" | "md" | "lg" | null | undefined;
255
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
256
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
257
+ interface RadioGroupItemProps extends React.ComponentProps<typeof RadioGroup$1.Item>, VariantProps<typeof radioGroupVariants> {
258
+ }
259
+ declare function RadioGroupItem({ className, size, variant, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
260
+
244
261
  interface RankingProps extends React.TableHTMLAttributes<HTMLTableElement> {
245
262
  children?: React.ReactNode;
246
263
  }
@@ -519,4 +536,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
519
536
 
520
537
  declare function useIsMobile(): boolean;
521
538
 
522
- export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CardWeek, CardWeekActions, CardWeekBreadcrumb, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, CardWeekStatus, CardWeekTags, CardWeekText, CardWeekTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, Progress, ProgressCircle, Ranking, RankingAssigneeGroup, RankingAssigneeItem, RankingAssigneeLabel, RankingAssigneesColumn, RankingButton, RankingItem, RankingNumber, RankingPercentage, RankingPriority, RankingSpecialty, RankingSuperFocus, RankingTopic, RankingTopicColumn, RankingTopicContent, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, tabsListVariants, tabsTriggerVariants, tagVariants, useIsMobile, useSidebar, useTabsContext };
539
+ export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CardWeek, CardWeekActions, CardWeekBreadcrumb, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, CardWeekStatus, CardWeekTags, CardWeekText, CardWeekTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, Progress, ProgressCircle, RadioGroup, RadioGroupItem, Ranking, RankingAssigneeGroup, RankingAssigneeItem, RankingAssigneeLabel, RankingAssigneesColumn, RankingButton, RankingItem, RankingNumber, RankingPercentage, RankingPriority, RankingSpecialty, RankingSuperFocus, RankingTopic, RankingTopicColumn, RankingTopicContent, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, tabsListVariants, tabsTriggerVariants, tagVariants, useIsMobile, useSidebar, useTabsContext };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { AlertDialog as AlertDialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, ScrollArea as ScrollArea$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1 } from 'radix-ui';
5
+ import { AlertDialog as AlertDialog$1, Avatar as Avatar$1, Progress as Progress$1, Collapsible as Collapsible$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1 } from 'radix-ui';
6
6
 
7
7
  interface AlertProps extends React.ComponentProps<"div"> {
8
8
  variant?: "regular" | "emphasis" | "success" | "warning" | "error";
@@ -189,6 +189,14 @@ declare function DropdownMenuSubContent({ className, ...props }: React.Component
189
189
 
190
190
  declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
191
191
 
192
+ declare const labelVariants: (props?: ({
193
+ variant?: "regular" | null | undefined;
194
+ size?: "sm" | "md" | "lg" | null | undefined;
195
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
196
+ interface LabelProps extends React.ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
197
+ }
198
+ declare function Label({ className, variant, size, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
199
+
192
200
  interface LoadingProps {
193
201
  size?: number;
194
202
  className?: string;
@@ -241,6 +249,15 @@ declare function PaginationEllipsis({ className, size, ...props }: React.Compone
241
249
  }): react_jsx_runtime.JSX.Element;
242
250
  declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
243
251
 
252
+ declare const radioGroupVariants: (props?: ({
253
+ variant?: "regular" | null | undefined;
254
+ size?: "sm" | "md" | "lg" | null | undefined;
255
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
256
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
257
+ interface RadioGroupItemProps extends React.ComponentProps<typeof RadioGroup$1.Item>, VariantProps<typeof radioGroupVariants> {
258
+ }
259
+ declare function RadioGroupItem({ className, size, variant, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
260
+
244
261
  interface RankingProps extends React.TableHTMLAttributes<HTMLTableElement> {
245
262
  children?: React.ReactNode;
246
263
  }
@@ -519,4 +536,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
519
536
 
520
537
  declare function useIsMobile(): boolean;
521
538
 
522
- export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CardWeek, CardWeekActions, CardWeekBreadcrumb, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, CardWeekStatus, CardWeekTags, CardWeekText, CardWeekTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, Progress, ProgressCircle, Ranking, RankingAssigneeGroup, RankingAssigneeItem, RankingAssigneeLabel, RankingAssigneesColumn, RankingButton, RankingItem, RankingNumber, RankingPercentage, RankingPriority, RankingSpecialty, RankingSuperFocus, RankingTopic, RankingTopicColumn, RankingTopicContent, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, tabsListVariants, tabsTriggerVariants, tagVariants, useIsMobile, useSidebar, useTabsContext };
539
+ export { Alert, AlertActions, AlertButton, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CardWeek, CardWeekActions, CardWeekBreadcrumb, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, CardWeekStatus, CardWeekTags, CardWeekText, CardWeekTitle, Collapsible, CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, Loading, Logo, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot, Progress, ProgressCircle, RadioGroup, RadioGroupItem, Ranking, RankingAssigneeGroup, RankingAssigneeItem, RankingAssigneeLabel, RankingAssigneesColumn, RankingButton, RankingItem, RankingNumber, RankingPercentage, RankingPriority, RankingSpecialty, RankingSuperFocus, RankingTopic, RankingTopicColumn, RankingTopicContent, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, SegmentControlTrigger, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Tile, TileDescription, TileIcon, TileTitle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, tabsListVariants, tabsTriggerVariants, tagVariants, useIsMobile, useSidebar, useTabsContext };