@salutejs/plasma-new-hope 0.195.0-canary.1534.11912348892.0 → 0.195.0-canary.1546.11913646617.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -333
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/cjs/components/Badge/Badge.css +4 -4
  4. package/cjs/components/Badge/Badge.js +17 -7
  5. package/cjs/components/Badge/Badge.js.map +1 -1
  6. package/cjs/components/Badge/Badge.tokens.js +10 -5
  7. package/cjs/components/Badge/Badge.tokens.js.map +1 -1
  8. package/cjs/components/Badge/variations/_clear/base.js +1 -1
  9. package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
  10. package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  11. package/cjs/components/Badge/variations/_size/base.js +1 -1
  12. package/cjs/components/Badge/variations/_size/base.js.map +1 -1
  13. package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  14. package/cjs/components/Badge/variations/_transparent/base.js +1 -1
  15. package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
  16. package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  17. package/cjs/components/Badge/variations/_view/base.js +1 -1
  18. package/cjs/components/Badge/variations/_view/base.js.map +1 -1
  19. package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  20. package/cjs/index.css +4 -18
  21. package/cjs/index.js +0 -6
  22. package/cjs/index.js.map +1 -1
  23. package/emotion/cjs/components/Badge/Badge.js +17 -7
  24. package/emotion/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  25. package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
  26. package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
  27. package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
  28. package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
  29. package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
  30. package/emotion/cjs/components/_Icon/index.js +1 -8
  31. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  32. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  33. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  34. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  35. package/emotion/cjs/index.js +0 -11
  36. package/emotion/es/components/Badge/Badge.js +18 -8
  37. package/emotion/es/components/Badge/Badge.template-doc.mdx +40 -16
  38. package/emotion/es/components/Badge/Badge.tokens.js +9 -5
  39. package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
  40. package/emotion/es/components/Badge/variations/_size/base.js +3 -2
  41. package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
  42. package/emotion/es/components/Badge/variations/_view/base.js +2 -2
  43. package/emotion/es/components/_Icon/index.js +1 -2
  44. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +15 -15
  45. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  46. package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
  47. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  48. package/emotion/es/index.js +1 -2
  49. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -332
  50. package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  51. package/es/components/Badge/Badge.css +4 -4
  52. package/es/components/Badge/Badge.js +20 -10
  53. package/es/components/Badge/Badge.js.map +1 -1
  54. package/es/components/Badge/Badge.tokens.js +10 -6
  55. package/es/components/Badge/Badge.tokens.js.map +1 -1
  56. package/es/components/Badge/variations/_clear/base.js +1 -1
  57. package/es/components/Badge/variations/_clear/base.js.map +1 -1
  58. package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
  59. package/es/components/Badge/variations/_size/base.js +1 -1
  60. package/es/components/Badge/variations/_size/base.js.map +1 -1
  61. package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_bu5opk.css} +1 -1
  62. package/es/components/Badge/variations/_transparent/base.js +1 -1
  63. package/es/components/Badge/variations/_transparent/base.js.map +1 -1
  64. package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
  65. package/es/components/Badge/variations/_view/base.js +1 -1
  66. package/es/components/Badge/variations/_view/base.js.map +1 -1
  67. package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
  68. package/es/index.css +4 -18
  69. package/es/index.js +0 -2
  70. package/es/index.js.map +1 -1
  71. package/package.json +2 -2
  72. package/styled-components/cjs/components/Badge/Badge.js +17 -7
  73. package/styled-components/cjs/components/Badge/Badge.template-doc.mdx +40 -16
  74. package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
  75. package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
  76. package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
  77. package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
  78. package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
  79. package/styled-components/cjs/components/_Icon/index.js +1 -8
  80. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  81. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  82. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  83. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  84. package/styled-components/cjs/index.js +0 -11
  85. package/styled-components/es/components/Badge/Badge.js +18 -8
  86. package/styled-components/es/components/Badge/Badge.template-doc.mdx +40 -16
  87. package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
  88. package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
  89. package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
  90. package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
  91. package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
  92. package/styled-components/es/components/_Icon/index.js +1 -2
  93. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
  94. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +23 -6
  95. package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
  96. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +27 -6
  97. package/styled-components/es/index.js +1 -2
  98. package/types/components/Badge/Badge.d.ts.map +1 -1
  99. package/types/components/Badge/Badge.tokens.d.ts +8 -4
  100. package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
  101. package/types/components/Badge/Badge.types.d.ts +18 -5
  102. package/types/components/Badge/Badge.types.d.ts.map +1 -1
  103. package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
  104. package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
  105. package/types/components/_Icon/index.d.ts +0 -1
  106. package/types/components/_Icon/index.d.ts.map +1 -1
  107. package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
  108. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +61 -4
  109. package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
  110. package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
  111. package/types/examples/plasma_web/components/Badge/Badge.d.ts +61 -4
  112. package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
  113. package/types/index.d.ts +0 -1
  114. package/types/index.d.ts.map +1 -1
  115. package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  116. package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  117. package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
  118. package/cjs/components/Dropzone/Dropzone.css +0 -15
  119. package/cjs/components/Dropzone/Dropzone.js +0 -252
  120. package/cjs/components/Dropzone/Dropzone.js.map +0 -1
  121. package/cjs/components/Dropzone/Dropzone.styles.js +0 -47
  122. package/cjs/components/Dropzone/Dropzone.styles.js.map +0 -1
  123. package/cjs/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  124. package/cjs/components/Dropzone/Dropzone.tokens.js +0 -47
  125. package/cjs/components/Dropzone/Dropzone.tokens.js.map +0 -1
  126. package/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  127. package/cjs/components/Dropzone/variations/_disabled/base.js.map +0 -1
  128. package/cjs/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  129. package/cjs/components/Dropzone/variations/_size/base.js +0 -9
  130. package/cjs/components/Dropzone/variations/_size/base.js.map +0 -1
  131. package/cjs/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  132. package/cjs/components/Dropzone/variations/_view/base.js +0 -9
  133. package/cjs/components/Dropzone/variations/_view/base.js.map +0 -1
  134. package/cjs/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  135. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -24
  136. package/cjs/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  137. package/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -23
  138. package/cjs/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  139. package/emotion/cjs/components/Dropzone/Dropzone.js +0 -271
  140. package/emotion/cjs/components/Dropzone/Dropzone.styles.js +0 -67
  141. package/emotion/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  142. package/emotion/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  143. package/emotion/cjs/components/Dropzone/Dropzone.types.js +0 -5
  144. package/emotion/cjs/components/Dropzone/index.js +0 -31
  145. package/emotion/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  146. package/emotion/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  147. package/emotion/cjs/components/Dropzone/variations/_size/base.js +0 -10
  148. package/emotion/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  149. package/emotion/cjs/components/Dropzone/variations/_view/base.js +0 -10
  150. package/emotion/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  151. package/emotion/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  152. package/emotion/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  153. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  154. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  155. package/emotion/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  156. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  157. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  158. package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  159. package/emotion/es/components/Dropzone/Dropzone.js +0 -263
  160. package/emotion/es/components/Dropzone/Dropzone.styles.js +0 -60
  161. package/emotion/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  162. package/emotion/es/components/Dropzone/Dropzone.tokens.js +0 -38
  163. package/emotion/es/components/Dropzone/Dropzone.types.js +0 -1
  164. package/emotion/es/components/Dropzone/index.js +0 -2
  165. package/emotion/es/components/Dropzone/variations/_disabled/base.js +0 -3
  166. package/emotion/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  167. package/emotion/es/components/Dropzone/variations/_size/base.js +0 -4
  168. package/emotion/es/components/Dropzone/variations/_size/tokens.json +0 -19
  169. package/emotion/es/components/Dropzone/variations/_view/base.js +0 -4
  170. package/emotion/es/components/Dropzone/variations/_view/tokens.json +0 -9
  171. package/emotion/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  172. package/emotion/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  173. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  174. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  175. package/emotion/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  176. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  177. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  178. package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  179. package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
  180. package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
  181. package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
  182. package/es/components/Dropzone/Dropzone.css +0 -15
  183. package/es/components/Dropzone/Dropzone.js +0 -247
  184. package/es/components/Dropzone/Dropzone.js.map +0 -1
  185. package/es/components/Dropzone/Dropzone.styles.js +0 -37
  186. package/es/components/Dropzone/Dropzone.styles.js.map +0 -1
  187. package/es/components/Dropzone/Dropzone.styles_1fo7dbq.css +0 -7
  188. package/es/components/Dropzone/Dropzone.tokens.js +0 -41
  189. package/es/components/Dropzone/Dropzone.tokens.js.map +0 -1
  190. package/es/components/Dropzone/variations/_disabled/base.js +0 -5
  191. package/es/components/Dropzone/variations/_disabled/base.js.map +0 -1
  192. package/es/components/Dropzone/variations/_disabled/base_3qwygi.css +0 -1
  193. package/es/components/Dropzone/variations/_size/base.js +0 -5
  194. package/es/components/Dropzone/variations/_size/base.js.map +0 -1
  195. package/es/components/Dropzone/variations/_size/base_1bt22g1.css +0 -1
  196. package/es/components/Dropzone/variations/_view/base.js +0 -5
  197. package/es/components/Dropzone/variations/_view/base.js.map +0 -1
  198. package/es/components/Dropzone/variations/_view/base_1pdzq6t.css +0 -1
  199. package/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -20
  200. package/es/components/_Icon/Icon.assets/ArrowBarDown.js.map +0 -1
  201. package/es/components/_Icon/Icons/IconArrowBarDown.js +0 -19
  202. package/es/components/_Icon/Icons/IconArrowBarDown.js.map +0 -1
  203. package/styled-components/cjs/components/Dropzone/Dropzone.js +0 -271
  204. package/styled-components/cjs/components/Dropzone/Dropzone.styles.js +0 -29
  205. package/styled-components/cjs/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  206. package/styled-components/cjs/components/Dropzone/Dropzone.tokens.js +0 -44
  207. package/styled-components/cjs/components/Dropzone/Dropzone.types.js +0 -5
  208. package/styled-components/cjs/components/Dropzone/index.js +0 -31
  209. package/styled-components/cjs/components/Dropzone/variations/_disabled/base.js +0 -9
  210. package/styled-components/cjs/components/Dropzone/variations/_disabled/tokens.json +0 -4
  211. package/styled-components/cjs/components/Dropzone/variations/_size/base.js +0 -10
  212. package/styled-components/cjs/components/Dropzone/variations/_size/tokens.json +0 -19
  213. package/styled-components/cjs/components/Dropzone/variations/_view/base.js +0 -10
  214. package/styled-components/cjs/components/Dropzone/variations/_view/tokens.json +0 -9
  215. package/styled-components/cjs/components/_Icon/Icon.assets/ArrowBarDown.js +0 -23
  216. package/styled-components/cjs/components/_Icon/Icons/IconArrowBarDown.js +0 -22
  217. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -25
  218. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -11
  219. package/styled-components/cjs/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  220. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -25
  221. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.js +0 -11
  222. package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  223. package/styled-components/es/components/Dropzone/Dropzone.js +0 -263
  224. package/styled-components/es/components/Dropzone/Dropzone.styles.js +0 -21
  225. package/styled-components/es/components/Dropzone/Dropzone.template-docs.mdx +0 -136
  226. package/styled-components/es/components/Dropzone/Dropzone.tokens.js +0 -38
  227. package/styled-components/es/components/Dropzone/Dropzone.types.js +0 -1
  228. package/styled-components/es/components/Dropzone/index.js +0 -2
  229. package/styled-components/es/components/Dropzone/variations/_disabled/base.js +0 -3
  230. package/styled-components/es/components/Dropzone/variations/_disabled/tokens.json +0 -4
  231. package/styled-components/es/components/Dropzone/variations/_size/base.js +0 -4
  232. package/styled-components/es/components/Dropzone/variations/_size/tokens.json +0 -19
  233. package/styled-components/es/components/Dropzone/variations/_view/base.js +0 -4
  234. package/styled-components/es/components/Dropzone/variations/_view/tokens.json +0 -9
  235. package/styled-components/es/components/_Icon/Icon.assets/ArrowBarDown.js +0 -16
  236. package/styled-components/es/components/_Icon/Icons/IconArrowBarDown.js +0 -15
  237. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.config.js +0 -19
  238. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.js +0 -5
  239. package/styled-components/es/examples/plasma_b2c/components/Dropzone/Dropzone.stories.tsx +0 -57
  240. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.config.js +0 -19
  241. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.js +0 -5
  242. package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +0 -57
  243. package/types/components/Dropzone/Dropzone.d.ts +0 -59
  244. package/types/components/Dropzone/Dropzone.d.ts.map +0 -1
  245. package/types/components/Dropzone/Dropzone.styles.d.ts +0 -9
  246. package/types/components/Dropzone/Dropzone.styles.d.ts.map +0 -1
  247. package/types/components/Dropzone/Dropzone.tokens.d.ts +0 -39
  248. package/types/components/Dropzone/Dropzone.tokens.d.ts.map +0 -1
  249. package/types/components/Dropzone/Dropzone.types.d.ts +0 -77
  250. package/types/components/Dropzone/Dropzone.types.d.ts.map +0 -1
  251. package/types/components/Dropzone/index.d.ts +0 -3
  252. package/types/components/Dropzone/index.d.ts.map +0 -1
  253. package/types/components/Dropzone/variations/_disabled/base.d.ts +0 -2
  254. package/types/components/Dropzone/variations/_disabled/base.d.ts.map +0 -1
  255. package/types/components/Dropzone/variations/_size/base.d.ts +0 -2
  256. package/types/components/Dropzone/variations/_size/base.d.ts.map +0 -1
  257. package/types/components/Dropzone/variations/_view/base.d.ts +0 -2
  258. package/types/components/Dropzone/variations/_view/base.d.ts.map +0 -1
  259. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts +0 -4
  260. package/types/components/_Icon/Icon.assets/ArrowBarDown.d.ts.map +0 -1
  261. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts +0 -4
  262. package/types/components/_Icon/Icons/IconArrowBarDown.d.ts.map +0 -1
  263. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts +0 -18
  264. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  265. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts +0 -29
  266. package/types/examples/plasma_b2c/components/Dropzone/Dropzone.d.ts.map +0 -1
  267. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts +0 -18
  268. package/types/examples/plasma_web/components/Dropzone/Dropzone.config.d.ts.map +0 -1
  269. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts +0 -29
  270. package/types/examples/plasma_web/components/Dropzone/Dropzone.d.ts.map +0 -1
