@prom-ui/core 0.0.101 → 0.0.103-alpha.0

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 (253) hide show
  1. package/Avatar/cjs/index.development.js +0 -2
  2. package/Avatar/cjs/index.development.v2.js +151 -0
  3. package/Avatar/cjs/index.production.js +1 -1
  4. package/Avatar/cjs/index.production.v2.js +1 -0
  5. package/Avatar/cjs/style.development.v2.css +1 -0
  6. package/Avatar/cjs/style.production.v2.css +1 -0
  7. package/Avatar/index.js +14 -2
  8. package/Avatar/package.json +1 -1
  9. package/Body/cjs/index.development.js +0 -2
  10. package/Body/cjs/index.development.v2.js +12 -0
  11. package/Body/cjs/index.production.js +1 -1
  12. package/Body/cjs/index.production.v2.js +1 -0
  13. package/Body/cjs/style.development.v2.css +1 -0
  14. package/Body/cjs/style.production.v2.css +1 -0
  15. package/Body/index.js +14 -2
  16. package/Body/package.json +1 -1
  17. package/Box/cjs/index.development.js +0 -2
  18. package/Box/cjs/index.development.v2.js +18 -0
  19. package/Box/cjs/index.production.js +1 -1
  20. package/Box/cjs/index.production.v2.js +1 -0
  21. package/Box/cjs/style.development.v2.css +1 -0
  22. package/Box/cjs/style.production.v2.css +1 -0
  23. package/Box/index.js +14 -2
  24. package/Box/package.json +1 -1
  25. package/Button/cjs/index.development.js +0 -2
  26. package/Button/cjs/index.development.v2.js +93 -0
  27. package/Button/cjs/index.production.js +1 -1
  28. package/Button/cjs/index.production.v2.js +1 -0
  29. package/Button/cjs/style.development.v2.css +1 -0
  30. package/Button/cjs/style.production.v2.css +1 -0
  31. package/Button/index.js +14 -2
  32. package/Button/package.json +1 -1
  33. package/ButtonPageUp/cjs/index.development.v2.js +174 -0
  34. package/ButtonPageUp/cjs/index.production.v2.js +1 -0
  35. package/ButtonPageUp/index.js +2 -2
  36. package/ButtonPageUp/package.json +1 -1
  37. package/Checkbox/cjs/index.development.js +0 -2
  38. package/Checkbox/cjs/index.development.v2.js +109 -0
  39. package/Checkbox/cjs/index.production.js +1 -1
  40. package/Checkbox/cjs/index.production.v2.js +1 -0
  41. package/Checkbox/cjs/style.development.v2.css +1 -0
  42. package/Checkbox/cjs/style.production.v2.css +1 -0
  43. package/Checkbox/index.js +14 -2
  44. package/Checkbox/package.json +1 -1
  45. package/Flex/cjs/index.development.js +0 -2
  46. package/Flex/cjs/index.development.v2.js +23 -0
  47. package/Flex/cjs/index.production.js +1 -1
  48. package/Flex/cjs/index.production.v2.js +1 -0
  49. package/Flex/cjs/style.development.v2.css +1 -0
  50. package/Flex/cjs/style.production.v2.css +1 -0
  51. package/Flex/index.js +14 -2
  52. package/Flex/package.json +1 -1
  53. package/Grid/cjs/index.development.js +0 -2
  54. package/Grid/cjs/index.development.v2.js +23 -0
  55. package/Grid/cjs/index.production.js +1 -1
  56. package/Grid/cjs/index.production.v2.js +1 -0
  57. package/Grid/cjs/style.development.v2.css +1 -0
  58. package/Grid/cjs/style.production.v2.css +1 -0
  59. package/Grid/index.js +14 -2
  60. package/Grid/package.json +1 -1
  61. package/Icon/cjs/index.development.js +0 -2
  62. package/Icon/cjs/index.development.v2.js +39 -0
  63. package/Icon/cjs/index.production.js +1 -1
  64. package/Icon/cjs/index.production.v2.js +1 -0
  65. package/Icon/cjs/style.development.v2.css +1 -0
  66. package/Icon/cjs/style.production.v2.css +1 -0
  67. package/Icon/index.js +14 -2
  68. package/Icon/package.json +1 -1
  69. package/Image/cjs/index.development.js +0 -2
  70. package/Image/cjs/index.development.v2.js +18 -0
  71. package/Image/cjs/index.production.js +1 -1
  72. package/Image/cjs/index.production.v2.js +1 -0
  73. package/Image/cjs/style.development.v2.css +1 -0
  74. package/Image/cjs/style.production.v2.css +1 -0
  75. package/Image/index.js +14 -2
  76. package/Image/package.json +1 -1
  77. package/ImageEmoji/cjs/index.development.v2.js +90 -0
  78. package/ImageEmoji/cjs/index.production.v2.js +1 -0
  79. package/ImageEmoji/index.js +2 -2
  80. package/ImageEmoji/package.json +1 -1
  81. package/Input/cjs/index.development.js +0 -2
  82. package/Input/cjs/index.development.v2.js +37 -0
  83. package/Input/cjs/index.production.js +1 -1
  84. package/Input/cjs/index.production.v2.js +1 -0
  85. package/Input/cjs/style.development.v2.css +1 -0
  86. package/Input/cjs/style.production.v2.css +1 -0
  87. package/Input/index.js +14 -2
  88. package/Input/package.json +1 -1
  89. package/KeyPress/cjs/index.development.v2.js +56 -0
  90. package/KeyPress/cjs/index.production.v2.js +1 -0
  91. package/KeyPress/index.js +2 -2
  92. package/KeyPress/package.json +1 -1
  93. package/Line/cjs/index.development.js +0 -2
  94. package/Line/cjs/index.development.v2.js +18 -0
  95. package/Line/cjs/index.production.js +1 -1
  96. package/Line/cjs/index.production.v2.js +1 -0
  97. package/Line/cjs/style.development.v2.css +1 -0
  98. package/Line/cjs/style.production.v2.css +1 -0
  99. package/Line/index.js +14 -2
  100. package/Line/package.json +1 -1
  101. package/Link/cjs/index.development.js +0 -2
  102. package/Link/cjs/index.development.v2.js +20 -0
  103. package/Link/cjs/index.production.js +1 -1
  104. package/Link/cjs/index.production.v2.js +1 -0
  105. package/Link/cjs/style.development.v2.css +1 -0
  106. package/Link/cjs/style.production.v2.css +1 -0
  107. package/Link/index.js +14 -2
  108. package/Link/package.json +1 -1
  109. package/List/cjs/index.development.js +0 -2
  110. package/List/cjs/index.development.v2.js +23 -0
  111. package/List/cjs/index.production.js +1 -1
  112. package/List/cjs/index.production.v2.js +1 -0
  113. package/List/cjs/style.development.v2.css +1 -0
  114. package/List/cjs/style.production.v2.css +1 -0
  115. package/List/index.js +14 -2
  116. package/List/package.json +1 -1
  117. package/Media/cjs/index.development.v2.js +98 -0
  118. package/Media/cjs/index.production.v2.js +1 -0
  119. package/Media/index.js +2 -2
  120. package/Media/package.json +1 -1
  121. package/OutsideClick/cjs/index.development.v2.js +84 -0
  122. package/OutsideClick/cjs/index.production.v2.js +1 -0
  123. package/OutsideClick/index.js +2 -2
  124. package/OutsideClick/package.json +1 -1
  125. package/Overlay/cjs/index.development.js +0 -2
  126. package/Overlay/cjs/index.development.v2.js +473 -0
  127. package/Overlay/cjs/index.production.js +1 -1
  128. package/Overlay/cjs/index.production.v2.js +1 -0
  129. package/Overlay/cjs/style.development.v2.css +1 -0
  130. package/Overlay/cjs/style.production.v2.css +1 -0
  131. package/Overlay/index.js +14 -2
  132. package/Overlay/package.json +1 -1
  133. package/Picture/cjs/index.development.js +0 -2
  134. package/Picture/cjs/index.development.v2.js +23 -0
  135. package/Picture/cjs/index.production.js +1 -1
  136. package/Picture/cjs/index.production.v2.js +1 -0
  137. package/Picture/cjs/style.development.v2.css +1 -0
  138. package/Picture/cjs/style.production.v2.css +1 -0
  139. package/Picture/index.js +14 -2
  140. package/Picture/package.json +1 -1
  141. package/PortableOverlay/cjs/index.development.js +0 -2
  142. package/PortableOverlay/cjs/index.development.v2.js +109 -0
  143. package/PortableOverlay/cjs/index.production.js +1 -1
  144. package/PortableOverlay/cjs/index.production.v2.js +1 -0
  145. package/PortableOverlay/cjs/style.development.v2.css +1 -0
  146. package/PortableOverlay/cjs/style.production.v2.css +1 -0
  147. package/PortableOverlay/index.js +14 -2
  148. package/PortableOverlay/package.json +1 -1
  149. package/Portal/cjs/index.development.v2.js +57 -0
  150. package/Portal/cjs/index.production.v2.js +1 -0
  151. package/Portal/index.js +2 -2
  152. package/Portal/package.json +1 -1
  153. package/QRCode/cjs/index.development.js +0 -2
  154. package/QRCode/cjs/index.development.v2.js +50 -0
  155. package/QRCode/cjs/index.production.js +1 -1
  156. package/QRCode/cjs/index.production.v2.js +1 -0
  157. package/QRCode/cjs/style.development.v2.css +1 -0
  158. package/QRCode/cjs/style.production.v2.css +1 -0
  159. package/QRCode/index.js +14 -2
  160. package/QRCode/package.json +1 -1
  161. package/Rating/cjs/index.development.js +0 -2
  162. package/Rating/cjs/index.development.v2.js +105 -0
  163. package/Rating/cjs/index.production.js +1 -1
  164. package/Rating/cjs/index.production.v2.js +1 -0
  165. package/Rating/cjs/style.development.v2.css +1 -0
  166. package/Rating/cjs/style.production.v2.css +1 -0
  167. package/Rating/index.js +14 -2
  168. package/Rating/package.json +1 -1
  169. package/SafeQuery/cjs/index.development.js +0 -2
  170. package/SafeQuery/cjs/index.development.v2.js +179 -0
  171. package/SafeQuery/cjs/index.production.js +1 -1
  172. package/SafeQuery/cjs/index.production.v2.js +1 -0
  173. package/SafeQuery/cjs/style.development.v2.css +1 -0
  174. package/SafeQuery/cjs/style.production.v2.css +1 -0
  175. package/SafeQuery/index.js +14 -2
  176. package/SafeQuery/package.json +1 -1
  177. package/Scroll/cjs/index.development.js +0 -2
  178. package/Scroll/cjs/index.development.v2.js +38 -0
  179. package/Scroll/cjs/index.production.js +1 -1
  180. package/Scroll/cjs/index.production.v2.js +1 -0
  181. package/Scroll/cjs/style.development.v2.css +1 -0
  182. package/Scroll/cjs/style.production.v2.css +1 -0
  183. package/Scroll/index.js +14 -2
  184. package/Scroll/package.json +1 -1
  185. package/ScrollControls/cjs/index.development.js +0 -2
  186. package/ScrollControls/cjs/index.development.v2.js +241 -0
  187. package/ScrollControls/cjs/index.production.js +1 -1
  188. package/ScrollControls/cjs/index.production.v2.js +1 -0
  189. package/ScrollControls/cjs/style.development.v2.css +1 -0
  190. package/ScrollControls/cjs/style.production.v2.css +1 -0
  191. package/ScrollControls/index.js +14 -2
  192. package/ScrollControls/package.json +1 -1
  193. package/SideOverlay/cjs/index.development.js +0 -2
  194. package/SideOverlay/cjs/index.development.v2.js +208 -0
  195. package/SideOverlay/cjs/index.production.js +1 -1
  196. package/SideOverlay/cjs/index.production.v2.js +1 -0
  197. package/SideOverlay/cjs/style.development.v2.css +1 -0
  198. package/SideOverlay/cjs/style.production.v2.css +1 -0
  199. package/SideOverlay/index.js +14 -2
  200. package/SideOverlay/package.json +1 -1
  201. package/SimpleSlider/cjs/index.development.js +0 -2
  202. package/SimpleSlider/cjs/index.development.v2.js +433 -0
  203. package/SimpleSlider/cjs/index.production.js +1 -1
  204. package/SimpleSlider/cjs/index.production.v2.js +1 -0
  205. package/SimpleSlider/cjs/style.development.v2.css +1 -0
  206. package/SimpleSlider/cjs/style.production.v2.css +1 -0
  207. package/SimpleSlider/index.js +14 -2
  208. package/SimpleSlider/package.json +1 -1
  209. package/Skeleton/cjs/index.development.js +0 -2
  210. package/Skeleton/cjs/index.development.v2.js +101 -0
  211. package/Skeleton/cjs/index.production.js +1 -1
  212. package/Skeleton/cjs/index.production.v2.js +1 -0
  213. package/Skeleton/cjs/style.development.v2.css +1 -0
  214. package/Skeleton/cjs/style.production.v2.css +1 -0
  215. package/Skeleton/index.js +14 -2
  216. package/Skeleton/package.json +1 -1
  217. package/Spinner/cjs/index.development.js +0 -2
  218. package/Spinner/cjs/index.development.v2.js +83 -0
  219. package/Spinner/cjs/index.production.js +1 -1
  220. package/Spinner/cjs/index.production.v2.js +1 -0
  221. package/Spinner/cjs/style.development.v2.css +1 -0
  222. package/Spinner/cjs/style.production.v2.css +1 -0
  223. package/Spinner/index.js +14 -2
  224. package/Spinner/package.json +1 -1
  225. package/Text/cjs/index.development.js +0 -2
  226. package/Text/cjs/index.development.v2.js +18 -0
  227. package/Text/cjs/index.production.js +1 -1
  228. package/Text/cjs/index.production.v2.js +1 -0
  229. package/Text/cjs/style.development.v2.css +1 -0
  230. package/Text/cjs/style.production.v2.css +1 -0
  231. package/Text/index.js +14 -2
  232. package/Text/package.json +1 -1
  233. package/TextEmoji/cjs/index.development.v2.js +94 -0
  234. package/TextEmoji/cjs/index.production.v2.js +1 -0
  235. package/TextEmoji/index.js +2 -2
  236. package/TextEmoji/package.json +1 -1
  237. package/Tooltip/cjs/index.development.js +0 -2
  238. package/Tooltip/cjs/index.development.v2.js +149 -0
  239. package/Tooltip/cjs/index.production.js +1 -1
  240. package/Tooltip/cjs/index.production.v2.js +1 -0
  241. package/Tooltip/cjs/style.development.v2.css +1 -0
  242. package/Tooltip/cjs/style.production.v2.css +1 -0
  243. package/Tooltip/index.js +14 -2
  244. package/Tooltip/package.json +1 -1
  245. package/Tumbler/cjs/index.development.js +0 -2
  246. package/Tumbler/cjs/index.development.v2.js +108 -0
  247. package/Tumbler/cjs/index.production.js +1 -1
  248. package/Tumbler/cjs/index.production.v2.js +1 -0
  249. package/Tumbler/cjs/style.development.v2.css +1 -0
  250. package/Tumbler/cjs/style.production.v2.css +1 -0
  251. package/Tumbler/index.js +14 -2
  252. package/Tumbler/package.json +1 -1
  253. package/package.json +4 -4
