@pnkx-lib/ui 1.9.103 → 1.9.104

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.
@@ -5220,7 +5220,7 @@ const ButtonBadge = (props) => {
5220
5220
  /* @__PURE__ */ jsxRuntimeExports.jsx(
5221
5221
  Badge,
5222
5222
  {
5223
- count: buttonItem.quantity,
5223
+ count: buttonItem?.quantity || 0,
5224
5224
  color: `${active ? "#BDE3FF]" : "#EEEEF0"}`,
5225
5225
  className: twMerge(
5226
5226
  "!text-[#4D4D57] !rounded-[8px]",
@@ -5470,6 +5470,80 @@ const BulkAction = ({
5470
5470
  ] }) });
5471
5471
  };
5472
5472
 
5473
+ const ErrorConfirmIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
5474
+ "svg",
5475
+ {
5476
+ xmlns: "http://www.w3.org/2000/svg",
5477
+ width: 24,
5478
+ height: 24,
5479
+ fill: "none",
5480
+ ...props,
5481
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5482
+ "path",
5483
+ {
5484
+ fill: props?.fill || "#FF4D4F",
5485
+ d: "M12 1.5C6.202 1.5 1.5 6.202 1.5 12S6.202 22.5 12 22.5 22.5 17.798 22.5 12 17.798 1.5 12 1.5Zm3.877 14.49-1.547-.008L12 13.205 9.673 15.98l-1.55.007a.187.187 0 0 1-.187-.188c0-.044.016-.086.044-.122l3.05-3.633-3.05-3.63a.188.188 0 0 1 .143-.31l1.55.008L12 10.889l2.327-2.775 1.547-.007c.103 0 .188.082.188.188a.195.195 0 0 1-.045.121l-3.044 3.63 3.046 3.634a.188.188 0 0 1-.143.31Z"
5486
+ }
5487
+ )
5488
+ }
5489
+ );
5490
+
5491
+ const InfoConfirmIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
5492
+ "svg",
5493
+ {
5494
+ xmlns: "http://www.w3.org/2000/svg",
5495
+ width: 24,
5496
+ height: 24,
5497
+ fill: "none",
5498
+ ...props,
5499
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5500
+ "path",
5501
+ {
5502
+ fill: props?.fill || "#1677FF",
5503
+ stroke: props?.stroke,
5504
+ d: "M12 1.5C6.202 1.5 1.5 6.202 1.5 12S6.202 22.5 12 22.5 22.5 17.798 22.5 12 17.798 1.5 12 1.5Zm.75 15.563a.188.188 0 0 1-.188.187h-1.124a.188.188 0 0 1-.188-.188v-6.375c0-.103.084-.187.188-.187h1.124c.104 0 .188.084.188.188v6.374ZM12 9a1.125 1.125 0 0 1 0-2.25A1.125 1.125 0 0 1 12 9Z"
5505
+ }
5506
+ )
5507
+ }
5508
+ );
5509
+
5510
+ const SuccessIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
5511
+ "svg",
5512
+ {
5513
+ xmlns: "http://www.w3.org/2000/svg",
5514
+ width: 24,
5515
+ height: 24,
5516
+ fill: "none",
5517
+ ...props,
5518
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5519
+ "path",
5520
+ {
5521
+ fill: props?.fill || "#52C41A",
5522
+ stroke: props?.stroke,
5523
+ d: "M12 1.5C6.202 1.5 1.5 6.202 1.5 12S6.202 22.5 12 22.5 22.5 17.798 22.5 12 17.798 1.5 12 1.5Zm4.535 7.071L11.6 15.415a.745.745 0 0 1-1.212 0l-2.922-4.05a.188.188 0 0 1 .152-.298h1.1c.238 0 .466.115.606.312l1.67 2.316 3.684-5.11a.75.75 0 0 1 .607-.312h1.099c.152 0 .241.174.152.298Z"
5524
+ }
5525
+ )
5526
+ }
5527
+ );
5528
+
5529
+ const WarningConfrimIcon = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
5530
+ "svg",
5531
+ {
5532
+ xmlns: "http://www.w3.org/2000/svg",
5533
+ width: 24,
5534
+ height: 24,
5535
+ fill: "none",
5536
+ ...props,
5537
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5538
+ "path",
5539
+ {
5540
+ fill: props?.fill || "#FAAD14",
5541
+ d: "M12 1.5C6.202 1.5 1.5 6.202 1.5 12S6.202 22.5 12 22.5 22.5 17.798 22.5 12 17.798 1.5 12 1.5Zm-.75 5.438c0-.104.084-.188.188-.188h1.124c.104 0 .188.084.188.188v6.375a.188.188 0 0 1-.188.187h-1.124a.188.188 0 0 1-.188-.188V6.939ZM12 17.25A1.125 1.125 0 0 1 12 15a1.125 1.125 0 0 1 0 2.25Z"
5542
+ }
5543
+ )
5544
+ }
5545
+ );
5546
+
5473
5547
  const ConfirmModal = ({
5474
5548
  title,
5475
5549
  content,
@@ -5484,77 +5558,13 @@ const ConfirmModal = ({
5484
5558
  const IconType = () => {
5485
5559
  switch (typeIcon) {
5486
5560
  case "success":
5487
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
5488
- "svg",
5489
- {
5490
- xmlns: "http://www.w3.org/2000/svg",
5491
- width: "24",
5492
- height: "24",
5493
- viewBox: "0 0 24 24",
5494
- fill: "none",
5495
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5496
- "path",
5497
- {
5498
- 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",
5499
- fill: "#52C41A"
5500
- }
5501
- )
5502
- }
5503
- );
5561
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SuccessIcon, {});
5504
5562
  case "error":
5505
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
5506
- "svg",
5507
- {
5508
- xmlns: "http://www.w3.org/2000/svg",
5509
- width: "24",
5510
- height: "24",
5511
- viewBox: "0 0 24 24",
5512
- fill: "none",
5513
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5514
- "path",
5515
- {
5516
- 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",
5517
- fill: "#FF4D4F"
5518
- }
5519
- )
5520
- }
5521
- );
5563
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorConfirmIcon, {});
5522
5564
  case "info":