@@ -50,307 +50,6 @@ function _objectSpread2(e) {
50
50
  }
51
51
  return e;
52
52
  }
53
- function _regeneratorRuntime() {
54
- _regeneratorRuntime = function () {
55
- return e;
56
- };
57
- var t,
58
- e = {},
59
- r = Object.prototype,
60
- n = r.hasOwnProperty,
61
- o = Object.defineProperty || function (t, e, r) {
62
- t[e] = r.value;
63
- },
64
- i = "function" == typeof Symbol ? Symbol : {},
65
- a = i.iterator || "@@iterator",
66
- c = i.asyncIterator || "@@asyncIterator",
67
- u = i.toStringTag || "@@toStringTag";
68
- function define(t, e, r) {
69
- return Object.defineProperty(t, e, {
70
- value: r,
71
- enumerable: !0,
72
- configurable: !0,
73
- writable: !0
74
- }), t[e];
75
- }
76
- try {
77
- define({}, "");
78
- } catch (t) {
79
- define = function (t, e, r) {
80
- return t[e] = r;
81
- };
82
- }
83
- function wrap(t, e, r, n) {
84
- var i = e && e.prototype instanceof Generator ? e : Generator,
85
- a = Object.create(i.prototype),
86
- c = new Context(n || []);
87
- return o(a, "_invoke", {
88
- value: makeInvokeMethod(t, r, c)
89
- }), a;
90
- }
91
- function tryCatch(t, e, r) {
92
- try {
93
- return {
94
- type: "normal",
95
- arg: t.call(e, r)
96
- };
97
- } catch (t) {
98
- return {
99
- type: "throw",
100
- arg: t
101
- };
102
- }
103
- }
104
- e.wrap = wrap;
105
- var h = "suspendedStart",
106
- l = "suspendedYield",
107
- f = "executing",
108
- s = "completed",
109
- y = {};
110
- function Generator() {}
111
- function GeneratorFunction() {}
112
- function GeneratorFunctionPrototype() {}
113
- var p = {};
114
- define(p, a, function () {
115
- return this;
116
- });
117
- var d = Object.getPrototypeOf,
118
- v = d && d(d(values([])));
119
- v && v !== r && n.call(v, a) && (p = v);
120
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
121
- function defineIteratorMethods(t) {
122
- ["next", "throw", "return"].forEach(function (e) {
123
- define(t, e, function (t) {
124
- return this._invoke(e, t);
125
- });
126
- });
127
- }
128
- function AsyncIterator(t, e) {
129
- function invoke(r, o, i, a) {
130
- var c = tryCatch(t[r], t, o);
131
- if ("throw" !== c.type) {
132
- var u = c.arg,
133
- h = u.value;
134
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
135
- invoke("next", t, i, a);
136
- }, function (t) {
137
- invoke("throw", t, i, a);
138
- }) : e.resolve(h).then(function (t) {
139
- u.value = t, i(u);
140
- }, function (t) {
141
- return invoke("throw", t, i, a);
142
- });
143
- }
144
- a(c.arg);
145
- }
146
- var r;
147
- o(this, "_invoke", {
148
- value: function (t, n) {
149
- function callInvokeWithMethodAndArg() {
150
- return new e(function (e, r) {
151
- invoke(t, n, e, r);
152
- });
153
- }
154
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
155
- }
156
- });
157
- }
158
- function makeInvokeMethod(e, r, n) {
159
- var o = h;
160
- return function (i, a) {
161
- if (o === f) throw Error("Generator is already running");
162
- if (o === s) {
163
- if ("throw" === i) throw a;
164
- return {
165
- value: t,
166
- done: !0
167
- };
168
- }
169
- for (n.method = i, n.arg = a;;) {
170
- var c = n.delegate;
171
- if (c) {
172
- var u = maybeInvokeDelegate(c, n);
173
- if (u) {
174
- if (u === y) continue;
175
- return u;
176
- }
177
- }
178
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
179
- if (o === h) throw o = s, n.arg;
180
- n.dispatchException(n.arg);
181
- } else "return" === n.method && n.abrupt("return", n.arg);
182
- o = f;
183
- var p = tryCatch(e, r, n);
184
- if ("normal" === p.type) {
185
- if (o = n.done ? s : l, p.arg === y) continue;
186
- return {
187
- value: p.arg,
188
- done: n.done
189
- };
190
- }
191
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
192
- }
193
- };
194
- }
195
- function maybeInvokeDelegate(e, r) {
196
- var n = r.method,
197
- o = e.iterator[n];
198
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
199
- var i = tryCatch(o, e.iterator, r.arg);
200
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
201
- var a = i.arg;
202
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
203
- }
204
- function pushTryEntry(t) {
205
- var e = {
206
- tryLoc: t[0]
207
- };
208
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
209
- }
210
- function resetTryEntry(t) {
211
- var e = t.completion || {};
212
- e.type = "normal", delete e.arg, t.completion = e;
213
- }
214
- function Context(t) {
215
- this.tryEntries = [{
216
- tryLoc: "root"
217
- }], t.forEach(pushTryEntry, this), this.reset(!0);
218
- }
219
- function values(e) {
220
- if (e || "" === e) {
221
- var r = e[a];
222
- if (r) return r.call(e);
223
- if ("function" == typeof e.next) return e;
224
- if (!isNaN(e.length)) {
225
- var o = -1,
226
- i = function next() {
227
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
228
- return next.value = t, next.done = !0, next;
229
- };
230
- return i.next = i;
231
- }
232
- }
233
- throw new TypeError(typeof e + " is not iterable");
234
- }
235
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
236
- value: GeneratorFunctionPrototype,
237
- configurable: !0
238
- }), o(GeneratorFunctionPrototype, "constructor", {
239
- value: GeneratorFunction,
240
- configurable: !0
241
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
242
- var e = "function" == typeof t && t.constructor;
243
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
244
- }, e.mark = function (t) {
245
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
246
- }, e.awrap = function (t) {
247
- return {
248
- __await: t
249
- };
250
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
251
- return this;
252
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
253
- void 0 === i && (i = Promise);
254
- var a = new AsyncIterator(wrap(t, r, n, o), i);
255
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
256
- return t.done ? t.value : a.next();
257
- });
258
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
259
- return this;
260
- }), define(g, "toString", function () {
261
- return "[object Generator]";
262
- }), e.keys = function (t) {
263
- var e = Object(t),
264
- r = [];
265
- for (var n in e) r.push(n);
266
- return r.reverse(), function next() {
267
- for (; r.length;) {
268
- var t = r.pop();
269
- if (t in e) return next.value = t, next.done = !1, next;
270
- }
271
- return next.done = !0, next;
272
- };
273
- }, e.values = values, Context.prototype = {
274
- constructor: Context,
275
- reset: function (e) {
276
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
277
- },
278
- stop: function () {
279
- this.done = !0;
280
- var t = this.tryEntries[0].completion;
281
- if ("throw" === t.type) throw t.arg;
282
- return this.rval;
283
- },
284
- dispatchException: function (e) {
285
- if (this.done) throw e;
286
- var r = this;
287
- function handle(n, o) {
288
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
289
- }
290
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
291
- var i = this.tryEntries[o],
292
- a = i.completion;
293
- if ("root" === i.tryLoc) return handle("end");
294
- if (i.tryLoc <= this.prev) {
295
- var c = n.call(i, "catchLoc"),
296
- u = n.call(i, "finallyLoc");
297
- if (c && u) {
298
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
299
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
300
- } else if (c) {
301
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
302
- } else {
303
- if (!u) throw Error("try statement without catch or finally");
304
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
305
- }
306
- }
307
- }
308
- },
309
- abrupt: function (t, e) {
310
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
311
- var o = this.tryEntries[r];
312
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
313
- var i = o;
314
- break;
315
- }
316
- }
317
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
318
- var a = i ? i.completion : {};
319
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
320
- },
321
- complete: function (t, e) {
322
- if ("throw" === t.type) throw t.arg;
323
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
324
- },
325
- finish: function (t) {
326
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
327
- var r = this.tryEntries[e];
328
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
329
- }
330
- },
331
- catch: function (t) {
332
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
333
- var r = this.tryEntries[e];
334
- if (r.tryLoc === t) {
335
- var n = r.completion;
336
- if ("throw" === n.type) {
337
- var o = n.arg;
338
- resetTryEntry(r);
339
- }
340
- return o;
341
- }
342
- }
343
- throw Error("illegal catch attempt");
344
- },
345
- delegateYield: function (e, r, n) {
346
- return this.delegate = {
347
- iterator: values(e),
348
- resultName: r,
349
- nextLoc: n
350
- }, "next" === this.method && (this.arg = t), y;
351
- }
352
- }, e;
353
- }
354
53
  function _toPrimitive(t, r) {
355
54
  if ("object" != typeof t || !t) return t;
356
55
  var e = t[Symbol.toPrimitive];
@@ -374,36 +73,6 @@ function _typeof(o) {
374
73
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
375
74
  }, _typeof(o);
376
75
  }
