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.
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/src/app/components-library/page.tsx +0 -8
- package/src/app/favicon.ico +0 -0
- package/src/app/globals.css +0 -116
- package/src/app/layout.tsx +0 -38
- package/src/app/page.tsx +0 -5
- package/src/components/avatar/index.tsx +0 -133
- package/src/components/banner/index.tsx +0 -62
- package/src/components/button/index.tsx +0 -63
- package/src/components/carousel/index.tsx +0 -63
- package/src/components/checkbox/index.tsx +0 -62
- package/src/components/chip/index.tsx +0 -26
- package/src/components/ellipsis/index.tsx +0 -38
- package/src/components/fileUploader/index.tsx +0 -58
- package/src/components/filterDropdown/index.tsx +0 -48
- package/src/components/icons/NewTabSVGG/index.tsx +0 -14
- package/src/components/icons/alienFaceSVG/index.tsx +0 -14
- package/src/components/icons/alienUserSVG/index.tsx +0 -14
- package/src/components/icons/arrowLeftSVG/index.tsx +0 -16
- package/src/components/icons/arrowRightSVG/index.tsx +0 -16
- package/src/components/icons/astronautSVG/index.tsx +0 -14
- package/src/components/icons/balanceSVG/index.tsx +0 -14
- package/src/components/icons/balloonsSVG/index.tsx +0 -14
- package/src/components/icons/basketSVG/index.tsx +0 -14
- package/src/components/icons/batSVG/index.tsx +0 -14
- package/src/components/icons/batterySVG/index.tsx +0 -14
- package/src/components/icons/beeSVG/index.tsx +0 -14
- package/src/components/icons/binocularSVG/index.tsx +0 -14
- package/src/components/icons/birdSVG/index.tsx +0 -14
- package/src/components/icons/boxFilledSVG/index.tsx +0 -14
- package/src/components/icons/brainSVG/index.tsx +0 -14
- package/src/components/icons/brightHighSVG/index.tsx +0 -14
- package/src/components/icons/brightLowSVG/index.tsx +0 -14
- package/src/components/icons/bucketSVG/index.tsx +0 -14
- package/src/components/icons/cabinSVG/index.tsx +0 -14
- package/src/components/icons/cakeSVG/index.tsx +0 -14
- package/src/components/icons/chartSVG/index.tsx +0 -14
- package/src/components/icons/checkSVG/index.tsx +0 -21
- package/src/components/icons/chevDownSVG/index.tsx +0 -16
- package/src/components/icons/chevLeftSVG/index.tsx +0 -16
- package/src/components/icons/chevRightSVG/index.tsx +0 -16
- package/src/components/icons/chevUpSVG/index.tsx +0 -16
- package/src/components/icons/circleSVG/index.tsx +0 -16
- package/src/components/icons/citySVG/index.tsx +0 -14
- package/src/components/icons/clockSVG/index.tsx +0 -14
- package/src/components/icons/cocktailSVG/index.tsx +0 -14
- package/src/components/icons/codeSVG/index.tsx +0 -14
- package/src/components/icons/coinSVG/index.tsx +0 -14
- package/src/components/icons/coinsSVG/index.tsx +0 -14
- package/src/components/icons/colorsSVG/index.tsx +0 -23
- package/src/components/icons/connectionSVG/index.tsx +0 -14
- package/src/components/icons/coversSVG/index.tsx +0 -23
- package/src/components/icons/cowSVG/index.tsx +0 -14
- package/src/components/icons/crabSVG/index.tsx +0 -14
- package/src/components/icons/crossSVG/index.tsx +0 -18
- package/src/components/icons/csvSVG/index.tsx +0 -14
- package/src/components/icons/dashboardSVG/index.tsx +0 -16
- package/src/components/icons/diceSVG/index.tsx +0 -14
- package/src/components/icons/dolphinSVG/index.tsx +0 -14
- package/src/components/icons/doorOpenSVG/index.tsx +0 -14
- package/src/components/icons/dotFillSVG/index.tsx +0 -16
- package/src/components/icons/downFolderSVG/index.tsx +0 -14
- package/src/components/icons/downloadSVG/index.tsx +0 -14
- package/src/components/icons/eclipseSVG/index.tsx +0 -23
- package/src/components/icons/editSVG/index.tsx +0 -14
- package/src/components/icons/elephantSVG/index.tsx +0 -14
- package/src/components/icons/fenceSVG/index.tsx +0 -14
- package/src/components/icons/filterSVG/index.tsx +0 -23
- package/src/components/icons/filtersSVG/index.tsx +0 -14
- package/src/components/icons/foxSVG/index.tsx +0 -14
- package/src/components/icons/ghostSVG/index.tsx +0 -14
- package/src/components/icons/helicopterSVG/index.tsx +0 -14
- package/src/components/icons/hospitalSVG/index.tsx +0 -14
- package/src/components/icons/imageSVG/index.tsx +0 -14
- package/src/components/icons/index.tsx +0 -107
- package/src/components/icons/joystickSVG/index.tsx +0 -14
- package/src/components/icons/lightSVG/index.tsx +0 -14
- package/src/components/icons/lionSVG/index.tsx +0 -14
- package/src/components/icons/lobsterSVG/index.tsx +0 -14
- package/src/components/icons/lockSVG/index.tsx +0 -14
- package/src/components/icons/masksSVG/index.tsx +0 -14
- package/src/components/icons/mobileSVG/index.tsx +0 -20
- package/src/components/icons/moneyBagSVG/index.tsx +0 -14
- package/src/components/icons/moneySVG/index.tsx +0 -14
- package/src/components/icons/monkeySVG/index.tsx +0 -14
- package/src/components/icons/orderInfoSVG/index.tsx +0 -23
- package/src/components/icons/ordersSVG/index.tsx +0 -23
- package/src/components/icons/pdfSVG/index.tsx +0 -14
- package/src/components/icons/percentageSVG/index.tsx +0 -14
- package/src/components/icons/pinSVG/index.tsx +0 -14
- package/src/components/icons/planeSVG/index.tsx +0 -14
- package/src/components/icons/printerSVG/index.tsx +0 -14
- package/src/components/icons/productsSVG/index.tsx +0 -23
- package/src/components/icons/radioSVG/index.tsx +0 -14
- package/src/components/icons/robotSVG/index.tsx +0 -14
- package/src/components/icons/rocketSVG/index.tsx +0 -14
- package/src/components/icons/sheepSVG/index.tsx +0 -14
- package/src/components/icons/shuttleSVG/index.tsx +0 -14
- package/src/components/icons/signInSVG/index.tsx +0 -16
- package/src/components/icons/signOutSVG/index.tsx +0 -23
- package/src/components/icons/signalSVG/index.tsx +0 -14
- package/src/components/icons/sirenSVG/index.tsx +0 -14
- package/src/components/icons/snakeSVG/index.tsx +0 -14
- package/src/components/icons/sortSVG/index.tsx +0 -14
- package/src/components/icons/squareFillSVG/index.tsx +0 -16
- package/src/components/icons/starsSVG/index.tsx +0 -26
- package/src/components/icons/stepsSVG/index.tsx +0 -14
- package/src/components/icons/storeSVG/index.tsx +0 -14
- package/src/components/icons/suitcaseSVG/index.tsx +0 -14
- package/src/components/icons/tagsSVG/index.tsx +0 -14
- package/src/components/icons/templatesSVG/index.tsx +0 -23
- package/src/components/icons/terminalSVG/index.tsx +0 -14
- package/src/components/icons/toDoSVG/index.tsx +0 -14
- package/src/components/icons/turtleSVG/index.tsx +0 -14
- package/src/components/icons/ufoSVG/index.tsx +0 -14
- package/src/components/icons/unlockSVG/index.tsx +0 -14
- package/src/components/icons/upFolderSVG/index.tsx +0 -14
- package/src/components/icons/uploadSVG/index.tsx +0 -23
- package/src/components/icons/vanSVG/index.tsx +0 -14
- package/src/components/icons/videoCamSVG/index.tsx +0 -14
- package/src/components/icons/walletSVG/index.tsx +0 -14
- package/src/components/icons/whaleSVG/index.tsx +0 -14
- package/src/components/icons/wifiSVG/index.tsx +0 -14
- package/src/components/input/index.tsx +0 -63
- package/src/components/modal/index.tsx +0 -58
- package/src/components/navBar/index.tsx +0 -284
- package/src/components/pagination/index.tsx +0 -79
- package/src/components/radioButton/index.tsx +0 -57
- package/src/components/selectDropdown/index.tsx +0 -110
- package/src/components/snackBar/index.tsx +0 -50
- package/src/components/state/index.tsx +0 -74
- package/src/components/table/index.tsx +0 -58
- package/src/components/tag/index.tsx +0 -44
- package/src/components/textarea/index.tsx +0 -67
- package/src/components/timeLine/index.tsx +0 -101
- package/src/components/tooltip/index.tsx +0 -74
- package/src/index.ts +0 -63
- package/src/templates/component-library/avatars/index.tsx +0 -49
- package/src/templates/component-library/banners/index.tsx +0 -35
- package/src/templates/component-library/buttons/index.tsx +0 -122
- package/src/templates/component-library/carousels/index.tsx +0 -38
- package/src/templates/component-library/checkboxes/index.tsx +0 -19
- package/src/templates/component-library/chips/index.tsx +0 -49
- package/src/templates/component-library/ellipsis/index.tsx +0 -20
- package/src/templates/component-library/fileUploaders/index.tsx +0 -21
- package/src/templates/component-library/filterDropdown/index.tsx +0 -48
- package/src/templates/component-library/icons/index.tsx +0 -23
- package/src/templates/component-library/index.tsx +0 -184
- package/src/templates/component-library/input/index.tsx +0 -42
- package/src/templates/component-library/modals/index.tsx +0 -113
- package/src/templates/component-library/navBars/index.tsx +0 -110
- package/src/templates/component-library/pagination/index.tsx +0 -28
- package/src/templates/component-library/radioButtons/index.tsx +0 -33
- package/src/templates/component-library/selectDropdown/index.tsx +0 -90
- package/src/templates/component-library/snackBars/index.tsx +0 -34
- package/src/templates/component-library/states/index.tsx +0 -24
- package/src/templates/component-library/tables/index.tsx +0 -149
- package/src/templates/component-library/tags/index.tsx +0 -15
- package/src/templates/component-library/textarea/index.tsx +0 -42
- package/src/templates/component-library/timeLines/index.tsx +0 -109
- 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
|
-
|
|
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
|
|
2362
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex-1", children })
|
|
2355
2363
|
]
|
|
2356
2364
|
}
|
|
2357
2365
|
)
|