native-fn 1.0.26 → 1.0.28

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 (161) hide show
  1. package/README.md +22 -192
  2. package/dist/index.d.ts +18 -27
  3. package/dist/native.cjs +27 -1400
  4. package/dist/native.min.cjs +1 -0
  5. package/dist/native.min.mjs +1 -0
  6. package/dist/native.mjs +27 -1400
  7. package/dist/native.umd.js +27 -1400
  8. package/dist/native.umd.min.js +1 -0
  9. package/dist/plugin/app/index.cjs +1025 -0
  10. package/dist/plugin/app/index.d.ts +86 -0
  11. package/dist/plugin/app/index.min.cjs +1 -0
  12. package/dist/plugin/app/index.min.mjs +1 -0
  13. package/dist/plugin/app/index.mjs +1023 -0
  14. package/dist/plugin/app/index.umd.js +1031 -0
  15. package/dist/plugin/app/index.umd.min.js +1 -0
  16. package/dist/plugin/app/src/constants/platform.d.ts +35 -0
  17. package/dist/plugin/app/src/constants/user-agent.d.ts +1 -0
  18. package/dist/plugin/app/src/plugin/app/cores/app.d.ts +3 -0
  19. package/dist/plugin/app/src/plugin/app/index.d.ts +5 -0
  20. package/dist/plugin/app/src/plugin/app/types/app.d.ts +54 -0
  21. package/dist/plugin/app/src/plugin/app/types/appModule.d.ts +54 -0
  22. package/dist/plugin/app/src/plugin/app/types/index.d.ts +1 -0
  23. package/dist/plugin/app/src/plugin/app/utils/event-listener-utils.d.ts +3 -0
  24. package/dist/plugin/app/src/plugin/platform/cores/platform.d.ts +3 -0
  25. package/dist/plugin/app/src/plugin/platform/index.d.ts +5 -0
  26. package/dist/plugin/app/src/plugin/platform/types/index.d.ts +1 -0
  27. package/dist/{src → plugin/app/src/plugin/platform}/types/platform.d.ts +1 -1
  28. package/dist/plugin/app/src/plugin/platform/types/platformModule.d.ts +13 -0
  29. package/dist/{src → plugin/app/src/plugin/theme}/constants/theme.d.ts +1 -1
  30. package/dist/plugin/app/src/plugin/theme/cores/theme.d.ts +3 -0
  31. package/dist/plugin/app/src/plugin/theme/index.d.ts +5 -0
  32. package/dist/plugin/app/src/plugin/theme/types/color.d.ts +17 -0
  33. package/dist/{src → plugin/app/src/plugin/theme}/types/easing-syntax.d.ts +1 -1
  34. package/dist/plugin/app/src/plugin/theme/types/index.d.ts +3 -0
  35. package/dist/{src → plugin/app/src/plugin/theme}/types/theme.d.ts +4 -4
  36. package/dist/plugin/app/src/plugin/theme/types/themeModule.d.ts +24 -0
  37. package/dist/{src → plugin/app/src/plugin/theme}/utils/parse-color.d.ts +1 -1
  38. package/dist/{src → plugin/app/src/plugin/theme}/utils/parse-easing-function.d.ts +1 -1
  39. package/dist/plugin/app/src/types/index.d.ts +1 -0
  40. package/dist/plugin/app/src/types/native.d.ts +14 -0
  41. package/dist/plugin/app/src/utils/assign.d.ts +1 -0
  42. package/dist/plugin/app/src/utils/create-custom-error.d.ts +1 -0
  43. package/dist/plugin/platform/index.cjs +171 -0
  44. package/dist/plugin/platform/index.d.ts +51 -0
  45. package/dist/plugin/platform/index.min.cjs +1 -0
  46. package/dist/plugin/platform/index.min.mjs +1 -0
  47. package/dist/plugin/platform/index.mjs +169 -0
  48. package/dist/plugin/platform/index.umd.js +177 -0
  49. package/dist/plugin/platform/index.umd.min.js +1 -0
  50. package/dist/plugin/platform/src/constants/platform.d.ts +35 -0
  51. package/dist/plugin/platform/src/constants/user-agent.d.ts +1 -0
  52. package/dist/plugin/platform/src/plugin/app/constants/app.d.ts +13 -0
  53. package/dist/plugin/platform/src/plugin/app/cores/app.d.ts +3 -0
  54. package/dist/plugin/platform/src/plugin/app/errors/url-open-error.d.ts +2 -0
  55. package/dist/plugin/platform/src/plugin/app/index.d.ts +5 -0
  56. package/dist/plugin/platform/src/plugin/app/types/app.d.ts +54 -0
  57. package/dist/plugin/platform/src/plugin/app/types/appModule.d.ts +54 -0
  58. package/dist/plugin/platform/src/plugin/app/types/index.d.ts +1 -0
  59. package/dist/plugin/platform/src/plugin/app/utils/event-listener-utils.d.ts +3 -0
  60. package/dist/plugin/platform/src/plugin/app/utils/try-open-url.d.ts +1 -0
  61. package/dist/plugin/platform/src/plugin/platform/cores/platform.d.ts +3 -0
  62. package/dist/plugin/platform/src/plugin/platform/index.d.ts +5 -0
  63. package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +1 -0
  64. package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +13 -0
  65. package/dist/plugin/platform/src/plugin/platform/types/platformModule.d.ts +13 -0
  66. package/dist/plugin/platform/src/plugin/theme/constants/theme.d.ts +16 -0
  67. package/dist/plugin/platform/src/plugin/theme/cores/theme.d.ts +3 -0
  68. package/dist/plugin/platform/src/plugin/theme/errors/easing-error.d.ts +6 -0
  69. package/dist/plugin/platform/src/plugin/theme/errors/unsupported-color-error.d.ts +2 -0
  70. package/dist/plugin/platform/src/plugin/theme/index.d.ts +5 -0
  71. package/dist/plugin/platform/src/plugin/theme/types/color.d.ts +17 -0
  72. package/dist/plugin/platform/src/plugin/theme/types/easing-syntax.d.ts +16 -0
  73. package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +3 -0
  74. package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +24 -0
  75. package/dist/plugin/platform/src/plugin/theme/types/themeModule.d.ts +24 -0
  76. package/dist/plugin/platform/src/plugin/theme/utils/parse-color.d.ts +2 -0
  77. package/dist/plugin/platform/src/plugin/theme/utils/parse-easing-function.d.ts +2 -0
  78. package/dist/plugin/platform/src/types/index.d.ts +1 -0
  79. package/dist/plugin/platform/src/types/native.d.ts +14 -0
  80. package/dist/plugin/platform/src/utils/assign.d.ts +1 -0
  81. package/dist/plugin/platform/src/utils/create-custom-error.d.ts +1 -0
  82. package/dist/plugin/theme/index.cjs +810 -0
  83. package/dist/plugin/theme/index.d.ts +75 -0
  84. package/dist/plugin/theme/index.min.cjs +1 -0
  85. package/dist/plugin/theme/index.min.mjs +1 -0
  86. package/dist/plugin/theme/index.mjs +808 -0
  87. package/dist/plugin/theme/index.umd.js +816 -0
  88. package/dist/plugin/theme/index.umd.min.js +1 -0
  89. package/dist/plugin/theme/src/constants/platform.d.ts +35 -0
  90. package/dist/plugin/theme/src/constants/user-agent.d.ts +1 -0
  91. package/dist/plugin/theme/src/plugin/app/constants/app.d.ts +13 -0
  92. package/dist/plugin/theme/src/plugin/app/cores/app.d.ts +3 -0
  93. package/dist/plugin/theme/src/plugin/app/errors/url-open-error.d.ts +2 -0
  94. package/dist/plugin/theme/src/plugin/app/index.d.ts +5 -0
  95. package/dist/plugin/theme/src/plugin/app/types/app.d.ts +54 -0
  96. package/dist/plugin/theme/src/plugin/app/types/appModule.d.ts +54 -0
  97. package/dist/plugin/theme/src/plugin/app/types/index.d.ts +1 -0
  98. package/dist/plugin/theme/src/plugin/app/utils/event-listener-utils.d.ts +3 -0
  99. package/dist/plugin/theme/src/plugin/app/utils/try-open-url.d.ts +1 -0
  100. package/dist/plugin/theme/src/plugin/platform/cores/platform.d.ts +3 -0
  101. package/dist/plugin/theme/src/plugin/platform/index.d.ts +5 -0
  102. package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +1 -0
  103. package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +13 -0
  104. package/dist/plugin/theme/src/plugin/platform/types/platformModule.d.ts +13 -0
  105. package/dist/plugin/theme/src/plugin/theme/constants/theme.d.ts +16 -0
  106. package/dist/plugin/theme/src/plugin/theme/cores/theme.d.ts +3 -0
  107. package/dist/plugin/theme/src/plugin/theme/errors/easing-error.d.ts +6 -0
  108. package/dist/plugin/theme/src/plugin/theme/errors/unsupported-color-error.d.ts +2 -0
  109. package/dist/plugin/theme/src/plugin/theme/index.d.ts +5 -0
  110. package/dist/plugin/theme/src/plugin/theme/types/color.d.ts +17 -0
  111. package/dist/plugin/theme/src/plugin/theme/types/easing-syntax.d.ts +16 -0
  112. package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +3 -0
  113. package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +24 -0
  114. package/dist/plugin/theme/src/plugin/theme/types/themeModule.d.ts +24 -0
  115. package/dist/plugin/theme/src/plugin/theme/utils/parse-color.d.ts +2 -0
  116. package/dist/plugin/theme/src/plugin/theme/utils/parse-easing-function.d.ts +2 -0
  117. package/dist/plugin/theme/src/types/index.d.ts +1 -0
  118. package/dist/plugin/theme/src/types/native.d.ts +14 -0
  119. package/dist/plugin/theme/src/utils/assign.d.ts +1 -0
  120. package/dist/plugin/theme/src/utils/create-custom-error.d.ts +1 -0
  121. package/dist/src/plugin/app/constants/app.d.ts +13 -0
  122. package/dist/src/plugin/app/cores/app.d.ts +3 -0
  123. package/dist/src/plugin/app/errors/url-open-error.d.ts +2 -0
  124. package/dist/src/plugin/app/index.d.ts +5 -0
  125. package/dist/src/plugin/app/types/app.d.ts +54 -0
  126. package/dist/src/plugin/app/types/appModule.d.ts +54 -0
  127. package/dist/src/plugin/app/types/index.d.ts +1 -0
  128. package/dist/src/plugin/app/utils/event-listener-utils.d.ts +3 -0
  129. package/dist/src/plugin/app/utils/try-open-url.d.ts +1 -0
  130. package/dist/src/plugin/platform/cores/platform.d.ts +3 -0
  131. package/dist/src/plugin/platform/index.d.ts +5 -0
  132. package/dist/src/plugin/platform/types/index.d.ts +1 -0
  133. package/dist/src/plugin/platform/types/platform.d.ts +13 -0
  134. package/dist/src/plugin/platform/types/platformModule.d.ts +13 -0
  135. package/dist/src/plugin/theme/constants/theme.d.ts +16 -0
  136. package/dist/src/plugin/theme/cores/theme.d.ts +3 -0
  137. package/dist/src/plugin/theme/errors/easing-error.d.ts +6 -0
  138. package/dist/src/plugin/theme/errors/unsupported-color-error.d.ts +2 -0
  139. package/dist/src/plugin/theme/index.d.ts +5 -0
  140. package/dist/src/plugin/theme/types/color.d.ts +17 -0
  141. package/dist/src/plugin/theme/types/easing-syntax.d.ts +16 -0
  142. package/dist/src/plugin/theme/types/index.d.ts +3 -0
  143. package/dist/src/plugin/theme/types/theme.d.ts +24 -0
  144. package/dist/src/plugin/theme/types/themeModule.d.ts +24 -0
  145. package/dist/src/plugin/theme/utils/parse-color.d.ts +2 -0
  146. package/dist/src/plugin/theme/utils/parse-easing-function.d.ts +2 -0
  147. package/dist/src/types/index.d.ts +1 -5
  148. package/dist/src/types/native.d.ts +14 -0
  149. package/dist/src/utils/assign.d.ts +1 -0
  150. package/package.json +8 -5
  151. package/dist/src/cores/app.d.ts +0 -3
  152. package/dist/src/cores/platform.d.ts +0 -3
  153. package/dist/src/cores/theme.d.ts +0 -3
  154. package/dist/src/types/app.d.ts +0 -44
  155. package/dist/src/types/color.d.ts +0 -17
  156. package/dist/src/utils/freeze-deep.d.ts +0 -1
  157. /package/dist/{src → plugin/app/src/plugin/app}/constants/app.d.ts +0 -0
  158. /package/dist/{src → plugin/app/src/plugin/app}/errors/url-open-error.d.ts +0 -0
  159. /package/dist/{src → plugin/app/src/plugin/app}/utils/try-open-url.d.ts +0 -0
  160. /package/dist/{src → plugin/app/src/plugin/theme}/errors/easing-error.d.ts +0 -0
  161. /package/dist/{src → plugin/app/src/plugin/theme}/errors/unsupported-color-error.d.ts +0 -0
