@moul-dev/ui 2026.8.21 → 2026.8.22

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.
Files changed (41) hide show
  1. package/dist/assets/stylex.css +402 -0
  2. package/dist/moul-ui.js +4251 -1468
  3. package/dist/src/components/Avatar/Avatar.d.ts +10 -0
  4. package/dist/src/components/Avatar/Avatar.styles.d.ts +178 -6
  5. package/dist/src/components/Avatar/AvatarGroup.d.ts +18 -0
  6. package/dist/src/components/Avatar/index.d.ts +3 -1
  7. package/dist/src/components/Badge/Badge.d.ts +4 -1
  8. package/dist/src/components/Badge/Badge.styles.d.ts +59 -3
  9. package/dist/src/components/Badge/index.d.ts +1 -1
  10. package/dist/src/components/Calendar/Calendar.d.ts +24 -0
  11. package/dist/src/components/Calendar/Calendar.styles.d.ts +161 -0
  12. package/dist/src/components/Calendar/index.d.ts +2 -0
  13. package/dist/src/components/CommandPalette/CommandPalette.d.ts +81 -0
  14. package/dist/src/components/CommandPalette/CommandPalette.styles.d.ts +216 -0
  15. package/dist/src/components/CommandPalette/index.d.ts +2 -0
  16. package/dist/src/components/DateField/DateField.d.ts +24 -0
  17. package/dist/src/components/DateField/DateField.styles.d.ts +99 -0
  18. package/dist/src/components/DateField/index.d.ts +2 -0
  19. package/dist/src/components/DatePicker/DatePicker.d.ts +23 -0
  20. package/dist/src/components/DatePicker/DatePicker.styles.d.ts +127 -0
  21. package/dist/src/components/DatePicker/index.d.ts +2 -0
  22. package/dist/src/components/EmptyState/EmptyState.d.ts +44 -0
  23. package/dist/src/components/EmptyState/EmptyState.styles.d.ts +134 -0
  24. package/dist/src/components/EmptyState/index.d.ts +2 -0
  25. package/dist/src/components/Pagination/Pagination.d.ts +105 -0
  26. package/dist/src/components/Pagination/Pagination.styles.d.ts +152 -0
  27. package/dist/src/components/Pagination/index.d.ts +2 -0
  28. package/dist/src/components/ProgressBar/ProgressBar.d.ts +22 -0
  29. package/dist/src/components/ProgressBar/ProgressBar.styles.d.ts +83 -0
  30. package/dist/src/components/ProgressBar/index.d.ts +2 -0
  31. package/dist/src/components/Skeleton/Skeleton.d.ts +5 -0
  32. package/dist/src/components/Skeleton/Skeleton.styles.d.ts +22 -1
  33. package/dist/src/components/Skeleton/index.d.ts +1 -1
  34. package/dist/src/components/Spinner/Spinner.d.ts +2 -0
  35. package/dist/src/components/Spinner/Spinner.styles.d.ts +19 -1
  36. package/dist/src/components/Spinner/index.d.ts +1 -1
  37. package/dist/src/components/Table/Table.d.ts +11 -2
  38. package/dist/src/components/Table/Table.styles.d.ts +54 -0
  39. package/dist/src/index.d.ts +20 -6
  40. package/dist/tokens.stylex.js +137 -125
  41. package/package.json +1 -1
@@ -4,21 +4,30 @@ import * as React from 'react';
4
4
  export interface TableProps extends Omit<AriaTableProps, 'style'> {
5
5
  style?: StyleXStyles;
6
6
  className?: string;
7
+ stickyHeader?: boolean;
8
+ isLoading?: boolean;
9
+ loadingState?: React.ReactNode;
10
+ emptyState?: React.ReactNode;
7
11
  }
8
12
  export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
9
13
  export interface TableHeaderProps<T> extends Omit<AriaTableHeaderProps<T>, 'style'> {
10
14
  style?: StyleXStyles;
11
15
  className?: string;
16
+ sticky?: boolean;
12
17
  }
13
18
  export declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps<any> & React.RefAttributes<HTMLTableSectionElement>>;
