gwan-design-system 0.1.14 → 0.1.16

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 (165) hide show
  1. package/dist/index.js +10 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +10 -2
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -2
  6. package/src/app/components-library/page.tsx +0 -8
  7. package/src/app/favicon.ico +0 -0
  8. package/src/app/globals.css +0 -116
  9. package/src/app/layout.tsx +0 -38
  10. package/src/app/page.tsx +0 -5
  11. package/src/components/avatar/index.tsx +0 -133
  12. package/src/components/banner/index.tsx +0 -62
  13. package/src/components/button/index.tsx +0 -63
  14. package/src/components/carousel/index.tsx +0 -63
  15. package/src/components/checkbox/index.tsx +0 -62
  16. package/src/components/chip/index.tsx +0 -26
  17. package/src/components/ellipsis/index.tsx +0 -38
  18. package/src/components/fileUploader/index.tsx +0 -58
  19. package/src/components/filterDropdown/index.tsx +0 -48
  20. package/src/components/icons/NewTabSVGG/index.tsx +0 -14
  21. package/src/components/icons/alienFaceSVG/index.tsx +0 -14
  22. package/src/components/icons/alienUserSVG/index.tsx +0 -14
  23. package/src/components/icons/arrowLeftSVG/index.tsx +0 -16
  24. package/src/components/icons/arrowRightSVG/index.tsx +0 -16
  25. package/src/components/icons/astronautSVG/index.tsx +0 -14
  26. package/src/components/icons/balanceSVG/index.tsx +0 -14
  27. package/src/components/icons/balloonsSVG/index.tsx +0 -14
  28. package/src/components/icons/basketSVG/index.tsx +0 -14
  29. package/src/components/icons/batSVG/index.tsx +0 -14
  30. package/src/components/icons/batterySVG/index.tsx +0 -14
  31. package/src/components/icons/beeSVG/index.tsx +0 -14
  32. package/src/components/icons/binocularSVG/index.tsx +0 -14
  33. package/src/components/icons/birdSVG/index.tsx +0 -14
  34. package/src/components/icons/boxFilledSVG/index.tsx +0 -14
  35. package/src/components/icons/brainSVG/index.tsx +0 -14
  36. package/src/components/icons/brightHighSVG/index.tsx +0 -14
  37. package/src/components/icons/brightLowSVG/index.tsx +0 -14
  38. package/src/components/icons/bucketSVG/index.tsx +0 -14
  39. package/src/components/icons/cabinSVG/index.tsx +0 -14
  40. package/src/components/icons/cakeSVG/index.tsx +0 -14
  41. package/src/components/icons/chartSVG/index.tsx +0 -14
  42. package/src/components/icons/checkSVG/index.tsx +0 -21
  43. package/src/components/icons/chevDownSVG/index.tsx +0 -16
  44. package/src/components/icons/chevLeftSVG/index.tsx +0 -16
  45. package/src/components/icons/chevRightSVG/index.tsx +0 -16
  46. package/src/components/icons/chevUpSVG/index.tsx +0 -16
  47. package/src/components/icons/circleSVG/index.tsx +0 -16
  48. package/src/components/icons/citySVG/index.tsx +0 -14
  49. package/src/components/icons/clockSVG/index.tsx +0 -14
  50. package/src/components/icons/cocktailSVG/index.tsx +0 -14
  51. package/src/components/icons/codeSVG/index.tsx +0 -14
  52. package/src/components/icons/coinSVG/index.tsx +0 -14
  53. package/src/components/icons/coinsSVG/index.tsx +0 -14
  54. package/src/components/icons/colorsSVG/index.tsx +0 -23
  55. package/src/components/icons/connectionSVG/index.tsx +0 -14
  56. package/src/components/icons/coversSVG/index.tsx +0 -23
  57. package/src/components/icons/cowSVG/index.tsx +0 -14
  58. package/src/components/icons/crabSVG/index.tsx +0 -14
  59. package/src/components/icons/crossSVG/index.tsx +0 -18
  60. package/src/components/icons/csvSVG/index.tsx +0 -14
  61. package/src/components/icons/dashboardSVG/index.tsx +0 -16
  62. package/src/components/icons/diceSVG/index.tsx +0 -14
  63. package/src/components/icons/dolphinSVG/index.tsx +0 -14
  64. package/src/components/icons/doorOpenSVG/index.tsx +0 -14
  65. package/src/components/icons/dotFillSVG/index.tsx +0 -16
  66. package/src/components/icons/downFolderSVG/index.tsx +0 -14
  67. package/src/components/icons/downloadSVG/index.tsx +0 -14
  68. package/src/components/icons/eclipseSVG/index.tsx +0 -23
  69. package/src/components/icons/editSVG/index.tsx +0 -14
  70. package/src/components/icons/elephantSVG/index.tsx +0 -14
  71. package/src/components/icons/fenceSVG/index.tsx +0 -14
  72. package/src/components/icons/filterSVG/index.tsx +0 -23
  73. package/src/components/icons/filtersSVG/index.tsx +0 -14
  74. package/src/components/icons/foxSVG/index.tsx +0 -14
  75. package/src/components/icons/ghostSVG/index.tsx +0 -14
  76. package/src/components/icons/helicopterSVG/index.tsx +0 -14
  77. package/src/components/icons/hospitalSVG/index.tsx +0 -14
  78. package/src/components/icons/imageSVG/index.tsx +0 -14
  79. package/src/components/icons/index.tsx +0 -107
  80. package/src/components/icons/joystickSVG/index.tsx +0 -14
  81. package/src/components/icons/lightSVG/index.tsx +0 -14
  82. package/src/components/icons/lionSVG/index.tsx +0 -14
  83. package/src/components/icons/lobsterSVG/index.tsx +0 -14
  84. package/src/components/icons/lockSVG/index.tsx +0 -14
  85. package/src/components/icons/masksSVG/index.tsx +0 -14
  86. package/src/components/icons/mobileSVG/index.tsx +0 -20
  87. package/src/components/icons/moneyBagSVG/index.tsx +0 -14
  88. package/src/components/icons/moneySVG/index.tsx +0 -14
  89. package/src/components/icons/monkeySVG/index.tsx +0 -14
  90. package/src/components/icons/orderInfoSVG/index.tsx +0 -23
  91. package/src/components/icons/ordersSVG/index.tsx +0 -23
  92. package/src/components/icons/pdfSVG/index.tsx +0 -14
  93. package/src/components/icons/percentageSVG/index.tsx +0 -14
  94. package/src/components/icons/pinSVG/index.tsx +0 -14
  95. package/src/components/icons/planeSVG/index.tsx +0 -14
  96. package/src/components/icons/printerSVG/index.tsx +0 -14
  97. package/src/components/icons/productsSVG/index.tsx +0 -23
  98. package/src/components/icons/radioSVG/index.tsx +0 -14
  99. package/src/components/icons/robotSVG/index.tsx +0 -14
  100. package/src/components/icons/rocketSVG/index.tsx +0 -14
  101. package/src/components/icons/sheepSVG/index.tsx +0 -14
  102. package/src/components/icons/shuttleSVG/index.tsx +0 -14
  103. package/src/components/icons/signInSVG/index.tsx +0 -16
  104. package/src/components/icons/signOutSVG/index.tsx +0 -23
  105. package/src/components/icons/signalSVG/index.tsx +0 -14
  106. package/src/components/icons/sirenSVG/index.tsx +0 -14
  107. package/src/components/icons/snakeSVG/index.tsx +0 -14
  108. package/src/components/icons/sortSVG/index.tsx +0 -14
  109. package/src/components/icons/squareFillSVG/index.tsx +0 -16
  110. package/src/components/icons/starsSVG/index.tsx +0 -26
  111. package/src/components/icons/stepsSVG/index.tsx +0 -14
  112. package/src/components/icons/storeSVG/index.tsx +0 -14
  113. package/src/components/icons/suitcaseSVG/index.tsx +0 -14
  114. package/src/components/icons/tagsSVG/index.tsx +0 -14
  115. package/src/components/icons/templatesSVG/index.tsx +0 -23
  116. package/src/components/icons/terminalSVG/index.tsx +0 -14
  117. package/src/components/icons/toDoSVG/index.tsx +0 -14
  118. package/src/components/icons/turtleSVG/index.tsx +0 -14
  119. package/src/components/icons/ufoSVG/index.tsx +0 -14
  120. package/src/components/icons/unlockSVG/index.tsx +0 -14
  121. package/src/components/icons/upFolderSVG/index.tsx +0 -14
  122. package/src/components/icons/uploadSVG/index.tsx +0 -23
  123. package/src/components/icons/vanSVG/index.tsx +0 -14
  124. package/src/components/icons/videoCamSVG/index.tsx +0 -14
  125. package/src/components/icons/walletSVG/index.tsx +0 -14
  126. package/src/components/icons/whaleSVG/index.tsx +0 -14
  127. package/src/components/icons/wifiSVG/index.tsx +0 -14
  128. package/src/components/input/index.tsx +0 -63
  129. package/src/components/modal/index.tsx +0 -58
  130. package/src/components/navBar/index.tsx +0 -284
  131. package/src/components/pagination/index.tsx +0 -79
  132. package/src/components/radioButton/index.tsx +0 -57
  133. package/src/components/selectDropdown/index.tsx +0 -110
  134. package/src/components/snackBar/index.tsx +0 -50
  135. package/src/components/state/index.tsx +0 -74
  136. package/src/components/table/index.tsx +0 -58
  137. package/src/components/tag/index.tsx +0 -44
  138. package/src/components/textarea/index.tsx +0 -67
  139. package/src/components/timeLine/index.tsx +0 -101
  140. package/src/components/tooltip/index.tsx +0 -74
  141. package/src/index.ts +0 -63
  142. package/src/templates/component-library/avatars/index.tsx +0 -49
  143. package/src/templates/component-library/banners/index.tsx +0 -35
  144. package/src/templates/component-library/buttons/index.tsx +0 -122
  145. package/src/templates/component-library/carousels/index.tsx +0 -38
  146. package/src/templates/component-library/checkboxes/index.tsx +0 -19
  147. package/src/templates/component-library/chips/index.tsx +0 -49
  148. package/src/templates/component-library/ellipsis/index.tsx +0 -20
  149. package/src/templates/component-library/fileUploaders/index.tsx +0 -21
  150. package/src/templates/component-library/filterDropdown/index.tsx +0 -48
  151. package/src/templates/component-library/icons/index.tsx +0 -23
  152. package/src/templates/component-library/index.tsx +0 -184
  153. package/src/templates/component-library/input/index.tsx +0 -42
  154. package/src/templates/component-library/modals/index.tsx +0 -113
  155. package/src/templates/component-library/navBars/index.tsx +0 -110
  156. package/src/templates/component-library/pagination/index.tsx +0 -28
  157. package/src/templates/component-library/radioButtons/index.tsx +0 -33
  158. package/src/templates/component-library/selectDropdown/index.tsx +0 -90
  159. package/src/templates/component-library/snackBars/index.tsx +0 -34
  160. package/src/templates/component-library/states/index.tsx +0 -24
  161. package/src/templates/component-library/tables/index.tsx +0 -149
  162. package/src/templates/component-library/tags/index.tsx +0 -15
  163. package/src/templates/component-library/textarea/index.tsx +0 -42
  164. package/src/templates/component-library/timeLines/index.tsx +0 -109
  165. package/src/templates/component-library/tooltips/index.tsx +0 -61
