@pnkx-lib/ui 1.5.5 → 1.5.7
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/es/chunks/{Image-CFyQxi2B.js → ConfirmModal-fbJXEktP.js} +349 -2
- package/es/chunks/ConfirmModal-fbJXEktP.js.map +1 -0
- package/es/chunks/{useMessage-CI2AYP0q.js → useMessage-D_-VT5B4.js} +4 -4
- package/es/chunks/useMessage-D_-VT5B4.js.map +1 -0
- package/es/hooks/index.js +1 -1
- package/es/index.js +2 -2
- package/es/ui/index.js +1 -1
- package/package.json +2 -2
- package/types/hooks.d.ts +37 -0
- package/types/index.d.ts +185 -7
- package/types/ui.d.ts +150 -7
- package/es/chunks/Image-CFyQxi2B.js.map +0 -1
- package/es/chunks/useMessage-CI2AYP0q.js.map +0 -1
@@ -12231,5 +12231,352 @@ const Image = (props) => {
|
|
12231
12231
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Image$1, { ...props });
|
12232
12232
|
};
|
12233
12233
|
|
12234
|
-
|
12235
|
-
|
12234
|
+
const BulkAction = ({
|
12235
|
+
quantity,
|
12236
|
+
handleRefresh,
|
12237
|
+
handleSend,
|
12238
|
+
handleSlash,
|
12239
|
+
handleProhibit,
|
12240
|
+
handleCheck,
|
12241
|
+
handleClose,
|
12242
|
+
handleDelete,
|
12243
|
+
handleUnLock,
|
12244
|
+
handleLock
|
12245
|
+
}) => {
|
12246
|
+
//! State
|
12247
|
+
const listIcon = [
|
12248
|
+
{
|
12249
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12250
|
+
"svg",
|
12251
|
+
{
|
12252
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12253
|
+
width: "22",
|
12254
|
+
height: "22",
|
12255
|
+
viewBox: "0 0 22 22",
|
12256
|
+
fill: "none",
|
12257
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12258
|
+
"path",
|
12259
|
+
{
|
12260
|
+
d: "M3.40522 6.61147C4.93019 3.98798 7.78047 2.2229 11.045 2.2229C14.7464 2.2229 17.9152 4.49198 19.2236 7.70862M6.08392 7.70862H1.67407V3.32004M18.5944 15.3886C17.0694 18.0121 14.2191 19.7772 10.9546 19.7772C7.25319 19.7772 4.08434 17.5081 2.77597 14.2915M15.9157 14.2915H20.3255V18.68",
|
12261
|
+
stroke: "white",
|
12262
|
+
"stroke-width": "1.5",
|
12263
|
+
"stroke-linecap": "round",
|
12264
|
+
"stroke-linejoin": "round"
|
12265
|
+
}
|
12266
|
+
)
|
12267
|
+
}
|
12268
|
+
),
|
12269
|
+
action: handleRefresh
|
12270
|
+
},
|
12271
|
+
{
|
12272
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12273
|
+
"svg",
|
12274
|
+
{
|
12275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12276
|
+
width: "22",
|
12277
|
+
height: "22",
|
12278
|
+
viewBox: "0 0 22 22",
|
12279
|
+
fill: "none",
|
12280
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12281
|
+
"path",
|
12282
|
+
{
|
12283
|
+
d: "M6.44067 10.9999L10.8908 10.9999M6.30553 10.4786L2.91164 4.37135C2.39887 3.44865 3.38626 2.4177 4.33064 2.88975L18.6348 10.0397C19.4263 10.4353 19.4263 11.5645 18.6348 11.9602L4.33063 19.1101C3.38626 19.5822 2.39887 18.5512 2.91163 17.6285L6.30553 11.5213C6.48572 11.1971 6.48572 10.8028 6.30553 10.4786Z",
|
12284
|
+
stroke: "white",
|
12285
|
+
"stroke-width": "1.71429",
|
12286
|
+
"stroke-linecap": "round"
|
12287
|
+
}
|
12288
|
+
)
|
12289
|
+
}
|
12290
|
+
),
|
12291
|
+
action: handleSend
|
12292
|
+
},
|
12293
|
+
{
|
12294
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12295
|
+
"svg",
|
12296
|
+
{
|
12297
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12298
|
+
width: "22",
|
12299
|
+
height: "22",
|
12300
|
+
viewBox: "0 0 22 22",
|
12301
|
+
fill: "none",
|
12302
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12303
|
+
"path",
|
12304
|
+
{
|
12305
|
+
d: "M12.8286 7.34289L9.17146 14.6572M20.1429 11C20.1429 16.0495 16.0495 20.1429 11 20.1429C5.95057 20.1429 1.85718 16.0495 1.85718 11C1.85718 5.95057 5.95057 1.85718 11 1.85718C16.0495 1.85718 20.1429 5.95057 20.1429 11Z",
|
12306
|
+
stroke: "white",
|
12307
|
+
"stroke-width": "1.5",
|
12308
|
+
"stroke-linecap": "round"
|
12309
|
+
}
|
12310
|
+
)
|
12311
|
+
}
|
12312
|
+
),
|
12313
|
+
action: handleSlash
|
12314
|
+
},
|
12315
|
+
{
|
12316
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
12317
|
+
"svg",
|
12318
|
+
{
|
12319
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12320
|
+
width: "22",
|
12321
|
+
height: "22",
|
12322
|
+
viewBox: "0 0 22 22",
|
12323
|
+
fill: "none",
|
12324
|
+
children: [
|
12325
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("mask", { id: "path-1-inside-1_2166_37966", fill: "white", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M11 2.08582C9.2369 2.08582 7.51342 2.60863 6.04747 3.58814C4.58152 4.56766 3.43896 5.95988 2.76426 7.58875C2.08956 9.21762 1.91302 11.01 2.25698 12.7392C2.60094 14.4684 3.44995 16.0568 4.69663 17.3035C5.94332 18.5501 7.53169 19.3991 9.26089 19.7431C10.9901 20.0871 12.7825 19.9105 14.4113 19.2358C16.0402 18.5611 17.4324 17.4186 18.4119 15.9526C19.3915 14.4867 19.9143 12.7632 19.9143 11.0001C19.9118 8.63665 18.9718 6.37072 17.3006 4.69951C15.6294 3.02829 13.3634 2.08831 11 2.08582ZM18.5428 11.0001C18.5446 12.7637 17.9252 14.4716 16.7934 15.8241L6.17598 5.20582C7.27741 4.28951 8.61703 3.70585 10.0381 3.52314C11.4591 3.34043 12.9028 3.56622 14.2002 4.17409C15.4976 4.78197 16.5951 5.74678 17.3641 6.95563C18.1332 8.16448 18.542 9.56736 18.5428 11.0001ZM3.45713 11.0001C3.45537 9.2365 4.07474 7.52861 5.20655 6.1761L15.824 16.7944C14.7226 17.7107 13.3829 18.2943 11.9619 18.4771C10.5408 18.6598 9.09715 18.434 7.79975 17.8261C6.50235 17.2182 5.40491 16.2534 4.63586 15.0446C3.8668 13.8357 3.45794 12.4328 3.45713 11.0001Z" }) }),
|
12326
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
12327
|
+
"path",
|
12328
|
+
{
|
12329
|
+
d: "M11 2.08582C9.2369 2.08582 7.51342 2.60863 6.04747 3.58814C4.58152 4.56766 3.43896 5.95988 2.76426 7.58875C2.08956 9.21762 1.91302 11.01 2.25698 12.7392C2.60094 14.4684 3.44995 16.0568 4.69663 17.3035C5.94332 18.5501 7.53169 19.3991 9.26089 19.7431C10.9901 20.0871 12.7825 19.9105 14.4113 19.2358C16.0402 18.5611 17.4324 17.4186 18.4119 15.9526C19.3915 14.4867 19.9143 12.7632 19.9143 11.0001C19.9118 8.63665 18.9718 6.37072 17.3006 4.69951C15.6294 3.02829 13.3634 2.08831 11 2.08582ZM18.5428 11.0001C18.5446 12.7637 17.9252 14.4716 16.7934 15.8241L6.17598 5.20582C7.27741 4.28951 8.61703 3.70585 10.0381 3.52314C11.4591 3.34043 12.9028 3.56622 14.2002 4.17409C15.4976 4.78197 16.5951 5.74678 17.3641 6.95563C18.1332 8.16448 18.542 9.56736 18.5428 11.0001ZM3.45713 11.0001C3.45537 9.2365 4.07474 7.52861 5.20655 6.1761L15.824 16.7944C14.7226 17.7107 13.3829 18.2943 11.9619 18.4771C10.5408 18.6598 9.09715 18.434 7.79975 17.8261C6.50235 17.2182 5.40491 16.2534 4.63586 15.0446C3.8668 13.8357 3.45794 12.4328 3.45713 11.0001Z",
|
12330
|
+
fill: "white"
|
12331
|
+
}
|
12332
|
+
),
|
12333
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
12334
|
+
"path",
|
12335
|
+
{
|
12336
|
+
d: "M11 2.08582L11.0018 0.37153H11V2.08582ZM19.9143 11.0001H21.6286L21.6286 10.9983L19.9143 11.0001ZM18.5428 11.0001L16.8286 11.0011L16.8286 11.0018L18.5428 11.0001ZM16.7934 15.8241L15.5812 17.0362L16.9058 18.361L18.1081 16.9243L16.7934 15.8241ZM6.17598 5.20582L5.07962 3.88795L3.63537 5.08946L4.96375 6.41795L6.17598 5.20582ZM3.45713 11.0001L5.17141 10.9991L5.17141 10.9984L3.45713 11.0001ZM5.20655 6.1761L6.41879 4.96397L5.09415 3.63922L3.89187 5.07593L5.20655 6.1761ZM15.824 16.7944L16.9203 18.1122L18.3646 16.9107L17.0362 15.5823L15.824 16.7944ZM11 2.08582V0.37153C8.89785 0.37153 6.84293 0.994885 5.09507 2.16277L6.04747 3.58814L6.99988 5.01352C8.18391 4.22237 9.57596 3.8001 11 3.8001V2.08582ZM6.04747 3.58814L5.09507 2.16277C3.34721 3.33065 1.98492 4.9906 1.18046 6.93272L2.76426 7.58875L4.34805 8.24478C4.893 6.92915 5.81584 5.80467 6.99988 5.01352L6.04747 3.58814ZM2.76426 7.58875L1.18046 6.93272C0.376012 8.87484 0.165531 11.0119 0.575637 13.0736L2.25698 12.7392L3.93833 12.4047C3.66052 11.0081 3.8031 9.56041 4.34805 8.24478L2.76426 7.58875ZM2.25698 12.7392L0.575637 13.0736C0.985743 15.1354 1.99802 17.0292 3.48445 18.5156L4.69663 17.3035L5.90881 16.0913C4.90188 15.0843 4.21614 13.8014 3.93833 12.4047L2.25698 12.7392ZM4.69663 17.3035L3.48445 18.5156C4.97088 20.0021 6.86471 21.0143 8.92645 21.4244L9.26089 19.7431L9.59533 18.0618C8.19867 17.7839 6.91575 17.0982 5.90881 16.0913L4.69663 17.3035ZM9.26089 19.7431L8.92645 21.4244C10.9882 21.8346 13.1252 21.6241 15.0674 20.8196L14.4113 19.2358L13.7553 17.652C12.4397 18.197 10.992 18.3396 9.59533 18.0618L9.26089 19.7431ZM14.4113 19.2358L15.0674 20.8196C17.0095 20.0152 18.6694 18.6529 19.8373 16.905L18.4119 15.9526L16.9866 15.0002C16.1954 16.1842 15.0709 17.1071 13.7553 17.652L14.4113 19.2358ZM18.4119 15.9526L19.8373 16.905C21.0052 15.1572 21.6286 13.1022 21.6286 11.0001H19.9143H18.2C18.2 12.4241 17.7777 13.8162 16.9866 15.0002L18.4119 15.9526ZM19.9143 11.0001L21.6286 10.9983C21.6256 8.18081 20.505 5.47958 18.5128 3.48732L17.3006 4.69951L16.0884 5.91169C17.4386 7.26185 18.198 9.09249 18.2 11.0019L19.9143 11.0001ZM17.3006 4.69951L18.5128 3.48732C16.5205 1.49506 13.8193 0.374506 11.0018 0.371531L11 2.08582L10.9982 3.8001C12.9076 3.80212 14.7382 4.56152 16.0884 5.91169L17.3006 4.69951ZM18.5428 11.0001L16.8286 11.0018C16.8299 12.3626 16.352 13.6804 15.4787 14.7239L16.7934 15.8241L18.1081 16.9243C19.4984 15.2628 20.2593 13.1648 20.2571 10.9984L18.5428 11.0001ZM16.7934 15.8241L18.0056 14.612L7.38822 3.99368L6.17598 5.20582L4.96375 6.41795L15.5812 17.0362L16.7934 15.8241ZM6.17598 5.20582L7.27235 6.52368C8.12345 5.81562 9.15861 5.36461 10.2567 5.22343L10.0381 3.52314L9.81946 1.82285C8.07545 2.04709 6.43137 2.7634 5.07962 3.88795L6.17598 5.20582ZM10.0381 3.52314L10.2567 5.22343C11.3548 5.08224 12.4704 5.25672 13.4729 5.72644L14.2002 4.17409L14.9275 2.62175C13.3353 1.87572 11.5635 1.59861 9.81946 1.82285L10.0381 3.52314ZM14.2002 4.17409L13.4729 5.72644C14.4754 6.19616 15.3234 6.9417 15.9177 7.87581L17.3641 6.95563L18.8105 6.03545C17.8667 4.55187 16.5198 3.36778 14.9275 2.62175L14.2002 4.17409ZM17.3641 6.95563L15.9177 7.87581C16.512 8.80992 16.8279 9.89396 16.8286 11.0011L18.5428 11.0001L20.2571 10.9991C20.2561 9.24075 19.7543 7.51904 18.8105 6.03545L17.3641 6.95563ZM3.45713 11.0001L5.17141 10.9984C5.17006 9.63763 5.64795 8.31984 6.52124 7.27627L5.20655 6.1761L3.89187 5.07593C2.50153 6.73738 1.74069 8.83537 1.74284 11.0018L3.45713 11.0001ZM5.20655 6.1761L3.99432 7.38823L14.6118 18.0065L15.824 16.7944L17.0362 15.5823L6.41879 4.96397L5.20655 6.1761ZM15.824 16.7944L14.7276 15.4765C13.8765 16.1846 12.8414 16.6356 11.7433 16.7768L11.9619 18.4771L12.1805 20.1774C13.9245 19.9531 15.5686 19.2368 16.9203 18.1122L15.824 16.7944ZM11.9619 18.4771L11.7433 16.7768C10.6452 16.918 9.52961 16.7435 8.52708 16.2738L7.79975 17.8261L7.07243 19.3784C8.66469 20.1245 10.4365 20.4016 12.1805 20.1774L11.9619 18.4771ZM7.79975 17.8261L8.52708 16.2738C7.52454 15.804 6.67652 15.0585 6.08225 14.1244L4.63586 15.0446L3.18947 15.9647C4.13331 17.4483 5.48016 18.6324 7.07243 19.3784L7.79975 17.8261ZM4.63586 15.0446L6.08225 14.1244C5.48798 13.1903 5.17204 12.1062 5.17141 10.9991L3.45713 11.0001L1.74284 11.0011C1.74385 12.7594 2.24563 14.4812 3.18947 15.9647L4.63586 15.0446Z",
|
12337
|
+
fill: "white",
|
12338
|
+
mask: "url(#path-1-inside-1_2166_37966)"
|
12339
|
+
}
|
12340
|
+
)
|
12341
|
+
]
|
12342
|
+
}
|
12343
|
+
),
|
12344
|
+
action: handleProhibit
|
12345
|
+
},
|
12346
|
+
{
|
12347
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12348
|
+
"svg",
|
12349
|
+
{
|
12350
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12351
|
+
width: "22",
|
12352
|
+
height: "22",
|
12353
|
+
viewBox: "0 0 22 22",
|
12354
|
+
fill: "none",
|
12355
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12356
|
+
"path",
|
12357
|
+
{
|
12358
|
+
d: "M15.3306 6.42859L6.66306 15.3185C6.3342 15.6558 5.80102 15.6558 5.47217 15.3185L1.85718 11.6107M11.4754 15.3185L20.1429 6.42859",
|
12359
|
+
stroke: "white",
|
12360
|
+
"stroke-width": "1.71429",
|
12361
|
+
"stroke-linecap": "round"
|
12362
|
+
}
|
12363
|
+
)
|
12364
|
+
}
|
12365
|
+
),
|
12366
|
+
action: handleCheck
|
12367
|
+
},
|
12368
|
+
{
|
12369
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12370
|
+
"svg",
|
12371
|
+
{
|
12372
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12373
|
+
width: "22",
|
12374
|
+
height: "22",
|
12375
|
+
viewBox: "0 0 22 22",
|
12376
|
+
fill: "none",
|
12377
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12378
|
+
"path",
|
12379
|
+
{
|
12380
|
+
d: "M13.7429 8.25718L11 11M11 11L8.25718 13.7429M11 11L13.7429 13.7429M11 11L8.25718 8.25718M20.1429 11C20.1429 16.0495 16.0495 20.1429 11 20.1429C5.95057 20.1429 1.85718 16.0495 1.85718 11C1.85718 5.95057 5.95057 1.85718 11 1.85718C16.0495 1.85718 20.1429 5.95057 20.1429 11Z",
|
12381
|
+
stroke: "white",
|
12382
|
+
"stroke-width": "1.5",
|
12383
|
+
"stroke-linecap": "round"
|
12384
|
+
}
|
12385
|
+
)
|
12386
|
+
}
|
12387
|
+
),
|
12388
|
+
action: handleClose
|
12389
|
+
},
|
12390
|
+
{
|
12391
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12392
|
+
"svg",
|
12393
|
+
{
|
12394
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12395
|
+
width: "22",
|
12396
|
+
height: "22",
|
12397
|
+
viewBox: "0 0 22 22",
|
12398
|
+
fill: "none",
|
12399
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12400
|
+
"path",
|
12401
|
+
{
|
12402
|
+
d: "M17.3018 16.5184L18.0518 16.5251L17.3018 16.5184ZM3.68579 4.76432C3.27158 4.76432 2.93579 5.10011 2.93579 5.51432C2.93579 5.92853 3.27158 6.26432 3.68579 6.26432V4.76432ZM18.3144 6.26432C18.7286 6.26432 19.0644 5.92853 19.0644 5.51432C19.0644 5.10011 18.7286 4.76432 18.3144 4.76432V6.26432ZM9.9215 9.17146C9.9215 8.75725 9.58572 8.42146 9.1715 8.42146C8.75729 8.42146 8.4215 8.75725 8.4215 9.17146H9.9215ZM8.4215 16.4857C8.4215 16.9 8.75729 17.2357 9.1715 17.2357C9.58572 17.2357 9.9215 16.9 9.9215 16.4857H8.4215ZM13.5786 9.17146C13.5786 8.75725 13.2429 8.42146 12.8286 8.42146C12.4144 8.42146 12.0786 8.75725 12.0786 9.17146H13.5786ZM12.0786 16.4857C12.0786 16.9 12.4144 17.2357 12.8286 17.2357C13.2429 17.2357 13.5786 16.9 13.5786 16.4857H12.0786ZM17.4001 5.51432L16.6501 5.50762L16.5519 16.5117L17.3018 16.5184L18.0518 16.5251L18.15 5.52102L17.4001 5.51432ZM13.6448 20.1429V19.3929H8.25722V20.1429V20.8929H13.6448V20.1429ZM4.60008 5.51432H3.85008V16.4857H4.60008H5.35008V5.51432H4.60008ZM3.68579 5.51432V6.26432H4.60008V5.51432V4.76432H3.68579V5.51432ZM4.60008 5.51432V6.26432H7.34293V5.51432V4.76432H4.60008V5.51432ZM7.34293 5.51432V6.26432H14.6572V5.51432V4.76432H7.34293V5.51432ZM14.6572 5.51432V6.26432H17.4001V5.51432V4.76432H14.6572V5.51432ZM17.4001 5.51432V6.26432H18.3144V5.51432V4.76432H17.4001V5.51432ZM7.34293 5.10797H8.09293C8.09293 3.80743 9.30902 2.60718 11.0001 2.60718V1.85718V1.10718C8.65156 1.10718 6.59293 2.81779 6.59293 5.10797H7.34293ZM11.0001 1.85718V2.60718C12.6911 2.60718 13.9072 3.80743 13.9072 5.10797H14.6572H15.4072C15.4072 2.81779 13.3486 1.10718 11.0001 1.10718V1.85718ZM7.34293 5.10797H6.59293V5.51432H7.34293H8.09293V5.10797H7.34293ZM14.6572 5.10797H13.9072V5.51432H14.6572H15.4072V5.10797H14.6572ZM8.25722 20.1429V19.3929C6.65165 19.3929 5.35008 18.0913 5.35008 16.4857H4.60008H3.85008C3.85008 18.9197 5.82322 20.8929 8.25722 20.8929V20.1429ZM17.3018 16.5184L16.5519 16.5117C16.5376 18.1071 15.2403 19.3929 13.6448 19.3929V20.1429V20.8929C16.0635 20.8929 18.0302 18.9436 18.0518 16.5251L17.3018 16.5184ZM9.1715 9.17146H8.4215V16.4857H9.1715H9.9215V9.17146H9.1715ZM12.8286 9.17146H12.0786V16.4857H12.8286H13.5786V9.17146H12.8286Z",
|
12403
|
+
fill: "white"
|
12404
|
+
}
|
12405
|
+
)
|
12406
|
+
}
|
12407
|
+
),
|
12408
|
+
action: handleDelete
|
12409
|
+
},
|
12410
|
+
{
|
12411
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12412
|
+
"svg",
|
12413
|
+
{
|
12414
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12415
|
+
width: "22",
|
12416
|
+
height: "22",
|
12417
|
+
viewBox: "0 0 22 22",
|
12418
|
+
fill: "none",
|
12419
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12420
|
+
"path",
|
12421
|
+
{
|
12422
|
+
d: "M14.657 8.25708V6.42851C14.657 4.40872 13.0196 2.77136 10.9998 2.77136C10.0723 2.77136 9.22546 3.11663 8.58077 3.68565M7.52557 19.2285H14.4741C15.4982 19.2285 16.0103 19.2285 16.4014 19.0292C16.7455 18.8539 17.0252 18.5742 17.2006 18.2301C17.3999 17.8389 17.3999 17.3269 17.3999 16.3028V11.1828C17.3999 10.1587 17.3999 9.64665 17.2006 9.25549C17.0252 8.91143 16.7455 8.63169 16.4014 8.45638C16.0103 8.25708 15.4982 8.25708 14.4741 8.25708H7.52557C6.50147 8.25708 5.98942 8.25708 5.59827 8.45638C5.2542 8.63169 4.97447 8.91143 4.79916 9.25549C4.59985 9.64665 4.59985 10.1587 4.59985 11.1828V16.3028C4.59985 17.3269 4.59985 17.8389 4.79916 18.2301C4.97447 18.5742 5.2542 18.8539 5.59827 19.0292C5.98942 19.2285 6.50147 19.2285 7.52557 19.2285Z",
|
12423
|
+
stroke: "white",
|
12424
|
+
"stroke-width": "1.71429",
|
12425
|
+
"stroke-linecap": "round"
|
12426
|
+
}
|
12427
|
+
)
|
12428
|
+
}
|
12429
|
+
),
|
12430
|
+
action: handleUnLock
|
12431
|
+
},
|
12432
|
+
{
|
12433
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12434
|
+
"svg",
|
12435
|
+
{
|
12436
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12437
|
+
width: "22",
|
12438
|
+
height: "22",
|
12439
|
+
viewBox: "0 0 22 22",
|
12440
|
+
fill: "none",
|
12441
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12442
|
+
"path",
|
12443
|
+
{
|
12444
|
+
d: "M7.34271 8.25708V6.42851C7.34271 4.40872 8.98007 2.77136 10.9999 2.77136C13.0196 2.77136 14.657 4.40872 14.657 6.42851V8.25708M7.52557 19.2285H14.4741C15.4982 19.2285 16.0103 19.2285 16.4014 19.0292C16.7455 18.8539 17.0252 18.5742 17.2006 18.2301C17.3999 17.8389 17.3999 17.3269 17.3999 16.3028V11.1828C17.3999 10.1587 17.3999 9.64665 17.2006 9.25549C17.0252 8.91143 16.7455 8.63169 16.4014 8.45638C16.0103 8.25708 15.4982 8.25708 14.4741 8.25708H7.52557C6.50147 8.25708 5.98942 8.25708 5.59827 8.45638C5.2542 8.63169 4.97447 8.91143 4.79916 9.25549C4.59985 9.64665 4.59985 10.1587 4.59985 11.1828V16.3028C4.59985 17.3269 4.59985 17.8389 4.79916 18.2301C4.97447 18.5742 5.2542 18.8539 5.59827 19.0292C5.98942 19.2285 6.50147 19.2285 7.52557 19.2285Z",
|
12445
|
+
stroke: "white",
|
12446
|
+
"stroke-width": "1.71429",
|
12447
|
+
"stroke-linecap": "round"
|
12448
|
+
}
|
12449
|
+
)
|
12450
|
+
}
|
12451
|
+
),
|
12452
|
+
action: handleLock
|
12453
|
+
}
|
12454
|
+
];
|
12455
|
+
//! Function
|
12456
|
+
//! Render
|
12457
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3 px-[10px] py-3 bg-[#2561ED] rounded-lg w-fit", children: [
|
12458
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-white px-3", children: [
|
12459
|
+
"Đã chọn: ",
|
12460
|
+
quantity
|
12461
|
+
] }),
|
12462
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-5 border-l border-white mx-1" }),
|
12463
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center space-x-3", children: listIcon.map(
|
12464
|
+
(item, index) => item?.action && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12465
|
+
"button",
|
12466
|
+
{
|
12467
|
+
className: "p-1 rounded-sm transition duration-200 cursor-pointer hover:bg-[#1B4ACB] hover:rounded-sm",
|
12468
|
+
onClick: item.action,
|
12469
|
+
children: item.icon
|
12470
|
+
},
|
12471
|
+
index
|
12472
|
+
)
|
12473
|
+
) })
|
12474
|
+
] });
|
12475
|
+
};
|
12476
|
+
|
12477
|
+
const ConfirmModal = ({
|
12478
|
+
title,
|
12479
|
+
content,
|
12480
|
+
typeIcon,
|
12481
|
+
titleCancelBtn = "Huỷ bỏ",
|
12482
|
+
titleSubmitBtn = "Xác nhận",
|
12483
|
+
handleCancel,
|
12484
|
+
handleSubmit,
|
12485
|
+
...restProps
|
12486
|
+
}) => {
|
12487
|
+
//! State
|
12488
|
+
const IconType = () => {
|
12489
|
+
switch (typeIcon) {
|
12490
|
+
case "success":
|
12491
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12492
|
+
"svg",
|
12493
|
+
{
|
12494
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12495
|
+
width: "24",
|
12496
|
+
height: "24",
|
12497
|
+
viewBox: "0 0 24 24",
|
12498
|
+
fill: "none",
|
12499
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12500
|
+
"path",
|
12501
|
+
{
|
12502
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM16.5352 8.57109L11.5992 15.4148C11.5302 15.5111 11.4393 15.5896 11.3339 15.6437C11.2286 15.6978 11.1118 15.7261 10.9934 15.7261C10.8749 15.7261 10.7582 15.6978 10.6528 15.6437C10.5474 15.5896 10.4565 15.5111 10.3875 15.4148L7.46484 11.3648C7.37578 11.2406 7.46484 11.0672 7.61719 11.0672H8.71641C8.95547 11.0672 9.18281 11.182 9.32344 11.3789L10.9922 13.6945L14.6766 8.58516C14.8172 8.39062 15.0422 8.27344 15.2836 8.27344H16.3828C16.5352 8.27344 16.6242 8.44688 16.5352 8.57109Z",
|
12503
|
+
fill: "#52C41A"
|
12504
|
+
}
|
12505
|
+
)
|
12506
|
+
}
|
12507
|
+
);
|
12508
|
+
case "error":
|
12509
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12510
|
+
"svg",
|
12511
|
+
{
|
12512
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12513
|
+
width: "24",
|
12514
|
+
height: "24",
|
12515
|
+
viewBox: "0 0 24 24",
|
12516
|
+
fill: "none",
|
12517
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12518
|
+
"path",
|
12519
|
+
{
|
12520
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM15.8766 15.9891L14.3297 15.982L12 13.2047L9.67266 15.9797L8.12344 15.9867C8.02031 15.9867 7.93594 15.9047 7.93594 15.7992C7.93594 15.7547 7.95234 15.7125 7.98047 15.6773L11.0297 12.0445L7.98047 8.41406C7.95215 8.37971 7.93643 8.3367 7.93594 8.29219C7.93594 8.18906 8.02031 8.10469 8.12344 8.10469L9.67266 8.11172L12 10.8891L14.3273 8.11406L15.8742 8.10703C15.9773 8.10703 16.0617 8.18906 16.0617 8.29453C16.0617 8.33906 16.0453 8.38125 16.0172 8.41641L12.9727 12.0469L16.0195 15.6797C16.0477 15.7148 16.0641 15.757 16.0641 15.8016C16.0641 15.9047 15.9797 15.9891 15.8766 15.9891Z",
|
12521
|
+
fill: "#FF4D4F"
|
12522
|
+
}
|
12523
|
+
)
|
12524
|
+
}
|
12525
|
+
);
|
12526
|
+
case "info":
|
12527
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12528
|
+
"svg",
|
12529
|
+
{
|
12530
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12531
|
+
width: "24",
|
12532
|
+
height: "24",
|
12533
|
+
viewBox: "0 0 24 24",
|
12534
|
+
fill: "none",
|
12535
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12536
|
+
"path",
|
12537
|
+
{
|
12538
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM12.75 17.0625C12.75 17.1656 12.6656 17.25 12.5625 17.25H11.4375C11.3344 17.25 11.25 17.1656 11.25 17.0625V10.6875C11.25 10.5844 11.3344 10.5 11.4375 10.5H12.5625C12.6656 10.5 12.75 10.5844 12.75 10.6875V17.0625ZM12 9C11.7056 8.99399 11.4253 8.87282 11.2192 8.6625C11.0132 8.45218 10.8977 8.16945 10.8977 7.875C10.8977 7.58055 11.0132 7.29782 11.2192 7.0875C11.4253 6.87718 11.7056 6.75601 12 6.75C12.2944 6.75601 12.5747 6.87718 12.7808 7.0875C12.9868 7.29782 13.1023 7.58055 13.1023 7.875C13.1023 8.16945 12.9868 8.45218 12.7808 8.6625C12.5747 8.87282 12.2944 8.99399 12 9Z",
|
12539
|
+
fill: "#1677FF"
|
12540
|
+
}
|
12541
|
+
)
|
12542
|
+
}
|
12543
|
+
);
|
12544
|
+
case "warning":
|
12545
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12546
|
+
"svg",
|
12547
|
+
{
|
12548
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12549
|
+
width: "24",
|
12550
|
+
height: "24",
|
12551
|
+
viewBox: "0 0 24 24",
|
12552
|
+
fill: "none",
|
12553
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12554
|
+
"path",
|
12555
|
+
{
|
12556
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM11.25 6.9375C11.25 6.83437 11.3344 6.75 11.4375 6.75H12.5625C12.6656 6.75 12.75 6.83437 12.75 6.9375V13.3125C12.75 13.4156 12.6656 13.5 12.5625 13.5H11.4375C11.3344 13.5 11.25 13.4156 11.25 13.3125V6.9375ZM12 17.25C11.7056 17.244 11.4253 17.1228 11.2192 16.9125C11.0132 16.7022 10.8977 16.4195 10.8977 16.125C10.8977 15.8305 11.0132 15.5478 11.2192 15.3375C11.4253 15.1272 11.7056 15.006 12 15C12.2944 15.006 12.5747 15.1272 12.7808 15.3375C12.9868 15.5478 13.1023 15.8305 13.1023 16.125C13.1023 16.4195 12.9868 16.7022 12.7808 16.9125C12.5747 17.1228 12.2944 17.244 12 17.25Z",
|
12557
|
+
fill: "#FAAD14"
|
12558
|
+
}
|
12559
|
+
)
|
12560
|
+
}
|
12561
|
+
);
|
12562
|
+
}
|
12563
|
+
};
|
12564
|
+
//! Function
|
12565
|
+
//! Render
|
12566
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...restProps, footer: null, closeIcon: null, width: 400, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12567
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
12568
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconType, {}),
|
12569
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12570
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-base font-semibold", children: title }),
|
12571
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm", children: content })
|
12572
|
+
] })
|
12573
|
+
] }),
|
12574
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 w-full justify-end items-end pt-3", children: [
|
12575
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", onClick: handleCancel, children: titleCancelBtn }),
|
12576
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", type: "primary", onClick: handleSubmit, children: titleSubmitBtn })
|
12577
|
+
] })
|
12578
|
+
] }) });
|
12579
|
+
};
|
12580
|
+
|
12581
|
+
export { Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, Tooltip as a, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
|
12582
|
+
//# sourceMappingURL=ConfirmModal-fbJXEktP.js.map
|