@@ -149,5 +149,3 @@ var Avatar = React__namespace.forwardRef(function (_a, ref) {
149
149
  Avatar.displayName = 'Avatar';
150
150
 
151
151
  exports.Avatar = Avatar;
152
-
153
- require('./style.development.css');
@@ -0,0 +1,151 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var classNames = require('classnames');
7
+ var Icon = require('@prom-ui/core/Icon');
8
+ var User = require('@prom-ui/icons/User');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
22
+ });
23
+ }
24
+ });
25
+ }
26
+ n["default"] = e;
27
+ return Object.freeze(n);
28
+ }
29
+
30
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
32
+
33
+ /******************************************************************************
34
+ Copyright (c) Microsoft Corporation.
35
+
36
+ Permission to use, copy, modify, and/or distribute this software for any
37
+ purpose with or without fee is hereby granted.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+ ***************************************************************************** */
47
+
48
+ var __assign = function() {
49
+ __assign = Object.assign || function __assign(t) {
50
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
51
+ s = arguments[i];
52
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
53
+ }
54
+ return t;
55
+ };
56
+ return __assign.apply(this, arguments);
57
+ };
58
+
59
+ function __rest(s, e) {
60
+ var t = {};
61
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62
+ t[p] = s[p];
63
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
64
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
65
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
66
+ t[p[i]] = s[p[i]];
67
+ }
68
+ return t;
69
+ }
70
+
71
+ function stringToColor(string) {
72
+ var hash = 0;
73
+ var i;
74
+
75
+ for (i = 0; i < string.length; i += 1) {
76
+ hash = string.charCodeAt(i) + ((hash << 5) - hash);
77
+ }
78
+
79
+ var color = '#';
80
+
81
+ for (i = 0; i < 3; i += 1) {
82
+ var value = hash >> i * 8 & 0xff;
83
+ color += "00".concat(value.toString(16)).slice(-2);
84
+ }
85
+
86
+ return color;
87
+ }
88
+ function stringAvatar(name) {
89
+ var splitName = name.split(' ');
90
+ return splitName.slice(0, 2).map(function (value) {
91
+ return value[0];
92
+ }).join('');
93
+ }
94
+
95
+ var css = {"root":"Avatar__root___G2c2y","image":"Avatar__image___A7F5c","text":"Avatar__text___ZWoLT","icon":"Avatar__icon___sQ5M9","theme_white":"Avatar__theme_white___alKXP","theme_black-100":"Avatar__theme_black-100___mN0Ch","theme_violet-300":"Avatar__theme_violet-300___MEUSj","theme_yellow-500":"Avatar__theme_yellow-500___lfsbh","theme_multicolor":"Avatar__theme_multicolor___zMJTY"};
96
+
97
+ var Avatar = React__namespace.forwardRef(function (_a, ref) {
98
+ var _b;
99
+
100
+ var image = _a.image,
101
+ name = _a.name,
102
+ _c = _a.size,
103
+ size = _c === void 0 ? 40 : _c,
104
+ _d = _a.loading,
105
+ loading = _d === void 0 ? 'eager' : _d,
106
+ _e = _a.theme,
107
+ theme = _e === void 0 ? 'violet-300' : _e,
108
+ className = _a.className,
109
+ props = __rest(_a, ["image", "name", "size", "loading", "theme", "className"]);
110
+
111
+ var isImage = !!image;
112
+ var bgColor = undefined;
113
+ var shortName = null;
114
+
115
+ if (!isImage) {
116
+ var trimName = !!name ? name.trim() : '';
117
+
118
+ if (theme === 'multicolor') {
119
+ bgColor = stringToColor(trimName);
120
+ }
121
+
122
+ shortName = stringAvatar(trimName);
123
+ }
124
+
125
+ return React__namespace.createElement("div", __assign({
126
+ className: classNames__default["default"](css.root, className, (_b = {}, _b[css["theme_".concat(theme)]] = !isImage, _b))
127
+ }, props, {
128
+ style: {
129
+ background: bgColor,
130
+ width: size,
131
+ height: size,
132
+ fontSize: size / 2.2
133
+ },
134
+ ref: ref
135
+ }), isImage ? React__namespace.createElement("img", {
136
+ className: css.image,
137
+ src: image,
138
+ alt: name,
139
+ width: size,
140
+ height: size,
141
+ loading: loading
142
+ }) : React__namespace.createElement(React__namespace.Fragment, null, !!shortName ? React__namespace.createElement("span", {
143
+ className: css.text
144
+ }, shortName) : React__namespace.createElement(Icon.Icon, {
145
+ className: css.icon,
146
+ "icon-as": User.SvgUser
147
+ })));
148
+ });
149
+ Avatar.displayName = 'Avatar';
150
+
151
+ exports.Avatar = Avatar;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=a(e),c=o(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};var u={root:"ap8QD",image:"_52SeG",text:"-Fg0p",icon:"-JCN2",theme_white:"VDWp7","theme_black-100":"AQ1tT","theme_violet-300":"yK-3d","theme_yellow-500":"O2My9",theme_multicolor:"xV5U3"},s=i.forwardRef((function(e,t){var o,a=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,g=e.theme,v=void 0===g?"violet-300":g,h=e.className,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["image","name","size","loading","theme","className"]),O=!!a,b=void 0,j=null;if(!O){var _=s?s.trim():"";"multicolor"===v&&(b=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(_)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(_)}return i.createElement("div",l({className:c.default(u.root,h,(o={},o[u["theme_".concat(v)]]=!O,o))},y,{style:{background:b,width:m,height:m,fontSize:m/2.2},ref:t}),O?i.createElement("img",{className:u.image,src:a,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s,require("./style.production.css");
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(e),c=a(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u={root:"ap8QD",image:"_52SeG",text:"-Fg0p",icon:"-JCN2",theme_white:"VDWp7","theme_black-100":"AQ1tT","theme_violet-300":"yK-3d","theme_yellow-500":"O2My9",theme_multicolor:"xV5U3"},s=i.forwardRef((function(e,t){var a,o=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,g=e.theme,v=void 0===g?"violet-300":g,h=e.className,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["image","name","size","loading","theme","className"]),O=!!o,b=void 0,j=null;if(!O){var _=s?s.trim():"";"multicolor"===v&&(b=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(_)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(_)}return i.createElement("div",l({className:c.default(u.root,h,(a={},a[u["theme_".concat(v)]]=!O,a))},y,{style:{background:b,width:m,height:m,fontSize:m/2.2},ref:t}),O?i.createElement("img",{className:u.image,src:o,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(e),c=a(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u={root:"G2c2y",image:"A7F5c",text:"ZWoLT",icon:"sQ5M9",theme_white:"alKXP","theme_black-100":"mN0Ch","theme_violet-300":"MEUSj","theme_yellow-500":"lfsbh",theme_multicolor:"zMJTY"},s=i.forwardRef((function(e,t){var a,o=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,h=e.theme,v=void 0===h?"violet-300":h,g=e.className,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["image","name","size","loading","theme","className"]),b=!!o,O=void 0,j=null;if(!b){var w=s?s.trim():"";"multicolor"===v&&(O=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(w)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(w)}return i.createElement("div",l({className:c.default(u.root,g,(a={},a[u["theme_".concat(v)]]=!b,a))},y,{style:{background:O,width:m,height:m,fontSize:m/2.2},ref:t}),b?i.createElement("img",{className:u.image,src:o,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s;
@@ -0,0 +1 @@
1
+ .Avatar__root___G2c2y{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}.Avatar__image___A7F5c{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.Avatar__text___ZWoLT{font-size:max(8px,min(1em,14px))}.Avatar__icon___sQ5M9{width:60%;height:60%;max-width:24px;max-height:24px}.Avatar__theme_white___alKXP{background:var(--white);color:var(--black-800)}.Avatar__theme_black-100___mN0Ch{background:var(--black-100);color:var(--black-800)}.Avatar__theme_violet-300___MEUSj{background:var(--violet-300);color:var(--white)}.Avatar__theme_yellow-500___lfsbh{background:var(--yellow-500);color:var(--black-900)}.Avatar__theme_multicolor___zMJTY{color:#fff}
@@ -0,0 +1 @@
1
+ .G2c2y{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}.A7F5c{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.ZWoLT{font-size:max(8px,min(1em,14px))}.sQ5M9{width:60%;height:60%;max-width:24px;max-height:24px}.alKXP{background:var(--white);color:var(--black-800)}.mN0Ch{background:var(--black-100);color:var(--black-800)}.MEUSj{background:var(--violet-300);color:var(--white)}.lfsbh{background:var(--yellow-500);color:var(--black-900)}.zMJTY{color:#fff}
package/Avatar/index.js CHANGED
@@ -1,7 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/index.production.js');
4
+ if (process.env.PROM_UI_CSS_HASH === 'v2') {
5
+ module.exports = require('./cjs/index.production.v2.js');
6
+ require('./cjs/style.production.v2.css');
7
+ } else {
8
+ module.exports = require('./cjs/index.production.js');
9
+ require('./cjs/style.production.css');
10
+ }
5
11
  } else {
6
- module.exports = require('./cjs/index.development.js');
12
+ if (process.env.PROM_UI_CSS_HASH === 'v2') {
13
+ module.exports = require('./cjs/index.development.v2.js');
14
+ require('./cjs/style.development.v2.css');
15
+ } else {
16
+ module.exports = require('./cjs/index.development.js');
17
+ require('./cjs/style.development.css');
18
+ }
7
19
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Avatar",
3
- "version": "0.0.101",
3
+ "version": "0.0.103-alpha.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -10,5 +10,3 @@ Object.defineProperty(exports, 'Body', {
10
10
  enumerable: true,
11
11
  get: function () { return evokitBody.Body; }
12
12
  });
13
-
14
- require('./style.development.css');
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var evokitBody = require('evokit-body');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, 'Body', {
10
+ enumerable: true,
11
+ get: function () { return evokitBody.Body; }
12
+ });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("evokit-body");Object.defineProperty(exports,"Body",{enumerable:!0,get:function(){return e.Body}}),require("./style.production.css");
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("evokit-body");Object.defineProperty(exports,"Body",{enumerable:!0,get:function(){return e.Body}});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("evokit-body");Object.defineProperty(exports,"Body",{enumerable:!0,get:function(){return e.Body}});
@@ -0,0 +1 @@
1
+ .ek-body{display:block;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;font-size:var(--pds-font-size-default);line-height:var(--pds-line-height);font-weight:400;min-width:1000px;margin:0;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:subpixel-antialiased}.ek-body__section{display:block;box-sizing:border-box;margin-left:auto;margin-right:auto;min-width:1000px;max-width:1260px}.ek-body_display_block{display:block}.ek-body_display_none{display:none}.ek-body_size_xl .ek-body__section{max-width:1502px}.ek-body_size_xxl .ek-body__section{max-width:1640px}.ek-body_size_xxxl .ek-body__section{max-width:1840px}.ek-body_width_none{min-width:0}.ek-body_width_none .ek-body__section{min-width:0;max-width:none}.ek-body_width-min_none{min-width:0}.ek-body_width-min_none .ek-body__section{min-width:0}.ek-body_width-max_none .ek-body__section{max-width:none}.ek-body_width_xxs{min-width:320px}.ek-body_width_xxs .ek-body__section{min-width:320px;max-width:320px}.ek-body_width-min_xxs{min-width:320px}.ek-body_width-min_xxs .ek-body__section{min-width:320px}.ek-body_width-max_xxs .ek-body__section{max-width:320px}.ek-body_width_xs{min-width:480px}.ek-body_width_xs .ek-body__section{min-width:480px;max-width:480px}.ek-body_width-min_xs{min-width:480px}.ek-body_width-min_xs .ek-body__section{min-width:480px}.ek-body_width-max_xs .ek-body__section{max-width:480px}.ek-body_width_s{min-width:768px}.ek-body_width_s .ek-body__section{min-width:768px;max-width:768px}.ek-body_width-min_s{min-width:768px}.ek-body_width-min_s .ek-body__section{min-width:768px}.ek-body_width-max_s .ek-body__section{max-width:768px}.ek-body_width_m{min-width:900px}.ek-body_width_m .ek-body__section{min-width:900px;max-width:900px}.ek-body_width-min_m{min-width:900px}.ek-body_width-min_m .ek-body__section{min-width:900px}.ek-body_width-max_m .ek-body__section{max-width:900px}.ek-body_width_l{min-width:1024px}.ek-body_width_l .ek-body__section{min-width:1024px;max-width:1024px}.ek-body_width-min_l{min-width:1024px}.ek-body_width-min_l .ek-body__section{min-width:1024px}.ek-body_width-max_l .ek-body__section{max-width:1024px}.ek-body_width_xl{min-width:1280px}.ek-body_width_xl .ek-body__section{min-width:1280px;max-width:1280px}.ek-body_width-min_xl{min-width:1280px}.ek-body_width-min_xl .ek-body__section{min-width:1280px}.ek-body_width-max_xl .ek-body__section{max-width:1280px}.ek-body_width_xxl{min-width:1366px}.ek-body_width_xxl .ek-body__section{min-width:1366px;max-width:1366px}.ek-body_width-min_xxl{min-width:1366px}.ek-body_width-min_xxl .ek-body__section{min-width:1366px}.ek-body_width-max_xxl .ek-body__section{max-width:1366px}.ek-body_width_3xl{min-width:1460px}.ek-body_width_3xl .ek-body__section{min-width:1460px;max-width:1460px}.ek-body_width-min_3xl{min-width:1460px}.ek-body_width-min_3xl .ek-body__section{min-width:1460px}.ek-body_width-max_3xl .ek-body__section{max-width:1460px}.ek-body_width_4xl{min-width:1600px}.ek-body_width_4xl .ek-body__section{min-width:1600px;max-width:1600px}.ek-body_width-min_4xl{min-width:1600px}.ek-body_width-min_4xl .ek-body__section{min-width:1600px}.ek-body_width-max_4xl .ek-body__section{max-width:1600px}.ek-body_width_5xl{min-width:1920px}.ek-body_width_5xl .ek-body__section{min-width:1920px;max-width:1920px}.ek-body_width-min_5xl{min-width:1920px}.ek-body_width-min_5xl .ek-body__section{min-width:1920px}.ek-body_width-max_5xl .ek-body__section{max-width:1920px}.ek-body_indent_none .ek-body__section{padding-left:0;padding-right:0}.ek-body_indent_xxs .ek-body__section{padding-left:var(--pds-spacing-xxs);padding-right:var(--pds-spacing-xxs)}.ek-body_indent_xs .ek-body__section{padding-left:var(--pds-spacing-xs);padding-right:var(--pds-spacing-xs)}.ek-body_indent_s .ek-body__section{padding-left:var(--pds-spacing-s);padding-right:var(--pds-spacing-s)}.ek-body_indent_m .ek-body__section{padding-left:var(--pds-spacing-m);padding-right:var(--pds-spacing-m)}.ek-body_indent_l .ek-body__section{padding-left:var(--pds-spacing-l);padding-right:var(--pds-spacing-l)}.ek-body_indent_xl .ek-body__section{padding-left:var(--pds-spacing-xl);padding-right:var(--pds-spacing-xl)}.ek-body_indent_xxl .ek-body__section{padding-left:var(--pds-spacing-xxl);padding-right:var(--pds-spacing-xxl)}.ek-body_indent_3xl .ek-body__section{padding-left:var(--pds-spacing-3xl);padding-right:var(--pds-spacing-3xl)}.ek-body_indent_4xl .ek-body__section{padding-left:var(--pds-spacing-4xl);padding-right:var(--pds-spacing-4xl)}.ek-body_indent_5xl .ek-body__section{padding-left:var(--pds-spacing-5xl);padding-right:var(--pds-spacing-5xl)}.ek-body_overflow_auto{overflow:auto}.ek-body_overflow-x_auto{overflow-x:auto}.ek-body_overflow-y_auto{overflow-y:auto}.ek-body_overflow_hidden{overflow:hidden}.ek-body_overflow-x_hidden{overflow-x:hidden}.ek-body_overflow-y_hidden{overflow-y:hidden}.ek-body_overflow_scroll{overflow:scroll}.ek-body_overflow-x_scroll{overflow-x:scroll}.ek-body_overflow-y_scroll{overflow-y:scroll}.ek-body_overflow_visible{overflow:visible}.ek-body_overflow-x_visible{overflow-x:visible}.ek-body_overflow-y_visible{overflow-y:visible}.ek-body_overflow-anchor_none{overflow-anchor:none}.ek-body_overflow-anchor_auto{overflow-anchor:auto}.ek-body__section_display_block{display:block}.ek-body__section_display_none{display:none}.ek-body__section_height_auto{height:auto}.ek-body__section_height_inherit{height:inherit}.ek-body__section_height_1-1{height:100%}.ek-body_background_black-100{background:var(--black-100)}.ek-body_color_black-100{color:var(--black-100)}.ek-body_background_black-900{background:var(--black-900)}.ek-body_color_black-900{color:var(--black-900)}.ek-body_background_white{background:var(--white)}.ek-body_color_white{color:var(--white)}@media only screen and (min-width:480px){.ek-body_background_black-100\@small{background:var(--black-100)}.ek-body_color_black-100\@small{color:var(--black-100)}.ek-body_background_black-900\@small{background:var(--black-900)}.ek-body_color_black-900\@small{color:var(--black-900)}.ek-body_background_white\@small{background:var(--white)}.ek-body_color_white\@small{color:var(--white)}}@media only screen and (min-width:768px){.ek-body_background_black-100\@medium{background:var(--black-100)}.ek-body_color_black-100\@medium{color:var(--black-100)}.ek-body_background_black-900\@medium{background:var(--black-900)}.ek-body_color_black-900\@medium{color:var(--black-900)}.ek-body_background_white\@medium{background:var(--white)}.ek-body_color_white\@medium{color:var(--white)}}@media only screen and (min-width:960px){.ek-body_display_block\@large{display:block}.ek-body_display_none\@large{display:none}.ek-body_size_xl\@large .ek-body__section{max-width:1502px}.ek-body_size_xxl\@large .ek-body__section{max-width:1640px}.ek-body_size_xxxl\@large .ek-body__section{max-width:1840px}.ek-body_width_none\@large{min-width:0}.ek-body_width_none\@large .ek-body__section{min-width:0;max-width:none}.ek-body_width-min_none\@large{min-width:0}.ek-body_width-min_none\@large .ek-body__section{min-width:0}.ek-body_width-max_none\@large .ek-body__section{max-width:none}.ek-body_width_xxs\@large{min-width:320px}.ek-body_width_xxs\@large .ek-body__section{min-width:320px;max-width:320px}.ek-body_width-min_xxs\@large{min-width:320px}.ek-body_width-min_xxs\@large .ek-body__section{min-width:320px}.ek-body_width-max_xxs\@large .ek-body__section{max-width:320px}.ek-body_width_xs\@large{min-width:480px}.ek-body_width_xs\@large .ek-body__section{min-width:480px;max-width:480px}.ek-body_width-min_xs\@large{min-width:480px}.ek-body_width-min_xs\@large .ek-body__section{min-width:480px}.ek-body_width-max_xs\@large .ek-body__section{max-width:480px}.ek-body_width_s\@large{min-width:768px}.ek-body_width_s\@large .ek-body__section{min-width:768px;max-width:768px}.ek-body_width-min_s\@large{min-width:768px}.ek-body_width-min_s\@large .ek-body__section{min-width:768px}.ek-body_width-max_s\@large .ek-body__section{max-width:768px}.ek-body_width_m\@large{min-width:900px}.ek-body_width_m\@large .ek-body__section{min-width:900px;max-width:900px}.ek-body_width-min_m\@large{min-width:900px}.ek-body_width-min_m\@large .ek-body__section{min-width:900px}.ek-body_width-max_m\@large .ek-body__section{max-width:900px}.ek-body_width_l\@large{min-width:1024px}.ek-body_width_l\@large .ek-body__section{min-width:1024px;max-width:1024px}.ek-body_width-min_l\@large{min-width:1024px}.ek-body_width-min_l\@large .ek-body__section{min-width:1024px}.ek-body_width-max_l\@large .ek-body__section{max-width:1024px}.ek-body_width_xl\@large{min-width:1280px}.ek-body_width_xl\@large .ek-body__section{min-width:1280px;max-width:1280px}.ek-body_width-min_xl\@large{min-width:1280px}.ek-body_width-min_xl\@large .ek-body__section{min-width:1280px}.ek-body_width-max_xl\@large .ek-body__section{max-width:1280px}.ek-body_width_xxl\@large{min-width:1366px}.ek-body_width_xxl\@large .ek-body__section{min-width:1366px;max-width:1366px}.ek-body_width-min_xxl\@large{min-width:1366px}.ek-body_width-min_xxl\@large .ek-body__section{min-width:1366px}.ek-body_width-max_xxl\@large .ek-body__section{max-width:1366px}.ek-body_width_3xl\@large{min-width:1460px}.ek-body_width_3xl\@large .ek-body__section{min-width:1460px;max-width:1460px}.ek-body_width-min_3xl\@large{min-width:1460px}.ek-body_width-min_3xl\@large .ek-body__section{min-width:1460px}.ek-body_width-max_3xl\@large .ek-body__section{max-width:1460px}.ek-body_width_4xl\@large{min-width:1600px}.ek-body_width_4xl\@large .ek-body__section{min-width:1600px;max-width:1600px}.ek-body_width-min_4xl\@large{min-width:1600px}.ek-body_width-min_4xl\@large .ek-body__section{min-width:1600px}.ek-body_width-max_4xl\@large .ek-body__section{max-width:1600px}.ek-body_width_5xl\@large{min-width:1920px}.ek-body_width_5xl\@large .ek-body__section{min-width:1920px;max-width:1920px}.ek-body_width-min_5xl\@large{min-width:1920px}.ek-body_width-min_5xl\@large .ek-body__section{min-width:1920px}.ek-body_width-max_5xl\@large .ek-body__section{max-width:1920px}.ek-body_indent_none\@large .ek-body__section{padding-left:0;padding-right:0}.ek-body_indent_xxs\@large .ek-body__section{padding-left:var(--pds-spacing-xxs);padding-right:var(--pds-spacing-xxs)}.ek-body_indent_xs\@large .ek-body__section{padding-left:var(--pds-spacing-xs);padding-right:var(--pds-spacing-xs)}.ek-body_indent_s\@large .ek-body__section{padding-left:var(--pds-spacing-s);padding-right:var(--pds-spacing-s)}.ek-body_indent_m\@large .ek-body__section{padding-left:var(--pds-spacing-m);padding-right:var(--pds-spacing-m)}.ek-body_indent_l\@large .ek-body__section{padding-left:var(--pds-spacing-l);padding-right:var(--pds-spacing-l)}.ek-body_indent_xl\@large .ek-body__section{padding-left:var(--pds-spacing-xl);padding-right:var(--pds-spacing-xl)}.ek-body_indent_xxl\@large .ek-body__section{padding-left:var(--pds-spacing-xxl);padding-right:var(--pds-spacing-xxl)}.ek-body_indent_3xl\@large .ek-body__section{padding-left:var(--pds-spacing-3xl);padding-right:var(--pds-spacing-3xl)}.ek-body_indent_4xl\@large .ek-body__section{padding-left:var(--pds-spacing-4xl);padding-right:var(--pds-spacing-4xl)}.ek-body_indent_5xl\@large .ek-body__section{padding-left:var(--pds-spacing-5xl);padding-right:var(--pds-spacing-5xl)}.ek-body_overflow_auto\@large{overflow:auto}.ek-body_overflow-x_auto\@large{overflow-x:auto}.ek-body_overflow-y_auto\@large{overflow-y:auto}.ek-body_overflow_hidden\@large{overflow:hidden}.ek-body_overflow-x_hidden\@large{overflow-x:hidden}.ek-body_overflow-y_hidden\@large{overflow-y:hidden}.ek-body_overflow_scroll\@large{overflow:scroll}.ek-body_overflow-x_scroll\@large{overflow-x:scroll}.ek-body_overflow-y_scroll\@large{overflow-y:scroll}.ek-body_overflow_visible\@large{overflow:visible}.ek-body_overflow-x_visible\@large{overflow-x:visible}.ek-body_overflow-y_visible\@large{overflow-y:visible}.ek-body_overflow-anchor_none\@large{overflow-anchor:none}.ek-body_overflow-anchor_auto\@large{overflow-anchor:auto}.ek-body__section_display_block\@large{display:block}.ek-body__section_display_none\@large{display:none}.ek-body__section_height_auto\@large{height:auto}.ek-body__section_height_inherit\@large{height:inherit}.ek-body__section_height_1-1\@large{height:100%}.ek-body_background_black-100\@large{background:var(--black-100)}.ek-body_color_black-100\@large{color:var(--black-100)}.ek-body_background_black-900\@large{background:var(--black-900)}.ek-body_color_black-900\@large{color:var(--black-900)}.ek-body_background_white\@large{background:var(--white)}.ek-body_color_white\@large{color:var(--white)}}@media only screen and (min-width:1200px){.ek-body_background_black-100\@wide{background:var(--black-100)}.ek-body_color_black-100\@wide{color:var(--black-100)}.ek-body_background_black-900\@wide{background:var(--black-900)}.ek-body_color_black-900\@wide{color:var(--black-900)}.ek-body_background_white\@wide{background:var(--white)}.ek-body_color_white\@wide{color:var(--white)}}@media only screen and (min-width:1400px){.ek-body_background_black-100\@huge{background:var(--black-100)}.ek-body_color_black-100\@huge{color:var(--black-100)}.ek-body_background_black-900\@huge{background:var(--black-900)}.ek-body_color_black-900\@huge{color:var(--black-900)}.ek-body_background_white\@huge{background:var(--white)}.ek-body_color_white\@huge{color:var(--white)}}
@@ -0,0 +1 @@
1
+ .ek-body{display:block;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;font-size:var(--pds-font-size-default);line-height:var(--pds-line-height);font-weight:400;min-width:1000px;margin:0;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:subpixel-antialiased}.ek-body__section{display:block;box-sizing:border-box;margin-left:auto;margin-right:auto;min-width:1000px;max-width:1260px}.ek-body_display_block{display:block}.ek-body_display_none{display:none}.ek-body_size_xl .ek-body__section{max-width:1502px}.ek-body_size_xxl .ek-body__section{max-width:1640px}.ek-body_size_xxxl .ek-body__section{max-width:1840px}.ek-body_width_none{min-width:0}.ek-body_width_none .ek-body__section{min-width:0;max-width:none}.ek-body_width-min_none{min-width:0}.ek-body_width-min_none .ek-body__section{min-width:0}.ek-body_width-max_none .ek-body__section{max-width:none}.ek-body_width_xxs{min-width:320px}.ek-body_width_xxs .ek-body__section{min-width:320px;max-width:320px}.ek-body_width-min_xxs{min-width:320px}.ek-body_width-min_xxs .ek-body__section{min-width:320px}.ek-body_width-max_xxs .ek-body__section{max-width:320px}.ek-body_width_xs{min-width:480px}.ek-body_width_xs .ek-body__section{min-width:480px;max-width:480px}.ek-body_width-min_xs{min-width:480px}.ek-body_width-min_xs .ek-body__section{min-width:480px}.ek-body_width-max_xs .ek-body__section{max-width:480px}.ek-body_width_s{min-width:768px}.ek-body_width_s .ek-body__section{min-width:768px;max-width:768px}.ek-body_width-min_s{min-width:768px}.ek-body_width-min_s .ek-body__section{min-width:768px}.ek-body_width-max_s .ek-body__section{max-width:768px}.ek-body_width_m{min-width:900px}.ek-body_width_m .ek-body__section{min-width:900px;max-width:900px}.ek-body_width-min_m{min-width:900px}.ek-body_width-min_m .ek-body__section{min-width:900px}.ek-body_width-max_m .ek-body__section{max-width:900px}.ek-body_width_l{min-width:1024px}.ek-body_width_l .ek-body__section{min-width:1024px;max-width:1024px}.ek-body_width-min_l{min-width:1024px}.ek-body_width-min_l .ek-body__section{min-width:1024px}.ek-body_width-max_l .ek-body__section{max-width:1024px}.ek-body_width_xl{min-width:1280px}.ek-body_width_xl .ek-body__section{min-width:1280px;max-width:1280px}.ek-body_width-min_xl{min-width:1280px}.ek-body_width-min_xl .ek-body__section{min-width:1280px}.ek-body_width-max_xl .ek-body__section{max-width:1280px}.ek-body_width_xxl{min-width:1366px}.ek-body_width_xxl .ek-body__section{min-width:1366px;max-width:1366px}.ek-body_width-min_xxl{min-width:1366px}.ek-body_width-min_xxl .ek-body__section{min-width:1366px}.ek-body_width-max_xxl .ek-body__section{max-width:1366px}.ek-body_width_3xl{min-width:1460px}.ek-body_width_3xl .ek-body__section{min-width:1460px;max-width:1460px}.ek-body_width-min_3xl{min-width:1460px}.ek-body_width-min_3xl .ek-body__section{min-width:1460px}.ek-body_width-max_3xl .ek-body__section{max-width:1460px}.ek-body_width_4xl{min-width:1600px}.ek-body_width_4xl .ek-body__section{min-width:1600px;max-width:1600px}.ek-body_width-min_4xl{min-width:1600px}.ek-body_width-min_4xl .ek-body__section{min-width:1600px}.ek-body_width-max_4xl .ek-body__section{max-width:1600px}.ek-body_width_5xl{min-width:1920px}.ek-body_width_5xl .ek-body__section{min-width:1920px;max-width:1920px}.ek-body_width-min_5xl{min-width:1920px}.ek-body_width-min_5xl .ek-body__section{min-width:1920px}.ek-body_width-max_5xl .ek-body__section{max-width:1920px}.ek-body_indent_none .ek-body__section{padding-left:0;padding-right:0}.ek-body_indent_xxs .ek-body__section{padding-left:var(--pds-spacing-xxs);padding-right:var(--pds-spacing-xxs)}.ek-body_indent_xs .ek-body__section{padding-left:var(--pds-spacing-xs);padding-right:var(--pds-spacing-xs)}.ek-body_indent_s .ek-body__section{padding-left:var(--pds-spacing-s);padding-right:var(--pds-spacing-s)}.ek-body_indent_m .ek-body__section{padding-left:var(--pds-spacing-m);padding-right:var(--pds-spacing-m)}.ek-body_indent_l .ek-body__section{padding-left:var(--pds-spacing-l);padding-right:var(--pds-spacing-l)}.ek-body_indent_xl .ek-body__section{padding-left:var(--pds-spacing-xl);padding-right:var(--pds-spacing-xl)}.ek-body_indent_xxl .ek-body__section{padding-left:var(--pds-spacing-xxl);padding-right:var(--pds-spacing-xxl)}.ek-body_indent_3xl .ek-body__section{padding-left:var(--pds-spacing-3xl);padding-right:var(--pds-spacing-3xl)}.ek-body_indent_4xl .ek-body__section{padding-left:var(--pds-spacing-4xl);padding-right:var(--pds-spacing-4xl)}.ek-body_indent_5xl .ek-body__section{padding-left:var(--pds-spacing-5xl);padding-right:var(--pds-spacing-5xl)}.ek-body_overflow_auto{overflow:auto}.ek-body_overflow-x_auto{overflow-x:auto}.ek-body_overflow-y_auto{overflow-y:auto}.ek-body_overflow_hidden{overflow:hidden}.ek-body_overflow-x_hidden{overflow-x:hidden}.ek-body_overflow-y_hidden{overflow-y:hidden}.ek-body_overflow_scroll{overflow:scroll}.ek-body_overflow-x_scroll{overflow-x:scroll}.ek-body_overflow-y_scroll{overflow-y:scroll}.ek-body_overflow_visible{overflow:visible}.ek-body_overflow-x_visible{overflow-x:visible}.ek-body_overflow-y_visible{overflow-y:visible}.ek-body_overflow-anchor_none{overflow-anchor:none}.ek-body_overflow-anchor_auto{overflow-anchor:auto}.ek-body__section_display_block{display:block}.ek-body__section_display_none{display:none}.ek-body__section_height_auto{height:auto}.ek-body__section_height_inherit{height:inherit}.ek-body__section_height_1-1{height:100%}.ek-body_background_black-100{background:var(--black-100)}.ek-body_color_black-100{color:var(--black-100)}.ek-body_background_black-900{background:var(--black-900)}.ek-body_color_black-900{color:var(--black-900)}.ek-body_background_white{background:var(--white)}.ek-body_color_white{color:var(--white)}@media only screen and (min-width:480px){.ek-body_background_black-100\@small{background:var(--black-100)}.ek-body_color_black-100\@small{color:var(--black-100)}.ek-body_background_black-900\@small{background:var(--black-900)}.ek-body_color_black-900\@small{color:var(--black-900)}.ek-body_background_white\@small{background:var(--white)}.ek-body_color_white\@small{color:var(--white)}}@media only screen and (min-width:768px){.ek-body_background_black-100\@medium{background:var(--black-100)}.ek-body_color_black-100\@medium{color:var(--black-100)}.ek-body_background_black-900\@medium{background:var(--black-900)}.ek-body_color_black-900\@medium{color:var(--black-900)}.ek-body_background_white\@medium{background:var(--white)}.ek-body_color_white\@medium{color:var(--white)}}@media only screen and (min-width:960px){.ek-body_display_block\@large{display:block}.ek-body_display_none\@large{display:none}.ek-body_size_xl\@large .ek-body__section{max-width:1502px}.ek-body_size_xxl\@large .ek-body__section{max-width:1640px}.ek-body_size_xxxl\@large .ek-body__section{max-width:1840px}.ek-body_width_none\@large{min-width:0}.ek-body_width_none\@large .ek-body__section{min-width:0;max-width:none}.ek-body_width-min_none\@large{min-width:0}.ek-body_width-min_none\@large .ek-body__section{min-width:0}.ek-body_width-max_none\@large .ek-body__section{max-width:none}.ek-body_width_xxs\@large{min-width:320px}.ek-body_width_xxs\@large .ek-body__section{min-width:320px;max-width:320px}.ek-body_width-min_xxs\@large{min-width:320px}.ek-body_width-min_xxs\@large .ek-body__section{min-width:320px}.ek-body_width-max_xxs\@large .ek-body__section{max-width:320px}.ek-body_width_xs\@large{min-width:480px}.ek-body_width_xs\@large .ek-body__section{min-width:480px;max-width:480px}.ek-body_width-min_xs\@large{min-width:480px}.ek-body_width-min_xs\@large .ek-body__section{min-width:480px}.ek-body_width-max_xs\@large .ek-body__section{max-width:480px}.ek-body_width_s\@large{min-width:768px}.ek-body_width_s\@large .ek-body__section{min-width:768px;max-width:768px}.ek-body_width-min_s\@large{min-width:768px}.ek-body_width-min_s\@large .ek-body__section{min-width:768px}.ek-body_width-max_s\@large .ek-body__section{max-width:768px}.ek-body_width_m\@large{min-width:900px}.ek-body_width_m\@large .ek-body__section{min-width:900px;max-width:900px}.ek-body_width-min_m\@large{min-width:900px}.ek-body_width-min_m\@large .ek-body__section{min-width:900px}.ek-body_width-max_m\@large .ek-body__section{max-width:900px}.ek-body_width_l\@large{min-width:1024px}.ek-body_width_l\@large .ek-body__section{min-width:1024px;max-width:1024px}.ek-body_width-min_l\@large{min-width:1024px}.ek-body_width-min_l\@large .ek-body__section{min-width:1024px}.ek-body_width-max_l\@large .ek-body__section{max-width:1024px}.ek-body_width_xl\@large{min-width:1280px}.ek-body_width_xl\@large .ek-body__section{min-width:1280px;max-width:1280px}.ek-body_width-min_xl\@large{min-width:1280px}.ek-body_width-min_xl\@large .ek-body__section{min-width:1280px}.ek-body_width-max_xl\@large .ek-body__section{max-width:1280px}.ek-body_width_xxl\@large{min-width:1366px}.ek-body_width_xxl\@large .ek-body__section{min-width:1366px;max-width:1366px}.ek-body_width-min_xxl\@large{min-width:1366px}.ek-body_width-min_xxl\@large .ek-body__section{min-width:1366px}.ek-body_width-max_xxl\@large .ek-body__section{max-width:1366px}.ek-body_width_3xl\@large{min-width:1460px}.ek-body_width_3xl\@large .ek-body__section{min-width:1460px;max-width:1460px}.ek-body_width-min_3xl\@large{min-width:1460px}.ek-body_width-min_3xl\@large .ek-body__section{min-width:1460px}.ek-body_width-max_3xl\@large .ek-body__section{max-width:1460px}.ek-body_width_4xl\@large{min-width:1600px}.ek-body_width_4xl\@large .ek-body__section{min-width:1600px;max-width:1600px}.ek-body_width-min_4xl\@large{min-width:1600px}.ek-body_width-min_4xl\@large .ek-body__section{min-width:1600px}.ek-body_width-max_4xl\@large .ek-body__section{max-width:1600px}.ek-body_width_5xl\@large{min-width:1920px}.ek-body_width_5xl\@large .ek-body__section{min-width:1920px;max-width:1920px}.ek-body_width-min_5xl\@large{min-width:1920px}.ek-body_width-min_5xl\@large .ek-body__section{min-width:1920px}.ek-body_width-max_5xl\@large .ek-body__section{max-width:1920px}.ek-body_indent_none\@large .ek-body__section{padding-left:0;padding-right:0}.ek-body_indent_xxs\@large .ek-body__section{padding-left:var(--pds-spacing-xxs);padding-right:var(--pds-spacing-xxs)}.ek-body_indent_xs\@large .ek-body__section{padding-left:var(--pds-spacing-xs);padding-right:var(--pds-spacing-xs)}.ek-body_indent_s\@large .ek-body__section{padding-left:var(--pds-spacing-s);padding-right:var(--pds-spacing-s)}.ek-body_indent_m\@large .ek-body__section{padding-left:var(--pds-spacing-m);padding-right:var(--pds-spacing-m)}.ek-body_indent_l\@large .ek-body__section{padding-left:var(--pds-spacing-l);padding-right:var(--pds-spacing-l)}.ek-body_indent_xl\@large .ek-body__section{padding-left:var(--pds-spacing-xl);padding-right:var(--pds-spacing-xl)}.ek-body_indent_xxl\@large .ek-body__section{padding-left:var(--pds-spacing-xxl);padding-right:var(--pds-spacing-xxl)}.ek-body_indent_3xl\@large .ek-body__section{padding-left:var(--pds-spacing-3xl);padding-right:var(--pds-spacing-3xl)}.ek-body_indent_4xl\@large .ek-body__section{padding-left:var(--pds-spacing-4xl);padding-right:var(--pds-spacing-4xl)}.ek-body_indent_5xl\@large .ek-body__section{padding-left:var(--pds-spacing-5xl);padding-right:var(--pds-spacing-5xl)}.ek-body_overflow_auto\@large{overflow:auto}.ek-body_overflow-x_auto\@large{overflow-x:auto}.ek-body_overflow-y_auto\@large{overflow-y:auto}.ek-body_overflow_hidden\@large{overflow:hidden}.ek-body_overflow-x_hidden\@large{overflow-x:hidden}.ek-body_overflow-y_hidden\@large{overflow-y:hidden}.ek-body_overflow_scroll\@large{overflow:scroll}.ek-body_overflow-x_scroll\@large{overflow-x:scroll}.ek-body_overflow-y_scroll\@large{overflow-y:scroll}.ek-body_overflow_visible\@large{overflow:visible}.ek-body_overflow-x_visible\@large{overflow-x:visible}.ek-body_overflow-y_visible\@large{overflow-y:visible}.ek-body_overflow-anchor_none\@large{overflow-anchor:none}.ek-body_overflow-anchor_auto\@large{overflow-anchor:auto}.ek-body__section_display_block\@large{display:block}.ek-body__section_display_none\@large{display:none}.ek-body__section_height_auto\@large{height:auto}.ek-body__section_height_inherit\@large{height:inherit}.ek-body__section_height_1-1\@large{height:100%}.ek-body_background_black-100\@large{background:var(--black-100)}.ek-body_color_black-100\@large{color:var(--black-100)}.ek-body_background_black-900\@large{background:var(--black-900)}.ek-body_color_black-900\@large{color:var(--black-900)}.ek-body_background_white\@large{background:var(--white)}.ek-body_color_white\@large{color:var(--white)}}@media only screen and (min-width:1200px){.ek-body_background_black-100\@wide{background:var(--black-100)}.ek-body_color_black-100\@wide{color:var(--black-100)}.ek-body_background_black-900\@wide{background:var(--black-900)}.ek-body_color_black-900\@wide{color:var(--black-900)}.ek-body_background_white\@wide{background:var(--white)}.ek-body_color_white\@wide{color:var(--white)}}@media only screen and (min-width:1400px){.ek-body_background_black-100\@huge{background:var(--black-100)}.ek-body_color_black-100\@huge{color:var(--black-100)}.ek-body_background_black-900\@huge{background:var(--black-900)}.ek-body_color_black-900\@huge{color:var(--black-900)}.ek-body_background_white\@huge{background:var(--white)}.ek-body_color_white\@huge{color:var(--white)}}
package/Body/index.js CHANGED
@@ -1,7 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/index.production.js');
4
+ if (process.env.PROM_UI_CSS_HASH === 'v2') {
5
+ module.exports = require('./cjs/index.production.v2.js');
6
+ require('./cjs/style.production.v2.css');
7
+ } else {
8
+ module.exports = require('./cjs/index.production.js');
9
+ require('./cjs/style.production.css');
10
+ }
5
11
  } else {
6
- module.exports = require('./cjs/index.development.js');
12
+ if (process.env.PROM_UI_CSS_HASH === 'v2') {
13
+ module.exports = require('./cjs/index.development.v2.js');
14
+ require('./cjs/style.development.v2.css');
15
+ } else {
16
+ module.exports = require('./cjs/index.development.js');
17
+ require('./cjs/style.development.css');
18
+ }
7
19
  }
package/Body/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Body",
3
- "version": "0.0.101",
3
+ "version": "0.0.103-alpha.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -16,5 +16,3 @@ Object.defineProperty(exports, 'Box', {
16
16
  enumerable: true,
17
17
  get: function () { return evokitBox.Box; }
18
18
  });
19
-
20
- require('./style.development.css');