@moul-dev/ui 2026.8.17

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 (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +149 -0
  3. package/dist/assets/stylex.css +2391 -0
  4. package/dist/favicon.svg +20 -0
  5. package/dist/icons.svg +24 -0
  6. package/dist/moul-ui.js +6662 -0
  7. package/dist/src/App.d.ts +2 -0
  8. package/dist/src/components/Alert/Alert.d.ts +14 -0
  9. package/dist/src/components/Alert/Alert.styles.d.ts +188 -0
  10. package/dist/src/components/Alert/index.d.ts +2 -0
  11. package/dist/src/components/AlertDialog/AlertDialog.d.ts +23 -0
  12. package/dist/src/components/AlertDialog/AlertDialog.styles.d.ts +35 -0
  13. package/dist/src/components/AlertDialog/index.d.ts +1 -0
  14. package/dist/src/components/AreaChart/AreaChart.d.ts +21 -0
  15. package/dist/src/components/AreaChart/AreaChart.styles.d.ts +7 -0
  16. package/dist/src/components/AreaChart/index.d.ts +2 -0
  17. package/dist/src/components/Avatar/Avatar.d.ts +10 -0
  18. package/dist/src/components/Avatar/Avatar.styles.d.ts +31 -0
  19. package/dist/src/components/Avatar/index.d.ts +2 -0
  20. package/dist/src/components/Badge/Badge.d.ts +9 -0
  21. package/dist/src/components/Badge/Badge.styles.d.ts +35 -0
  22. package/dist/src/components/Badge/index.d.ts +2 -0
  23. package/dist/src/components/BarChart/BarChart.d.ts +16 -0
  24. package/dist/src/components/BarChart/BarChart.styles.d.ts +7 -0
  25. package/dist/src/components/BarChart/index.d.ts +2 -0
  26. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +16 -0
  27. package/dist/src/components/Breadcrumbs/Breadcrumbs.styles.d.ts +34 -0
  28. package/dist/src/components/Breadcrumbs/index.d.ts +2 -0
  29. package/dist/src/components/Button/Button.d.ts +10 -0
  30. package/dist/src/components/Button/Button.styles.d.ts +148 -0
  31. package/dist/src/components/Button/index.d.ts +2 -0
  32. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +7 -0
  33. package/dist/src/components/ButtonGroup/ButtonGroup.styles.d.ts +9 -0
  34. package/dist/src/components/ButtonGroup/index.d.ts +2 -0
  35. package/dist/src/components/Card/Card.d.ts +19 -0
  36. package/dist/src/components/Card/Card.styles.d.ts +185 -0
  37. package/dist/src/components/Card/CardBody.d.ts +7 -0
  38. package/dist/src/components/Card/CardFooter.d.ts +7 -0
  39. package/dist/src/components/Card/CardHeader.d.ts +7 -0
  40. package/dist/src/components/Card/index.d.ts +8 -0
  41. package/dist/src/components/ChartCommon.d.ts +1 -0
  42. package/dist/src/components/ChartContainer/ChartContainer.d.ts +21 -0
  43. package/dist/src/components/ChartContainer/ChartContainer.styles.d.ts +124 -0
  44. package/dist/src/components/ChartContainer/index.d.ts +2 -0
  45. package/dist/src/components/ChartTooltip/ChartTooltip.d.ts +8 -0
  46. package/dist/src/components/ChartTooltip/ChartTooltip.styles.d.ts +61 -0
  47. package/dist/src/components/ChartTooltip/index.d.ts +2 -0
  48. package/dist/src/components/Checkbox/Checkbox.d.ts +9 -0
  49. package/dist/src/components/Checkbox/Checkbox.styles.d.ts +94 -0
  50. package/dist/src/components/Checkbox/context.d.ts +5 -0
  51. package/dist/src/components/Checkbox/index.d.ts +2 -0
  52. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
  53. package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +18 -0
  54. package/dist/src/components/CheckboxGroup/index.d.ts +2 -0
  55. package/dist/src/components/ComboBox/ComboBox.d.ts +25 -0
  56. package/dist/src/components/ComboBox/ComboBox.styles.d.ts +223 -0
  57. package/dist/src/components/ComboBox/index.d.ts +2 -0
  58. package/dist/src/components/Description/Description.d.ts +8 -0
  59. package/dist/src/components/Description/Description.styles.d.ts +9 -0
  60. package/dist/src/components/Description/index.d.ts +2 -0
  61. package/dist/src/components/DoughnutChart/DoughnutChart.d.ts +15 -0
  62. package/dist/src/components/DoughnutChart/DoughnutChart.styles.d.ts +10 -0
  63. package/dist/src/components/DoughnutChart/index.d.ts +2 -0
  64. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +7 -0
  65. package/dist/src/components/ErrorMessage/ErrorMessage.styles.d.ts +9 -0
  66. package/dist/src/components/ErrorMessage/index.d.ts +2 -0
  67. package/dist/src/components/FieldError/FieldError.d.ts +9 -0
  68. package/dist/src/components/FieldError/FieldError.styles.d.ts +9 -0
  69. package/dist/src/components/FieldError/index.d.ts +2 -0
  70. package/dist/src/components/Form/Form.d.ts +8 -0
  71. package/dist/src/components/Form/Form.styles.d.ts +3 -0
  72. package/dist/src/components/Form/index.d.ts +2 -0
  73. package/dist/src/components/InputOTP/InputOTP.d.ts +25 -0
  74. package/dist/src/components/InputOTP/InputOTP.styles.d.ts +113 -0
  75. package/dist/src/components/InputOTP/index.d.ts +3 -0
  76. package/dist/src/components/Kbd/Kbd.d.ts +7 -0
  77. package/dist/src/components/Kbd/Kbd.styles.d.ts +20 -0
  78. package/dist/src/components/Kbd/index.d.ts +2 -0
  79. package/dist/src/components/Label/Label.d.ts +8 -0
  80. package/dist/src/components/Label/Label.styles.d.ts +10 -0
  81. package/dist/src/components/Label/index.d.ts +2 -0
  82. package/dist/src/components/LineChart/LineChart.d.ts +15 -0
  83. package/dist/src/components/LineChart/LineChart.styles.d.ts +7 -0
  84. package/dist/src/components/LineChart/index.d.ts +2 -0
  85. package/dist/src/components/Link/Link.d.ts +9 -0
  86. package/dist/src/components/Link/Link.styles.d.ts +92 -0
  87. package/dist/src/components/Link/index.d.ts +2 -0
  88. package/dist/src/components/Modal/Modal.d.ts +34 -0
  89. package/dist/src/components/Modal/Modal.styles.d.ts +91 -0
  90. package/dist/src/components/Modal/index.d.ts +1 -0
  91. package/dist/src/components/NumberField/NumberField.d.ts +14 -0
  92. package/dist/src/components/NumberField/NumberField.styles.d.ts +147 -0
  93. package/dist/src/components/NumberField/index.d.ts +2 -0
  94. package/dist/src/components/Percentage/Percentage.styles.d.ts +70 -0
  95. package/dist/src/components/Percentage/PercentageBar.d.ts +11 -0
  96. package/dist/src/components/Percentage/PercentageCircle.d.ts +12 -0
  97. package/dist/src/components/Percentage/index.d.ts +4 -0
  98. package/dist/src/components/Popover/Popover.d.ts +15 -0
  99. package/dist/src/components/Popover/Popover.styles.d.ts +22 -0
  100. package/dist/src/components/Popover/index.d.ts +1 -0
  101. package/dist/src/components/RadioGroup/RadioGroup.d.ts +16 -0
  102. package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +75 -0
  103. package/dist/src/components/RadioGroup/index.d.ts +2 -0
  104. package/dist/src/components/SearchField/SearchField.d.ts +14 -0
  105. package/dist/src/components/SearchField/SearchField.styles.d.ts +147 -0
  106. package/dist/src/components/SearchField/index.d.ts +2 -0
  107. package/dist/src/components/Select/Select.d.ts +30 -0
  108. package/dist/src/components/Select/Select.styles.d.ts +171 -0
  109. package/dist/src/components/Select/index.d.ts +2 -0
  110. package/dist/src/components/Separator/Separator.d.ts +8 -0
  111. package/dist/src/components/Separator/Separator.styles.d.ts +20 -0
  112. package/dist/src/components/Separator/index.d.ts +2 -0
  113. package/dist/src/components/Sidebar/Sidebar.d.ts +77 -0
  114. package/dist/src/components/Sidebar/Sidebar.styles.d.ts +326 -0
  115. package/dist/src/components/Sidebar/index.d.ts +2 -0
  116. package/dist/src/components/Skeleton/Skeleton.d.ts +7 -0
  117. package/dist/src/components/Skeleton/Skeleton.styles.d.ts +17 -0
  118. package/dist/src/components/Skeleton/index.d.ts +2 -0
  119. package/dist/src/components/Slider/Slider.d.ts +21 -0
  120. package/dist/src/components/Slider/Slider.styles.d.ts +78 -0
  121. package/dist/src/components/Slider/index.d.ts +2 -0
  122. package/dist/src/components/Spinner/Spinner.d.ts +9 -0
  123. package/dist/src/components/Spinner/Spinner.styles.d.ts +20 -0
  124. package/dist/src/components/Spinner/index.d.ts +2 -0
  125. package/dist/src/components/Stat/Stat.d.ts +15 -0
  126. package/dist/src/components/Stat/Stat.styles.d.ts +115 -0
  127. package/dist/src/components/Stat/index.d.ts +2 -0
  128. package/dist/src/components/Switch/Switch.d.ts +8 -0
  129. package/dist/src/components/Switch/Switch.styles.d.ts +66 -0
  130. package/dist/src/components/Switch/index.d.ts +2 -0
  131. package/dist/src/components/Table/Table.d.ts +33 -0
  132. package/dist/src/components/Table/Table.styles.d.ts +77 -0
  133. package/dist/src/components/Table/index.d.ts +2 -0
  134. package/dist/src/components/Tabs/Tabs.d.ts +29 -0
  135. package/dist/src/components/Tabs/Tabs.styles.d.ts +186 -0
  136. package/dist/src/components/Tabs/index.d.ts +2 -0
  137. package/dist/src/components/TagGroup/TagGroup.d.ts +27 -0
  138. package/dist/src/components/TagGroup/TagGroup.styles.d.ts +199 -0
  139. package/dist/src/components/TagGroup/index.d.ts +2 -0
  140. package/dist/src/components/TextArea/TextArea.d.ts +14 -0
  141. package/dist/src/components/TextArea/TextArea.styles.d.ts +63 -0
  142. package/dist/src/components/TextArea/index.d.ts +2 -0
  143. package/dist/src/components/TextField/TextField.d.ts +15 -0
  144. package/dist/src/components/TextField/TextField.styles.d.ts +80 -0
  145. package/dist/src/components/TextField/index.d.ts +2 -0
  146. package/dist/src/components/Toast/Toast.d.ts +28 -0
  147. package/dist/src/components/Toast/Toast.styles.d.ts +29 -0
  148. package/dist/src/components/Toast/index.d.ts +1 -0
  149. package/dist/src/components/ToggleButton/ToggleButton.d.ts +11 -0
  150. package/dist/src/components/ToggleButton/ToggleButton.styles.d.ts +223 -0
  151. package/dist/src/components/ToggleButton/index.d.ts +2 -0
  152. package/dist/src/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +10 -0
  153. package/dist/src/components/ToggleButtonGroup/ToggleButtonGroup.styles.d.ts +36 -0
  154. package/dist/src/components/ToggleButtonGroup/context.d.ts +8 -0
  155. package/dist/src/components/ToggleButtonGroup/index.d.ts +2 -0
  156. package/dist/src/components/Tooltip/Tooltip.d.ts +19 -0
  157. package/dist/src/components/Tooltip/Tooltip.styles.d.ts +26 -0
  158. package/dist/src/components/Tooltip/index.d.ts +1 -0
  159. package/dist/src/components/TopList/TopList.d.ts +17 -0
  160. package/dist/src/components/TopList/TopList.styles.d.ts +43 -0
  161. package/dist/src/components/TopList/index.d.ts +2 -0
  162. package/dist/src/components/Typography/Typography.d.ts +26 -0
  163. package/dist/src/components/Typography/Typography.styles.d.ts +53 -0
  164. package/dist/src/components/Typography/index.d.ts +2 -0
  165. package/dist/src/index.d.ts +102 -0
  166. package/dist/src/main.d.ts +0 -0
  167. package/dist/src/theme/ThemeProvider.d.ts +17 -0
  168. package/dist/src/tokens/tokens.stylex.d.ts +121 -0
  169. package/dist/src/utils/mergeProps.d.ts +1 -0
  170. package/dist/src/utils/warnMissingLabel.d.ts +16 -0
  171. package/package.json +94 -0
@@ -0,0 +1,121 @@
1
+ import * as stylex from '@stylexjs/stylex';
2
+ export declare const tokens: stylex.VarGroup<Readonly<{
3
+ colorNeutral50: string;
4
+ colorNeutral100: string;
5
+ colorNeutral200: string;
6
+ colorNeutral300: string;
7
+ colorNeutral400: string;
8
+ colorNeutral500: string;
9
+ colorNeutral600: string;
10
+ colorNeutral700: string;
11
+ colorNeutral800: string;
12
+ colorNeutral900: string;
13
+ colorPrimary50: string;
14
+ colorPrimary100: string;
15
+ colorPrimary200: string;
16
+ colorPrimary300: string;
17
+ colorPrimary400: string;
18
+ colorPrimary500: string;
19
+ colorPrimary600: string;
20
+ colorPrimary700: string;
21
+ colorPrimary800: string;
22
+ colorPrimary900: string;
23
+ colorError300: string;
24
+ colorError400: string;
25
+ colorError500: string;
26
+ colorError600: string;
27
+ colorError700: string;
28
+ colorWarning300: string;
29
+ colorWarning400: string;
30
+ colorWarning500: string;
31
+ colorWarning600: string;
32
+ colorWarning700: string;
33
+ colorSuccess300: string;
34
+ colorSuccess400: string;
35
+ colorSuccess500: string;
36
+ colorSuccess600: string;
37
+ colorSuccess700: string;
38
+ colorBg: string;
39
+ colorBgSubtle: string;
40
+ colorBgElevated: string;
41
+ colorFg: string;
42
+ colorFgSubtle: string;
43
+ colorFgOnPrimary: string;
44
+ colorBorder: string;
45
+ colorBorderSubtle: string;
46
+ colorBorderFocus: string;
47
+ colorBgGlass: string;
48
+ colorBorderGlass: string;
49
+ colorShadow: string;
50
+ colorOverlay: string;
51
+ colorAlertBgInfo: string;
52
+ colorAlertBorderInfo: string;
53
+ colorAlertHoverInfo: string;
54
+ colorAlertActiveInfo: string;
55
+ colorAlertBgAccent: string;
56
+ colorAlertBorderAccent: string;
57
+ colorAlertHoverAccent: string;
58
+ colorAlertActiveAccent: string;
59
+ colorAlertBgSuccess: string;
60
+ colorAlertBorderSuccess: string;
61
+ colorAlertHoverSuccess: string;
62
+ colorAlertActiveSuccess: string;
63
+ colorAlertBgWarning: string;
64
+ colorAlertBorderWarning: string;
65
+ colorAlertHoverWarning: string;
66
+ colorAlertActiveWarning: string;
67
+ colorAlertBgError: string;
68
+ colorAlertBorderError: string;
69
+ colorAlertHoverError: string;
70
+ colorAlertActiveError: string;
71
+ fontSizeXs: string;
72
+ fontSizeSm: string;
73
+ fontSizeMd: string;
74
+ fontSizeLg: string;
75
+ fontSizeXl: string;
76
+ fontSizeXxl: string;
77
+ fontSize3xl: string;
78
+ fontSize4xl: string;
79
+ lineHeightXs: string;
80
+ lineHeightSm: string;
81
+ lineHeightMd: string;
82
+ lineHeightLg: string;
83
+ lineHeightXl: string;
84
+ lineHeightXxl: string;
85
+ lineHeight3xl: string;
86
+ lineHeight4xl: string;
87
+ fontWeightNormal: string;
88
+ fontWeightMedium: string;
89
+ fontWeightSemibold: string;
90
+ fontWeightBold: string;
91
+ fontFamilyBase: string;
92
+ spacing1: string;
93
+ spacing2: string;
94
+ spacing3: string;
95
+ spacing4: string;
96
+ spacing5: string;
97
+ spacing6: string;
98
+ spacing7: string;
99
+ spacing8: string;
100
+ radiusNone: string;
101
+ radiusSm: string;
102
+ radiusMd: string;
103
+ radiusLg: string;
104
+ radiusFull: string;
105
+ shadowSm: string;
106
+ shadowMd: string;
107
+ shadowLg: string;
108
+ zIndexBase: string;
109
+ zIndexDropdown: string;
110
+ zIndexModal: string;
111
+ zIndexTooltip: string;
112
+ zIndexToast: string;
113
+ colorChart1: string;
114
+ colorChart2: string;
115
+ colorChart3: string;
116
+ colorChart4: string;
117
+ colorChart5: string;
118
+ colorChart6: string;
119
+ colorChart7: string;
120
+ colorChart8: string;
121
+ }>, symbol>;
@@ -0,0 +1 @@
1
+ export { mergeProps } from 'react-aria';
@@ -0,0 +1,16 @@
1
+ import type * as React from 'react';
2
+ /**
3
+ * Helper to recursively detect non-empty text content inside React children.
4
+ */
5
+ export declare function hasTextContent(children: React.ReactNode): boolean;
6
+ interface WarnMissingLabelOptions {
7
+ label?: string;
8
+ labelledBy?: string;
9
+ children?: React.ReactNode;
10
+ }
11
+ /**
12
+ * Warns in the console during development if an interactive component
13
+ * lacks an accessible name (label, labelledBy, or non-empty text children).
14
+ */
15
+ export declare function warnMissingLabel(componentName: string, { label, labelledBy, children }: WarnMissingLabelOptions): void;
16
+ export {};
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@moul-dev/ui",
3
+ "version": "2026.08.17",
4
+ "description": "Accessible, zero-runtime React component library built on React Aria and StyleX",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/moul-ui.js",
8
+ "module": "./dist/moul-ui.js",
9
+ "types": "./dist/src/index.d.ts",
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/moul-dev/ui.git",
21
+ "directory": "ui"
22
+ },
23
+ "homepage": "https://moul.dev/ui",
24
+ "bugs": {
25
+ "url": "https://github.com/moul-dev/ui/issues"
26
+ },
27
+ "keywords": [
28
+ "react",
29
+ "react-aria",
30
+ "stylex",
31
+ "components",
32
+ "accessible",
33
+ "design-system",
34
+ "zero-runtime",
35
+ "ui"
36
+ ],
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/src/index.d.ts",
40
+ "import": "./dist/moul-ui.js"
41
+ },
42
+ "./style": {
43
+ "style": "./dist/assets/stylex.css",
44
+ "default": "./dist/assets/stylex.css"
45
+ },
46
+ "./style.css": {
47
+ "style": "./dist/assets/stylex.css",
48
+ "default": "./dist/assets/stylex.css"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "dev": "vite",
53
+ "build": "tsc -b && vite build",
54
+ "build:watch": "vite build --watch",
55
+ "lint": "eslint .",
56
+ "preview": "vite preview",
57
+ "test": "vitest run"
58
+ },
59
+ "peerDependencies": {
60
+ "react": "^18.0.0 || ^19.0.0",
61
+ "react-dom": "^18.0.0 || ^19.0.0"
62
+ },
63
+ "dependencies": {
64
+ "@stylexjs/stylex": "^0.19.0",
65
+ "input-otp": "^1.4.2",
66
+ "react-aria": "^3.50.0",
67
+ "react-aria-components": "^1.19.0",
68
+ "recharts": "^3.9.2"
69
+ },
70
+ "devDependencies": {
71
+ "@eslint/js": "^10.0.1",
72
+ "@stylexjs/unplugin": "^0.19.0",
73
+ "@testing-library/jest-dom": "^6.6.3",
74
+ "@testing-library/react": "^16.1.0",
75
+ "@types/node": "^24.12.3",
76
+ "@types/react": "^19.2.14",
77
+ "@types/react-dom": "^19.2.3",
78
+ "@vitejs/plugin-react": "^6.0.1",
79
+ "eslint": "^10.3.0",
80
+ "eslint-plugin-react-hooks": "^7.1.1",
81
+ "eslint-plugin-react-refresh": "^0.5.2",
82
+ "fast-check": "^3.23.2",
83
+ "glob": "^11.0.0",
84
+ "globals": "^17.6.0",
85
+ "jsdom": "^25.0.1",
86
+ "react": "^19.2.6",
87
+ "react-dom": "^19.2.6",
88
+ "typescript": "~6.0.2",
89
+ "typescript-eslint": "^8.59.2",
90
+ "vite": "^8.0.12",
91
+ "vite-plugin-dts": "^5.0.2",
92
+ "vitest": "^2.1.8"
93
+ }
94
+ }