@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.
- package/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/assets/stylex.css +2391 -0
- package/dist/favicon.svg +20 -0
- package/dist/icons.svg +24 -0
- package/dist/moul-ui.js +6662 -0
- package/dist/src/App.d.ts +2 -0
- package/dist/src/components/Alert/Alert.d.ts +14 -0
- package/dist/src/components/Alert/Alert.styles.d.ts +188 -0
- package/dist/src/components/Alert/index.d.ts +2 -0
- package/dist/src/components/AlertDialog/AlertDialog.d.ts +23 -0
- package/dist/src/components/AlertDialog/AlertDialog.styles.d.ts +35 -0
- package/dist/src/components/AlertDialog/index.d.ts +1 -0
- package/dist/src/components/AreaChart/AreaChart.d.ts +21 -0
- package/dist/src/components/AreaChart/AreaChart.styles.d.ts +7 -0
- package/dist/src/components/AreaChart/index.d.ts +2 -0
- package/dist/src/components/Avatar/Avatar.d.ts +10 -0
- package/dist/src/components/Avatar/Avatar.styles.d.ts +31 -0
- package/dist/src/components/Avatar/index.d.ts +2 -0
- package/dist/src/components/Badge/Badge.d.ts +9 -0
- package/dist/src/components/Badge/Badge.styles.d.ts +35 -0
- package/dist/src/components/Badge/index.d.ts +2 -0
- package/dist/src/components/BarChart/BarChart.d.ts +16 -0
- package/dist/src/components/BarChart/BarChart.styles.d.ts +7 -0
- package/dist/src/components/BarChart/index.d.ts +2 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.styles.d.ts +34 -0
- package/dist/src/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/src/components/Button/Button.d.ts +10 -0
- package/dist/src/components/Button/Button.styles.d.ts +148 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +7 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.styles.d.ts +9 -0
- package/dist/src/components/ButtonGroup/index.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +19 -0
- package/dist/src/components/Card/Card.styles.d.ts +185 -0
- package/dist/src/components/Card/CardBody.d.ts +7 -0
- package/dist/src/components/Card/CardFooter.d.ts +7 -0
- package/dist/src/components/Card/CardHeader.d.ts +7 -0
- package/dist/src/components/Card/index.d.ts +8 -0
- package/dist/src/components/ChartCommon.d.ts +1 -0
- package/dist/src/components/ChartContainer/ChartContainer.d.ts +21 -0
- package/dist/src/components/ChartContainer/ChartContainer.styles.d.ts +124 -0
- package/dist/src/components/ChartContainer/index.d.ts +2 -0
- package/dist/src/components/ChartTooltip/ChartTooltip.d.ts +8 -0
- package/dist/src/components/ChartTooltip/ChartTooltip.styles.d.ts +61 -0
- package/dist/src/components/ChartTooltip/index.d.ts +2 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/src/components/Checkbox/Checkbox.styles.d.ts +94 -0
- package/dist/src/components/Checkbox/context.d.ts +5 -0
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.styles.d.ts +18 -0
- package/dist/src/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/src/components/ComboBox/ComboBox.d.ts +25 -0
- package/dist/src/components/ComboBox/ComboBox.styles.d.ts +223 -0
- package/dist/src/components/ComboBox/index.d.ts +2 -0
- package/dist/src/components/Description/Description.d.ts +8 -0
- package/dist/src/components/Description/Description.styles.d.ts +9 -0
- package/dist/src/components/Description/index.d.ts +2 -0
- package/dist/src/components/DoughnutChart/DoughnutChart.d.ts +15 -0
- package/dist/src/components/DoughnutChart/DoughnutChart.styles.d.ts +10 -0
- package/dist/src/components/DoughnutChart/index.d.ts +2 -0
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +7 -0
- package/dist/src/components/ErrorMessage/ErrorMessage.styles.d.ts +9 -0
- package/dist/src/components/ErrorMessage/index.d.ts +2 -0
- package/dist/src/components/FieldError/FieldError.d.ts +9 -0
- package/dist/src/components/FieldError/FieldError.styles.d.ts +9 -0
- package/dist/src/components/FieldError/index.d.ts +2 -0
- package/dist/src/components/Form/Form.d.ts +8 -0
- package/dist/src/components/Form/Form.styles.d.ts +3 -0
- package/dist/src/components/Form/index.d.ts +2 -0
- package/dist/src/components/InputOTP/InputOTP.d.ts +25 -0
- package/dist/src/components/InputOTP/InputOTP.styles.d.ts +113 -0
- package/dist/src/components/InputOTP/index.d.ts +3 -0
- package/dist/src/components/Kbd/Kbd.d.ts +7 -0
- package/dist/src/components/Kbd/Kbd.styles.d.ts +20 -0
- package/dist/src/components/Kbd/index.d.ts +2 -0
- package/dist/src/components/Label/Label.d.ts +8 -0
- package/dist/src/components/Label/Label.styles.d.ts +10 -0
- package/dist/src/components/Label/index.d.ts +2 -0
- package/dist/src/components/LineChart/LineChart.d.ts +15 -0
- package/dist/src/components/LineChart/LineChart.styles.d.ts +7 -0
- package/dist/src/components/LineChart/index.d.ts +2 -0
- package/dist/src/components/Link/Link.d.ts +9 -0
- package/dist/src/components/Link/Link.styles.d.ts +92 -0
- package/dist/src/components/Link/index.d.ts +2 -0
- package/dist/src/components/Modal/Modal.d.ts +34 -0
- package/dist/src/components/Modal/Modal.styles.d.ts +91 -0
- package/dist/src/components/Modal/index.d.ts +1 -0
- package/dist/src/components/NumberField/NumberField.d.ts +14 -0
- package/dist/src/components/NumberField/NumberField.styles.d.ts +147 -0
- package/dist/src/components/NumberField/index.d.ts +2 -0
- package/dist/src/components/Percentage/Percentage.styles.d.ts +70 -0
- package/dist/src/components/Percentage/PercentageBar.d.ts +11 -0
- package/dist/src/components/Percentage/PercentageCircle.d.ts +12 -0
- package/dist/src/components/Percentage/index.d.ts +4 -0
- package/dist/src/components/Popover/Popover.d.ts +15 -0
- package/dist/src/components/Popover/Popover.styles.d.ts +22 -0
- package/dist/src/components/Popover/index.d.ts +1 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/src/components/RadioGroup/RadioGroup.styles.d.ts +75 -0
- package/dist/src/components/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/SearchField/SearchField.d.ts +14 -0
- package/dist/src/components/SearchField/SearchField.styles.d.ts +147 -0
- package/dist/src/components/SearchField/index.d.ts +2 -0
- package/dist/src/components/Select/Select.d.ts +30 -0
- package/dist/src/components/Select/Select.styles.d.ts +171 -0
- package/dist/src/components/Select/index.d.ts +2 -0
- package/dist/src/components/Separator/Separator.d.ts +8 -0
- package/dist/src/components/Separator/Separator.styles.d.ts +20 -0
- package/dist/src/components/Separator/index.d.ts +2 -0
- package/dist/src/components/Sidebar/Sidebar.d.ts +77 -0
- package/dist/src/components/Sidebar/Sidebar.styles.d.ts +326 -0
- package/dist/src/components/Sidebar/index.d.ts +2 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +7 -0
- package/dist/src/components/Skeleton/Skeleton.styles.d.ts +17 -0
- package/dist/src/components/Skeleton/index.d.ts +2 -0
- package/dist/src/components/Slider/Slider.d.ts +21 -0
- package/dist/src/components/Slider/Slider.styles.d.ts +78 -0
- package/dist/src/components/Slider/index.d.ts +2 -0
- package/dist/src/components/Spinner/Spinner.d.ts +9 -0
- package/dist/src/components/Spinner/Spinner.styles.d.ts +20 -0
- package/dist/src/components/Spinner/index.d.ts +2 -0
- package/dist/src/components/Stat/Stat.d.ts +15 -0
- package/dist/src/components/Stat/Stat.styles.d.ts +115 -0
- package/dist/src/components/Stat/index.d.ts +2 -0
- package/dist/src/components/Switch/Switch.d.ts +8 -0
- package/dist/src/components/Switch/Switch.styles.d.ts +66 -0
- package/dist/src/components/Switch/index.d.ts +2 -0
- package/dist/src/components/Table/Table.d.ts +33 -0
- package/dist/src/components/Table/Table.styles.d.ts +77 -0
- package/dist/src/components/Table/index.d.ts +2 -0
- package/dist/src/components/Tabs/Tabs.d.ts +29 -0
- package/dist/src/components/Tabs/Tabs.styles.d.ts +186 -0
- package/dist/src/components/Tabs/index.d.ts +2 -0
- package/dist/src/components/TagGroup/TagGroup.d.ts +27 -0
- package/dist/src/components/TagGroup/TagGroup.styles.d.ts +199 -0
- package/dist/src/components/TagGroup/index.d.ts +2 -0
- package/dist/src/components/TextArea/TextArea.d.ts +14 -0
- package/dist/src/components/TextArea/TextArea.styles.d.ts +63 -0
- package/dist/src/components/TextArea/index.d.ts +2 -0
- package/dist/src/components/TextField/TextField.d.ts +15 -0
- package/dist/src/components/TextField/TextField.styles.d.ts +80 -0
- package/dist/src/components/TextField/index.d.ts +2 -0
- package/dist/src/components/Toast/Toast.d.ts +28 -0
- package/dist/src/components/Toast/Toast.styles.d.ts +29 -0
- package/dist/src/components/Toast/index.d.ts +1 -0
- package/dist/src/components/ToggleButton/ToggleButton.d.ts +11 -0
- package/dist/src/components/ToggleButton/ToggleButton.styles.d.ts +223 -0
- package/dist/src/components/ToggleButton/index.d.ts +2 -0
- package/dist/src/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +10 -0
- package/dist/src/components/ToggleButtonGroup/ToggleButtonGroup.styles.d.ts +36 -0
- package/dist/src/components/ToggleButtonGroup/context.d.ts +8 -0
- package/dist/src/components/ToggleButtonGroup/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +19 -0
- package/dist/src/components/Tooltip/Tooltip.styles.d.ts +26 -0
- package/dist/src/components/Tooltip/index.d.ts +1 -0
- package/dist/src/components/TopList/TopList.d.ts +17 -0
- package/dist/src/components/TopList/TopList.styles.d.ts +43 -0
- package/dist/src/components/TopList/index.d.ts +2 -0
- package/dist/src/components/Typography/Typography.d.ts +26 -0
- package/dist/src/components/Typography/Typography.styles.d.ts +53 -0
- package/dist/src/components/Typography/index.d.ts +2 -0
- package/dist/src/index.d.ts +102 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/theme/ThemeProvider.d.ts +17 -0
- package/dist/src/tokens/tokens.stylex.d.ts +121 -0
- package/dist/src/utils/mergeProps.d.ts +1 -0
- package/dist/src/utils/warnMissingLabel.d.ts +16 -0
- 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
|
+
}
|