elbe-ui 0.2.5 → 0.2.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.
Files changed (49) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/ui/color_theme.d.ts +5 -0
  3. package/dist/ui/components/badge.d.ts +25 -0
  4. package/dist/ui/components/box.d.ts +1027 -0
  5. package/dist/ui/components/button.d.ts +23 -0
  6. package/dist/ui/components/card.d.ts +14 -0
  7. package/dist/ui/components/dialog.d.ts +8 -0
  8. package/dist/ui/components/flex.d.ts +11 -0
  9. package/dist/ui/components/icon_button.d.ts +19 -0
  10. package/dist/ui/components/input/checkbox.d.ts +6 -0
  11. package/dist/ui/components/input/input_field.d.ts +22 -0
  12. package/dist/ui/components/input/range.d.ts +8 -0
  13. package/dist/ui/components/input/select.d.ts +10 -0
  14. package/dist/ui/components/input/text_area.d.ts +10 -0
  15. package/dist/ui/components/padded.d.ts +25 -0
  16. package/dist/ui/components/text.d.ts +33 -0
  17. package/dist/ui/components/toggle_button.d.ts +12 -0
  18. package/dist/ui/components/util.d.ts +3 -0
  19. package/dist/ui/util/confirm_dialog.d.ts +10 -0
  20. package/dist/ui/util/error_view.d.ts +1 -0
  21. package/dist/ui/util/toast.d.ts +5 -0
  22. package/dist/ui/util/util.d.ts +3 -0
  23. package/package.json +6 -3
  24. package/src/index.ts +24 -0
  25. package/src/ui/color_theme.ts +24 -0
  26. package/src/ui/components/badge.tsx +78 -0
  27. package/src/ui/components/box.tsx +49 -0
  28. package/src/ui/components/button.tsx +61 -0
  29. package/src/ui/components/card.tsx +45 -0
  30. package/src/ui/components/dialog.tsx +51 -0
  31. package/src/ui/components/flex.tsx +64 -0
  32. package/src/ui/components/icon_button.tsx +57 -0
  33. package/src/ui/components/input/checkbox.tsx +32 -0
  34. package/src/ui/components/input/input_field.tsx +57 -0
  35. package/src/ui/components/input/range.tsx +37 -0
  36. package/src/ui/components/input/select.tsx +29 -0
  37. package/src/ui/components/input/text_area.tsx +45 -0
  38. package/src/ui/components/padded.tsx +62 -0
  39. package/src/ui/components/text.tsx +78 -0
  40. package/src/ui/components/toggle_button.tsx +51 -0
  41. package/src/ui/components/util.tsx +3 -0
  42. package/src/ui/util/confirm_dialog.ts +53 -0
  43. package/src/ui/util/error_view.tsx +16 -0
  44. package/src/ui/util/toast.ts +14 -0
  45. package/src/ui/util/util.ts +4 -0
  46. package/style/color_style.scss +148 -0
  47. package/style/components.scss +574 -0
  48. package/style/root.scss +50 -0
  49. package/style/type_style.scss +22 -0
@@ -0,0 +1,50 @@
1
+ :root {
2
+ /*font-family: "apple color emoji", "segoe ui emoji", "noto color emoji",
3
+ "android emoji", "emojisymbols", "emojione mozilla", "twemoji mozilla",
4
+ "segoe ui symbol", $t-font-body;*/
5
+ font-family: $t-font-body, "Noto Color Emoji";
6
+ line-height: 1.3;
7
+
8
+ color: #222;
9
+ background-color: #ffffff;
10
+
11
+ font-synthesis: none;
12
+ text-rendering: optimizeLegibility;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ -webkit-text-size-adjust: 100%;
16
+ box-sizing: border-box;
17
+ font-size: 16px;
18
+ border-collapse: separate;
19
+ }
20
+
21
+ @media (orientation: portrait) {
22
+ :root {
23
+ font-size: 13px;
24
+ }
25
+ }
26
+
27
+ *,
28
+ *:before,
29
+ *:after {
30
+ box-sizing: inherit;
31
+ font-family: inherit;
32
+ font-weight: inherit;
33
+ }
34
+
35
+ body,
36
+ #app,
37
+ .elbe-base {
38
+ margin: 0;
39
+ display: block;
40
+ min-height: 100vh;
41
+ background-color: white;
42
+ }
43
+
44
+ body:has(.no-page-scroll) {
45
+ overflow: hidden;
46
+ }
47
+
48
+ .debug {
49
+ display: none;
50
+ }
@@ -0,0 +1,22 @@
1
+ @each $style, $size in $t-styles {
2
+ .text-#{$style} {
3
+ font-size: $size;
4
+ }
5
+ }
6
+
7
+ @each $name, $size in $t-headers {
8
+ .header-#{$name} {
9
+ @extend .b;
10
+ line-height: 1;
11
+ font-size: $size;
12
+ font-family: $t-font-accent;
13
+ }
14
+
15
+ h#{$name} {
16
+ @extend .header-#{$name};
17
+ }
18
+ }
19
+
20
+ .text-accent {
21
+ font-family: $t-font-accent;
22
+ }