@@ -0,0 +1,169 @@
1
+ var USER_AGENT = navigator.userAgent;
2
+
3
+ var OS;
4
+ (function (OS) {
5
+ OS["Unknown"] = "Unknown";
6
+ OS["Android"] = "Android";
7
+ OS["iOS"] = "iOS";
8
+ OS["Windows"] = "Windows";
9
+ OS["MacOS"] = "MacOS";
10
+ })(OS || (OS = {}));
11
+ var Devices;
12
+ (function (Devices) {
13
+ Devices["Unknown"] = "Unknown";
14
+ Devices["Mobile"] = "Mobile";
15
+ Devices["Desktop"] = "Desktop";
16
+ })(Devices || (Devices = {}));
17
+ var Engines;
18
+ (function (Engines) {
19
+ Engines["Unknown"] = "Unknown";
20
+ Engines["EdgeHTML"] = "EdgeHTML";
21
+ Engines["ArkWeb"] = "ArkWeb";
22
+ Engines["Blink"] = "Blink";
23
+ Engines["Presto"] = "Presto";
24
+ Engines["WebKit"] = "WebKit";
25
+ Engines["Trident"] = "Trident";
26
+ Engines["NetFront"] = "NetFront";
27
+ Engines["KHTML"] = "KHTML";
28
+ Engines["Tasman"] = "Tasman";
29
+ Engines["Gecko"] = "Gecko";
30
+ })(Engines || (Engines = {}));
31
+ var OS_RESOLVER_MAP = (function () {
32
+ function resolveIOSOrMacVersion(str) {
33
+ if (str === undefined)
34
+ return '';
35
+ return str.replace(/_/g, '.');
36
+ }
37
+ function resolveWindowsVersion(str) {
38
+ if (str === undefined)
39
+ return '';
40
+ var mapped = {
41
+ '4.90': 'ME',
42
+ 'NT3.51': 'NT 3.11',
43
+ 'NT4.0': 'NT 4.0',
44
+ 'NT 5.0': '2000',
45
+ 'NT 5.1': 'XP',
46
+ 'NT 5.2': 'XP',
47
+ 'NT 6.0': 'Vista',
48
+ 'NT 6.1': '7',
49
+ 'NT 6.2': '8',
50
+ 'NT 6.3': '8.1',
51
+ 'NT 6.4': '10',
52
+ 'NT 10.0': '10',
53
+ 'ARM': 'RT'
54
+ }[str];
55
+ if (mapped !== undefined)
56
+ return mapped;
57
+ return str;
58
+ }
59
+ function resolveVersion(str) {
60
+ if (str === undefined)
61
+ return '';
62
+ return str;
63
+ }
64
+ return [
65
+ [/android\w*[-\/.; ]?([\d.]*)/i, OS.Android, Devices.Mobile, resolveVersion],
66
+ [/microsoft windows (vista|xp)/i, OS.Windows, Devices.Desktop, resolveVersion],
67
+ [/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
68
+ [/windows nt 6\.2; (arm)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
69
+ [/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
70
+ [/(?:win(?=[39n])|win 9x )([nt\d.]+)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
71
+ [/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, Devices.Mobile, resolveIOSOrMacVersion],
72
+ [/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i, OS.iOS, Devices.Mobile, resolveIOSOrMacVersion],
73
+ [/cfnetwork\/.+darwin/i, OS.iOS, Devices.Mobile, resolveVersion],
74
+ [/mac os x ?([\w. ]*)/i, OS.MacOS, Devices.Desktop, resolveIOSOrMacVersion],
75
+ [/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i, OS.MacOS, Devices.Desktop, resolveIOSOrMacVersion],
76
+ ];
77
+ })();
78
+ var ENGINE_RESOLVER_MAP = [
79
+ [/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
80
+ [/arkweb\/([\w.]+)/i, Engines.ArkWeb],
81
+ [/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
82
+ [/presto\/([\w.]+)/i, Engines.Presto],
83
+ [/webkit\/([\w.]+)/i, Engines.WebKit],
84
+ [/trident\/([\w.]+)/i, Engines.Trident],
85
+ [/netfront\/([\w.]+)/i, Engines.NetFront],
86
+ [/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
87
+ [/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
88
+ [/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
89
+ ];
90
+ var OS_NAME = OS.Unknown;
91
+ var OS_VERSION = '';
92
+ var DEVICE_NAME = Devices.Unknown;
93
+ var ENGINE_NAME = Engines.Unknown;
94
+ var ENGINE_VERSION = '';
95
+ for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
96
+ var map = OS_RESOLVER_MAP[i];
97
+ var regexp = map[0];
98
+ var os = map[1];
99
+ var device = map[2];
100
+ var resolver = map[3];
101
+ var matched = USER_AGENT.match(regexp);
102
+ if (matched !== null) {
103
+ OS_NAME = os;
104
+ OS_VERSION = resolver(matched[1]);
105
+ DEVICE_NAME = device;
106
+ break;
107
+ }
108
+ }
109
+ for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
110
+ var map = ENGINE_RESOLVER_MAP[i];
111
+ var regexp = map[0];
112
+ var engine = map[1];
113
+ var matched = USER_AGENT.match(regexp);
114
+ if (matched !== null) {
115
+ ENGINE_NAME = engine;
116
+ ENGINE_VERSION = matched[1];
117
+ break;
118
+ }
119
+ }
120
+ var RENDERER = (function () {
121
+ var canvas = document.createElement('canvas');
122
+ if (typeof canvas.getContext !== 'function')
123
+ return '';
124
+ var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
125
+ if (context === null)
126
+ return '';
127
+ if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
128
+ var extension = context.getExtension('WEBGL_debug_renderer_info');
129
+ if (extension === null)
130
+ return context.getParameter(context.RENDERER);
131
+ else
132
+ return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
133
+ }
134
+ else {
135
+ return '';
136
+ }
137
+ })();
138
+ var IS_MOBILE = DEVICE_NAME === Devices.Mobile;
139
+ var IS_DESKTOP = DEVICE_NAME === Devices.Desktop;
140
+ var IS_STANDALONE = (function () {
141
+ if (OS_NAME === OS.iOS)
142
+ return 'standalone' in navigator && navigator.standalone;
143
+ else
144
+ return window.matchMedia('(display-mode: standalone)').matches;
145
+ })();
146
+ var IS_WEBVIEW = /; ?wv|applewebkit(?!.*safari)/i.test(USER_AGENT);
147
+
148
+ var Platform = {
149
+ os: OS_NAME,
150
+ device: DEVICE_NAME,
151
+ engine: ENGINE_NAME,
152
+ osVersion: OS_VERSION,
153
+ engineVersion: ENGINE_VERSION,
154
+ renderer: RENDERER,
155
+ isWebview: IS_WEBVIEW,
156
+ isMobile: IS_MOBILE,
157
+ isDesktop: IS_DESKTOP,
158
+ isStandalone: IS_STANDALONE,
159
+ };
160
+
161
+ var PlatformPlugin = {
162
+ installed: false,
163
+ name: 'Platform',
164
+ module: Platform,
165
+ constants: {},
166
+ errors: {}
167
+ };
168
+
169
+ export { PlatformPlugin as default };
@@ -0,0 +1,177 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Platform = factory());
5
+ })(this, (function () { 'use strict';
6
+
7
+ var USER_AGENT = navigator.userAgent;
8
+
9
+ var OS;
10
+ (function (OS) {
11
+ OS["Unknown"] = "Unknown";
12
+ OS["Android"] = "Android";
13
+ OS["iOS"] = "iOS";
14
+ OS["Windows"] = "Windows";
15
+ OS["MacOS"] = "MacOS";
16
+ })(OS || (OS = {}));
17
+ var Devices;
18
+ (function (Devices) {
19
+ Devices["Unknown"] = "Unknown";
20
+ Devices["Mobile"] = "Mobile";
21
+ Devices["Desktop"] = "Desktop";
22
+ })(Devices || (Devices = {}));
23
+ var Engines;
24
+ (function (Engines) {
25
+ Engines["Unknown"] = "Unknown";
26
+ Engines["EdgeHTML"] = "EdgeHTML";
27
+ Engines["ArkWeb"] = "ArkWeb";
28
+ Engines["Blink"] = "Blink";
29
+ Engines["Presto"] = "Presto";
30
+ Engines["WebKit"] = "WebKit";
31
+ Engines["Trident"] = "Trident";
32
+ Engines["NetFront"] = "NetFront";
33
+ Engines["KHTML"] = "KHTML";
34
+ Engines["Tasman"] = "Tasman";
35
+ Engines["Gecko"] = "Gecko";
36
+ })(Engines || (Engines = {}));
37
+ var OS_RESOLVER_MAP = (function () {
38
+ function resolveIOSOrMacVersion(str) {
39
+ if (str === undefined)
40
+ return '';
41
+ return str.replace(/_/g, '.');
42
+ }
43
+ function resolveWindowsVersion(str) {
44
+ if (str === undefined)
45
+ return '';
46
+ var mapped = {
47
+ '4.90': 'ME',
48
+ 'NT3.51': 'NT 3.11',
49
+ 'NT4.0': 'NT 4.0',
50
+ 'NT 5.0': '2000',
51
+ 'NT 5.1': 'XP',
52
+ 'NT 5.2': 'XP',
53
+ 'NT 6.0': 'Vista',
54
+ 'NT 6.1': '7',
55
+ 'NT 6.2': '8',
56
+ 'NT 6.3': '8.1',
57
+ 'NT 6.4': '10',
58
+ 'NT 10.0': '10',
59
+ 'ARM': 'RT'
60
+ }[str];
61
+ if (mapped !== undefined)
62
+ return mapped;
63
+ return str;
64
+ }
65
+ function resolveVersion(str) {
66
+ if (str === undefined)
67
+ return '';
68
+ return str;
69
+ }
70
+ return [
71
+ [/android\w*[-\/.; ]?([\d.]*)/i, OS.Android, Devices.Mobile, resolveVersion],
72
+ [/microsoft windows (vista|xp)/i, OS.Windows, Devices.Desktop, resolveVersion],
73
+ [/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
74
+ [/windows nt 6\.2; (arm)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
75
+ [/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
76
+ [/(?:win(?=[39n])|win 9x )([nt\d.]+)/i, OS.Windows, Devices.Desktop, resolveWindowsVersion],
77
+ [/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, Devices.Mobile, resolveIOSOrMacVersion],
78
+ [/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i, OS.iOS, Devices.Mobile, resolveIOSOrMacVersion],
79
+ [/cfnetwork\/.+darwin/i, OS.iOS, Devices.Mobile, resolveVersion],
80
+ [/mac os x ?([\w. ]*)/i, OS.MacOS, Devices.Desktop, resolveIOSOrMacVersion],
81
+ [/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i, OS.MacOS, Devices.Desktop, resolveIOSOrMacVersion],
82
+ ];
83
+ })();
84
+ var ENGINE_RESOLVER_MAP = [
85
+ [/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
86
+ [/arkweb\/([\w.]+)/i, Engines.ArkWeb],
87
+ [/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
88
+ [/presto\/([\w.]+)/i, Engines.Presto],
89
+ [/webkit\/([\w.]+)/i, Engines.WebKit],
90
+ [/trident\/([\w.]+)/i, Engines.Trident],
91
+ [/netfront\/([\w.]+)/i, Engines.NetFront],
92
+ [/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
93
+ [/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
94
+ [/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
95
+ ];
96
+ var OS_NAME = OS.Unknown;
97
+ var OS_VERSION = '';
98
+ var DEVICE_NAME = Devices.Unknown;
99
+ var ENGINE_NAME = Engines.Unknown;
100
+ var ENGINE_VERSION = '';
101
+ for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
102
+ var map = OS_RESOLVER_MAP[i];
103
+ var regexp = map[0];
104
+ var os = map[1];
105
+ var device = map[2];
106
+ var resolver = map[3];
107
+ var matched = USER_AGENT.match(regexp);
108
+ if (matched !== null) {
109
+ OS_NAME = os;
110
+ OS_VERSION = resolver(matched[1]);
111
+ DEVICE_NAME = device;
112
+ break;
113
+ }
114
+ }
115
+ for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
116
+ var map = ENGINE_RESOLVER_MAP[i];
117
+ var regexp = map[0];
118
+ var engine = map[1];
119
+ var matched = USER_AGENT.match(regexp);
120
+ if (matched !== null) {
121
+ ENGINE_NAME = engine;
122
+ ENGINE_VERSION = matched[1];
123
+ break;
124
+ }
125
+ }
126
+ var RENDERER = (function () {
127
+ var canvas = document.createElement('canvas');
128
+ if (typeof canvas.getContext !== 'function')
129
+ return '';
130
+ var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
131
+ if (context === null)
132
+ return '';
133
+ if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
134
+ var extension = context.getExtension('WEBGL_debug_renderer_info');
135
+ if (extension === null)
136
+ return context.getParameter(context.RENDERER);
137
+ else
138
+ return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
139
+ }
140
+ else {
141
+ return '';
142
+ }
143
+ })();
144
+ var IS_MOBILE = DEVICE_NAME === Devices.Mobile;
145
+ var IS_DESKTOP = DEVICE_NAME === Devices.Desktop;
146
+ var IS_STANDALONE = (function () {
147
+ if (OS_NAME === OS.iOS)
148
+ return 'standalone' in navigator && navigator.standalone;
149
+ else
150
+ return window.matchMedia('(display-mode: standalone)').matches;
151
+ })();
152
+ var IS_WEBVIEW = /; ?wv|applewebkit(?!.*safari)/i.test(USER_AGENT);
153
+
154
+ var Platform = {
155
+ os: OS_NAME,
156
+ device: DEVICE_NAME,
157
+ engine: ENGINE_NAME,
158
+ osVersion: OS_VERSION,
159
+ engineVersion: ENGINE_VERSION,
160
+ renderer: RENDERER,
161
+ isWebview: IS_WEBVIEW,
162
+ isMobile: IS_MOBILE,
163
+ isDesktop: IS_DESKTOP,
164
+ isStandalone: IS_STANDALONE,
165
+ };
166
+
167
+ var PlatformPlugin = {
168
+ installed: false,
169
+ name: 'Platform',
170
+ module: Platform,
171
+ constants: {},
172
+ errors: {}
173
+ };
174
+
175
+ return PlatformPlugin;
176
+
177
+ }));
@@ -0,0 +1 @@
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).Platform=n()}(this,(function(){"use strict";var e,n,i,o=navigator.userAgent;!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(e||(e={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(n||(n={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(i||(i={}));for(var t=function(){function i(e){return void 0===e?"":e.replace(/_/g,".")}function o(e){if(void 0===e)return"";var n={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==n?n:e}function t(e){return void 0===e?"":e}return[[/android\w*[-\/.; ]?([\d.]*)/i,e.Android,n.Mobile,t],[/microsoft windows (vista|xp)/i,e.Windows,n.Desktop,t],[/windows (?:phone(?: os)?|mobile|iot)[\/ ]?([.\w ]*)/i,e.Windows,n.Desktop,o],[/windows nt 6\.2; (arm)/i,e.Windows,n.Desktop,o],[/windows[\/ ]([ntce\d. ]+\w)(?!.+xbox)/i,e.Windows,n.Desktop,o],[/(?:win(?=[39n])|win 9x )([nt\d.]+)/i,e.Windows,n.Desktop,o],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,e.iOS,n.Mobile,i],[/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d.]+)/i,e.iOS,n.Mobile,i],[/cfnetwork\/.+darwin/i,e.iOS,n.Mobile,t],[/mac os x ?([\w. ]*)/i,e.MacOS,n.Desktop,i],[/(?:macintosh|mac_powerpc\b)(?!.+haiku)/i,e.MacOS,n.Desktop,i]]}(),r=[[/windows.+ edge\/([\w.]+)/i,i.EdgeHTML],[/arkweb\/([\w.]+)/i,i.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,i.Blink],[/presto\/([\w.]+)/i,i.Presto],[/webkit\/([\w.]+)/i,i.WebKit],[/trident\/([\w.]+)/i,i.Trident],[/netfront\/([\w.]+)/i,i.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,i.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,i.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,i.Gecko]],a=e.Unknown,s="",d=n.Unknown,w=i.Unknown,l="",c=0;c<t.length;c++){var f=(m=t[c])[0],k=m[1],u=m[2],b=m[3];if(null!==(p=o.match(f))){a=k,s=b(p[1]),d=u;break}}for(c=0;c<r.length;c++){f=(m=r[c])[0];var m,p,g=m[1];if(null!==(p=o.match(f))){w=g,l=p[1];break}}var T=function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)return"";var n=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===n)return"";if(n instanceof WebGLRenderingContext||"getParameter"in n&&"function"==typeof n.getParameter){var i=n.getExtension("WEBGL_debug_renderer_info");return null===i?n.getParameter(n.RENDERER):n.getParameter(i.UNMASKED_RENDERER_WEBGL)}return""}(),v=d===n.Mobile,M=d===n.Desktop,N=a===e.iOS?"standalone"in navigator&&navigator.standalone:window.matchMedia("(display-mode: standalone)").matches,W=/; ?wv|applewebkit(?!.*safari)/i.test(o);return{installed:!1,name:"Platform",module:{os:a,device:d,engine:w,osVersion:s,engineVersion:l,renderer:T,isWebview:W,isMobile:v,isDesktop:M,isStandalone:N},constants:{},errors:{}}}));
@@ -0,0 +1,35 @@
1
+ export declare enum OS {
2
+ Unknown = "Unknown",
3
+ Android = "Android",
4
+ iOS = "iOS",
5
+ Windows = "Windows",
6
+ MacOS = "MacOS"
7
+ }
8
+ export declare enum Devices {
9
+ Unknown = "Unknown",
10
+ Mobile = "Mobile",
11
+ Desktop = "Desktop"
12
+ }
13
+ export declare enum Engines {
14
+ Unknown = "Unknown",
15
+ EdgeHTML = "EdgeHTML",
16
+ ArkWeb = "ArkWeb",
17
+ Blink = "Blink",
18
+ Presto = "Presto",
19
+ WebKit = "WebKit",
20
+ Trident = "Trident",
21
+ NetFront = "NetFront",
22
+ KHTML = "KHTML",
23
+ Tasman = "Tasman",
24
+ Gecko = "Gecko"
25
+ }
26
+ export declare let OS_NAME: OS;
27
+ export declare let OS_VERSION: string;
28
+ export declare let DEVICE_NAME: Devices;
29
+ export declare let ENGINE_NAME: Engines;
30
+ export declare let ENGINE_VERSION: string;
31
+ export declare const RENDERER: string;
32
+ export declare const IS_MOBILE: boolean;
33
+ export declare const IS_DESKTOP: boolean;
34
+ export declare const IS_STANDALONE: boolean;
35
+ export declare const IS_WEBVIEW: boolean;
@@ -0,0 +1 @@
1
+ export declare const USER_AGENT: string;
@@ -0,0 +1,13 @@
1
+ export declare enum AppOpenState {
2
+ Scheme = 0,
3
+ Universal = 1,
4
+ Intent = 2,
5
+ Fallback = 3,
6
+ Store = 4
7
+ }
8
+ export declare enum Messengers {
9
+ Telephone = "telephone",
10
+ Message = "message",
11
+ Mail = "mail"
12
+ }
13
+ export declare const IS_SUPPORT_INTENT: boolean;
@@ -0,0 +1,3 @@
1
+ import type { AppModule } from '../types/appModule';
2
+ declare const App: AppModule;
3
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const URLOpenError: ErrorConstructor;
2
+ export { URLOpenError, };
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from '../../types';
2
+ import type { AppModule } from "./types";
3
+ export * from './types';
4
+ declare const AppPlugin: NativePlugin<AppModule>;
5
+ export default AppPlugin;
@@ -0,0 +1,54 @@
1
+ import { OS } from '../../../constants/platform';
2
+ import { AppOpenState, Messengers } from '../constants/app';
3
+ export declare interface EventListenerUtil {
4
+ useStd: boolean;
5
+ add: (target: any, eventListenerOptions: EventListenerOptions) => void;
6
+ remove: (target: any, eventListenerOptions: EventListenerOptions) => void;
7
+ withVender: (target: any, type?: string) => string;
8
+ }
9
+ export declare interface EventListenerOptions {
10
+ type?: string;
11
+ callback: EventListenerOrEventListenerObject | null;
12
+ options?: AddEventListenerOptions | boolean;
13
+ }
14
+ export declare interface AppInfo {
15
+ scheme?: URLCandidate;
16
+ fallback?: URLCandidate | (() => any);
17
+ timeout?: number;
18
+ allowWebStore?: boolean;
19
+ }
20
+ export declare interface AndroidAppInfo extends AppInfo {
21
+ packageName?: string;
22
+ intent?: URLCandidate;
23
+ }
24
+ export declare interface IOSAppInfo extends MacOSAppInfo {
25
+ universal?: URLCandidate;
26
+ }
27
+ export declare interface WindowsAppInfo extends AppInfo {
28
+ productId?: string;
29
+ }
30
+ export declare interface MacOSAppInfo extends AppInfo {
31
+ bundleId?: string;
32
+ trackId?: string;
33
+ }
34
+ export declare interface AppOpenOptions {
35
+ [OS.Android]?: AndroidAppInfo;
36
+ [OS.iOS]?: IOSAppInfo;
37
+ [OS.Windows]?: WindowsAppInfo;
38
+ [OS.MacOS]?: MacOSAppInfo;
39
+ }
40
+ export declare type URLCandidate = URL | string;
41
+ export declare type Stringifiable = string | number | boolean | HTMLElement | null | undefined;
42
+ export declare type StringifiableSequence = Stringifiable[] | NodeList | NodeListOf<Node> | HTMLCollectionBase;
43
+ export declare type MessengerOpenOptions = {
44
+ to?: Stringifiable | StringifiableSequence;
45
+ cc?: Stringifiable | StringifiableSequence;
46
+ bcc?: Stringifiable | StringifiableSequence;
47
+ subject?: Stringifiable;
48
+ body?: Stringifiable;
49
+ } | HTMLFormElement | FormData;
50
+ export declare type Messenger = Record<Messengers, (options: MessengerOpenOptions, self?: WindowProxy) => Promise<void>>;
51
+ export declare interface App {
52
+ open: (options: AppOpenOptions, target?: WindowProxy) => Promise<AppOpenState>;
53
+ messenger: Messenger;
54
+ }
@@ -0,0 +1,54 @@
1
+ import { OS } from '../../../constants/platform';
2
+ import { AppOpenState, Messengers } from '../constants/app';
3
+ export declare interface EventListenerUtil {
4
+ useStd: boolean;
5
+ add: (target: any, eventListenerOptions: EventListenerOptions) => void;
6
+ remove: (target: any, eventListenerOptions: EventListenerOptions) => void;
7
+ withVender: (target: any, type?: string) => string;
8
+ }
9
+ export declare interface EventListenerOptions {
10
+ type?: string;
11
+ callback: EventListenerOrEventListenerObject | null;
12
+ options?: AddEventListenerOptions | boolean;
13
+ }
14
+ export declare interface AppInfo {
15
+ scheme?: URLCandidate;
16
+ fallback?: URLCandidate | (() => any);
17
+ timeout?: number;
18
+ allowWebStore?: boolean;
19
+ }
20
+ export declare interface AndroidAppInfo extends AppInfo {
21
+ packageName?: string;
22
+ intent?: URLCandidate;
23
+ }
24
+ export declare interface IOSAppInfo extends MacOSAppInfo {
25
+ universal?: URLCandidate;
26
+ }
27
+ export declare interface WindowsAppInfo extends AppInfo {
28
+ productId?: string;
29
+ }
30
+ export declare interface MacOSAppInfo extends AppInfo {
31
+ bundleId?: string;
32
+ trackId?: string;
33
+ }
34
+ export declare interface AppOpenOptions {
35
+ [OS.Android]?: AndroidAppInfo;
36
+ [OS.iOS]?: IOSAppInfo;
37
+ [OS.Windows]?: WindowsAppInfo;
38
+ [OS.MacOS]?: MacOSAppInfo;
39
+ }
40
+ export declare type URLCandidate = URL | string;
41
+ export declare type Stringifiable = string | number | boolean | HTMLElement | null | undefined;
42
+ export declare type StringifiableSequence = Stringifiable[] | NodeList | NodeListOf<Node> | HTMLCollectionBase;
43
+ export declare type MessengerOpenOptions = {
44
+ to?: Stringifiable | StringifiableSequence;
45
+ cc?: Stringifiable | StringifiableSequence;
46
+ bcc?: Stringifiable | StringifiableSequence;
47
+ subject?: Stringifiable;
48
+ body?: Stringifiable;
49
+ } | HTMLFormElement | FormData;
50
+ export declare type Messenger = Record<Messengers, (options: MessengerOpenOptions, self?: WindowProxy) => Promise<void>>;
51
+ export declare interface AppModule {
52
+ open: (options: AppOpenOptions, target?: WindowProxy) => Promise<AppOpenState>;
53
+ messenger: Messenger;
54
+ }
@@ -0,0 +1 @@
1
+ export * from './appModule';
@@ -0,0 +1,3 @@
1
+ import type { EventListenerUtil } from '../types/appModule';
2
+ declare const EventListenerUtils: EventListenerUtil;
3
+ export default EventListenerUtils;
@@ -0,0 +1 @@
1
+ export default function tryOpenUrl(url: string, index: number, timeout: number): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import type { PlatformModule } from '../types/platformModule';
2
+ declare const Platform: PlatformModule;
3
+ export default Platform;
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from '../../types';
2
+ import type { PlatformModule } from "./types";
3
+ export * from './types';
4
+ declare const PlatformPlugin: NativePlugin<PlatformModule>;
5
+ export default PlatformPlugin;
@@ -0,0 +1 @@
1
+ export * from './platformModule';
@@ -0,0 +1,13 @@
1
+ import { Devices, Engines, OS } from '../../../constants/platform';
2
+ export declare interface Platform {
3
+ os: OS;
4
+ device: Devices;
5
+ engine: Engines;
6
+ osVersion: string;
7
+ engineVersion: string;
8
+ renderer: string;
9
+ isWebview: boolean;
10
+ isStandalone: boolean;
11
+ isMobile: boolean;
12
+ isDesktop: boolean;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Devices, Engines, OS } from '../../../constants/platform';
2
+ export declare interface PlatformModule {
3
+ os: OS;
4
+ device: Devices;
5
+ engine: Engines;
6
+ osVersion: string;
7
+ engineVersion: string;
8
+ renderer: string;
9
+ isWebview: boolean;
10
+ isStandalone: boolean;
11
+ isMobile: boolean;
12
+ isDesktop: boolean;
13
+ }
@@ -0,0 +1,16 @@
1
+ import type { ListenerEntry } from '../types/themeModule';
2
+ export declare enum Appearances {
3
+ Unknown = "unknown",
4
+ Light = "light",
5
+ Dark = "dark"
6
+ }
7
+ export declare const CHROME_VERSION: number;
8
+ export declare const MEDIA_QUERY_LIST: MediaQueryList;
9
+ export declare const SUPPORT_PREFERS_COLOR_SCHEME: boolean;
10
+ export declare const IS_FULL_SUPPORT_THEME_COLOR: boolean;
11
+ export declare const CONTEXT: CanvasRenderingContext2D | null;
12
+ export declare const SVG_PIXEL_DATA_URL: string;
13
+ export declare const IS_SAMSUNG: boolean;
14
+ export declare const IS_IE_MOBILE: boolean;
15
+ export declare const IS_WINDOWS_PHONE: boolean;
16
+ export declare const ENTRIES: ListenerEntry[];
@@ -0,0 +1,3 @@
1
+ import type { ThemeModule } from '../types/themeModule';
2
+ declare const Theme: ThemeModule;
3
+ export default Theme;
@@ -0,0 +1,6 @@
1
+ declare const EasingError: ErrorConstructor;
2
+ declare const CubicBezierSyntaxError: ErrorConstructor;
3
+ declare const LinearSyntaxError: ErrorConstructor;
4
+ declare const StepSyntaxError: ErrorConstructor;
5
+ declare const UnsupportedEasingFunctionError: ErrorConstructor;
6
+ export { EasingError, CubicBezierSyntaxError, LinearSyntaxError, StepSyntaxError, UnsupportedEasingFunctionError, };
@@ -0,0 +1,2 @@
1
+ declare const UnsupportedColorError: ErrorConstructor;
2
+ export { UnsupportedColorError, };
@@ -0,0 +1,5 @@
1
+ import type { NativePlugin } from '../../types';
2
+ import type { ThemeModule } from "./types";
3
+ export * from './types';
4
+ declare const ThemePlugin: NativePlugin<ThemeModule>;
5
+ export default ThemePlugin;
@@ -0,0 +1,17 @@
1
+ export type SystemColor = 'ActiveBorder' | 'ActiveCaption' | 'AppWorkspace' | 'Background' | 'ButtonHighlight' | 'ButtonShadow' | 'CaptionText' | 'InactiveBorder' | 'InactiveCaption' | 'InactiveCaptionText' | 'InfoBackground' | 'InfoText' | 'Menu' | 'MenuText' | 'Scrollbar' | 'ThreeDDarkShadow' | 'ThreeDFace' | 'ThreeDHighlight' | 'ThreeDLightShadow' | 'ThreeDShadow' | 'Window' | 'WindowFrame' | 'WindowText';
2
+ export type DeprecatedSystemColor = 'ActiveText' | 'ButtonBorder' | 'ButtonFace' | 'ButtonText' | 'Canvas' | 'CanvasText' | 'Field' | 'FieldText' | 'GrayText' | 'Highlight' | 'HighlightText' | 'LinkText' | 'Mark' | 'MarkText' | 'SelectedItem' | 'SelectedItemText' | 'VisitedText';
3
+ export type NamedColor = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategray' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen';
4
+ export type RGBColor = `rgb(${string})`;
5
+ export type RGBAColor = `rgba(${string})`;
6
+ export type HSLColor = `hsl(${string})`;
7
+ export type HSLAColor = `hsla(${string})`;
8
+ export type HEXColor = `#${string}`;
9
+ export type Color = 'currentColor' | 'transparent' | SystemColor | DeprecatedSystemColor | NamedColor | RGBColor | RGBAColor | HSLColor | HSLAColor | HEXColor | string;
10
+ export declare interface RGB {
11
+ red: number;
12
+ green: number;
13
+ blue: number;
14
+ }
15
+ export declare interface RGBA extends RGB {
16
+ alpha: number;
17
+ }