@rvx/ui 0.1.6 → 0.1.8

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 (102) hide show
  1. package/dist/common/theme-test.js +1 -2
  2. package/dist/common/theme-test.js.map +1 -1
  3. package/dist/common/theme.d.ts +4 -2
  4. package/dist/common/theme.js +2 -1
  5. package/dist/common/theme.js.map +1 -1
  6. package/dist/components/button.d.ts +1 -1
  7. package/dist/components/button.js +2 -2
  8. package/dist/components/button.js.map +1 -1
  9. package/dist/components/checkbox-test.d.ts +3 -0
  10. package/dist/components/checkbox-test.js +30 -0
  11. package/dist/components/checkbox-test.js.map +1 -0
  12. package/dist/components/checkbox.js +5 -8
  13. package/dist/components/checkbox.js.map +1 -1
  14. package/dist/components/collapse.d.ts +2 -1
  15. package/dist/components/collapse.js +2 -2
  16. package/dist/components/collapse.js.map +1 -1
  17. package/dist/components/column.js +2 -2
  18. package/dist/components/column.js.map +1 -1
  19. package/dist/components/control-group.js +1 -2
  20. package/dist/components/control-group.js.map +1 -1
  21. package/dist/components/dialog.js +23 -21
  22. package/dist/components/dialog.js.map +1 -1
  23. package/dist/components/dropdown-input.js.map +1 -1
  24. package/dist/components/dropdown.js +4 -3
  25. package/dist/components/dropdown.js.map +1 -1
  26. package/dist/components/flex-space.js +2 -2
  27. package/dist/components/flex-space.js.map +1 -1
  28. package/dist/components/heading.d.ts +4 -0
  29. package/dist/components/heading.js +6 -2
  30. package/dist/components/heading.js.map +1 -1
  31. package/dist/components/label.js +2 -2
  32. package/dist/components/label.js.map +1 -1
  33. package/dist/components/layer.d.ts +4 -4
  34. package/dist/components/layer.js +7 -13
  35. package/dist/components/layer.js.map +1 -1
  36. package/dist/components/link.js +2 -2
  37. package/dist/components/link.js.map +1 -1
  38. package/dist/components/page.js +1 -2
  39. package/dist/components/page.js.map +1 -1
  40. package/dist/components/popout.d.ts +2 -1
  41. package/dist/components/popout.js +59 -58
  42. package/dist/components/popout.js.map +1 -1
  43. package/dist/components/popover.js +6 -5
  44. package/dist/components/popover.js.map +1 -1
  45. package/dist/components/radio-buttons.js +3 -2
  46. package/dist/components/radio-buttons.js.map +1 -1
  47. package/dist/components/row.js +2 -2
  48. package/dist/components/row.js.map +1 -1
  49. package/dist/components/scroll-view.js +2 -2
  50. package/dist/components/scroll-view.js.map +1 -1
  51. package/dist/components/text-input.js +2 -2
  52. package/dist/components/text-input.js.map +1 -1
  53. package/dist/components/text.js +1 -2
  54. package/dist/components/text.js.map +1 -1
  55. package/dist/components/validation.d.ts +4 -3
  56. package/dist/components/validation.js +6 -7
  57. package/dist/components/validation.js.map +1 -1
  58. package/dist/components/value.js +1 -2
  59. package/dist/components/value.js.map +1 -1
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.js +2 -2
  62. package/dist/index.js.map +1 -1
  63. package/dist/test.d.ts +1 -0
  64. package/dist/test.js +1 -0
  65. package/dist/test.js.map +1 -1
  66. package/dist/theme.module.css +108 -41
  67. package/dist/theme.module.css.map +1 -1
  68. package/package.json +6 -2
  69. package/src/common/theme-test.tsx +1 -3
  70. package/src/common/theme.tsx +4 -2
  71. package/src/components/button.tsx +3 -4
  72. package/src/components/checkbox-test.tsx +34 -0
  73. package/src/components/checkbox.tsx +5 -7
  74. package/src/components/collapse.tsx +3 -3
  75. package/src/components/column.tsx +2 -3
  76. package/src/components/control-group.tsx +2 -3
  77. package/src/components/dialog.tsx +23 -22
  78. package/src/components/dropdown-input.tsx +0 -1
  79. package/src/components/dropdown.tsx +4 -4
  80. package/src/components/flex-space.tsx +2 -3
  81. package/src/components/heading.tsx +10 -3
  82. package/src/components/label.tsx +3 -2
  83. package/src/components/layer.tsx +13 -19
  84. package/src/components/link.tsx +2 -3
  85. package/src/components/page.tsx +2 -3
  86. package/src/components/popout.tsx +68 -67
  87. package/src/components/popover.tsx +5 -5
  88. package/src/components/radio-buttons.tsx +3 -3
  89. package/src/components/row.tsx +2 -3
  90. package/src/components/scroll-view.tsx +2 -3
  91. package/src/components/text-input.tsx +2 -3
  92. package/src/components/text.tsx +2 -3
  93. package/src/components/validation.tsx +7 -9
  94. package/src/components/value.tsx +2 -3
  95. package/src/index.tsx +2 -2
  96. package/src/test.tsx +1 -0
  97. package/src/theme/base.scss +10 -5
  98. package/src/theme/components/button.scss +58 -31
  99. package/src/theme/components/control-group.scss +6 -1
  100. package/src/theme/components/link.scss +1 -1
  101. package/src/theme/components/text-input.scss +2 -2
  102. package/src/theme/theme.scss +21 -21