377
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
378
- try {
379
- var info = gen[key](arg);
380
- var value = info.value;
381
- } catch (error) {
382
- reject(error);
383
- return;
384
- }
385
- if (info.done) {
386
- resolve(value);
387
- } else {
388
- Promise.resolve(value).then(_next, _throw);
389
- }
390
- }
391
- function _asyncToGenerator(fn) {
392
- return function () {
393
- var self = this,
394
- args = arguments;
395
- return new Promise(function (resolve, reject) {
396
- var gen = fn.apply(self, args);
397
- function _next(value) {
398
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
399
- }
400
- function _throw(err) {
401
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
402
- }
403
- _next(undefined);
404
- });
405
- };
406
- }
407
76
  function _classCallCheck(instance, Constructor) {
408
77
  if (!(instance instanceof Constructor)) {
409
78
  throw new TypeError("Cannot call a class as a function");
@@ -522,7 +191,6 @@ function _nonIterableRest() {
522
191
  exports.arrayLikeToArray = _arrayLikeToArray;
523
192
  exports.arrayWithHoles = _arrayWithHoles;
524
193
  exports.arrayWithoutHoles = _arrayWithoutHoles;
525
- exports.asyncToGenerator = _asyncToGenerator;
526
194
  exports.classCallCheck = _classCallCheck;
527
195
  exports.createClass = _createClass;
528
196
  exports.defineProperty = _defineProperty;
@@ -534,7 +202,6 @@ exports.nonIterableSpread = _nonIterableSpread;
534
202
  exports.objectSpread2 = _objectSpread2;
535
203
  exports.objectWithoutProperties = _objectWithoutProperties;
536
204
  exports.objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
537
- exports.regeneratorRuntime = _regeneratorRuntime;
538
205
  exports.slicedToArray = _slicedToArray;
539
206
  exports.toArray = _toArray;
540
207
  exports.toConsumableArray = _toConsumableArray;
@@ -1 +1 @@
1
- {"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_rollupPluginBabelHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,12 @@
1
- .base_qlxank_b5zny0e__7dda249c{color:var(--plasma-badge-color);background-color:var(--plasma-badge-background);}
1
+ .base_j3xzf3_b5zny0e__f0386786{color:var(--plasma-badge-custom-color,var(--plasma-badge-color));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background));}
2
2
 
3
- .base_to0y5x_bb8jvo5__5c9e1c86{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding-top:var(--plasma-badge-padding-top);padding-right:var(--plasma-badge-padding-right);padding-bottom:var(--plasma-badge-padding-bottom);padding-left:var(--plasma-badge-padding-left);}
3
+ .base_bu5opk_bb8jvo5__18c67c14{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding:var(--plasma-badge-padding);}.base_bu5opk_bb8jvo5__18c67c14.base_bu5opk_badgeIconOnly__18c67c14{padding:var(--plasma-badge-padding-icon-only);}.base_bu5opk_bb8jvo5__18c67c14.base_bu5opk_badgeIconOnly__18c67c14 .base_bu5opk_s1t43xoe__18c67c14{margin:0;}
4
4
 
5
5
  .base_zpvffd_b3w4z61__f9738ae7.base_zpvffd_badgePilled__f9738ae7{border-radius:var(--plasma-badge-pilled-border-radius);}
6
6
 
7
- .base_1l6036y_binquhc__5cc72580.base_1l6036y_badgeTransparent__5cc72580{color:var(--plasma-badge-color-transparent);background-color:var(--plasma-badge-background-transparent);}
7
+ .base_aapqhz_binquhc__81eb1c83.base_aapqhz_badgeTransparent__81eb1c83{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-transparent));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-transparent));}
8
8
 