14
- export interface ColumnProps extends Omit<AriaColumnProps, 'style'> {
19
+ export interface ColumnProps extends Omit<AriaColumnProps, 'style' | 'className'> {
15
20
  style?: StyleXStyles;
16
- className?: string;
21
+ className?: AriaColumnProps['className'];
22
+ showSortIndicator?: boolean;
17
23
  }
18
24
  export declare const Column: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
19
25
  export interface TableBodyProps<T> extends Omit<AriaTableBodyProps<T>, 'style'> {
20
26
  style?: StyleXStyles;
21
27
  className?: string;
28
+ isLoading?: boolean;
29
+ loadingState?: React.ReactNode;
30
+ emptyState?: React.ReactNode;
22
31
  }
23
32
  export declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps<any> & React.RefAttributes<HTMLTableSectionElement>>;
24
33
  export interface RowProps<T> extends Omit<AriaRowProps<T>, 'style'> {
@@ -15,6 +15,12 @@ export declare const styles: Readonly<{
15
15
  readonly borderBottomStyle: stylex.StyleXClassNameFor<"borderBottomStyle", "solid">;
16
16
  readonly borderBottomColor: stylex.StyleXClassNameFor<"borderBottomColor", string>;
17
17
  }>;
18
+ readonly headerSticky: Readonly<{
19
+ readonly position: stylex.StyleXClassNameFor<"position", "sticky">;
20
+ readonly top: stylex.StyleXClassNameFor<"top", 0>;
21
+ readonly zIndex: stylex.StyleXClassNameFor<"zIndex", string>;
22
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
23
+ }>;
18
24
  readonly column: Readonly<{
19
25
  readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
20
26
  readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
@@ -32,6 +38,32 @@ export declare const styles: Readonly<{
32
38
  readonly outlineColor: stylex.StyleXVar<string>;
33
39
  }>;
34
40
  }>;
41
+ readonly columnSortable: Readonly<{
42
+ readonly cursor: stylex.StyleXClassNameFor<"cursor", "pointer">;
43
+ readonly userSelect: stylex.StyleXClassNameFor<"userSelect", "none">;
44
+ }>;
45
+ readonly columnHovered: Readonly<{
46
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
47
+ }>;
48
+ readonly columnContent: Readonly<{
49
+ readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
50
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
51
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
52
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
53
+ readonly width: stylex.StyleXClassNameFor<"width", "100%">;
54
+ }>;
55
+ readonly sortIndicator: Readonly<{
56
+ readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
57
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
58
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
59
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
60
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
61
+ readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "color, transform">;
62
+ readonly transitionDuration: stylex.StyleXClassNameFor<"transitionDuration", "0.15s">;
63
+ }>;
64
+ readonly sortIndicatorActive: Readonly<{
65
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
66
+ }>;
35
67
  readonly body: Readonly<{
36
68
  readonly outline: stylex.StyleXClassNameFor<"outline", "none">;
37
69
  }>;
@@ -74,4 +106,26 @@ export declare const styles: Readonly<{
74
106
  readonly outlineColor: stylex.StyleXVar<string>;
75
107
  }>;
76
108
  }>;
109
+ readonly emptyState: Readonly<{
110
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
111
+ readonly flexDirection: stylex.StyleXClassNameFor<"flexDirection", "column">;
112
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
113
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
114
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
115
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
116
+ readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
117
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
118
+ readonly width: stylex.StyleXClassNameFor<"width", "100%">;
119
+ }>;
120
+ readonly loadingState: Readonly<{
121
+ readonly display: stylex.StyleXClassNameFor<"display", "flex">;
122
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
123
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
124
+ readonly gap: stylex.StyleXClassNameFor<"gap", string>;
125
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", string>;
126
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
127
+ readonly textAlign: stylex.StyleXClassNameFor<"textAlign", "center">;
128
+ readonly color: stylex.StyleXClassNameFor<"color", string>;
129
+ readonly width: stylex.StyleXClassNameFor<"width", "100%">;
130
+ }>;
77
131
  }>;
@@ -1,14 +1,14 @@
1
- export declare const version = "2026.08.21";
1
+ export declare const version = "2026.08.22";
2
2
  export { Alert } from './components/Alert';
3
3
  export type { AlertProps, AlertVariant } from './components/Alert/Alert';
4
4
  export { AlertDialog, AlertDialogBody, AlertDialogFooter, AlertDialogHeader, } from './components/AlertDialog';
5
5
  export type { AlertDialogBodyProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogProps, } from './components/AlertDialog/AlertDialog';
6
6
  export type { AreaChartProps } from './components/AreaChart';
7
7
  export { AreaChart } from './components/AreaChart';
8
- export { Avatar } from './components/Avatar';
9
- export type { AvatarProps } from './components/Avatar/Avatar';
8
+ export type { AvatarGroupContextValue, AvatarGroupProps, AvatarProps, AvatarShape, AvatarSize, AvatarStatus, AvatarStatusPosition, } from './components/Avatar';
9
+ export { Avatar, AvatarGroup, AvatarGroupContext } from './components/Avatar';
10
10
  export { Badge } from './components/Badge';
11
- export type { BadgeProps, BadgeVariant } from './components/Badge/Badge';
11
+ export type { BadgeProps, BadgeSize, BadgeVariant, } from './components/Badge/Badge';
12
12
  export type { BarChartProps } from './components/BarChart';