package/dist/index.js CHANGED
@@ -2335,23 +2335,31 @@ var Modal = ({
2335
2335
  var _a;
2336
2336
  (_a = modalRef.current) == null ? void 0 : _a.focus();
2337
2337
  }, []);
2338
+ (0, import_react7.useEffect)(() => {
2339
+ const handler = (e) => {
2340
+ if (e.key === "Escape") onClear();
2341
+ };
2342
+ window.addEventListener("keydown", handler);
2343
+ return () => window.removeEventListener("keydown", handler);
2344
+ }, [onClear]);
2338
2345
  return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
2339
2346
  "div",
2340
2347
  {
2341
2348
  className: `fixed inset-0 flex items-center justify-center bg-[rgba(0,0,0,0.3)] ${className}`,
2349
+ onMouseDown: onClear,
2342
2350
  children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
2343
2351
  "div",
2344
2352
  {
2345
2353
  ref: modalRef,
2346
2354
  tabIndex: -1,
2347
2355
  className: `bg-white p-4 ${size !== "w-full h-full" /* FULL */ && "rounded-lg"} absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex flex-col gap-4 ${size}`,
2348
- onBlur: () => onClear(),
2356
+ onMouseDown: (e) => e.stopPropagation(),
2349
2357
  children: [
2350
2358
  /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-row gap-4 items-center", children: [
2351
2359
  /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex-1 text-3xl", children: title }),
2352
2360
  /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "size-4 cursor-pointer", onClick: () => onClear(), children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Cross, {}) })
2353
2361
  ] }),
2354
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex-1 flex justify-center items-center", children })
2362
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex-1", children })
2355
2363
  ]
2356
2364
  }
2357
2365
  )