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.
Files changed (51) hide show
  1. package/README.md +16 -27
  2. package/dist/rettangoli-iife-layout.min.js +360 -284
  3. package/dist/rettangoli-iife-ui.min.js +382 -548
  4. package/package.json +13 -5
  5. package/src/common/BaseElement.js +182 -0
  6. package/src/common.js +190 -0
  7. package/src/components/dialog/dialog.handlers.js +5 -0
  8. package/src/components/dialog/dialog.store.js +24 -0
  9. package/src/components/dialog/dialog.view.yaml +40 -0
  10. package/src/components/form/form.handlers.js +30 -0
  11. package/src/components/form/form.store.js +45 -0
  12. package/src/components/form/form.view.yaml +47 -0
  13. package/src/components/navbar/navbar.examples.yaml +86 -0
  14. package/src/components/navbar/navbar.handlers.js +10 -0
  15. package/src/components/navbar/navbar.store.js +46 -0
  16. package/src/components/navbar/navbar.view.yaml +74 -0
  17. package/src/components/pageOutline/pageOutline.handlers.js +69 -0
  18. package/src/components/pageOutline/pageOutline.store.js +40 -0
  19. package/src/components/pageOutline/pageOutline.view.yaml +34 -0
  20. package/src/components/popover/popover.handlers.js +17 -0
  21. package/src/components/popover/popover.store.js +37 -0
  22. package/src/components/popover/popover.view.yaml +50 -0
  23. package/src/components/select/select.handlers.js +15 -0
  24. package/src/components/select/select.store.js +25 -0
  25. package/src/components/select/select.view.yaml +38 -0
  26. package/src/components/sidebar/sidebar.handlers.js +36 -0
  27. package/src/components/sidebar/sidebar.store.js +125 -0
  28. package/src/components/sidebar/sidebar.view.yaml +186 -0
  29. package/src/entry-iife-layout.js +15 -0
  30. package/src/entry-iife-ui.js +18 -0
  31. package/src/index.js +17 -0
  32. package/src/lib/uhtml.js +9 -0
  33. package/src/primitives/button.js +263 -0
  34. package/src/primitives/image.js +234 -0
  35. package/src/primitives/input.js +208 -0
  36. package/src/primitives/svg.js +95 -0
  37. package/src/primitives/text.js +141 -0
  38. package/src/primitives/textarea.js +103 -0
  39. package/src/primitives/view.js +215 -0
  40. package/src/setup.js +16 -0
  41. package/src/styles/anchorStyles.js +13 -0
  42. package/src/styles/buttonMarginStyles.js +84 -0
  43. package/src/styles/cursorStyles.js +12 -0
  44. package/src/styles/flexChildStyles.js +43 -0
  45. package/src/styles/flexDirectionStyles.js +74 -0
  46. package/src/styles/marginStyles.js +13 -0
  47. package/src/styles/paddingSvgStyles.js +120 -0
  48. package/src/styles/scrollStyles.js +22 -0
  49. package/src/styles/textColorStyles.js +14 -0
  50. package/src/styles/textStyles.js +62 -0
  51. 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
- This will compare any changes between current version and the `gold` version screenshots
31
+ ### Generate test screens
48
32
 
49
- ### Accept
33
+ Bundles the code to be used for `rettangoli-vt`
50
34
 
51
- ```
52
- bun run ./viz/cli.js accept
35
+ ```bash
36
+ bun run build:dev
53
37
  ```
54
38
 
55
- Updates the `gold` version screenshots with the current version.
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
+ ```