@polastack/design-system 0.1.7 → 0.1.8

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/index.d.ts CHANGED
@@ -697,21 +697,30 @@ declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProp
697
697
  */
698
698
  /** Ordered color series for chart data — distinct, accessible, brand-consistent. */
699
699
  declare const chartColors: {
700
- /** Primary data series palette (use in order for multi-series charts) */
701
- readonly series: readonly ["#1BA491", "#3b82f6", "#f59e0b", "#ef4444", "#22c55e", "#61ebd0", "#93c5fd", "#fcd34d"];
700
+ /**
701
+ * Primary data series palette (use in order for multi-series charts).
702
+ * Uses 400-level tones for a softer, more cohesive look in filled areas
703
+ * (bars, pie slices, etc.). Brand teal stays at 500 as the anchor.
704
+ */
705
+ readonly series: readonly ["#1BA491", "#60a5fa", "#a1a1aa", "#fbbf24", "#4ade80", "#fca5a5", "#61ebd0", "#93c5fd"];
706
+ /**
707
+ * Stronger series — for line charts and small marks (dots, strokes)
708
+ * where higher contrast is needed against the background.
709
+ */
710
+ readonly stroke: readonly ["#138575", "#2563eb", "#71717a", "#d97706", "#16a34a", "#ef4444", "#146b5f", "#1d4ed8"];
702
711
  /** Semantic colors for status-based charts */
703
712
  readonly semantic: {
704
- readonly positive: "#22c55e";
705
- readonly negative: "#ef4444";
713
+ readonly positive: "#4ade80";
714
+ readonly negative: "#f87171";
706
715
  readonly neutral: "#a1a1aa";
707
- readonly warning: "#f59e0b";
708
- readonly info: "#3b82f6";
716
+ readonly warning: "#fbbf24";
717
+ readonly info: "#60a5fa";
709
718
  readonly primary: "#1BA491";
710
719
  };
711
- /** Light fills for area/background (light mode) */
712
- readonly areaLight: readonly ["#cdfbf0", "#dbeafe", "#fef3c7", "#fee2e2", "#dcfce7"];
720
+ /** Light fills for area/background (light mode) — very subtle */
721
+ readonly areaLight: readonly ["#f0fdfb", "#eff6ff", "#f4f4f5", "#fffbeb", "#f0fdf4"];
713
722
  /** Dark fills for area/background (dark mode) */
714
- readonly areaDark: readonly ["#134841", "#1e3a8a", "#78350f", "#7f1d1d", "#14532d"];
723
+ readonly areaDark: readonly ["#042c28", "#172554", "#27272a", "#451a03", "#052e16"];
715
724
  /** Grid and axis colors (use CSS variables for dark mode compatibility) */
716
725
  readonly grid: {
717
726
  readonly light: "#e4e4e7";
@@ -724,6 +733,7 @@ declare const chartColors: {
724
733
  };
725
734
  };
726
735
  type ChartColorSeries = typeof chartColors.series;
736
+ type ChartStrokeColors = typeof chartColors.stroke;
727
737
  type ChartSemanticColors = typeof chartColors.semantic;
728
738
 
729
- export { ActiveFilters, type ActiveFiltersProps, AppShell, AppShellContent, AppShellFooter, AppShellHeader, type AppShellProps, AppShellSidebar, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStatus, type AvatarStatusProps, type AvatarStatusType, BREAKPOINTS, Badge, type BadgeProps, BottomNavigation, BottomNavigationItem, type BottomNavigationItemProps, type BottomNavigationProps, type Breakpoint, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartColorSeries, ChartContainer, type ChartContainerProps, type ChartSemanticColors, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, type CommandPaletteGroupProps, CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteProps, CommandPaletteSeparator, CommandPaletteShortcut, DataTable, DataTableColumnHeader, DataTablePagination, type DataTableProps, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, type DisplayMode, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFormField, type DynamicFormFieldProps, EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, type EmptyStateProps, EmptyStateTitle, type FieldOption, type FieldType, FilterBar, FilterBarActions, FilterBarGroup, FilterChip, type FilterChipProps, FormActions, type FormActionsProps, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormLayout, type FormLayoutProps, FormMessage, type FormMessageProps, FormSection, type FormSectionProps, Input, type InputProps, InstallPrompt, type InstallPromptProps, Label, type LabelProps, NumberInput, type NumberInputProps, OfflineIndicator, type OfflineIndicatorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PullToRefresh, type PullToRefreshProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedTheme, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatCard, type StatCardProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseThemeOptions, type UseThemeReturn, avatarVariants, badgeVariants, buttonVariants, chartColors, cn, createContext, formLayoutVariants, getFieldComponent, inputVariants, spinnerVariants, switchVariants, textareaVariants, toast, toastVariants, useAppShell, useBreakpoint, useDisplayMode, useFormField, useInstallPrompt, useOnlineStatus, useTheme$1 as useTheme, useTheme as useThemeContext, useToast, useViewportHeight };
739
+ export { ActiveFilters, type ActiveFiltersProps, AppShell, AppShellContent, AppShellFooter, AppShellHeader, type AppShellProps, AppShellSidebar, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, AvatarStatus, type AvatarStatusProps, type AvatarStatusType, BREAKPOINTS, Badge, type BadgeProps, BottomNavigation, BottomNavigationItem, type BottomNavigationItemProps, type BottomNavigationProps, type Breakpoint, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartColorSeries, ChartContainer, type ChartContainerProps, type ChartSemanticColors, type ChartStrokeColors, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, CommandPalette, CommandPaletteEmpty, CommandPaletteGroup, type CommandPaletteGroupProps, CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteProps, CommandPaletteSeparator, CommandPaletteShortcut, DataTable, DataTableColumnHeader, DataTablePagination, type DataTableProps, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogTitle, DialogTrigger, type DisplayMode, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFormField, type DynamicFormFieldProps, EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, type EmptyStateProps, EmptyStateTitle, type FieldOption, type FieldType, FilterBar, FilterBarActions, FilterBarGroup, FilterChip, type FilterChipProps, FormActions, type FormActionsProps, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormLayout, type FormLayoutProps, FormMessage, type FormMessageProps, FormSection, type FormSectionProps, Input, type InputProps, InstallPrompt, type InstallPromptProps, Label, type LabelProps, NumberInput, type NumberInputProps, OfflineIndicator, type OfflineIndicatorProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PullToRefresh, type PullToRefreshProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type ResolvedTheme, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatCard, type StatCardProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, Textarea, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseThemeOptions, type UseThemeReturn, avatarVariants, badgeVariants, buttonVariants, chartColors, cn, createContext, formLayoutVariants, getFieldComponent, inputVariants, spinnerVariants, switchVariants, textareaVariants, toast, toastVariants, useAppShell, useBreakpoint, useDisplayMode, useFormField, useInstallPrompt, useOnlineStatus, useTheme$1 as useTheme, useTheme as useThemeContext, useToast, useViewportHeight };
package/dist/index.js CHANGED
@@ -3757,49 +3757,75 @@ ChartContainer.displayName = "ChartContainer";
3757
3757
 
3758
3758
  // src/tokens/chart-theme.ts
3759
3759
  var chartColors = {
3760
- /** Primary data series palette (use in order for multi-series charts) */
3760
+ /**
3761
+ * Primary data series palette (use in order for multi-series charts).
3762
+ * Uses 400-level tones for a softer, more cohesive look in filled areas
3763
+ * (bars, pie slices, etc.). Brand teal stays at 500 as the anchor.
3764
+ */
3761
3765
  series: [
3762
3766
  colors.primary[500],
3763
- // #1BA491 teal
3764
- colors.info[500],
3765
- // #3b82f6 blue
3766
- colors.warning[500],
3767
- // #f59e0b amber
3768
- colors.error[500],
3769
- // #ef4444 red
3770
- colors.success[500],
3771
- // #22c55e green
3767
+ // #1BA491 brand teal (anchor)
3768
+ colors.info[400],
3769
+ // #60a5fa soft blue
3770
+ colors.neutral[400],
3771
+ // #a1a1aa muted gray
3772
+ colors.warning[400],
3773
+ // #fbbf24 soft amber
3774
+ colors.success[400],
3775
+ // #4ade80 soft green
3776
+ colors.error[300],
3777
+ // #fca5a5 soft coral
3772
3778
  colors.primary[300],
3773
3779
  // #61ebd0 light teal
3774
- colors.info[300],
3780
+ colors.info[300]
3775
3781
  // #93c5fd light blue
3776
- colors.warning[300]
3777
- // #fcd34d light amber
3782
+ ],
3783
+ /**
3784
+ * Stronger series — for line charts and small marks (dots, strokes)
3785
+ * where higher contrast is needed against the background.
3786
+ */
3787
+ stroke: [
3788
+ colors.primary[600],
3789
+ // #138575 deep teal
3790
+ colors.info[600],
3791
+ // #2563eb deep blue
3792
+ colors.neutral[500],
3793
+ // #71717a medium gray
3794
+ colors.warning[600],
3795
+ // #d97706 deep amber
3796
+ colors.success[600],
3797
+ // #16a34a deep green
3798
+ colors.error[500],
3799
+ // #ef4444 red
3800
+ colors.primary[700],
3801
+ // #146b5f dark teal
3802
+ colors.info[700]
3803
+ // #1d4ed8 dark blue
3778
3804
  ],
3779
3805
  /** Semantic colors for status-based charts */
3780
3806
  semantic: {
3781
- positive: colors.success[500],
3782
- negative: colors.error[500],
3807
+ positive: colors.success[400],
3808
+ negative: colors.error[400],
3783
3809
  neutral: colors.neutral[400],
3784
- warning: colors.warning[500],
3785
- info: colors.info[500],
3810
+ warning: colors.warning[400],
3811
+ info: colors.info[400],
3786
3812
  primary: colors.primary[500]
3787
3813
  },
3788
- /** Light fills for area/background (light mode) */
3814
+ /** Light fills for area/background (light mode) — very subtle */
3789
3815
  areaLight: [
3790
- colors.primary[100],
3791
- colors.info[100],
3792
- colors.warning[100],
3793
- colors.error[100],
3794
- colors.success[100]
3816
+ colors.primary[50],
3817
+ colors.info[50],
3818
+ colors.neutral[100],
3819
+ colors.warning[50],
3820
+ colors.success[50]
3795
3821
  ],
3796
3822
  /** Dark fills for area/background (dark mode) */
3797
3823
  areaDark: [
3798
- colors.primary[900],
3799
- colors.info[900],
3800
- colors.warning[900],
3801
- colors.error[900],
3802
- colors.success[900]
3824
+ colors.primary[950],
3825
+ colors.info[950],
3826
+ colors.neutral[800],
3827
+ colors.warning[950],
3828
+ colors.success[950]
3803
3829
  ],
3804
3830
  /** Grid and axis colors (use CSS variables for dark mode compatibility) */
3805
3831
  grid: {