9
- .base_oopyb7_b1e1wuvi__72387433.base_oopyb7_badgeClear__72387433{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
9
+ .base_wiboj8_b1e1wuvi__44d619d2.base_wiboj8_badgeClear__44d619d2{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-clear));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-clear));}
10
10
 
11
11
  .Badge_styles_hhbwyi_s1t43xoe__47a1842a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-left:var(--plasma-badge-left-content-margin-left);margin-right:var(--plasma-badge-left-content-margin-right);}
12
12
 
@@ -13,16 +13,20 @@ var base$4 = require('./variations/_clear/base.js');
13
13
  var Badge_styles = require('./Badge.styles.js');
14
14
  var Badge_tokens = require('./Badge.tokens.js');
15
15
 
16
- var _excluded = ["children", "className", "text", "contentLeft", "contentRight", "size", "view", "pilled", "transparent", "clear", "maxWidth"];
16
+ var _excluded = ["children", "className", "style", "text", "contentLeft", "contentRight", "size", "view", "customColor", "customBackgroundColor", "pilled", "transparent", "clear", "maxWidth"];
17
17
  var badgeRoot = function badgeRoot(Root) {
18
18
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
19
+ var _StyledContentLeft, _StyledContentMain, _StyledContentMain2, _StyledContentRight;
19
20
  var children = props.children,
20
21
  className = props.className,
22
+ style = props.style,
21
23
  text = props.text,
22
24
  contentLeft = props.contentLeft,
23
25
  contentRight = props.contentRight,
24
26
  size = props.size,
25
27
  view = props.view,
28
+ customColor = props.customColor,
29
+ customBackgroundColor = props.customBackgroundColor,
26
30
  _props$pilled = props.pilled,
27
31
  pilled = _props$pilled === void 0 ? false : _props$pilled,
28
32
  _props$transparent = props.transparent,
@@ -37,19 +41,25 @@ var badgeRoot = function badgeRoot(Root) {
37
41
  var clearClass = clear ? Badge_tokens.classes.badgeClear : undefined;
38
42
  var truncateClass = maxWidth !== 'auto' ? Badge_tokens.classes.badgeTruncate : undefined;
39
43
  var txt = !text && typeof children === 'string' ? children : text;
44
+ var iconOnlyClass = !txt && contentLeft ? Badge_tokens.classes.iconOnly : undefined;
45
+ var BadgeContent = function BadgeContent() {
46
+ if (contentLeft) {
47
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _StyledContentLeft || (_StyledContentLeft = /*#__PURE__*/React.createElement(Badge_styles.StyledContentLeft, null, contentLeft)), txt ? _StyledContentMain || (_StyledContentMain = /*#__PURE__*/React.createElement(Badge_styles.StyledContentMain, null, txt)) : children);
48
+ }
49
+ return /*#__PURE__*/React.createElement(React.Fragment, null, txt ? _StyledContentMain2 || (_StyledContentMain2 = /*#__PURE__*/React.createElement(Badge_styles.StyledContentMain, null, txt)) : children, contentRight && (_StyledContentRight || (_StyledContentRight = /*#__PURE__*/React.createElement(Badge_styles.StyledContentRight, null, contentRight))));
50
+ };
40
51
  return /*#__PURE__*/React.createElement(Root, _rollupPluginBabelHelpers.extends({
41
52
  ref: ref,
42
- className: index.cx(pilledClass, transparentClass, clearClass, truncateClass, className),
53
+ className: index.cx(pilledClass, transparentClass, clearClass, truncateClass, iconOnlyClass, className),
43
54
  view: view,
44
55
  size: size,
45
56
  pilled: pilled,
46
57
  transparent: transparent,
47
- clear: clear
48
- }, rest, {
49
- style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest.style), {}, {
58
+ clear: clear,
59
+ style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), {}, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({
50
60
  maxWidth: maxWidth
51
- })
52
- }), contentLeft && /*#__PURE__*/React.createElement(Badge_styles.StyledContentLeft, null, contentLeft), txt ? /*#__PURE__*/React.createElement(Badge_styles.StyledContentMain, null, txt) : children, contentRight && /*#__PURE__*/React.createElement(Badge_styles.StyledContentRight, null, contentRight));
61
+ }, Badge_tokens.privateTokens.customBackground, customBackgroundColor), Badge_tokens.privateTokens.customColor, customColor))
62
+ }, rest), /*#__PURE__*/React.createElement(BadgeContent, null));
53
63
  });
