@medway-ui/core 1.8.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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";
@@ -161,7 +161,10 @@ declare function DialogHeader({ className, separator, ...props }: React.Componen
161
161
  declare function DialogFooter({ className, separator, ...props }: React.ComponentProps<"div"> & {
162
162
  separator?: boolean;
163
163
  }): react_jsx_runtime.JSX.Element;
164
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
164
+ declare function DialogTitle({ className, iconLeft, iconRight, children, ...props }: React.ComponentProps<typeof Dialog$1.Title> & {
165
+ iconLeft?: React.ReactNode;
166
+ iconRight?: React.ReactNode;
167
+ }): react_jsx_runtime.JSX.Element;
165
168
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
166
169
 
167
170
  declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
@@ -189,6 +192,14 @@ declare function DropdownMenuSubContent({ className, ...props }: React.Component
189
192
 
190
193
  declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
191
194
 
195
+ declare const labelVariants: (props?: ({
196
+ variant?: "regular" | null | undefined;
197
+ size?: "sm" | "md" | "lg" | null | undefined;
198
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
199
+ interface LabelProps extends React.ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
200
+ }
201
+ declare function Label({ className, variant, size, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
202
+
192
203
  interface LoadingProps {
193
204
  size?: number;
194
205
  className?: string;
@@ -241,6 +252,15 @@ declare function PaginationEllipsis({ className, size, ...props }: React.Compone
241
252
  }): react_jsx_runtime.JSX.Element;
242
253
  declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
243
254
 
255
+ declare const radioGroupVariants: (props?: ({
256
+ variant?: "regular" | null | undefined;
257
+ size?: "sm" | "md" | "lg" | null | undefined;
258
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
259
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
260
+ interface RadioGroupItemProps extends React.ComponentProps<typeof RadioGroup$1.Item>, VariantProps<typeof radioGroupVariants> {
261
+ }
262
+ declare function RadioGroupItem({ className, size, variant, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
263
+
244
264
  interface RankingProps extends React.TableHTMLAttributes<HTMLTableElement> {
245
265
  children?: React.ReactNode;
246
266
  }
@@ -519,4 +539,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
519
539
 
520
540
  declare function useIsMobile(): boolean;
521
541
 
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 };
542
+ 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";
@@ -161,7 +161,10 @@ declare function DialogHeader({ className, separator, ...props }: React.Componen
161
161
  declare function DialogFooter({ className, separator, ...props }: React.ComponentProps<"div"> & {
162
162
  separator?: boolean;
163
163
  }): react_jsx_runtime.JSX.Element;
164
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
164
+ declare function DialogTitle({ className, iconLeft, iconRight, children, ...props }: React.ComponentProps<typeof Dialog$1.Title> & {
165
+ iconLeft?: React.ReactNode;
166
+ iconRight?: React.ReactNode;
167
+ }): react_jsx_runtime.JSX.Element;
165
168
  declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
166
169
 
167
170
  declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
@@ -189,6 +192,14 @@ declare function DropdownMenuSubContent({ className, ...props }: React.Component
189
192
 
190
193
  declare function Input({ className, type, ...props }: React.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
191
194
 
195
+ declare const labelVariants: (props?: ({
196
+ variant?: "regular" | null | undefined;
197
+ size?: "sm" | "md" | "lg" | null | undefined;
198
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
199
+ interface LabelProps extends React.ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
200
+ }
201
+ declare function Label({ className, variant, size, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
202
+
192
203
  interface LoadingProps {
193
204
  size?: number;
194
205
  className?: string;
@@ -241,6 +252,15 @@ declare function PaginationEllipsis({ className, size, ...props }: React.Compone
241
252
  }): react_jsx_runtime.JSX.Element;
242
253
  declare function Pagination({ currentPage, totalPages, maxVisibleItems, onPageChange, itemsPerPage, totalItems, className, responsive, size, }: PaginationProps): react_jsx_runtime.JSX.Element;
243
254
 
255
+ declare const radioGroupVariants: (props?: ({
256
+ variant?: "regular" | null | undefined;
257
+ size?: "sm" | "md" | "lg" | null | undefined;
258
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
259
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime.JSX.Element;
260
+ interface RadioGroupItemProps extends React.ComponentProps<typeof RadioGroup$1.Item>, VariantProps<typeof radioGroupVariants> {
261
+ }
262
+ declare function RadioGroupItem({ className, size, variant, ...props }: RadioGroupItemProps): react_jsx_runtime.JSX.Element;
263
+
244
264
  interface RankingProps extends React.TableHTMLAttributes<HTMLTableElement> {
245
265
  children?: React.ReactNode;
246
266
  }
@@ -519,4 +539,4 @@ declare function TileDescription({ className, ...props }: React.ComponentProps<"
519
539
 
520
540
  declare function useIsMobile(): boolean;
521
541
 
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 };
542
+ 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 };