@mdigital_ui/ui 0.2.0 → 0.2.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.
- package/README.md +16 -19
- package/dist/index.js +5 -5
- package/dist/styles/base.css +3027 -137
- package/dist/styles/global.css +4199 -285
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -19,45 +19,42 @@ Modern React component library built with Tailwind CSS v4, designed for multi-br
|
|
|
19
19
|
npm install @mdigital_ui/ui
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
**That's it!** All dependencies are included. Tree-shaking ensures only the components you import end up in your production bundle.
|
|
22
|
+
**That's it!** All dependencies and styles are included. Tree-shaking ensures only the components you import end up in your production bundle.
|
|
23
23
|
|
|
24
24
|
### Peer Dependencies
|
|
25
25
|
|
|
26
26
|
You need to have these in your project:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install react react-dom
|
|
29
|
+
npm install react react-dom
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
|
-
### 1.
|
|
34
|
+
### 1. Import Styles
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
In your main application entry point (e.g., `app/layout.tsx` or `src/main.tsx`):
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
```tsx
|
|
39
|
+
// Import the base styles
|
|
40
|
+
import '@mdigital_ui/ui/styles/base.css'
|
|
41
|
+
// Import light theme (default)
|
|
42
|
+
import '@mdigital_ui/ui/styles/themes/light.css'
|
|
43
|
+
// Optional: Import dark theme for dark mode support
|
|
44
|
+
import '@mdigital_ui/ui/styles/themes/dark.css'
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
In your main CSS file or layout:
|
|
47
|
+
**Or** import in your CSS file:
|
|
50
48
|
|
|
51
49
|
```css
|
|
52
50
|
/* app/globals.css or src/index.css */
|
|
53
|
-
@import '@
|
|
54
|
-
@import '@
|
|
55
|
-
|
|
51
|
+
@import '@mdigital_ui/ui/styles/base.css';
|
|
52
|
+
@import '@mdigital_ui/ui/styles/themes/light.css';
|
|
56
53
|
/* Optional: Dark mode */
|
|
57
|
-
@import '@
|
|
54
|
+
@import '@mdigital_ui/ui/styles/themes/dark.css';
|
|
58
55
|
```
|
|
59
56
|
|
|
60
|
-
###
|
|
57
|
+
### 2. Use Components
|
|
61
58
|
|
|
62
59
|
```tsx
|
|
63
60
|
import { Button, Input, Card } from '@mdigital/ui'
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { tooltip_default as Tooltip } from './chunk-D3JWPGCA.js';
|
|
2
1
|
export { Transfer } from './chunk-EYTOKUBM.js';
|
|
2
|
+
export { tooltip_default as Tooltip } from './chunk-D3JWPGCA.js';
|
|
3
3
|
export { tree_select_default as TreeSelect } from './chunk-JZCHZ4B3.js';
|
|
4
4
|
export { tree_default as Tree } from './chunk-SAVE5ACL.js';
|
|
5
5
|
export { upload_default as Upload } from './chunk-I5ANSIDK.js';
|
|
6
6
|
export { slider_default as Slider } from './chunk-NNSS366W.js';
|
|
7
7
|
export { stepper_default as Stepper } from './chunk-MLDX3Z67.js';
|
|
8
8
|
export { switch_default as Switch } from './chunk-AOITJRSV.js';
|
|
9
|
-
export { table_default as Table } from './chunk-L3SP7GHC.js';
|
|
10
|
-
export { toggle_group_default as ToggleGroup } from './chunk-SK5ECBBK.js';
|
|
11
|
-
export { tabs_default as Tabs } from './chunk-OW5A5IIF.js';
|
|
12
9
|
export { textarea_default as Textarea } from './chunk-FPOXTCYV.js';
|
|
10
|
+
export { tabs_default as Tabs } from './chunk-OW5A5IIF.js';
|
|
13
11
|
export { toggle_default as Toggle } from './chunk-DPOSWW22.js';
|
|
12
|
+
export { table_default as Table } from './chunk-L3SP7GHC.js';
|
|
13
|
+
export { toggle_group_default as ToggleGroup } from './chunk-SK5ECBBK.js';
|
|
14
14
|
export { progress_default as Progress } from './chunk-RQBXZKTH.js';
|
|
15
15
|
export { radio_default as Radio } from './chunk-KTBPIEP2.js';
|
|
16
16
|
export { radio_group_default as RadioGroup } from './chunk-DOKTHDG3.js';
|
|
@@ -29,8 +29,8 @@ export { descriptions_default as Descriptions } from './chunk-S5XJXU52.js';
|
|
|
29
29
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './chunk-AWPKZYHT.js';
|
|
30
30
|
export { empty_default as Empty } from './chunk-ROR4E6IE.js';
|
|
31
31
|
export { fetching_overlay_default as FetchingOverlay } from './chunk-BNILRB4T.js';
|
|
32
|
-
export { grid_default as Grid } from './chunk-7PKVBUGL.js';
|
|
33
32
|
export { image_default as Image } from './chunk-XMAH5PDW.js';
|
|
33
|
+
export { grid_default as Grid } from './chunk-7PKVBUGL.js';
|
|
34
34
|
export { input_default as Input } from './chunk-2JGAYDZR.js';
|
|
35
35
|
export { cascader_default as Cascader } from './chunk-SERJ3TZE.js';
|
|
36
36
|
export { AreaChart, BarChart, ComposedChart, LineChart, PieChart } from './chunk-BP434VYV.js';
|