54
64
  };
55
65
  var badgeConfig = {
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as transparentCSS } from './variations/_transparent/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport type { BadgeProps, BadgeRootProps } from './Badge.types';\nimport { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';\nimport { classes } from './Badge.tokens';\n\nexport const badgeRoot = (Root: RootProps<HTMLDivElement, BadgeRootProps>) =>\n forwardRef<HTMLDivElement, BadgeProps>((props, ref) => {\n const {\n children,\n className,\n text,\n contentLeft,\n contentRight,\n size,\n view,\n pilled = false,\n transparent = false,\n clear = false,\n maxWidth = 'auto',\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.badgePilled : undefined;\n const transparentClass = transparent ? classes.badgeTransparent : undefined;\n const clearClass = clear ? classes.badgeClear : undefined;\n const truncateClass = maxWidth !== 'auto' ? classes.badgeTruncate : undefined;\n\n const txt = !text && typeof children === 'string' ? children : text;\n\n return (\n <Root\n ref={ref}\n className={cx(pilledClass, transparentClass, clearClass, truncateClass, className)}\n view={view}\n size={size}\n pilled={pilled}\n transparent={transparent}\n clear={clear}\n {...rest}\n style={{\n ...rest.style,\n maxWidth,\n }}\n >\n {contentLeft && <StyledContentLeft>{contentLeft}</StyledContentLeft>}\n {txt ? <StyledContentMain>{txt}</StyledContentMain> : children}\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </Root>\n );\n });\n\nexport const badgeConfig = {\n name: 'Badge',\n tag: 'div',\n layout: badgeRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n transparent: {\n css: transparentCSS,\n attrs: true,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["badgeRoot","Root","forwardRef","props","ref","children","className","text","contentLeft","contentRight","size","view","_props$pilled","pilled","_props$transparent","transparent","_props$clear","clear","_props$maxWidth","maxWidth","rest","_objectWithoutProperties","_excluded","pilledClass","classes","badgePilled","undefined","transparentClass","badgeTransparent","clearClass","badgeClear","truncateClass","badgeTruncate","txt","React","createElement","_extends","cx","style","_objectSpread","StyledContentLeft","StyledContentMain","StyledContentRight","badgeConfig","name","tag","layout","base","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AE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE9C,SAAS;AACjB+C,EAAAA,IAAI,EAAJA,iBAAI;AACJC,EAAAA,UAAU,EAAE;AACRrC,IAAAA,IAAI,EAAE;AACFsC,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDxC,IAAAA,IAAI,EAAE;AACFuC,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDtC,IAAAA,MAAM,EAAE;AACJoC,MAAAA,GAAG,EAAEG,WAAS;AACdC,MAAAA,KAAK,EAAE,IAAA;KACV;AACDtC,IAAAA,WAAW,EAAE;AACTkC,MAAAA,GAAG,EAAEK,WAAc;AACnBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACDpC,IAAAA,KAAK,EAAE;AACHgC,MAAAA,GAAG,EAAEM,WAAQ;AACbF,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDG,EAAAA,QAAQ,EAAE;AACN7C,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
1
+ {"version":3,"file":"Badge.js","sources":["../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import React, { CSSProperties, forwardRef } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as pilledCSS } from './variations/_pilled/base';\nimport { base as transparentCSS } from './variations/_transparent/base';\nimport { base as clearCSS } from './variations/_clear/base';\nimport type { BadgeProps, BadgeRootProps } from './Badge.types';\nimport { StyledContentLeft, StyledContentMain, StyledContentRight, base } from './Badge.styles';\nimport { classes, privateTokens } from './Badge.tokens';\n\nexport const badgeRoot = (Root: RootProps<HTMLDivElement, BadgeRootProps>) =>\n forwardRef<HTMLDivElement, BadgeProps>((props, ref) => {\n const {\n children,\n className,\n style,\n text,\n contentLeft,\n contentRight,\n size,\n view,\n customColor,\n customBackgroundColor,\n pilled = false,\n transparent = false,\n clear = false,\n maxWidth = 'auto',\n ...rest\n } = props;\n\n const pilledClass = pilled ? classes.badgePilled : undefined;\n const transparentClass = transparent ? classes.badgeTransparent : undefined;\n const clearClass = clear ? classes.badgeClear : undefined;\n const truncateClass = maxWidth !== 'auto' ? classes.badgeTruncate : undefined;\n\n const txt = !text && typeof children === 'string' ? children : text;\n const iconOnlyClass = !txt && contentLeft ? classes.iconOnly : undefined;\n\n const BadgeContent = () => {\n if (contentLeft) {\n return (\n <>\n <StyledContentLeft>{contentLeft}</StyledContentLeft>\n {txt ? <StyledContentMain>{txt}</StyledContentMain> : children}\n </>\n );\n }\n\n return (\n <>\n {txt ? <StyledContentMain>{txt}</StyledContentMain> : children}\n {contentRight && <StyledContentRight>{contentRight}</StyledContentRight>}\n </>\n );\n };\n\n return (\n <Root\n ref={ref}\n className={cx(pilledClass, transparentClass, clearClass, truncateClass, iconOnlyClass, className)}\n view={view}\n size={size}\n pilled={pilled}\n transparent={transparent}\n clear={clear}\n style={\n {\n ...style,\n maxWidth,\n [privateTokens.customBackground]: customBackgroundColor,\n [privateTokens.customColor]: customColor,\n } as CSSProperties\n }\n {...rest}\n >\n <BadgeContent />\n </Root>\n );\n });\n\nexport const badgeConfig = {\n name: 'Badge',\n tag: 'div',\n layout: badgeRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n pilled: {\n css: pilledCSS,\n attrs: true,\n },\n transparent: {\n css: transparentCSS,\n attrs: true,\n },\n clear: {\n css: clearCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'primary',\n size: 'm',\n },\n};\n"],"names":["badgeRoot","Root","forwardRef","props","ref","_StyledContentLeft","_StyledContentMain","_StyledContentMain2","_StyledContentRight","children","className","style","text","contentLeft","contentRight","size","view","customColor","customBackgroundColor","_props$pilled","pilled","_props$transparent","transparent","_props$clear","clear","_props$maxWidth","maxWidth","rest","_objectWithoutProperties","_excluded","pilledClass","classes","badgePilled","undefined","transparentClass","badgeTransparent","clearClass","badgeClear","truncateClass","badgeTruncate","txt","iconOnlyClass","iconOnly","BadgeContent","React","createElement","Fragment","StyledContentLeft","StyledContentMain","StyledContentRight","_extends","cx","_objectSpread","_defineProperty","privateTokens","customBackground","badgeConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","pilledCSS","attrs","transparentCSS","clearCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;IAcaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACrEC,gBAAU,CAA6B,UAACC,KAAK,EAAEC,GAAG,EAAK;AAAA,IAAA,IAAAC,kBAAA,EAAAC,kBAAA,EAAAC,mBAAA,EAAAC,mBAAA,CAAA;AACnD,IAAA,IACIC,QAAQ,GAeRN,KAAK,CAfLM,QAAQ;MACRC,SAAS,GAcTP,KAAK,CAdLO,SAAS;MACTC,KAAK,GAaLR,KAAK,CAbLQ,KAAK;MACLC,IAAI,GAYJT,KAAK,CAZLS,IAAI;MACJC,WAAW,GAWXV,KAAK,CAXLU,WAAW;MACXC,YAAY,GAUZX,KAAK,CAVLW,YAAY;MACZC,IAAI,GASJZ,KAAK,CATLY,IAAI;MACJC,IAAI,GAQJb,KAAK,CARLa,IAAI;MACJC,WAAW,GAOXd,KAAK,CAPLc,WAAW;MACXC,qBAAqB,GAMrBf,KAAK,CANLe,qBAAqB;MAAAC,aAAA,GAMrBhB,KAAK,CALLiB,MAAM;AAANA,MAAAA,MAAM,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,aAAA;MAAAE,kBAAA,GAKdlB,KAAK,CAJLmB,WAAW;AAAXA,MAAAA,WAAW,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,kBAAA;MAAAE,YAAA,GAInBpB,KAAK,CAHLqB,KAAK;AAALA,MAAAA,KAAK,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,Y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I;AACJC,EAAAA,UAAU,EAAE;AACR7C,IAAAA,IAAI,EAAE;AACF8C,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDhD,IAAAA,IAAI,EAAE;AACF+C,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACD5C,IAAAA,MAAM,EAAE;AACJ0C,MAAAA,GAAG,EAAEG,WAAS;AACdC,MAAAA,KAAK,EAAE,IAAA;KACV;AACD5C,IAAAA,WAAW,EAAE;AACTwC,MAAAA,GAAG,EAAEK,WAAc;AACnBD,MAAAA,KAAK,EAAE,IAAA;KACV;AACD1C,IAAAA,KAAK,EAAE;AACHsC,MAAAA,GAAG,EAAEM,WAAQ;AACbF,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDG,EAAAA,QAAQ,EAAE;AACNrD,IAAAA,IAAI,EAAE,SAAS;AACfD,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
@@ -6,7 +6,12 @@ var classes = {
6
6
  badgePilled: 'badge-pilled',
7
7
  badgeTransparent: 'badge-transparent',
8
8
  badgeClear: 'badge-clear',
9
- badgeTruncate: 'badge-truncate'
9
+ badgeTruncate: 'badge-truncate',
10
+ iconOnly: 'badge-icon-only'
11
+ };
12
+ var privateTokens = {
13
+ customBackground: '--plasma-badge-custom-background',
14
+ customColor: '--plasma-badge-custom-color'
10
15
  };
11
16
  var tokens = {
12
17
  background: '--plasma-badge-background',
@@ -14,13 +19,12 @@ var tokens = {
14
19
  backgroundTransparent: '--plasma-badge-background-transparent',
15
20
  colorTransparent: '--plasma-badge-color-transparent',
16
21
  colorClear: '--plasma-badge-color-clear',
22
+ backgroundClear: '--plasma-badge-background-clear',
17
23
  borderRadius: '--plasma-badge-border-radius',
18
24
  pilledBorderRadius: '--plasma-badge-pilled-border-radius',
19
25
  height: '--plasma-badge-height',
20
- paddingTop: '--plasma-badge-padding-top',
21
- paddingRight: '--plasma-badge-padding-right',
22
- paddingBottom: '--plasma-badge-padding-bottom',
23
- paddingLeft: '--plasma-badge-padding-left',
26
+ padding: '--plasma-badge-padding',
27
+ paddingIconOnly: '--plasma-badge-padding-icon-only',
24
28
  fontFamily: '--plasma-badge-font-family',
25
29
  fontSize: '--plasma-badge-font-size',
26
30
  fontStyle: '--plasma-badge-font-style',
@@ -34,5 +38,6 @@ var tokens = {
34
38
  };
35
39
 
36
40
  exports.classes = classes;
41
+ exports.privateTokens = privateTokens;
37
42
  exports.tokens = tokens;
38
43
  //# sourceMappingURL=Badge.tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.tokens.js","sources":["../../../src/components/Badge/Badge.tokens.ts"],"sourcesContent":["export const classes = {\n badgePilled: 'badge-pilled',\n badgeTransparent: 'badge-transparent',\n badgeClear: 'badge-clear',\n badgeTruncate: 'badge-truncate',\n};\n\nexport const tokens = {\n background: '--plasma-badge-background',\n color: '--plasma-badge-color',\n backgroundTransparent: '--plasma-badge-background-transparent',\n colorTransparent: '--plasma-badge-color-transparent',\n colorClear: '--plasma-badge-color-clear',\n\n borderRadius: '--plasma-badge-border-radius',\n pilledBorderRadius: '--plasma-badge-pilled-border-radius',\n height: '--plasma-badge-height',\n paddingTop: '--plasma-badge-padding-top',\n paddingRight: '--plasma-badge-padding-right',\n paddingBottom: '--plasma-badge-padding-bottom',\n paddingLeft: '--plasma-badge-padding-left',\n\n fontFamily: '--plasma-badge-font-family',\n fontSize: '--plasma-badge-font-size',\n fontStyle: '--plasma-badge-font-style',\n fontWeight: '--plasma-badge-font-weight',\n letterSpacing: '--plasma-badge-letter-spacing',\n lineHeight: '--plasma-badge-lineheight',\n\n leftContentMarginLeft: '--plasma-badge-left-content-margin-left',\n leftContentMarginRight: '--plasma-badge-left-content-margin-right',\n rightContentMarginLeft: '--plasma-badge-right-content-margin-left',\n rightContentMarginRight: '--plasma-badge-right-content-margin-right',\n};\n"],"names":["classes","badgePilled","badgeTransparent","badgeClear","badgeTruncate","tokens","background","color","backgroundTransparent","colorTransparent","colorClear","borderRadius","pilledBorderRadius","height","paddingTop","paddingRight","paddingBottom","paddingLeft","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,aAAa,EAAE,gBAAA;AACnB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,qBAAqB,EAAE,uCAAuC;AAC9DC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,UAAU,EAAE,4BAA4B;AAExCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,MAAM,EAAE,uBAAuB;AAC/BC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,WAAW,EAAE,6BAA6B;AAE1CC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,uBAAuB,EAAE,2CAAA;AAC7B;;;;;"}
1
+ {"version":3,"file":"Badge.tokens.js","sources":["../../../src/components/Badge/Badge.tokens.ts"],"sourcesContent":["export const classes = {\n badgePilled: 'badge-pilled',\n badgeTransparent: 'badge-transparent',\n badgeClear: 'badge-clear',\n badgeTruncate: 'badge-truncate',\n iconOnly: 'badge-icon-only',\n};\n\nexport const privateTokens = {\n customBackground: '--plasma-badge-custom-background',\n customColor: '--plasma-badge-custom-color',\n};\n\nexport const tokens = {\n background: '--plasma-badge-background',\n color: '--plasma-badge-color',\n backgroundTransparent: '--plasma-badge-background-transparent',\n colorTransparent: '--plasma-badge-color-transparent',\n colorClear: '--plasma-badge-color-clear',\n backgroundClear: '--plasma-badge-background-clear',\n\n borderRadius: '--plasma-badge-border-radius',\n pilledBorderRadius: '--plasma-badge-pilled-border-radius',\n height: '--plasma-badge-height',\n padding: '--plasma-badge-padding',\n paddingIconOnly: '--plasma-badge-padding-icon-only',\n\n fontFamily: '--plasma-badge-font-family',\n fontSize: '--plasma-badge-font-size',\n fontStyle: '--plasma-badge-font-style',\n fontWeight: '--plasma-badge-font-weight',\n letterSpacing: '--plasma-badge-letter-spacing',\n lineHeight: '--plasma-badge-lineheight',\n\n leftContentMarginLeft: '--plasma-badge-left-content-margin-left',\n leftContentMarginRight: '--plasma-badge-left-content-margin-right',\n rightContentMarginLeft: '--plasma-badge-right-content-margin-left',\n rightContentMarginRight: '--plasma-badge-right-content-margin-right',\n};\n"],"names":["classes","badgePilled","badgeTransparent","badgeClear","badgeTruncate","iconOnly","privateTokens","customBackground","customColor","tokens","background","color","backgroundTransparent","colorTransparent","colorClear","backgroundClear","borderRadius","pilledBorderRadius","height","padding","paddingIconOnly","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","leftContentMarginLeft","leftContentMarginRight","rightContentMarginLeft","rightContentMarginRight"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,WAAW,EAAE,cAAc;AAC3BC,EAAAA,gBAAgB,EAAE,mBAAmB;AACrCC,EAAAA,UAAU,EAAE,aAAa;AACzBC,EAAAA,aAAa,EAAE,gBAAgB;AAC/BC,EAAAA,QAAQ,EAAE,iBAAA;AACd,EAAC;AAEM,IAAMC,aAAa,GAAG;AACzBC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,WAAW,EAAE,6BAAA;AACjB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,2BAA2B;AACvCC,EAAAA,KAAK,EAAE,sBAAsB;AAC7BC,EAAAA,qBAAqB,EAAE,uCAAuC;AAC9DC,EAAAA,gBAAgB,EAAE,kCAAkC;AACpDC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,eAAe,EAAE,iCAAiC;AAElDC,EAAAA,YAAY,EAAE,8BAA8B;AAC5CC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,MAAM,EAAE,uBAAuB;AAC/BC,EAAAA,OAAO,EAAE,wBAAwB;AACjCC,EAAAA,eAAe,EAAE,kCAAkC;AAEnDC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,QAAQ,EAAE,0BAA0B;AACpCC,EAAAA,SAAS,EAAE,2BAA2B;AACtCC,EAAAA,UAAU,EAAE,4BAA4B;AACxCC,EAAAA,aAAa,EAAE,+BAA+B;AAC9CC,EAAAA,UAAU,EAAE,2BAA2B;AAEvCC,EAAAA,qBAAqB,EAAE,yCAAyC;AAChEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,sBAAsB,EAAE,0CAA0C;AAClEC,EAAAA,uBAAuB,EAAE,2CAAA;AAC7B;;;;;;"}
@@ -1,4 +1,4 @@
1
- import './base_oopyb7.css';
1
+ import './base_wiboj8.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Badge.tokens';\n\nexport const base = css`\n &.${classes.badgeClear} {\n color: var(${tokens.colorClear});\n background-color: transparent;\n padding: 0;\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAMhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, privateTokens, tokens } from '../../Badge.tokens';\n\nexport const base = css`\n &.${classes.badgeClear} {\n color: var(${privateTokens.customColor}, var(${tokens.colorClear}));\n background-color: var(${privateTokens.customBackground}, var(${tokens.backgroundClear}));\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAKhB;;;;"}
@@ -0,0 +1 @@
1
+ .b1e1wuvi.badge-clear{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-clear));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-clear));}
@@ -1,4 +1,4 @@
1
- import './base_to0y5x.css';
1
+ import './base_bu5opk.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Badge.tokens';\n\nexport const base = css`\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-radius: var(${tokens.borderRadius});\n\n height: var(${tokens.height});\n\n padding-top: var(${tokens.paddingTop});\n padding-right: var(${tokens.paddingRight});\n padding-bottom: var(${tokens.paddingBottom});\n padding-left: var(${tokens.paddingLeft});\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAgBhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Badge.tokens';\nimport { StyledContentLeft } from '../../Badge.styles';\n\nexport const base = css`\n font-family: var(${tokens.fontFamily});\n font-size: var(${tokens.fontSize});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${tokens.lineHeight});\n\n border-radius: var(${tokens.borderRadius});\n\n height: var(${tokens.height});\n\n padding: var(${tokens.padding});\n\n &.${classes.iconOnly} {\n padding: var(${tokens.paddingIconOnly});\n\n ${StyledContentLeft} {\n margin: 0;\n }\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GAqBhB;;;;"}
@@ -1 +1 @@
1
- .bb8jvo5{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding-top:var(--plasma-badge-padding-top);padding-right:var(--plasma-badge-padding-right);padding-bottom:var(--plasma-badge-padding-bottom);padding-left:var(--plasma-badge-padding-left);}
1
+ .bb8jvo5{font-family:var(--plasma-badge-font-family);font-size:var(--plasma-badge-font-size);font-style:var(--plasma-badge-font-style);font-weight:var(--plasma-badge-font-weight);-webkit-letter-spacing:var(--plasma-badge-letter-spacing);-moz-letter-spacing:var(--plasma-badge-letter-spacing);-ms-letter-spacing:var(--plasma-badge-letter-spacing);letter-spacing:var(--plasma-badge-letter-spacing);line-height:var(--plasma-badge-lineheight);border-radius:var(--plasma-badge-border-radius);height:var(--plasma-badge-height);padding:var(--plasma-badge-padding);}.bb8jvo5.badge-icon-only{padding:var(--plasma-badge-padding-icon-only);}.bb8jvo5.badge-icon-only .s1t43xoe{margin:0;}
@@ -1,4 +1,4 @@
1
- import './base_1l6036y.css';
1
+ import './base_aapqhz.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_transparent/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, tokens } from '../../Badge.tokens';\n\nexport const base = css`\n &.${classes.badgeTransparent} {\n color: var(${tokens.colorTransparent});\n background-color: var(${tokens.backgroundTransparent});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAKhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_transparent/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { classes, privateTokens, tokens } from '../../Badge.tokens';\n\nexport const base = css`\n &.${classes.badgeTransparent} {\n color: var(${privateTokens.customColor}, var(${tokens.colorTransparent}));\n background-color: var(${privateTokens.customBackground}, var(${tokens.backgroundTransparent}));\n }\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAKhB;;;;"}
@@ -0,0 +1 @@
1
+ .binquhc.badge-transparent{color:var(--plasma-badge-custom-color,var(--plasma-badge-color-transparent));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background-transparent));}
@@ -1,4 +1,4 @@
1
- import './base_qlxank.css';
1
+ import './base_j3xzf3.css';
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Badge.tokens';\n\nexport const base = css`\n color: var(${tokens.color});\n background-color: var(${tokens.background});\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAGhB;;;;"}
1
+ {"version":3,"file":"base.js","sources":["../../../../../src/components/Badge/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { privateTokens, tokens } from '../../Badge.tokens';\n\nexport const base = css`\n color: var(${privateTokens.customColor}, var(${tokens.color}));\n background-color: var(${privateTokens.customBackground}, var(${tokens.background}));\n`;\n"],"names":["base"],"mappings":";;;;AAIO,IAAMA,IAAI,GAGhB;;;;"}
@@ -0,0 +1 @@
1
+ .b5zny0e{color:var(--plasma-badge-custom-color,var(--plasma-badge-color));background-color:var(--plasma-badge-custom-background,var(--plasma-badge-background));}