@web-atoms/core 2.2.97 → 2.2.98
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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/services/NotificationPopup.d.ts.map +1 -1
- package/dist/web/services/NotificationPopup.js +16 -10
- package/dist/web/services/NotificationPopup.js.map +1 -1
- package/dist/web/services/PopupService.d.ts.map +1 -1
- package/dist/web/services/PopupService.js +140 -15
- package/dist/web/services/PopupService.js.map +1 -1
- package/package.json +1 -1
- package/src/web/services/NotificationPopup.tsx +12 -15
- package/src/web/services/PopupService.tsx +139 -216
- package/dist/web/styles/CommonStyles.d.ts +0 -35
- package/dist/web/styles/CommonStyles.d.ts.map +0 -1
- package/dist/web/styles/CommonStyles.js +0 -69
- package/dist/web/styles/CommonStyles.js.map +0 -1
- package/src/web/styles/CommonStyles.ts +0 -64
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import Colors from "../../core/Colors";
|
|
2
|
-
import StyleRule, { AtomStyleRules } from "../../style/StyleRule";
|
|
3
|
-
import CSS from "./CSS";
|
|
4
|
-
|
|
5
|
-
export function combine(... names: any[]) {
|
|
6
|
-
const r = [];
|
|
7
|
-
for (const iterator of names) {
|
|
8
|
-
if (!iterator) {
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
const v = iterator.toString();
|
|
12
|
-
if (!v) {
|
|
13
|
-
continue;
|
|
14
|
-
}
|
|
15
|
-
r.push(v);
|
|
16
|
-
}
|
|
17
|
-
return r.join(" ");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function CSSToString(s) {
|
|
21
|
-
const name = CSS(s);
|
|
22
|
-
return () => name;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const CommonStyles = {
|
|
26
|
-
combine,
|
|
27
|
-
color: {
|
|
28
|
-
yellow: CSS(StyleRule()
|
|
29
|
-
.color(Colors.yellow)),
|
|
30
|
-
green: CSS(StyleRule()
|
|
31
|
-
.color(Colors.green)),
|
|
32
|
-
red: CSS(StyleRule()
|
|
33
|
-
.color(Colors.red)),
|
|
34
|
-
},
|
|
35
|
-
backgroundColor: {
|
|
36
|
-
yellow: CSS(StyleRule()
|
|
37
|
-
.backgroundColor(Colors.yellow)),
|
|
38
|
-
green: CSS(StyleRule()
|
|
39
|
-
.backgroundColor(Colors.green)),
|
|
40
|
-
red: CSS(StyleRule()
|
|
41
|
-
.backgroundColor(Colors.red)),
|
|
42
|
-
},
|
|
43
|
-
bold: CSS(StyleRule().fontWeight("bold")),
|
|
44
|
-
margin5: CSS(StyleRule().margin(5)),
|
|
45
|
-
padding5: CSS(StyleRule().padding(5)),
|
|
46
|
-
borderRadius9999: CSS(StyleRule().borderRadius(9999)),
|
|
47
|
-
borderRadius5: CSS(StyleRule().borderRadius(5)),
|
|
48
|
-
italic: CSS(StyleRule().fontStyle("italic")),
|
|
49
|
-
overflow: {
|
|
50
|
-
auto: CSS(StyleRule().overflow("auto")),
|
|
51
|
-
hidden: CSS(StyleRule().overflow("hidden"))
|
|
52
|
-
},
|
|
53
|
-
flex: {
|
|
54
|
-
inline: CSS(StyleRule().display("inline-flex")),
|
|
55
|
-
stretch: CSS(StyleRule().flexStretch()),
|
|
56
|
-
alignItemsCenter: CSS(StyleRule().alignItems("center")),
|
|
57
|
-
horizontal: CSS(StyleRule().flexDirection("row")),
|
|
58
|
-
vertical: CSS(StyleRule().flexDirection("column")),
|
|
59
|
-
justifyContentSpaceAround: CSS(StyleRule().justifyContent("space-around")),
|
|
60
|
-
toString: CSSToString(StyleRule().display("flex"))
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export default CommonStyles;
|