5523
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
5524
- "svg",
5525
- {
5526
- xmlns: "http://www.w3.org/2000/svg",
5527
- width: "24",
5528
- height: "24",
5529
- viewBox: "0 0 24 24",
5530
- fill: "none",
5531
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5532
- "path",
5533
- {
5534
- 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",
5535
- fill: "#1677FF"
5536
- }
5537
- )
5538
- }
5539
- );
5565
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(InfoConfirmIcon, {});
5540
5566
  case "warning":
5541
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
5542
- "svg",
5543
- {
5544
- xmlns: "http://www.w3.org/2000/svg",
5545
- width: "24",
5546
- height: "24",
5547
- viewBox: "0 0 24 24",
5548
- fill: "none",
5549
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
5550
- "path",
5551
- {
5552
- 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",
5553
- fill: "#FAAD14"
5554
- }
5555
- )
5556
- }
5557
- );
5567
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WarningConfrimIcon, {});
5558
5568
  }
5559
5569
  };
5560
5570
  //! Function
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a6 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from './chunks/index-DfeXcxis.js';
1
+ export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a6 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from './chunks/index-BVFDiGRU.js';
2
2
  export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/AntdIcon-CwSrIOy0.js';
3
3
  import 'react-router';
4
4
  export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-CCKfNjFl.js';
package/es/ui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a6 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from '../chunks/index-DfeXcxis.js';
1
+ export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a6 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from '../chunks/index-BVFDiGRU.js';
2
2
  export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-CwSrIOy0.js';
3
3
  import 'react-router';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.103",
4
+ "version": "1.9.104",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",