13
13
  export { BarChart } from './components/BarChart';
14
14
  export type { BreadcrumbItemProps, BreadcrumbsProps, } from './components/Breadcrumbs';
@@ -17,6 +17,8 @@ export { Button } from './components/Button';
17
17
  export type { ButtonProps } from './components/Button/Button';
18
18
  export { ButtonGroup } from './components/ButtonGroup';
19
19
  export type { ButtonGroupProps } from './components/ButtonGroup/ButtonGroup';
20
+ export type { CalendarCellProps, CalendarGridProps, CalendarProps, RangeCalendarProps, } from './components/Calendar';
21
+ export { Calendar, CalendarCell, CalendarGrid, RangeCalendar, } from './components/Calendar';
20
22
  export type { CardBodyProps, CardFooterProps, CardHeaderProps, CardProps, CardVariant, Elevation, } from './components/Card';
21
23
  export { Card, CardBody, CardFooter, CardHeader } from './components/Card';
22
24
  export type { ChartContainerProps, LegendItem, } from './components/ChartContainer';
@@ -27,12 +29,20 @@ export { CheckboxGroup } from './components/CheckboxGroup';
27
29
  export type { CheckboxGroupProps } from './components/CheckboxGroup/CheckboxGroup';
28
30
  export { ComboBox, ComboBoxItem, ComboBoxSection } from './components/ComboBox';
29
31
  export type { ComboBoxItemProps, ComboBoxProps, ComboBoxSectionProps, } from './components/ComboBox/ComboBox';
32
+ export type { CommandPaletteEmptyProps, CommandPaletteFooterProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteSectionProps, UseCommandPaletteOptions, } from './components/CommandPalette';
33
+ export { CommandPalette, CommandPaletteEmpty, CommandPaletteFooter, CommandPaletteInput, CommandPaletteItem, CommandPaletteList, CommandPaletteSection, useCommandPalette, useCommandPaletteContext, } from './components/CommandPalette';
34
+ export type { DateFieldProps, DateInputProps, DateSegmentProps, } from './components/DateField';
35
+ export { DateField, DateInput, DateSegment, } from './components/DateField';
36
+ export type { DatePickerProps, DateRangePickerProps, } from './components/DatePicker';
37
+ export { DatePicker, DateRangePicker } from './components/DatePicker';
30
38
  export { Description } from './components/Description';
31
39
  export type { DescriptionProps } from './components/Description/Description';
32
40
  export type { DoughnutChartProps } from './components/DoughnutChart';
33
41
  export { DoughnutChart } from './components/DoughnutChart';
34
42
  export type { DrawerBodyProps, DrawerCloseButtonProps, DrawerDialogProps, DrawerFooterProps, DrawerHeaderProps, DrawerOverlayProps, DrawerPlacement, DrawerProps, DrawerSize, DrawerTitleProps, } from './components/Drawer';
35
43
  export { Drawer, DrawerBody, DrawerCloseButton, DrawerDialog, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, } from './components/Drawer';
44
+ export type { EmptyStateActionsProps, EmptyStateAlign, EmptyStateDescriptionProps, EmptyStateIconProps, EmptyStateProps, EmptyStateSize, EmptyStateTitleProps, EmptyStateVariant, } from './components/EmptyState';
45
+ export { EmptyState, EmptyStateActions, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle, } from './components/EmptyState';
36
46
  export { ErrorMessage } from './components/ErrorMessage';
37
47
  export type { ErrorMessageProps } from './components/ErrorMessage/ErrorMessage';
38
48
  export { FieldError } from './components/FieldError';
