se-design 1.0.86 → 1.0.87-dev.2

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 (295) hide show
  1. package/dist/assets/icons/cloud-check.svg +4 -0
  2. package/dist/components/Icon/index.d.ts +5 -0
  3. package/dist/components/InputWithTags/index.d.ts +3 -1
  4. package/dist/components/Tooltip/index.d.ts +5 -1
  5. package/dist/index112.js +1 -1
  6. package/dist/index112.js.map +1 -1
  7. package/dist/index113.js +2 -2
  8. package/dist/index113.js.map +1 -1
  9. package/dist/index114.js +1 -1
  10. package/dist/index114.js.map +1 -1
  11. package/dist/index115.js +2 -2
  12. package/dist/index115.js.map +1 -1
  13. package/dist/index116.js +1 -1
  14. package/dist/index116.js.map +1 -1
  15. package/dist/index117.js +1 -1
  16. package/dist/index117.js.map +1 -1
  17. package/dist/index118.js +2 -2
  18. package/dist/index118.js.map +1 -1
  19. package/dist/index119.js +1 -1
  20. package/dist/index119.js.map +1 -1
  21. package/dist/index120.js +2 -2
  22. package/dist/index120.js.map +1 -1
  23. package/dist/index121.js +1 -1
  24. package/dist/index121.js.map +1 -1
  25. package/dist/index122.js +1 -1
  26. package/dist/index122.js.map +1 -1
  27. package/dist/index123.js +1 -1
  28. package/dist/index123.js.map +1 -1
  29. package/dist/index124.js +1 -1
  30. package/dist/index124.js.map +1 -1
  31. package/dist/index125.js +2 -2
  32. package/dist/index125.js.map +1 -1
  33. package/dist/index126.js +1 -1
  34. package/dist/index126.js.map +1 -1
  35. package/dist/index127.js +2 -2
  36. package/dist/index127.js.map +1 -1
  37. package/dist/index128.js +2 -2
  38. package/dist/index128.js.map +1 -1
  39. package/dist/index129.js +1 -1
  40. package/dist/index129.js.map +1 -1
  41. package/dist/index130.js +2 -2
  42. package/dist/index130.js.map +1 -1
  43. package/dist/index131.js +2 -2
  44. package/dist/index131.js.map +1 -1
  45. package/dist/index132.js +1 -1
  46. package/dist/index132.js.map +1 -1
  47. package/dist/index133.js +1 -1
  48. package/dist/index133.js.map +1 -1
  49. package/dist/index134.js +1 -1
  50. package/dist/index134.js.map +1 -1
  51. package/dist/index135.js +2 -2
  52. package/dist/index135.js.map +1 -1
  53. package/dist/index136.js +2 -2
  54. package/dist/index136.js.map +1 -1
  55. package/dist/index137.js +2 -2
  56. package/dist/index137.js.map +1 -1
  57. package/dist/index138.js +1 -1
  58. package/dist/index138.js.map +1 -1
  59. package/dist/index139.js +1 -1
  60. package/dist/index139.js.map +1 -1
  61. package/dist/index140.js +1 -1
  62. package/dist/index140.js.map +1 -1
  63. package/dist/index141.js +1 -1
  64. package/dist/index141.js.map +1 -1
  65. package/dist/index142.js +1 -1
  66. package/dist/index142.js.map +1 -1
  67. package/dist/index143.js +1 -1
  68. package/dist/index143.js.map +1 -1
  69. package/dist/index144.js +1 -1
  70. package/dist/index144.js.map +1 -1
  71. package/dist/index145.js +1 -1
  72. package/dist/index145.js.map +1 -1
  73. package/dist/index146.js +2 -2
  74. package/dist/index146.js.map +1 -1
  75. package/dist/index147.js +2 -2
  76. package/dist/index147.js.map +1 -1
  77. package/dist/index148.js +1 -1
  78. package/dist/index148.js.map +1 -1
  79. package/dist/index149.js +1 -1
  80. package/dist/index149.js.map +1 -1
  81. package/dist/index150.js +1 -1
  82. package/dist/index150.js.map +1 -1
  83. package/dist/index151.js +1 -1
  84. package/dist/index151.js.map +1 -1
  85. package/dist/index152.js +1 -1
  86. package/dist/index152.js.map +1 -1
  87. package/dist/index153.js +1 -1
  88. package/dist/index153.js.map +1 -1
  89. package/dist/index154.js +1 -1
  90. package/dist/index154.js.map +1 -1
  91. package/dist/index155.js +2 -2
  92. package/dist/index155.js.map +1 -1
  93. package/dist/index156.js +1 -1
  94. package/dist/index156.js.map +1 -1
  95. package/dist/index157.js +2 -2
  96. package/dist/index157.js.map +1 -1
  97. package/dist/index158.js +2 -2
  98. package/dist/index158.js.map +1 -1
  99. package/dist/index159.js +2 -2
  100. package/dist/index159.js.map +1 -1
  101. package/dist/index16.js +111 -107
  102. package/dist/index16.js.map +1 -1
  103. package/dist/index160.js +2 -2
  104. package/dist/index160.js.map +1 -1
  105. package/dist/index161.js +1 -1
  106. package/dist/index161.js.map +1 -1
  107. package/dist/index162.js +1 -1
  108. package/dist/index162.js.map +1 -1
  109. package/dist/index163.js +1 -1
  110. package/dist/index163.js.map +1 -1
  111. package/dist/index164.js +1 -1
  112. package/dist/index164.js.map +1 -1
  113. package/dist/index165.js +1 -1
  114. package/dist/index165.js.map +1 -1
  115. package/dist/index166.js +1 -1
  116. package/dist/index166.js.map +1 -1
  117. package/dist/index167.js +1 -1
  118. package/dist/index167.js.map +1 -1
  119. package/dist/index168.js +1 -1
  120. package/dist/index168.js.map +1 -1
  121. package/dist/index169.js +1 -1
  122. package/dist/index169.js.map +1 -1
  123. package/dist/index170.js +1 -1
  124. package/dist/index170.js.map +1 -1
  125. package/dist/index171.js +1 -1
  126. package/dist/index171.js.map +1 -1
  127. package/dist/index172.js +1 -1
  128. package/dist/index172.js.map +1 -1
  129. package/dist/index173.js +1 -1
  130. package/dist/index173.js.map +1 -1
  131. package/dist/index174.js +1 -1
  132. package/dist/index174.js.map +1 -1
  133. package/dist/index175.js +1 -1
  134. package/dist/index175.js.map +1 -1
  135. package/dist/index176.js +1 -1
  136. package/dist/index176.js.map +1 -1
  137. package/dist/index177.js +1 -1
  138. package/dist/index177.js.map +1 -1
  139. package/dist/index178.js +1 -1
  140. package/dist/index178.js.map +1 -1
  141. package/dist/index179.js +1 -1
  142. package/dist/index179.js.map +1 -1
  143. package/dist/index180.js +1 -1
  144. package/dist/index180.js.map +1 -1
  145. package/dist/index181.js +1 -1
  146. package/dist/index181.js.map +1 -1
  147. package/dist/index182.js +1 -1
  148. package/dist/index182.js.map +1 -1
  149. package/dist/index183.js +1 -1
  150. package/dist/index183.js.map +1 -1
  151. package/dist/index184.js +1 -1
  152. package/dist/index184.js.map +1 -1
  153. package/dist/index185.js +2 -2
  154. package/dist/index185.js.map +1 -1
  155. package/dist/index186.js +2 -2
  156. package/dist/index186.js.map +1 -1
  157. package/dist/index187.js +1 -1
  158. package/dist/index187.js.map +1 -1
  159. package/dist/index188.js +1 -1
  160. package/dist/index188.js.map +1 -1
  161. package/dist/index189.js +2 -2
  162. package/dist/index189.js.map +1 -1
  163. package/dist/index190.js +2 -2
  164. package/dist/index190.js.map +1 -1
  165. package/dist/index191.js +1 -1
  166. package/dist/index191.js.map +1 -1
  167. package/dist/index192.js +1 -1
  168. package/dist/index192.js.map +1 -1
  169. package/dist/index193.js +1 -1
  170. package/dist/index193.js.map +1 -1
  171. package/dist/index194.js +1 -1
  172. package/dist/index194.js.map +1 -1
  173. package/dist/index195.js +1 -1
  174. package/dist/index195.js.map +1 -1
  175. package/dist/index196.js +1 -1
  176. package/dist/index196.js.map +1 -1
  177. package/dist/index197.js +1 -1
  178. package/dist/index197.js.map +1 -1
  179. package/dist/index198.js +1 -1
  180. package/dist/index198.js.map +1 -1
  181. package/dist/index199.js +1 -1
  182. package/dist/index199.js.map +1 -1
  183. package/dist/index200.js +2 -2
  184. package/dist/index200.js.map +1 -1
  185. package/dist/index201.js +2 -2
  186. package/dist/index201.js.map +1 -1
  187. package/dist/index202.js +2 -2
  188. package/dist/index202.js.map +1 -1
  189. package/dist/index203.js +2 -149
  190. package/dist/index203.js.map +1 -1
  191. package/dist/index204.js +149 -9
  192. package/dist/index204.js.map +1 -1
  193. package/dist/index205.js +8 -5
  194. package/dist/index205.js.map +1 -1
  195. package/dist/index206.js +5 -4
  196. package/dist/index206.js.map +1 -1
  197. package/dist/index207.js +1 -1
  198. package/dist/index223.js +8 -0
  199. package/dist/index223.js.map +1 -0
  200. package/dist/{index224.js → index225.js} +1 -1
  201. package/dist/{index224.js.map → index225.js.map} +1 -1
  202. package/dist/index23.js +16 -16
  203. package/dist/index23.js.map +1 -1
  204. package/dist/{index232.js → index233.js} +1 -1
  205. package/dist/{index232.js.map → index233.js.map} +1 -1
  206. package/dist/{index235.js → index236.js} +1 -1
  207. package/dist/{index235.js.map → index236.js.map} +1 -1
  208. package/dist/index245.js +169 -3
  209. package/dist/index245.js.map +1 -1
  210. package/dist/index246.js +7 -0
  211. package/dist/index246.js.map +1 -0
  212. package/dist/index248.js +18 -9
  213. package/dist/index248.js.map +1 -1
  214. package/dist/index249.js +9 -9
  215. package/dist/index249.js.map +1 -1
  216. package/dist/index25.js +2 -1
  217. package/dist/index25.js.map +1 -1
  218. package/dist/index250.js +9 -4
  219. package/dist/index250.js.map +1 -1
  220. package/dist/index251.js +5 -170
  221. package/dist/index251.js.map +1 -1
  222. package/dist/index252.js +170 -11
  223. package/dist/index252.js.map +1 -1
  224. package/dist/index253.js +11 -6
  225. package/dist/index253.js.map +1 -1
  226. package/dist/index254.js +5 -5
  227. package/dist/index254.js.map +1 -1
  228. package/dist/index255.js +5 -37
  229. package/dist/index255.js.map +1 -1
  230. package/dist/index256.js +38 -2
  231. package/dist/index256.js.map +1 -1
  232. package/dist/index257.js +2 -8
  233. package/dist/index257.js.map +1 -1
  234. package/dist/index258.js +7 -326
  235. package/dist/index258.js.map +1 -1
  236. package/dist/index259.js +324 -47
  237. package/dist/index259.js.map +1 -1
  238. package/dist/index260.js +50 -2
  239. package/dist/index260.js.map +1 -1
  240. package/dist/index261.js +2 -76
  241. package/dist/index261.js.map +1 -1
  242. package/dist/index262.js +65 -82
  243. package/dist/index262.js.map +1 -1
  244. package/dist/index263.js +89 -48
  245. package/dist/index263.js.map +1 -1
  246. package/dist/index264.js +51 -7
  247. package/dist/index264.js.map +1 -1
  248. package/dist/index265.js +7 -4
  249. package/dist/index265.js.map +1 -1
  250. package/dist/index266.js +4 -51
  251. package/dist/index266.js.map +1 -1
  252. package/dist/index267.js +52 -2
  253. package/dist/index267.js.map +1 -1
  254. package/dist/index268.js +2 -2
  255. package/dist/index269.js +5 -0
  256. package/dist/index269.js.map +1 -0
  257. package/dist/index29.js +1 -1
  258. package/dist/index30.js +1 -1
  259. package/dist/index33.js +1 -1
  260. package/dist/index35.js +1 -1
  261. package/dist/index36.js +1 -1
  262. package/dist/index37.js +55 -36
  263. package/dist/index37.js.map +1 -1
  264. package/dist/index38.js +163 -162
  265. package/dist/index38.js.map +1 -1
  266. package/dist/index39.js +55 -51
  267. package/dist/index39.js.map +1 -1
  268. package/dist/index4.js +66 -61
  269. package/dist/index4.js.map +1 -1
  270. package/dist/index40.js +1 -1
  271. package/dist/index45.js +39 -38
  272. package/dist/index45.js.map +1 -1
  273. package/dist/index46.js +52 -51
  274. package/dist/index46.js.map +1 -1
  275. package/dist/index49.js +1 -1
  276. package/dist/index51.js +1 -1
  277. package/dist/index52.js +1 -1
  278. package/dist/index53.js +1 -1
  279. package/dist/index57.js +1 -1
  280. package/dist/index6.js +305 -299
  281. package/dist/index6.js.map +1 -1
  282. package/dist/index61.js +1 -1
  283. package/dist/index63.js +1 -1
  284. package/dist/index65.js +1 -1
  285. package/dist/index7.js +1 -1
  286. package/dist/index79.js +1 -1
  287. package/dist/index81.js +9 -7
  288. package/dist/index81.js.map +1 -1
  289. package/dist/index9.js +20 -20
  290. package/dist/index9.js.map +1 -1
  291. package/package.json +1 -1
  292. package/dist/index244.js +0 -173
  293. package/dist/index244.js.map +0 -1
  294. package/dist/index247.js +0 -22
  295. package/dist/index247.js.map +0 -1
