this.gui 1.0.1 → 1.0.11
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 +46 -7
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
<img src="https://suign.github.io/assets/imgs/this_GUI.svg" alt="Cleaker Me" width="377" height="377">
|
|
2
2
|
|
|
3
3
|
# THIS.GUI
|
|
4
|
+
The goal is to automate the **GUI** generation process so users only pass data or configurations, and **this.GUI** handles the rest.
|
|
5
|
+
The package exports:
|
|
6
|
+
• Pre-defined components.
|
|
7
|
+
• MDX and Theme Providers.
|
|
8
|
+
• An MDX editor interface.
|
|
4
9
|
|
|
5
10
|
Install `this.gui` via **npm**:
|
|
6
11
|
```shell
|
|
7
12
|
npm install this.gui
|
|
8
13
|
```
|
|
9
|
-
|
|
10
14
|
Then run command:
|
|
11
|
-
|
|
12
15
|
```bash
|
|
13
16
|
npm start
|
|
14
|
-
```
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
```
|
|
19
|
+
a. Export Pre-built Components
|
|
20
|
+
Components are categorized (Atoms, Molecules, etc.) and are exportable so users can easily import them into their MDX files or directly in their React components.
|
|
17
21
|
|
|
18
22
|
## **Explanation of Grouping:**
|
|
19
|
-
|
|
20
23
|
• **Atomic**: Smallest components that are not broken down further.
|
|
21
|
-
|
|
22
24
|
Alert, Audio, Badge, Button, Caption, Checkbox, Container, Divider, Heading, Icon, Image, Label, Link , Loader, Paragraph, ProgressBar, RadioButton, RangeInput, Select, Slider, Snackbar, Spacer, Spinner, Tag, TextArea, TextInput, Toggle, Tooltip, Video.
|
|
23
25
|
|
|
24
26
|
• **Molecules**: Simple combinations of atomic components that together form a small UI feature.
|
|
25
|
-
|
|
26
27
|
Accordion, AudioPlayer, AvatarWithName, Breadcrumbs, ButtonGroup, Card, ComparisonTable, DataTable, FileUpload, FormField, Header, IconButton, ImageWithCaption, InputGroup, InputWithLabel, List, MediaCard, Modal, Navbar, Notification, PricingTable, SearchBar, Sidebar, VideoWithDescription.
|
|
27
28
|
|
|
28
29
|
• **Organisms**: More complex, combining molecules and atomic components to create larger, more detailed features.
|
|
@@ -31,6 +32,44 @@ Accordion, AudioPlayer, AvatarWithName, Breadcrumbs, ButtonGroup, Card, Comparis
|
|
|
31
32
|
• **Pages**: Complete and functional pages made up of templates and content.
|
|
32
33
|
• **Miscellaneous**: Utility components that don’t fit into the above categories but provide important functions, such as popovers, overlays, and media controls.
|
|
33
34
|
|
|
35
|
+
On installation this.GUI will be setup as:
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
├── /GUI # Dedicated directory for GUI components and MDX pages
|
|
39
|
+
│ ├── /components # Custom components created by the user
|
|
40
|
+
│ ├── /mdx # MDX files defining pages and content using components
|
|
41
|
+
│ └── /styles # Custom styles for components (optional)
|
|
42
|
+
|
|
43
|
+
Breakdown of Each Subdirectory:
|
|
44
|
+
/components:
|
|
45
|
+
This is where users build their custom React components. They can create new components, extend existing ones from this.GUI, or modify them as needed. These components can then be used throughout the MDX files.
|
|
46
|
+
|
|
47
|
+
/mdx:
|
|
48
|
+
This folder is used to store MDX files that act as pages or sections of the application. Users can import and use components from the /components folder or from the generic set provided by this.GUI. This allows for a highly modular and customizable interface creation.
|
|
49
|
+
|
|
50
|
+
/styles:
|
|
51
|
+
This optional directory can be used for custom CSS or style files that modify the look and feel of the components and layouts. Users can define global styles, component-specific styles, or themes to match their brand.
|
|
52
|
+
|
|
53
|
+
Workflow for Users:
|
|
54
|
+
Install this.GUI:
|
|
55
|
+
npm install this.GUI will automatically set up the /GUI directory with the necessary subdirectories.
|
|
56
|
+
|
|
57
|
+
Create Components:
|
|
58
|
+
Users can start creating their own components in /components, using the provided components as a base or inspiration.
|
|
59
|
+
|
|
60
|
+
Build Pages with MDX:
|
|
61
|
+
MDX files in the /mdx folder can be used to assemble pages, where users can directly import and use the components they've created.
|
|
62
|
+
|
|
63
|
+
Style Customization:
|
|
64
|
+
Any additional styling or theming can be managed in the /styles directory, keeping design consistent and organized.
|
|
65
|
+
|
|
66
|
+
Run and Test:
|
|
67
|
+
Users run their main app using their existing development setup, and the MDX files will render the React components, effectively creating the desired GUI.
|
|
68
|
+
|
|
69
|
+
Build for Production:
|
|
70
|
+
Once development is complete, the GUI directory can be built into a dist folder, packaging the components, pages, and styles for deployment or distribution.
|
|
71
|
+
|
|
72
|
+
This approach keeps the GUI modular, maintainable, and focused on user experience design, while the backend and other logic remain separate and manageable.
|
|
34
73
|
|
|
35
74
|
|
|
36
75
|
# About All.This
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "this.gui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "This Graphic User Interface.",
|
|
5
5
|
"main": "dist/this-gui.umd.js",
|
|
6
6
|
"module": "dist/this-gui.es.js",
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
"url": "git+https://github.com/neurons-me/GUI.git"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
|
|
12
|
+
"start": "node ./src/scripts/logASCIIArt.js && concurrently \"vite --open\" \"storybook dev -p 6006 --no-open\"",
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"build": "vite build",
|
|
15
15
|
"prepublishOnly": "npm run build",
|
|
16
16
|
"storybook": "storybook dev -p ${STORYBOOK_PORT:-6006}",
|
|
17
|
-
"build-storybook": "storybook build"
|
|
17
|
+
"build-storybook": "storybook build",
|
|
18
|
+
"postinstall": "node src/scripts/postinstall.js"
|
|
18
19
|
},
|
|
19
20
|
"type": "module",
|
|
20
21
|
"author": "suiGn",
|