@rxap/components 14.0.0 → 14.0.1

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 (2) hide show
  1. package/package.json +5 -5
  2. package/_theming.scss +0 -188
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/components",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/components",
@@ -26,10 +26,10 @@
26
26
  "@angular/platform-browser": "^14.2.2",
27
27
  "@angular/platform-browser-dynamic": "^14.2.2",
28
28
  "@angular/router": "^14.2.2",
29
- "@rxap/directives": "^13.0.0",
30
- "@rxap/material-directives": "^14.0.0",
31
- "@rxap/services": "^13.0.0",
32
- "@rxap/utilities": "^13.0.0",
29
+ "@rxap/directives": "^14.0.2",
30
+ "@rxap/material-directives": "^14.0.1",
31
+ "@rxap/services": "^14.0.4",
32
+ "@rxap/utilities": "^14.0.3",
33
33
  "reflect-metadata": "^0.1.13",
34
34
  "rxjs": "^6.6.0"
35
35
  },
package/_theming.scss DELETED
@@ -1,188 +0,0 @@
1
- @use '@angular/material' as mat;
2
-
3
-
4
- @mixin rxap-json-viewer-theme($theme) {
5
- $foreground: map-get($theme, foreground);
6
- $background: map-get($theme, background);
7
- $accent: map-get($theme, accent);
8
- $primary: map-get($theme, primary);
9
- $warn: map-get($theme, warn);
10
- $isDark: map-get($theme, is-dark);
11
-
12
- .rxap-json-viewer {
13
-
14
- $type-colors: (
15
- string: #FF6B6B,
16
- number: #009688,
17
- boolean: #b938a4,
18
- date: #05668D,
19
- array: #999,
20
- object: #999,
21
- function: #999,
22
- 'null': #fff,
23
- undefined: #fff
24
- );
25
-
26
- .container {
27
-
28
- .segment {
29
-
30
- .segment-main {
31
-
32
- .toggler {
33
- color: #787878;
34
-
35
- }
36
-
37
- .segment-key {
38
- color: mat.get-color-from-palette($primary);
39
- }
40
-
41
- .segment-separator {
42
- color: #999;
43
- }
44
-
45
- .segment-value {
46
- color: map-get($foreground, text);
47
- }
48
- }
49
-
50
- }
51
-
52
- @each $type, $color in $type-colors {
53
- .segment-type-#{$type} > .segment-main > .segment-value {
54
- color: $color;
55
- }
56
- }
57
-
58
- // special cases need highlightted
59
- .segment-type-null > .segment-main > .segment-value {
60
- background-color: mat.get-color-from-palette($warn);
61
- }
62
-
63
- .segment-type-undefined > .segment-main {
64
- & > .segment-key {
65
- color: #999;
66
- }
67
-
68
- & > .segment-value {
69
- background-color: #999;
70
- }
71
- }
72
-
73
- }
74
-
75
- }
76
-
77
- }
78
-
79
- @mixin rxap-json-viewer-typography($config) {
80
- .rxap-json-viewer {
81
-
82
- .container {
83
-
84
- font-family: monospace;
85
- font-size: 1.6rem;
86
-
87
- .segment {
88
-
89
- .segment-main {
90
-
91
- .toggler {
92
- font-size: .8em;
93
- line-height: 1.2em;
94
- }
95
-
96
- }
97
-
98
- }
99
- }
100
-
101
- }
102
- }
103
-
104
- @mixin rxap-confirm-theme($theme) {
105
- $foreground: map-get($theme, foreground);
106
- $background: map-get($theme, background);
107
- $accent: map-get($theme, accent);
108
- $warn: map-get($theme, warn);
109
- $isDark: map-get($theme, is-dark);
110
-
111
- .rxap-confirm {
112
-
113
- .container {
114
- background-color: map-get($background, background);
115
- }
116
-
117
- }
118
-
119
- }
120
-
121
- @mixin rxap-confirm-typography($config) {
122
- .rxap-confirm {
123
-
124
- .container {
125
-
126
- }
127
-
128
- }
129
- }
130
-
131
- @mixin rxap-dark-mode-toggle-button-theme($theme) {
132
- $foreground: map-get($theme, foreground);
133
- $background: map-get($theme, background);
134
- $accent: map-get($theme, accent);
135
- $primary: map-get($theme, primary);
136
- $warn: map-get($theme, warn);
137
- $isDark: map-get($theme, is-dark);
138
-
139
- .rxap-dark-mode-toggle-button { }
140
-
141
- }
142
-
143
- @mixin rxap-dark-mode-toggle-button-typography($config) {
144
- .rxap-dark-mode-toggle-button { }
145
- }
146
-
147
- @mixin rxap-navigate-back-button-theme($theme) {
148
- $foreground: map-get($theme, foreground);
149
- $background: map-get($theme, background);
150
- $accent: map-get($theme, accent);
151
- $primary: map-get($theme, primary);
152
- $warn: map-get($theme, warn);
153
- $isDark: map-get($theme, is-dark);
154
-
155
- .rxap-navigate-back-button {
156
- h1, h2, h3, h4, h5, h6 {
157
- margin: 0;
158
- }
159
- }
160
-
161
- }
162
-
163
- @mixin rxap-navigate-back-button-typography($config) {
164
- .rxap-navigate-back-button {
165
- }
166
- }
167
-
168
- /* IMPORT */
169
-
170
- @mixin rxap-components-theme($theme) {
171
-
172
- @include rxap-json-viewer-theme($theme);
173
- @include rxap-confirm-theme($theme);
174
- @include rxap-dark-mode-toggle-button-theme($theme);
175
- @include rxap-navigate-back-button-theme($theme);
176
- /* THEME_INCLUDE */
177
-
178
- }
179
-
180
- @mixin rxap-components-typography($config) {
181
-
182
- @include rxap-json-viewer-typography($config);
183
- @include rxap-confirm-typography($config);
184
- @include rxap-dark-mode-toggle-button-typography($config);
185
- @include rxap-navigate-back-button-typography($config);
186
- /* TYPOGRAPHY_INCLUDE */
187
-
188
- }