package/dist/index267.js CHANGED
@@ -1,5 +1,55 @@
1
- var r = {};
1
+ import { __require as E } from "./index265.js";
2
+ import { __require as _ } from "./index266.js";
3
+ var f, v;
4
+ function P() {
5
+ if (v) return f;
6
+ v = 1;
7
+ var o = function() {
8
+ };
9
+ if (process.env.NODE_ENV !== "production") {
10
+ var y = E(), t = {}, d = _();
11
+ o = function(n) {
12
+ var a = "Warning: " + n;
13
+ typeof console < "u" && console.error(a);
14
+ try {
15
+ throw new Error(a);
16
+ } catch {
17
+ }
18
+ };
19
+ }
20
+ function u(n, a, i, s, c) {
21
+ if (process.env.NODE_ENV !== "production") {
22
+ for (var e in n)
23
+ if (d(n, e)) {
24
+ var r;
25
+ try {
26
+ if (typeof n[e] != "function") {
27
+ var h = Error(
28
+ (s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
29
+ );
30
+ throw h.name = "Invariant Violation", h;
31
+ }
32
+ r = n[e](a, e, s, i, null, y);
33
+ } catch (l) {
34
+ r = l;
35
+ }
36
+ if (r && !(r instanceof Error) && o(
37
+ (s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
38
+ ), r instanceof Error && !(r.message in t)) {
39
+ t[r.message] = !0;
40
+ var p = c ? c() : "";
41
+ o(
42
+ "Failed " + i + " type: " + r.message + (p ?? "")
43
+ );
44
+ }
45
+ }
46
+ }
47
+ }
48
+ return u.resetWarningCache = function() {
49
+ process.env.NODE_ENV !== "production" && (t = {});
50
+ }, f = u, f;
51
+ }
2
52
  export {
3
- r as __exports
53
+ P as __require
4
54
  };
5
55
  //# sourceMappingURL=index267.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index267.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index267.js","sources":["../node_modules/prop-types/checkPropTypes.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n"],"names":["printWarning","ReactPropTypesSecret","require$$0","loggedTypeFailures","has","require$$1","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1"],"mappings":";;;;;;AASA,MAAIA,IAAe,WAAW;AAAA,EAAA;AAE9B,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,QAAIC,IAAuBC,EAAA,GACvBC,IAAqB,CAAA,GACrBC,IAAMC,EAAA;AAEV,IAAAL,IAAe,SAASM,GAAM;AAC5B,UAAIC,IAAU,cAAcD;AAC5B,MAAI,OAAO,UAAY,OACrB,QAAQ,MAAMC,CAAO;AAEvB,UAAI;AAIF,cAAM,IAAI,MAAMA,CAAO;AAAA,MAC7B,QAAgB;AAAA,MAAA;AAAA,IAChB;AAAA,EACA;AAaA,WAASC,EAAeC,GAAWC,GAAQC,GAAUC,GAAeC,GAAU;AAC5E,QAAI,QAAQ,IAAI,aAAa;AAC3B,eAASC,KAAgBL;AACvB,YAAIL,EAAIK,GAAWK,CAAY,GAAG;AAChC,cAAIC;AAIJ,cAAI;AAGF,gBAAI,OAAON,EAAUK,CAAY,KAAM,YAAY;AACjD,kBAAIE,IAAM;AAAA,iBACPJ,KAAiB,iBAAiB,OAAOD,IAAW,YAAYG,IAAe,+FACC,OAAOL,EAAUK,CAAY,IAAI;AAAA,cAEhI;AACY,oBAAAE,EAAI,OAAO,uBACLA;AAAA,YAClB;AACU,YAAAD,IAAQN,EAAUK,CAAY,EAAEJ,GAAQI,GAAcF,GAAeD,GAAU,MAAMV,CAAoB;AAAA,UACnH,SAAiBgB,GAAI;AACX,YAAAF,IAAQE;AAAA,UAClB;AAWQ,cAVIF,KAAS,EAAEA,aAAiB,UAC9Bf;AAAA,aACGY,KAAiB,iBAAiB,6BACnCD,IAAW,OAAOG,IAAe,6FAC6B,OAAOC,IAAQ;AAAA,UAIzF,GAEYA,aAAiB,SAAS,EAAEA,EAAM,WAAWZ,IAAqB;AAGpE,YAAAA,EAAmBY,EAAM,OAAO,IAAI;AAEpC,gBAAIG,IAAQL,IAAWA,EAAQ,IAAK;AAEpC,YAAAb;AAAA,cACE,YAAYW,IAAW,YAAYI,EAAM,WAAWG,KAAwB;AAAA,YACxF;AAAA,UACA;AAAA,QACA;AAAA;AAAA,EAGA;AAOA,SAAAV,EAAe,oBAAoB,WAAW;AAC5C,IAAI,QAAQ,IAAI,aAAa,iBAC3BL,IAAqB,CAAA;AAAA,EAEzB,GAEAgB,IAAiBX;;","x_google_ignoreList":[0]}
package/dist/index268.js CHANGED
@@ -1,5 +1,5 @@
1
- var e = {};
1
+ var r = {};
2
2
  export {
3
- e as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index268.js.map
@@ -0,0 +1,5 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
5
+ //# sourceMappingURL=index269.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index269.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index29.js CHANGED
@@ -2,7 +2,7 @@ import r, { useState as $, useMemo as j, useRef as L, useEffect as B } from "rea
2
2
  import { Icon as O } from "./index6.js";
3
3
  import { Popover as z } from "./index19.js";
4
4
  import { MenuList as H } from "./index18.js";
5
- import { useStableId as U } from "./index205.js";
5
+ import { useStableId as U } from "./index206.js";
6
6
  import "./index72.js";
7
7
  import { useTabsA11y as V, getPanelId as q } from "./index73.js";
8
8
  /* empty css */
package/dist/index30.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e, { forwardRef as K } from "react";
2
2
  import { Icon as M } from "./index6.js";
3
3
  import { Button as d } from "./index4.js";
4
- import { useStableId as B } from "./index205.js";
4
+ import { useStableId as B } from "./index206.js";
5
5
  import { getRegionAttributes as Q } from "./index66.js";
6
6
  import { useAccessiblePress as U } from "./index67.js";
7
7
  import "./index72.js";
package/dist/index33.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e, { useRef as y } from "react";
2
- import { useStableId as N } from "./index205.js";
2
+ import { useStableId as N } from "./index206.js";
3
3
  function I(a) {
4
4
  const {
5
5
  label: s,
package/dist/index35.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import e, { useState as h, useEffect as E } from "react";
2
2
  import { Icon as N } from "./index6.js";
3
- import { useStableId as $ } from "./index205.js";
3
+ import { useStableId as $ } from "./index206.js";
4
4
  import { getRegionAttributes as I } from "./index66.js";
5
5
  import { useAccessiblePress as _ } from "./index67.js";
6
6
  import "./index72.js";
package/dist/index36.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import e, { useState as k, useEffect as w } from "react";
2
2
  import { Icon as x } from "./index6.js";
3
- import { useStableId as F } from "./index205.js";
3
+ import { useStableId as F } from "./index206.js";
4
4
  import { getA11yNameAttributes as P } from "./index81.js";
5
5
  import { getRegionAttributes as V } from "./index66.js";
6
6
  import { useAccessiblePress as q } from "./index67.js";
package/dist/index37.js CHANGED
@@ -1,58 +1,77 @@
1
- import a, { useState as p, useRef as N } from "react";
1
+ import a, { useState as v, useRef as T } from "react";
2
2
  /* empty css */
3
- import { Icon as k } from "./index6.js";
4
- function D({
5
- value: g,
6
- onChange: s,
7
- placeholder: f,
8
- className: d,
9
- error: o,
10
- errorMessage: h,
11
- label: c,
12
- automationId: w = ""
3
+ import { Icon as R } from "./index6.js";
4
+ import { getA11yNameAttributes as _ } from "./index81.js";
5
+ import "./index72.js";
6
+ import { useStableId as $ } from "./index206.js";
7
+ function c() {
8
+ return c = Object.assign ? Object.assign.bind() : function(r) {
9
+ for (var n = 1; n < arguments.length; n++) {
10
+ var i = arguments[n];
11
+ for (var s in i) ({}).hasOwnProperty.call(i, s) && (r[s] = i[s]);
12
+ }
13
+ return r;
14
+ }, c.apply(null, arguments);
15
+ }
16
+ function K({
17
+ value: r,
18
+ onChange: n,
19
+ placeholder: i,
20
+ className: s,
21
+ error: m,
22
+ errorMessage: w,
23
+ label: u,
24
+ ariaLabel: y,
25
+ ariaLabelledBy: b,
26
+ automationId: E = ""
13
27
  }) {
14
- const [n, l] = p([...g]), [i, r] = p(""), u = N(null), m = (t) => {
15
- const e = n.filter((y, E) => E !== t);
16
- l(e), s?.(e);
17
- }, v = (t) => {
18
- if (t.key === "Enter" && i.trim()) {
28
+ const [o, p] = v([...r]), [l, g] = v(""), d = T(null), f = $(void 0, "input-with-tags-label"), N = _({
29
+ ariaLabel: y,
30
+ ariaLabelledBy: b,
31
+ internalLabelId: u ? f : void 0
32
+ }), h = (t) => {
33
+ const e = o.filter((A, I) => I !== t);
34
+ p(e), n?.(e);
35
+ }, k = (t) => {
36
+ if (t.key === "Enter" && l.trim()) {
19
37
  t.preventDefault();
20
- const e = [...n, i.trim()];
21
- l(e), r(""), s?.(e);
22
- } else t.key === "Backspace" && i === "" && n.length > 0 && m(n.length - 1);
38
+ const e = [...o, l.trim()];
39
+ p(e), g(""), n?.(e);
40
+ } else t.key === "Backspace" && l === "" && o.length > 0 && h(o.length - 1);
23
41
  };
24
42
  return /* @__PURE__ */ a.createElement("div", {
25
43
  className: "input-with-tags-main-container",
26
- "data-automation-id": w
27
- }, c && /* @__PURE__ */ a.createElement("div", {
44
+ "data-automation-id": E
45
+ }, u && /* @__PURE__ */ a.createElement("div", {
46
+ id: f,
28
47
  className: "label-container"
29
- }, c), /* @__PURE__ */ a.createElement("div", {
30
- className: `input-with-tags-container ${o ? "input-with-tags-error" : ""} ${d}`,
31
- onClick: () => u.current?.focus()
32
- }, n.map((t, e) => /* @__PURE__ */ a.createElement("span", {
48
+ }, u), /* @__PURE__ */ a.createElement("div", {
49
+ className: `input-with-tags-container ${m ? "input-with-tags-error" : ""} ${s}`,
50
+ onClick: () => d.current?.focus()
51
+ }, o.map((t, e) => /* @__PURE__ */ a.createElement("span", {
33
52
  key: e,
34
53
  className: "tag-in-inputwithtags",
35
54
  "data-automation-id": `input-tag-${e}`
36
- }, t, /* @__PURE__ */ a.createElement(k, {
55
+ }, t, /* @__PURE__ */ a.createElement(R, {
37
56
  name: "close",
38
57
  className: "close-icon-in-inputwithtags",
39
58
  ariaLabel: `Remove tag ${t}`,
40
- onClick: () => m(e),
59
+ onClick: () => h(e),
41
60
  shouldStopPropagation: !0
42
- }))), /* @__PURE__ */ a.createElement("input", {
61
+ }))), /* @__PURE__ */ a.createElement("input", c({
43
62
  className: "input-with-tags-input",
44
- ref: u,
63
+ ref: d,
45
64
  type: "text",
46
- value: i,
47
- onChange: (t) => r(t.target.value),
48
- onKeyDown: v,
49
- placeholder: f,
65
+ value: l,
66
+ onChange: (t) => g(t.target.value),
67
+ onKeyDown: k,
68
+ placeholder: i,
50
69
  "data-automation-id": "input-with-tags-input-field"
51
- })), o && /* @__PURE__ */ a.createElement("div", {
70
+ }, N))), m && /* @__PURE__ */ a.createElement("div", {
52
71
  className: "error-message"
53
- }, h));
72
+ }, w));
54
73
  }
55
74
  export {
56
- D as InputWithTags
75
+ K as InputWithTags
57
76
  };
58
77
  //# sourceMappingURL=index37.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index37.js","sources":["../src/components/InputWithTags/index.tsx"],"sourcesContent":["import React, { useState, KeyboardEvent, useRef } from \"react\";\nimport './styles.scss';\nimport { Icon } from '../Icon';\n\nexport interface InputWithTagsProps {\n value: string[];\n onChange?: (tags: string[]) => void;\n placeholder?: string;\n className?: string;\n error?: boolean;\n errorMessage?: string;\n label?: string;\n automationId?: string;\n}\n\nexport function InputWithTags({ \n value, \n onChange, \n placeholder, \n className, \n error, \n errorMessage, \n label,\n automationId = ''\n}: InputWithTagsProps) {\n const [tags, setTags] = useState<string[]>([...value]);\n const [inputValue, setInputValue] = useState('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const removeTag = (indexToRemove: number) => {\n const newTags = tags.filter((_, i) => i !== indexToRemove);\n setTags(newTags);\n onChange?.(newTags);\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Enter' && inputValue.trim()) {\n e.preventDefault();\n const newTags = [...tags, inputValue.trim()];\n setTags(newTags);\n setInputValue(\"\");\n onChange?.(newTags);\n } else if (e.key === 'Backspace' && inputValue === \"\" && tags.length > 0) {\n removeTag(tags.length - 1);\n }\n };\n\n return (\n <div className=\"input-with-tags-main-container\" data-automation-id={automationId}>\n {label && <div className=\"label-container\">{label}</div>}\n <div \n className={`input-with-tags-container ${error ? 'input-with-tags-error' : ''} ${className}`} \n onClick={() => inputRef.current?.focus()}\n >\n {tags.map((tag, index) => (\n <span key={index} className=\"tag-in-inputwithtags\" data-automation-id={`input-tag-${index}`}>\n {tag} \n <Icon\n name=\"close\"\n className=\"close-icon-in-inputwithtags\"\n ariaLabel={`Remove tag ${tag}`}\n onClick={() => removeTag(index)}\n shouldStopPropagation\n />\n </span>\n ))}\n <input\n className=\"input-with-tags-input\"\n ref={inputRef}\n type=\"text\"\n value={inputValue}\n onChange={(e) => setInputValue(e.target.value)}\n onKeyDown={handleKeyDown}\n placeholder={placeholder}\n data-automation-id=\"input-with-tags-input-field\"\n />\n </div>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n </div>\n );\n}"],"names":["React__default","useState","useRef","Icon","InputWithTags","value","onChange","placeholder","className","error","errorMessage","label","automationId","tags","setTags","inputValue","setInputValue","inputRef","removeTag","indexToRemove","newTags","filter","_","i","handleKeyDown","e","key","trim","preventDefault","length","React","createElement","onClick","current","focus","map","tag","index","name","ariaLabel","shouldStopPropagation","ref","type","target","onKeyDown"],"mappings":"AAeO,OAAAA,KAAA,YAAAC,GAAA,UAAAC,SAAA;AAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAASC,EAAc;AAAA,EAC1BC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA,I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C,MAAK;AAAA,IACL9B,WAAU;AAAA,IACV+B,WAAW,cAAcH,CAAG;AAAA,IAC5BJ,SAASA,MAAMd,EAAUmB,CAAK;AAAA,IAC9BG,uBAAqB;AAAA,EAAA,CACxB,CACC,CACT,GACDV,gBAAAA,EAAAC,cAAA,SAAA;AAAA,IACIvB,WAAU;AAAA,IACViC,KAAKxB;AAAAA,IACLyB,MAAK;AAAA,IACLrC,OAAOU;AAAAA,IACPT,UAAWmB,CAAAA,MAAMT,EAAcS,EAAEkB,OAAOtC,KAAK;AAAA,IAC7CuC,WAAWpB;AAAAA,IACXjB,aAAAA;AAAAA,IACA,sBAAmB;AAAA,EAAA,CACtB,CACA,GACJE,KAASqB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKvB,WAAU;AAAA,EAAA,GAAiBE,CAAkB,CAC3D;AAEb;"}
1
+ {"version":3,"file":"index37.js","sources":["../src/components/InputWithTags/index.tsx"],"sourcesContent":["import React, { useState, KeyboardEvent, useRef } from \"react\";\nimport './styles.scss';\nimport { Icon } from '../Icon';\nimport { getA11yNameAttributes } from '../../utils/a11y';\nimport { useStableId } from '../../utils/useStableId';\n\nexport interface InputWithTagsProps {\n value: string[];\n onChange?: (tags: string[]) => void;\n placeholder?: string;\n className?: string;\n error?: boolean;\n errorMessage?: string;\n label?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n automationId?: string;\n}\n\nexport function InputWithTags({\n value,\n onChange,\n placeholder,\n className,\n error,\n errorMessage,\n label,\n ariaLabel,\n ariaLabelledBy,\n automationId = ''\n}: InputWithTagsProps) {\n const [tags, setTags] = useState<string[]>([...value]);\n const [inputValue, setInputValue] = useState('');\n const inputRef = useRef<HTMLInputElement>(null);\n const labelId = useStableId(undefined, 'input-with-tags-label');\n const inputA11yProps = getA11yNameAttributes({\n ariaLabel,\n ariaLabelledBy,\n internalLabelId: label ? labelId : undefined\n });\n\n const removeTag = (indexToRemove: number) => {\n const newTags = tags.filter((_, i) => i !== indexToRemove);\n setTags(newTags);\n onChange?.(newTags);\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Enter' && inputValue.trim()) {\n e.preventDefault();\n const newTags = [...tags, inputValue.trim()];\n setTags(newTags);\n setInputValue(\"\");\n onChange?.(newTags);\n } else if (e.key === 'Backspace' && inputValue === \"\" && tags.length > 0) {\n removeTag(tags.length - 1);\n }\n };\n\n return (\n <div className=\"input-with-tags-main-container\" data-automation-id={automationId}>\n {label && <div id={labelId} className=\"label-container\">{label}</div>}\n <div \n className={`input-with-tags-container ${error ? 'input-with-tags-error' : ''} ${className}`} \n onClick={() => inputRef.current?.focus()}\n >\n {tags.map((tag, index) => (\n <span key={index} className=\"tag-in-inputwithtags\" data-automation-id={`input-tag-${index}`}>\n {tag} \n <Icon\n name=\"close\"\n className=\"close-icon-in-inputwithtags\"\n ariaLabel={`Remove tag ${tag}`}\n onClick={() => removeTag(index)}\n shouldStopPropagation\n />\n </span>\n ))}\n <input\n className=\"input-with-tags-input\"\n ref={inputRef}\n type=\"text\"\n value={inputValue}\n onChange={(e) => setInputValue(e.target.value)}\n onKeyDown={handleKeyDown}\n placeholder={placeholder}\n data-automation-id=\"input-with-tags-input-field\"\n {...inputA11yProps}\n />\n </div>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n </div>\n );\n}"],"names":["InputWithTags","value","onChange","placeholder","className","error","errorMessage","label","ariaLabel","ariaLabelledBy","automationId","tags","setTags","useState","inputValue","setInputValue","inputRef","useRef","labelId","useStableId","undefined","inputA11yProps","getA11yNameAttributes","internalLabelId","removeTag","indexToRemove","newTags","filter","_","i","handleKeyDown","e","key","trim","preventDefault","length","React","createElement","id","onClick","current","focus","map","tag","index","Icon","name","shouldStopPropagation","_extends","ref","type","target","onKeyDown"],"mappings":";;;;;;;;;;;;;;;AAmBO,SAASA,EAAc;AAAA,EAC1BC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,WAAAA;A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