@@ -2,75 +2,75 @@
2
2
 
3
3
  @include common.theme((
4
4
  button-default-bg: (
5
- dark: rgb(54, 54, 54),
5
+ dark: rgb(64, 64, 64),
6
6
  ),
7
- button-default-bg-lit: (
8
- dark: rgb(72, 72, 72),
7
+ button-default-bg-hover: (
8
+ dark: rgb(90, 90, 90),
9
9
  ),
10
10
  button-default-fg: (
11
11
  dark: var(--fg),
12
12
  ),
13
- button-default-border: (
14
- dark: rgb(80, 80, 80),
15
- ),
16
13
 
17
14
  button-primary-bg: (
18
- dark: rgb(0, 100, 200),
15
+ dark: rgb(0, 192, 255),
19
16
  ),
20
- button-primary-bg-lit: (
21
- dark: rgb(0, 128, 255),
17
+ button-primary-bg-hover: (
18
+ dark: rgb(92, 214, 255),
22
19
  ),
23
20
  button-primary-fg: (
24
- dark: white,
21
+ dark: black,
25
22
  ),
26
- button-primary-border: (
27
- dark: rgb(0, 100, 200),
23
+ button-primary-focus: (
24
+ dark: rgb(200, 241, 255),
28
25
  ),
29
26
 
30
27
  button-success-bg: (
31
28
  dark: rgb(0, 200, 100),
32
29
  ),
33
- button-success-bg-lit: (
30
+ button-success-bg-hover: (
34
31
  dark: rgb(0, 242, 121),
35
32
  ),
36
33
  button-success-fg: (
37
34
  dark: black,
38
35
  ),
39
- button-success-border: (
40
- dark: rgb(0, 200, 100),
36
+ button-success-focus: (
37
+ dark: rgb(200, 255, 228),
41
38
  ),
42
39
 
43
40
  button-warning-bg: (
44
- dark: rgb(255, 200, 0),
41
+ dark: rgb(230, 180, 0),
45
42
  ),
46
- button-warning-bg-lit: (
47
- dark: rgb(255, 224, 122),
43
+ button-warning-bg-hover: (
44
+ dark: rgb(255, 220, 105),
48
45
  ),
49
46
  button-warning-fg: (
50
47
  dark: black,
51
48
  ),
52
- button-warning-border: (
53
- dark: rgb(255, 200, 0),
49
+ button-warning-focus: (
50
+ dark: rgb(255, 243, 200),
54
51
  ),
55
52
 
56
53
  button-danger-bg: (
57
54
  dark: rgb(255, 0, 64),
58
55
  ),
59
- button-danger-bg-lit: (
60
- dark: rgb(255, 64, 96),
56
+ button-danger-bg-hover: (
57
+ dark: rgb(255, 70, 100),
61
58
  ),
62
59
  button-danger-fg: (
63
60
  dark: black,
64
61
  ),
65
- button-danger-border: (
66
- dark: rgb(255, 0, 64),
62
+ button-danger-focus: (
63
+ dark: rgb(255, 200, 214),
67
64
  ),
68
65
 
69
66
  button-input-bg: (
70
67
  dark: rgb(16, 16, 16),
71
68
  ),
72
- button-input-bg-lit: (
73
- dark: rgb(36, 36, 36),
69
+ button-input-bg-hover: (
70
+ dark: rgb(60, 60, 60),
71
+ ),
72
+ button-input-bg-active: (
73
+ dark: rgb(80, 80, 80),
74
74
  ),
75
75
  button-input-fg: (
76
76
  dark: white,
@@ -78,6 +78,19 @@
78
78
  button-input-border: (
79
79
  dark: rgb(80, 80, 80),
80
80
  ),
81
+
82
+ button-text-bg: (
83
+ dark: transparent,
84
+ ),
85
+ button-text-bg-hover: (
86
+ dark: rgb(80, 80, 80),
87
+ ),
88
+ button-text-bg-active: (
89
+ dark: rgb(100, 100, 100),
90
+ ),
91
+ button-text-fg: (
92
+ dark: var(--fg),
93
+ ),
81
94
  ));
82
95
 
83
96
  .button {
@@ -92,6 +105,12 @@
92
105
  @include common.padding(control-pad, var(--control-border));
93
106
 
94
107
  border-radius: var(--control-radius);
108
+ transition: var(--color-transition) background-color,
109
+ var(--color-transition) border-color;
110
+
111
+ &:not(.button_text) {
112
+ box-shadow: var(--control-shadow);
113
+ }
95
114
 
96
115
  &[disabled] {
97
116
  cursor: default;
@@ -99,14 +118,22 @@
99
118
  }
100
119
  }
101
120
 
102
- @each $variant in (default, primary, success, warning, danger, input) {
121
+ @each $variant in (default, primary, success, warning, danger, input, text) {
103
122
  .button_#{$variant} {
104
123
  background-color: var(--button-#{$variant}-bg);
105
124
  color: var(--button-#{$variant}-fg);
106
- border: var(--control-border) solid var(--button-#{$variant}-border, transparent);
107
- &:hover:not(:active):not([disabled]),
108
- &:focus-visible:not([disabled]) {
109
- background-color: var(--button-#{$variant}-bg-lit);
125
+ border: var(--button-#{$variant}-border, transparent) solid var(--control-border);
126
+
127
+ &:hover:not(:active):not([disabled]) {
128
+ background-color: var(--button-#{$variant}-bg-hover);
129
+ }
130
+
131
+ &:focus-visible {
132
+ border-color: var(--button-#{$variant}-focus, var(--accent));
133
+ }
134
+
135
+ &:active {
136
+ background-color: var(--button-#{$variant}-bg-active, var(--button-#{$variant}-bg));
110
137
  }
111
138
  }
112
139
  }
@@ -2,7 +2,12 @@
2
2
  .control_group {
3
3
  display: flex;
4
4
  flex-direction: row;
5
- flex-wrap: wrap;
5
+
6
+ box-shadow: var(--control-shadow);
7
+ * {
8
+ --control-shadow: none;
9
+ }
10
+
6
11
  & > :not(:first-child) {
7
12
  border-start-start-radius: 0;
8
13
  border-end-start-radius: 0;
@@ -2,7 +2,7 @@
2
2
 
3
3
  @include common.theme((
4
4
  link-fg: (
5
- dark: rgb(64, 160, 255),
5
+ dark: rgb(64, 208, 255),
6
6
  ),
7
7
  ));
8
8
 
@@ -11,7 +11,7 @@
11
11
  dark: rgb(80, 80, 80),
12
12
  ),
13
13
  text-input-border-lit: (
14
- dark: rgb(0, 128, 255),
14
+ dark: var(--accent),
15
15
  ),
16
16
  ));
17
17
 
@@ -26,7 +26,7 @@
26
26
  @include common.padding(control-pad);
27
27
  border: var(--control-border) solid var(--text-input-border);
28
28
  border-radius: var(--control-radius);
29
-
29
+ box-shadow: var(--control-shadow);
30
30
  background-color: var(--text-input-bg);
31
31
  color: var(--text-input-fg);
32
32
 
@@ -1,22 +1,22 @@
1
- @import "base";
1
+ @forward "base";
2
2
 
3
- @import "components/button";
4
- @import "components/checkbox";
5
- @import "components/collapse";
6
- @import "components/column";
7
- @import "components/control-group";
8
- @import "components/dialog";
9
- @import "components/dropdown.scss";
10
- @import "components/flex-space";
11
- @import "components/heading";
12
- @import "components/label";
13
- @import "components/link";
14
- @import "components/page";
15
- @import "components/popover";
16
- @import "components/radio-buttons";
17
- @import "components/row";
18
- @import "components/scroll-view";
19
- @import "components/text-input";
20
- @import "components/text";
21
- @import "components/validation";
22
- @import "components/value";
3
+ @forward "components/button";
4
+ @forward "components/checkbox";
5
+ @forward "components/collapse";
6
+ @forward "components/column";
7
+ @forward "components/control-group";
8
+ @forward "components/dialog";
9
+ @forward "components/dropdown.scss";
10
+ @forward "components/flex-space";
11
+ @forward "components/heading";
12
+ @forward "components/label";
13
+ @forward "components/link";
14
+ @forward "components/page";
15
+ @forward "components/popover";
16
+ @forward "components/radio-buttons";
17
+ @forward "components/row";
18
+ @forward "components/scroll-view";
19
+ @forward "components/text-input";
20
+ @forward "components/text";
21
+ @forward "components/validation";
22
+ @forward "components/value";