@@ -55,10 +65,14 @@ export { Modal, ModalBody, ModalDialog, ModalFooter, ModalHeader, ModalOverlay,
55
65
  export type { ModalBodyProps, ModalDialogProps, ModalFooterProps, ModalHeaderProps, ModalOverlayProps, ModalProps, } from './components/Modal/Modal';
56
66
  export { NumberField } from './components/NumberField';
57
67
  export type { NumberFieldProps } from './components/NumberField/NumberField';
68
+ export type { PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationLinkProps, PaginationNextProps, PaginationPageSizeProps, PaginationPreviousProps, PaginationProps, PaginationShape, PaginationSize, PaginationSummaryProps, PaginationVariant, } from './components/Pagination';
69
+ export { generatePagination, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPageSize, PaginationPrevious, PaginationSummary, } from './components/Pagination';
58
70
  export type { PercentageBarProps, PercentageCircleProps, } from './components/Percentage';
59
71
  export { PercentageBar, PercentageCircle } from './components/Percentage';
60
72
  export { Popover, PopoverDialog, PopoverTrigger } from './components/Popover';
61
73
  export type { PopoverDialogProps, PopoverProps, } from './components/Popover/Popover';
74
+ export type { ProgressBarProps, ProgressBarShape, ProgressBarSize, ProgressBarVariant, } from './components/ProgressBar';
75
+ export { ProgressBar } from './components/ProgressBar';
62
76
  export { Radio, RadioGroup } from './components/RadioGroup';
63
77
  export type { RadioGroupProps, RadioProps, } from './components/RadioGroup/RadioGroup';
64
78
  export { SearchField } from './components/SearchField';
@@ -70,11 +84,11 @@ export type { SeparatorProps } from './components/Separator/Separator';
70
84
  export type { SidebarAsideProps, SidebarDividerProps, SidebarFooterProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemProps, SidebarMainProps, SidebarProps, } from './components/Sidebar';
71
85
  export { Sidebar, SidebarAside, SidebarDivider, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarMain, } from './components/Sidebar';
72
86
  export { Skeleton } from './components/Skeleton';
73
- export type { SkeletonProps } from './components/Skeleton/Skeleton';
87
+ export type { SkeletonProps, SkeletonShape, SkeletonVariant, } from './components/Skeleton/Skeleton';
74
88
  export { Slider, SliderThumb, SliderTrack } from './components/Slider';
75
89
  export type { SliderProps, SliderThumbProps, SliderTrackProps, } from './components/Slider/Slider';
76
90
  export { Spinner } from './components/Spinner';
77
- export type { SpinnerProps } from './components/Spinner/Spinner';
91
+ export type { SpinnerProps, SpinnerSize, } from './components/Spinner/Spinner';
78
92
  export type { StatProps } from './components/Stat';
79
93
  export { Stat } from './components/Stat';
80
94
  export { Switch } from './components/Switch';
@@ -1,126 +1,138 @@
1
- "use client";
2
- import "@stylexjs/stylex";
3
- //#region src/tokens/tokens.stylex.ts
4
- var e = {
5
- colorNeutral50: "var(--x1ox3f4o)",
6
- colorNeutral100: "var(--x1oziaxx)",
7
- colorNeutral200: "var(--xekkakv)",
8
- colorNeutral300: "var(--x4npmm6)",
9
- colorNeutral400: "var(--x6l5ye8)",
10
- colorNeutral500: "var(--x1s9rx7n)",
11
- colorNeutral600: "var(--x7rwqrp)",
12
- colorNeutral700: "var(--x1ol9w3z)",
13
- colorNeutral800: "var(--xaubso4)",
14
- colorNeutral900: "var(--x21z8aa)",
15
- colorPrimary50: "var(--x1l7m7gb)",
16
- colorPrimary100: "var(--xvy7zpp)",
17
- colorPrimary200: "var(--x189jvvz)",
18
- colorPrimary300: "var(--x1smr4m2)",
19
- colorPrimary400: "var(--x1p3wd7v)",
20
- colorPrimary500: "var(--x11vz4nw)",
21
- colorPrimary600: "var(--x19wncxt)",
22
- colorPrimary700: "var(--xms5kwx)",
23
- colorPrimary800: "var(--x1f1ph2q)",
24
- colorPrimary900: "var(--x27tw8h)",
25
- colorError300: "var(--xywa26s)",
26
- colorError400: "var(--x1ttemnr)",
27
- colorError500: "var(--xgm7y0w)",
28
- colorError600: "var(--x14tkvwa)",
29
- colorError700: "var(--xle5duh)",
30
- colorWarning300: "var(--xxkj1oe)",
31
- colorWarning400: "var(--xvbe47b)",
32
- colorWarning500: "var(--x9boa8o)",
33
- colorWarning600: "var(--x1foz1o3)",
34
- colorWarning700: "var(--x1i80a2t)",
35
- colorSuccess300: "var(--x1eg0uv7)",
36
- colorSuccess400: "var(--x1xkz733)",
37
- colorSuccess500: "var(--xo79180)",
38
- colorSuccess600: "var(--xftmch4)",
39
- colorSuccess700: "var(--x6beaur)",
40
- colorBg: "var(--x1poa4dm)",
41
- colorBgSubtle: "var(--xg2wbmg)",
42
- colorBgElevated: "var(--x1qnu6yg)",
43
- colorFg: "var(--x1jfchzy)",
44
- colorFgSubtle: "var(--xaffrw6)",
45
- colorFgOnPrimary: "var(--x16n9mb9)",
46
- colorBorder: "var(--x1t7g4u6)",
47
- colorBorderSubtle: "var(--xrlp4ei)",
48
- colorBorderFocus: "var(--x79fgis)",
49
- colorBgGlass: "var(--x7we1u4)",
50
- colorBorderGlass: "var(--x8ovk6j)",
51
- colorShadow: "var(--x1qvbbfx)",
52
- colorOverlay: "var(--x2r2dxw)",
53
- colorAlertBgInfo: "var(--x1yncxg9)",
54
- colorAlertBorderInfo: "var(--xgvswlc)",
55
- colorAlertHoverInfo: "var(--xdv3703)",
56
- colorAlertActiveInfo: "var(--x1b4xit2)",
57
- colorAlertBgAccent: "var(--xfh678y)",
58
- colorAlertBorderAccent: "var(--xtwqyzw)",
59
- colorAlertHoverAccent: "var(--x2hivg9)",
60
- colorAlertActiveAccent: "var(--x1wzp30q)",
61
- colorAlertBgSuccess: "var(--xvq252x)",
62
- colorAlertBorderSuccess: "var(--x1iepgx6)",
63
- colorAlertHoverSuccess: "var(--x1gcqxgm)",
64
- colorAlertActiveSuccess: "var(--x1epzsal)",
65
- colorAlertBgWarning: "var(--xg2n39v)",
66
- colorAlertBorderWarning: "var(--x1n16z78)",
67
- colorAlertHoverWarning: "var(--xq3y2id)",
68
- colorAlertActiveWarning: "var(--xf8i1ro)",
69
- colorAlertBgError: "var(--x1u4wyvx)",
70
- colorAlertBorderError: "var(--xwq48n1)",
71
- colorAlertHoverError: "var(--x1cujurv)",
72
- colorAlertActiveError: "var(--x3091pa)",
73
- fontSizeXs: "var(--xpanzj7)",
74
- fontSizeSm: "var(--xz9ra21)",
75
- fontSizeMd: "var(--x19jnf71)",
76
- fontSizeLg: "var(--x16hg6gx)",
77
- fontSizeXl: "var(--xkl0paq)",
78
- fontSizeXxl: "var(--x18r5va)",
79
- fontSize3xl: "var(--x1cwqm9m)",
80
- fontSize4xl: "var(--x14r6drk)",
81
- lineHeightXs: "var(--x1vx0k0f)",
82
- lineHeightSm: "var(--x186dp4y)",
83
- lineHeightMd: "var(--x1bapz3m)",
84
- lineHeightLg: "var(--x107177a)",
85
- lineHeightXl: "var(--x1x2zchm)",
86
- lineHeightXxl: "var(--x1t135xi)",
87
- lineHeight3xl: "var(--xqmssti)",
88
- lineHeight4xl: "var(--x1458rh6)",
89
- fontWeightNormal: "var(--x1oo7w7q)",
90
- fontWeightMedium: "var(--x1i7new4)",
91
- fontWeightSemibold: "var(--xrtlgup)",
92
- fontWeightBold: "var(--x1jugmoa)",
93
- fontFamilyBase: "var(--xb7uvbd)",
94
- spacing1: "var(--x1jforli)",
95
- spacing2: "var(--x9epbqz)",
96
- spacing3: "var(--x1fim08e)",
97
- spacing4: "var(--x1djehx3)",
98
- spacing5: "var(--xpmkuee)",
99
- spacing6: "var(--x1xsmz2k)",
100
- spacing7: "var(--x1aetgvy)",
101
- spacing8: "var(--x3461u0)",
102
- radiusNone: "var(--x10dfn0a)",
103
- radiusSm: "var(--xcxkm4p)",
104
- radiusMd: "var(--x11qts0k)",
105
- radiusLg: "var(--x8ikvy7)",
106
- radiusFull: "var(--x69bofi)",
107
- shadowSm: "var(--x1nbpjwp)",
108
- shadowMd: "var(--xi6zbv0)",
109
- shadowLg: "var(--xckknmd)",
110
- zIndexBase: "var(--x1x05ep0)",
111
- zIndexDropdown: "var(--x1r4igc)",
112
- zIndexModal: "var(--xjyalnt)",
113
- zIndexTooltip: "var(--x1yamzkk)",
114
- zIndexToast: "var(--xd3kluz)",
115
- colorChart1: "var(--x1sjgkb4)",
116
- colorChart2: "var(--xndyysw)",
117
- colorChart3: "var(--x97jlmp)",
118
- colorChart4: "var(--x1te5qoh)",
119
- colorChart5: "var(--x174xad0)",
120
- colorChart6: "var(--xljzat3)",
121
- colorChart7: "var(--x76stw)",
122
- colorChart8: "var(--x2x0qih)",
123
- __varGroupHash__: "x1x2wves"
1
+ 'use client';
2
+ export const tokens = {
3
+ // ── Color palette — oklch(L C H) ──────────────────────────────────
4
+ // Neutral — zero chroma (C=0), hue irrelevant
5
+ colorNeutral50: 'light-dark(oklch(0.98 0 0), oklch(0.14 0 0))',
6
+ colorNeutral100: 'light-dark(oklch(0.96 0 0), oklch(0.18 0 0))',
7
+ colorNeutral200: 'light-dark(oklch(0.92 0 0), oklch(0.24 0 0))',
8
+ colorNeutral300: 'light-dark(oklch(0.84 0 0), oklch(0.32 0 0))',
9
+ colorNeutral400: 'light-dark(oklch(0.70 0 0), oklch(0.45 0 0))',
10
+ colorNeutral500: 'light-dark(oklch(0.55 0 0), oklch(0.55 0 0))',
11
+ colorNeutral600: 'light-dark(oklch(0.42 0 0), oklch(0.68 0 0))',
12
+ colorNeutral700: 'light-dark(oklch(0.32 0 0), oklch(0.78 0 0))',
13
+ colorNeutral800: 'light-dark(oklch(0.22 0 0), oklch(0.88 0 0))',
14
+ colorNeutral900: 'light-dark(oklch(0.14 0 0), oklch(0.96 0 0))',
15
+ // Primary — dynamic hue & chroma
16
+ colorPrimary50: 'light-dark(oklch(0.96 calc(0.025 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.22 calc(0.050 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
17
+ colorPrimary100: 'light-dark(oklch(0.92 calc(0.050 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.28 calc(0.080 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
18
+ colorPrimary200: 'light-dark(oklch(0.85 calc(0.090 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.36 calc(0.120 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
19
+ colorPrimary300: 'light-dark(oklch(0.77 calc(0.140 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.45 calc(0.160 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
20
+ colorPrimary400: 'light-dark(oklch(0.66 calc(0.190 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.56 calc(0.200 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
21
+ colorPrimary500: 'light-dark(oklch(0.55 calc(0.240 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.66 calc(0.220 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
22
+ colorPrimary600: 'light-dark(oklch(0.46 calc(0.220 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.75 calc(0.190 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
23
+ colorPrimary700: 'light-dark(oklch(0.38 calc(0.190 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.83 calc(0.150 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
24
+ colorPrimary800: 'light-dark(oklch(0.30 calc(0.150 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.90 calc(0.090 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
25
+ colorPrimary900: 'light-dark(oklch(0.22 calc(0.110 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.95 calc(0.040 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
26
+ // Error — red hue (H ≈ 27)
27
+ colorError300: 'light-dark(oklch(0.80 0.120 27), oklch(0.45 0.150 27))',
28
+ colorError400: 'light-dark(oklch(0.68 0.170 27), oklch(0.58 0.180 27))',
29
+ colorError500: 'light-dark(oklch(0.56 0.200 27), oklch(0.68 0.190 27))',
30
+ colorError600: 'light-dark(oklch(0.46 0.190 27), oklch(0.78 0.150 27))',
31
+ colorError700: 'light-dark(oklch(0.36 0.160 27), oklch(0.87 0.090 27))',
32
+ // Warning — yellow hue (H ≈ 85)
33
+ colorWarning300: 'light-dark(oklch(0.85 0.130 85), oklch(0.48 0.140 85))',
34
+ colorWarning400: 'light-dark(oklch(0.78 0.160 85), oklch(0.60 0.165 85))',
35
+ colorWarning500: 'light-dark(oklch(0.70 0.175 85), oklch(0.72 0.165 85))',
36
+ colorWarning600: 'light-dark(oklch(0.60 0.165 85), oklch(0.82 0.130 85))',
37
+ colorWarning700: 'light-dark(oklch(0.48 0.140 85), oklch(0.90 0.080 85))',
38
+ // Success — green hue (H ≈ 145)
39
+ colorSuccess300: 'light-dark(oklch(0.82 0.120 145), oklch(0.44 0.130 145))',
40
+ colorSuccess400: 'light-dark(oklch(0.72 0.155 145), oklch(0.56 0.160 145))',
41
+ colorSuccess500: 'light-dark(oklch(0.62 0.175 145), oklch(0.68 0.170 145))',
42
+ colorSuccess600: 'light-dark(oklch(0.52 0.165 145), oklch(0.78 0.135 145))',
43
+ colorSuccess700: 'light-dark(oklch(0.40 0.135 145), oklch(0.87 0.085 145))',
44
+ // ── Semantic surface / text aliases ───────────────────────────────
45
+ colorBg: 'light-dark(oklch(1 0 0), oklch(0.12 0 0))',
46
+ colorBgSubtle: 'light-dark(oklch(0.97 0 0), oklch(0.16 0 0))',
47
+ colorBgElevated: 'light-dark(oklch(1 0 0), oklch(0.20 0 0))',
48
+ colorFg: 'light-dark(oklch(0.14 0 0), oklch(0.96 0 0))',
49
+ colorFgSubtle: 'light-dark(oklch(0.42 0 0), oklch(0.68 0 0))',
50
+ colorFgOnPrimary: 'light-dark(oklch(1 0 0), oklch(0.10 0 0))',
51
+ colorBorder: 'light-dark(oklch(0.84 0 0), oklch(0.28 0 0))',
52
+ colorBorderSubtle: 'light-dark(oklch(0.92 0 0), oklch(0.22 0 0))',
53
+ colorBorderFocus: 'light-dark(oklch(0.55 calc(0.240 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.66 calc(0.220 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
54
+ colorBgGlass: 'light-dark(oklch(1 0 0 / 0.55), oklch(0.20 0 0 / 0.45))',
55
+ colorBorderGlass: 'light-dark(oklch(0 0 0 / 0.08), oklch(1 0 0 / 0.10))',
56
+ // Shadows use oklch with alpha (oklch L C H / alpha)
57
+ colorShadow: 'light-dark(oklch(0 0 0 / 0.10), oklch(0 0 0 / 0.40))',
58
+ colorOverlay: 'light-dark(oklch(0 0 0 / 0.40), oklch(0 0 0 / 0.60))',
59
+ // Alert/Status status variants
60
+ colorAlertBgInfo: 'light-dark(oklch(0.97 0 0), oklch(0.16 0 0))',
61
+ colorAlertBorderInfo: 'light-dark(oklch(0.92 0 0), oklch(0.22 0 0))',
62
+ colorAlertHoverInfo: 'light-dark(oklch(0.92 calc(0.01 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.12 calc(0.01 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
63
+ colorAlertActiveInfo: 'light-dark(oklch(0.88 calc(0.01 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.08 calc(0.01 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
64
+ colorAlertBgAccent: 'light-dark(oklch(0.97 calc(0.02 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.19 calc(0.035 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
65
+ colorAlertBorderAccent: 'light-dark(oklch(0.88 calc(0.04 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.28 calc(0.06 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
66
+ colorAlertHoverAccent: 'light-dark(oklch(0.92 calc(0.04 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.14 calc(0.05 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
67
+ colorAlertActiveAccent: 'light-dark(oklch(0.87 calc(0.06 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)), oklch(0.10 calc(0.06 * var(--brand-chroma-multiplier, 1)) var(--brand-hue, 250)))',
68
+ colorAlertBgSuccess: 'light-dark(oklch(0.97 0.02 145), oklch(0.19 0.035 145))',
69
+ colorAlertBorderSuccess: 'light-dark(oklch(0.88 0.04 145), oklch(0.28 0.06 145))',
70
+ colorAlertHoverSuccess: 'light-dark(oklch(0.92 0.04 145), oklch(0.14 0.05 145))',
71
+ colorAlertActiveSuccess: 'light-dark(oklch(0.87 0.06 145), oklch(0.10 0.06 145))',
72
+ colorAlertBgWarning: 'light-dark(oklch(0.98 0.02 85), oklch(0.19 0.035 85))',
73
+ colorAlertBorderWarning: 'light-dark(oklch(0.90 0.05 85), oklch(0.28 0.06 85))',
74
+ colorAlertHoverWarning: 'light-dark(oklch(0.93 0.04 85), oklch(0.14 0.05 85))',
75
+ colorAlertActiveWarning: 'light-dark(oklch(0.88 0.06 85), oklch(0.10 0.06 85))',
76
+ colorAlertBgError: 'light-dark(oklch(0.97 0.02 27), oklch(0.19 0.035 27))',
77
+ colorAlertBorderError: 'light-dark(oklch(0.90 0.05 27), oklch(0.28 0.06 27))',
78
+ colorAlertHoverError: 'light-dark(oklch(0.92 0.04 27), oklch(0.14 0.05 27))',
79
+ colorAlertActiveError: 'light-dark(oklch(0.87 0.06 27), oklch(0.10 0.06 27))',
80
+ // ── Typography ────────────────────────────────────────────────────
81
+ fontSizeXs: 'calc(0.75rem * var(--brand-font-scale, 1))', // 12px
82
+ fontSizeSm: 'calc(0.875rem * var(--brand-font-scale, 1))', // 14px
83
+ fontSizeMd: 'calc(1rem * var(--brand-font-scale, 1))', // 16px
84
+ fontSizeLg: 'calc(1.125rem * var(--brand-font-scale, 1))', // 18px
85
+ fontSizeXl: 'calc(1.25rem * var(--brand-font-scale, 1))', // 20px
86
+ fontSizeXxl: 'calc(1.5rem * var(--brand-font-scale, 1))', // 24px
87
+ fontSize3xl: 'calc(1.875rem * var(--brand-font-scale, 1))', // 30px
88
+ fontSize4xl: 'calc(2.25rem * var(--brand-font-scale, 1))', // 36px
89
+ lineHeightXs: 'calc(1rem * var(--brand-font-scale, 1))',
90
+ lineHeightSm: 'calc(1.25rem * var(--brand-font-scale, 1))',
91
+ lineHeightMd: 'calc(1.5rem * var(--brand-font-scale, 1))',
92
+ lineHeightLg: 'calc(1.75rem * var(--brand-font-scale, 1))',
93
+ lineHeightXl: 'calc(1.75rem * var(--brand-font-scale, 1))',
94
+ lineHeightXxl: 'calc(2rem * var(--brand-font-scale, 1))',
95
+ lineHeight3xl: 'calc(2.25rem * var(--brand-font-scale, 1))',
96
+ lineHeight4xl: 'calc(2.5rem * var(--brand-font-scale, 1))',
97
+ fontWeightNormal: '400',
98
+ fontWeightMedium: '500',
99
+ fontWeightSemibold: '600',
100
+ fontWeightBold: '700',
101
+ fontFamilyBase: "'Google Sans', 'Inter', system-ui, sans-serif",
102
+ // ── Spacing (8 steps, 4px base) ───────────────────────────────────
103
+ spacing1: 'calc(0.25rem * var(--brand-density-factor, 1))', // 4px * density
104
+ spacing2: 'calc(0.5rem * var(--brand-density-factor, 1))', // 8px * density
105
+ spacing3: 'calc(0.75rem * var(--brand-density-factor, 1))', // 12px * density
106
+ spacing4: 'calc(1rem * var(--brand-density-factor, 1))', // 16px * density
107
+ spacing5: 'calc(1.25rem * var(--brand-density-factor, 1))', // 20px * density
108
+ spacing6: 'calc(1.5rem * var(--brand-density-factor, 1))', // 24px * density
109
+ spacing7: 'calc(1.75rem * var(--brand-density-factor, 1))', // 28px * density
110
+ spacing8: 'calc(2rem * var(--brand-density-factor, 1))', // 32px * density
111
+ // ── Border radius ─────────────────────────────────────────────────
112
+ radiusNone: '0',
113
+ radiusSm: 'calc(0.375rem * var(--brand-radius-factor, 1))',
114
+ radiusMd: 'calc(0.75rem * var(--brand-radius-factor, 1))',
115
+ radiusLg: 'calc(1.25rem * var(--brand-radius-factor, 1))',
116
+ radiusFull: '9999px',
117
+ // ── Shadows — use colorShadow token for the shadow color ──────────
118
+ shadowSm: '0 1px 2px 0 var(--colorShadow)',
119
+ shadowMd: '0 4px 6px -1px var(--colorShadow), 0 2px 4px -2px var(--colorShadow)',
120
+ shadowLg: '0 10px 15px -3px var(--colorShadow), 0 4px 6px -4px var(--colorShadow)',
121
+ // ── Z-index ───────────────────────────────────────────────────────
122
+ zIndexBase: '0',
123
+ zIndexDropdown: '1000',
124
+ zIndexModal: '1300',
125
+ zIndexTooltip: '1500',
126
+ zIndexToast: '1700',
127
+ // ── Chart Colors (8 steps for light/dark responsive graphs) ───────
128
+ colorChart1: 'light-dark(oklch(0.60 0.18 250), oklch(0.65 0.16 250))', // Blue
129
+ colorChart2: 'light-dark(oklch(0.75 0.15 75), oklch(0.75 0.14 75))', // Yellow / Gold
130
+ colorChart3: 'light-dark(oklch(0.65 0.18 5), oklch(0.68 0.16 5))', // Rose / Pink
131
+ colorChart4: 'light-dark(oklch(0.62 0.20 300), oklch(0.65 0.18 300))', // Purple / Violet
132
+ colorChart5: 'light-dark(oklch(0.68 0.16 195), oklch(0.70 0.14 195))', // Teal / Cyan
133
+ colorChart6: 'light-dark(oklch(0.58 0.16 45), oklch(0.62 0.15 45))', // Orange / Rust
134
+ colorChart7: 'light-dark(oklch(0.64 0.17 145), oklch(0.68 0.15 145))', // Green
135
+ colorChart8: 'light-dark(oklch(0.60 0 0), oklch(0.65 0 0))', // Gray / Neutral
124
136
  };
125
- //#endregion
126
- export { e as tokens };
137
+ export const rawTokens = tokens;
138
+ export const tokenValues = tokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moul-dev/ui",
3
- "version": "2026.08.21",
3
+ "version": "2026.08.22",
4
4
  "description": "Accessible, zero-runtime React component library built on React Aria and StyleX",
5
5
  "license": "MIT",
6
6
  "type": "module",