rettangoli-ui 0.1.0-rc1 → 0.1.0-rc3
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 -27
- package/dist/rettangoli-iife-layout.min.js +360 -284
- package/dist/rettangoli-iife-ui.min.js +382 -548
- package/package.json +13 -5
- package/src/common/BaseElement.js +182 -0
- package/src/common.js +190 -0
- package/src/components/dialog/dialog.handlers.js +5 -0
- package/src/components/dialog/dialog.store.js +24 -0
- package/src/components/dialog/dialog.view.yaml +40 -0
- package/src/components/form/form.handlers.js +30 -0
- package/src/components/form/form.store.js +45 -0
- package/src/components/form/form.view.yaml +47 -0
- package/src/components/navbar/navbar.examples.yaml +86 -0
- package/src/components/navbar/navbar.handlers.js +10 -0
- package/src/components/navbar/navbar.store.js +46 -0
- package/src/components/navbar/navbar.view.yaml +74 -0
- package/src/components/pageOutline/pageOutline.handlers.js +69 -0
- package/src/components/pageOutline/pageOutline.store.js +40 -0
- package/src/components/pageOutline/pageOutline.view.yaml +34 -0
- package/src/components/popover/popover.handlers.js +17 -0
- package/src/components/popover/popover.store.js +37 -0
- package/src/components/popover/popover.view.yaml +50 -0
- package/src/components/select/select.handlers.js +15 -0
- package/src/components/select/select.store.js +25 -0
- package/src/components/select/select.view.yaml +38 -0
- package/src/components/sidebar/sidebar.handlers.js +36 -0
- package/src/components/sidebar/sidebar.store.js +125 -0
- package/src/components/sidebar/sidebar.view.yaml +186 -0
- package/src/entry-iife-layout.js +15 -0
- package/src/entry-iife-ui.js +18 -0
- package/src/index.js +17 -0
- package/src/lib/uhtml.js +9 -0
- package/src/primitives/button.js +263 -0
- package/src/primitives/image.js +234 -0
- package/src/primitives/input.js +208 -0
- package/src/primitives/svg.js +95 -0
- package/src/primitives/text.js +141 -0
- package/src/primitives/textarea.js +103 -0
- package/src/primitives/view.js +215 -0
- package/src/setup.js +16 -0
- package/src/styles/anchorStyles.js +13 -0
- package/src/styles/buttonMarginStyles.js +84 -0
- package/src/styles/cursorStyles.js +12 -0
- package/src/styles/flexChildStyles.js +43 -0
- package/src/styles/flexDirectionStyles.js +74 -0
- package/src/styles/marginStyles.js +13 -0
- package/src/styles/paddingSvgStyles.js +120 -0
- package/src/styles/scrollStyles.js +22 -0
- package/src/styles/textColorStyles.js +14 -0
- package/src/styles/textStyles.js +62 -0
- package/src/styles/viewStyles.js +119 -0
package/README.md
CHANGED
@@ -9,6 +9,8 @@ The following:
|
|
9
9
|
* rtgl-image
|
10
10
|
* rtgl-svg
|
11
11
|
* rtgl-button
|
12
|
+
* rtgl-input
|
13
|
+
* rtgl-textarea
|
12
14
|
|
13
15
|
All UI components should be able to be built from the above primitives
|
14
16
|
|
@@ -17,44 +19,31 @@ All UI components should be able to be built from the above primitives
|
|
17
19
|
|
18
20
|
### Install dependencies
|
19
21
|
|
20
|
-
```
|
21
|
-
bun install
|
22
|
-
```
|
23
|
-
|
24
|
-
### Generate test screens
|
25
22
|
|
26
|
-
Generate all test screens
|
27
23
|
|
24
|
+
```bash
|
25
|
+
bun install
|
28
26
|
```
|
29
|
-
bun run esbuild
|
30
|
-
bun run ./viz/cli.js generate
|
31
|
-
bunx serve ./viz/_site
|
32
|
-
```
|
33
|
-
|
34
|
-
Visit your browser at http://localhost:3000/view
|
35
27
|
|
36
|
-
It should show you all the test cases for View compoenent, and can navigate to other components on the left sidebar
|
37
28
|
|
38
|
-
### Report
|
39
29
|
|
40
|
-
Make sure the run `generate` first
|
41
|
-
```
|
42
|
-
bun run ./viz/cli.js report
|
43
|
-
```
|
44
|
-
|
45
|
-
Visit your browser at http://localhost:3000/report (make sure you're still serving the `./viz/_site` folder)
|
46
30
|
|
47
|
-
|
31
|
+
### Generate test screens
|
48
32
|
|
49
|
-
|
33
|
+
Bundles the code to be used for `rettangoli-vt`
|
50
34
|
|
51
|
-
```
|
52
|
-
bun run
|
35
|
+
```bash
|
36
|
+
bun run build:dev
|
53
37
|
```
|
54
38
|
|
55
|
-
|
56
|
-
|
57
|
-
Run this after you have made sure that the report is what you expect
|
39
|
+
Uses `rettangoli-vt` to generates test screens
|
58
40
|
|
41
|
+
```bash
|
42
|
+
bun run ../rettangoli-cli/cli.js vt generate --skip-screenshots
|
43
|
+
```
|
59
44
|
|
45
|
+
You can then access the generates screens
|
60
46
|
|
47
|
+
```bash
|
48
|
+
bunx serve ./viz/_site
|
49
|
+
```
|