@pnkx-lib/ui 1.9.109 → 1.9.112

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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports, c as Icon, _ as _extends, e as _typeof, P as PnkxField, C as CheckboxField, t as twMerge, u as useForm, d as classNames, l as lodashExports, f as commonjsGlobal, h as _arrayLikeToArray, i as _unsupportedIterableToArray, w as warningOnce, k as _createClass, m as _classCallCheck, n as _defineProperty, o as _slicedToArray, p as warning$1, q as canUseDom, r as _objectSpread2, s as updateCSS, v as removeCSS, x as _arrayWithHoles, y as _nonIterableRest, z as resetWarned$1, F as FastColor, A as generate, B as presetPrimaryColors, G as presetPalettes, H as _inherits, J as _createSuper, K as _assertThisInitialized, M as _objectWithoutProperties, N as IconContext, I as Input } from './AntdIcon-CwSrIOy0.js';
1
+ import { j as jsxRuntimeExports, c as Icon, _ as _extends, e as _typeof, P as PnkxField, C as CheckboxField, t as twMerge, u as useForm, d as className, l as lodashExports, f as commonjsGlobal, h as _arrayLikeToArray, i as _unsupportedIterableToArray, w as warningOnce, k as _createClass, m as _classCallCheck, n as _defineProperty, o as _slicedToArray, p as warning$1, q as canUseDom, r as _objectSpread2, s as updateCSS, v as removeCSS, x as _arrayWithHoles, y as _nonIterableRest, z as resetWarned$1, F as FastColor, A as generate, B as presetPrimaryColors, G as presetPalettes, H as _inherits, J as _createSuper, K as _assertThisInitialized, M as _objectWithoutProperties, N as IconContext, I as Input } from './AntdIcon-CtaI55qk.js';
2
2
  import { Button as Button$1, Cascader, Modal as Modal$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Tooltip as Tooltip$1, Divider as Divider$2, Table as Table$1, Tabs as Tabs$1, Space as Space$1, Card, Skeleton as Skeleton$1, Popover as Popover$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Splitter as Splitter$1, Menu as Menu$1, Pagination as Pagination$1, Steps as Steps$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, Popconfirm as Popconfirm$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Typography, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse, ColorPicker, Empty as Empty$2, Image as Image$1 } from 'antd';
3
3
  import * as React from 'react';
4
4
  import React__default, { version as version$1, isValidElement, useLayoutEffect as useLayoutEffect$1, useEffect, useRef, useMemo as useMemo$1, useCallback, useState, createContext, memo, useReducer, useContext, Component } from 'react';
@@ -5249,7 +5249,7 @@ const Heading = (props) => {
5249
5249
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
5250
5250
  "div",
5251
5251
  {
5252
- className: classNames(
5252
+ className: className(
5253
5253
  "flex justify-between items-end",
5254
5254
  classNameWrapHeading
5255
5255
  ),
@@ -6021,13 +6021,13 @@ const SearchFiltersForm = ({
6021
6021
 
6022
6022
  const Container = ({
6023
6023
  children,
6024
- className,
6024
+ className: className$1,
6025
6025
  size
6026
6026
  }) => {
6027
6027
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
6028
6028
  "div",
6029
6029
  {
6030
- className: classNames(size, "mx-auto px-4 sm:px-6 lg:px-8", className),
6030
+ className: className(size, "mx-auto px-4 sm:px-6 lg:px-8", className$1),
6031
6031
  children
6032
6032
  }
6033
6033
  );
@@ -9614,7 +9614,7 @@ function genStyleUtils(config) {
9614
9614
  };
9615
9615
  }
9616
9616
 
9617
- const version = '5.25.0';
9617
+ const version = '5.24.7';
9618
9618
 
9619
9619
  function isStableColor(color) {
9620
9620
  return color >= 0 && color <= 255;
@@ -10807,7 +10807,7 @@ function genCSSMotion(config) {
10807
10807
  }
10808
10808
  var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
10809
10809
  motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
10810
- className: classNames(getTransitionName(motionName, status), _defineProperty(_defineProperty({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName === 'string')),
10810
+ className: className(getTransitionName(motionName, status), _defineProperty(_defineProperty({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName === 'string')),
10811
10811
  style: statusStyle
10812
10812
  }), setNodeRef);
10813
10813
  }
@@ -11480,23 +11480,6 @@ function toArray(children) {
11480
11480
  return ret;
11481
11481
  }
11482
11482
 
11483
- const addMediaQueryListener = (mql, handler) => {
11484
- // Don't delete here, please keep the code compatible
11485
- if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== 'undefined') {
11486
- mql.addEventListener('change', handler);
11487
- } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== 'undefined') {
11488
- mql.addListener(handler);
11489
- }
11490
- };
11491
- const removeMediaQueryListener = (mql, handler) => {
11492
- // Don't delete here, please keep the code compatible
11493
- if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== 'undefined') {
11494
- mql.removeEventListener('change', handler);
11495
- } else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== 'undefined') {
11496
- mql.removeListener(handler);
11497
- }
11498
- };
11499
-
11500
11483
  const genLayoutStyle = token => {
11501
11484
  const {
11502
11485
  antCls,
@@ -11749,7 +11732,7 @@ const generateId = (() => {
11749
11732
  const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
11750
11733
  const {
11751
11734
  prefixCls: customizePrefixCls,
11752
- className,
11735
+ className: className$1,
11753
11736
  trigger,
11754
11737
  children,
11755
11738
  defaultCollapsed = false,
@@ -11799,17 +11782,29 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
11799
11782
  };
11800
11783
  useEffect(() => {
11801
11784
  function responsiveHandler(mql) {
11802
- var _a;
11803
- return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql);
11785
+ return responsiveHandlerRef.current(mql);
11804
11786
  }
11805
11787
  let mql;
11806
- if (typeof (window === null || window === void 0 ? void 0 : window.matchMedia) !== 'undefined' && breakpoint && breakpoint in dimensionMaxMap) {
11807
- mql = window.matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
11808
- addMediaQueryListener(mql, responsiveHandler);
11809
- responsiveHandler(mql);
11788
+ if (typeof window !== 'undefined') {
11789
+ const {
11790
+ matchMedia
11791
+ } = window;
11792
+ if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
11793
+ mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
11794
+ try {
11795
+ mql.addEventListener('change', responsiveHandler);
11796
+ } catch (_a) {
11797
+ mql.addListener(responsiveHandler);
11798
+ }
11799
+ responsiveHandler(mql);
11800
+ }
11810
11801
  }
11811
11802
  return () => {
11812
- removeMediaQueryListener(mql, responsiveHandler);
11803
+ try {
11804
+ mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
11805
+ } catch (_a) {
11806
+ mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
11807
+ }
11813
11808
  };
11814
11809
  }, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
11815
11810
  useEffect(() => {
@@ -11827,7 +11822,7 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
11827
11822
  // special trigger when collapsedWidth == 0
11828
11823
  const zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? (/*#__PURE__*/React.createElement("span", {
11829
11824
  onClick: toggle,
11830
- className: classNames(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
11825
+ className: className(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
11831
11826
  style: zeroWidthTriggerStyle
11832
11827
  }, trigger || /*#__PURE__*/React.createElement(RefIcon$6, null))) : null;
11833
11828
  const reverseIcon = direction === 'rtl' === !reverseArrow;
@@ -11850,12 +11845,12 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
11850
11845
  minWidth: siderWidth,
11851
11846
  width: siderWidth
11852
11847
  });
11853
- const siderCls = classNames(prefixCls, `${prefixCls}-${theme}`, {
11848
+ const siderCls = className(prefixCls, `${prefixCls}-${theme}`, {
11854
11849
  [`${prefixCls}-collapsed`]: !!collapsed,
11855
11850
  [`${prefixCls}-has-trigger`]: collapsible && trigger !== null && !zeroWidthTrigger,
11856
11851
  [`${prefixCls}-below`]: !!below,
11857
11852
  [`${prefixCls}-zero-width`]: parseFloat(siderWidth) === 0
11858
- }, className, hashId, cssVarCls);
11853
+ }, className$1, hashId, cssVarCls);
11859
11854
  const contextValue = React.useMemo(() => ({
11860
11855
  siderCollapsed: collapsed
11861
11856
  }), [collapsed]);
@@ -11915,7 +11910,7 @@ const Basic = /*#__PURE__*/React.forwardRef((props, ref) => {
11915
11910
  const {
11916
11911
  prefixCls: customizePrefixCls,
11917
11912
  suffixCls,
11918
- className,
11913
+ className: className$1,
11919
11914
  tagName: TagName
11920
11915
  } = props,
11921
11916
  others = __rest(props, ["prefixCls", "suffixCls", "className", "tagName"]);
@@ -11926,7 +11921,7 @@ const Basic = /*#__PURE__*/React.forwardRef((props, ref) => {
11926
11921
  const [wrapSSR, hashId, cssVarCls] = useStyle$1(prefixCls);
11927
11922
  const prefixWithSuffixCls = suffixCls ? `${prefixCls}-${suffixCls}` : prefixCls;
11928
11923
  return wrapSSR(/*#__PURE__*/React.createElement(TagName, Object.assign({
11929
- className: classNames(customizePrefixCls || prefixWithSuffixCls, className, hashId, cssVarCls),
11924
+ className: className(customizePrefixCls || prefixWithSuffixCls, className$1, hashId, cssVarCls),
11930
11925
  ref: ref
11931
11926
  }, others)));
11932
11927
  });
@@ -11937,7 +11932,7 @@ const BasicLayout = /*#__PURE__*/React.forwardRef((props, ref) => {
11937
11932
  const [siders, setSiders] = React.useState([]);
11938
11933
  const {
11939
11934
  prefixCls: customizePrefixCls,
11940
- className,
11935
+ className: className$1,
11941
11936
  rootClassName,
11942
11937
  children,
11943
11938
  hasSider,
@@ -11954,10 +11949,10 @@ const BasicLayout = /*#__PURE__*/React.forwardRef((props, ref) => {
11954
11949
  const prefixCls = getPrefixCls('layout', customizePrefixCls);
11955
11950
  const mergedHasSider = useHasSider(siders, children, hasSider);
11956
11951
  const [wrapCSSVar, hashId, cssVarCls] = useStyle$1(prefixCls);
11957
- const classString = classNames(prefixCls, {
11952
+ const classString = className(prefixCls, {
11958
11953
  [`${prefixCls}-has-sider`]: mergedHasSider,
11959
11954
  [`${prefixCls}-rtl`]: direction === 'rtl'
11960
- }, contextClassName, className, rootClassName, hashId, cssVarCls);
11955
+ }, contextClassName, className$1, rootClassName, hashId, cssVarCls);
11961
11956
  const contextValue = React.useMemo(() => ({
11962
11957
  siderHook: {
11963
11958
  addSider: id => {
@@ -12581,7 +12576,7 @@ const AnchorLink = props => {
12581
12576
  title,
12582
12577
  prefixCls: customizePrefixCls,
12583
12578
  children,
12584
- className,
12579
+ className: className$1,
12585
12580
  target,
12586
12581
  replace
12587
12582
  } = props;
@@ -12606,23 +12601,10 @@ const AnchorLink = props => {
12606
12601
  href
12607
12602
  });
12608
12603
  scrollTo === null || scrollTo === void 0 ? void 0 : scrollTo(href);
12609
- // Support clicking on an anchor does not record history.
12610
- if (e.defaultPrevented) {
12611
- return;
12612
- }
12613
- const isExternalLink = href.startsWith('http://') || href.startsWith('https://');
12614
- // Support external link
12615
- if (isExternalLink) {
12616
- if (replace) {
12617
- e.preventDefault();
12618
- window.location.replace(href);
12619
- }
12620
- return;
12604
+ if (replace) {
12605
+ e.preventDefault();
12606
+ window.location.replace(href);
12621
12607
  }
12622
- // Handling internal anchor link
12623
- e.preventDefault();
12624
- const historyMethod = replace ? 'replaceState' : 'pushState';
12625
- window.history[historyMethod](null, '', href);
12626
12608
  };
12627
12609
  // =================== Warning =====================
12628
12610
  if (process.env.NODE_ENV !== 'production') {
@@ -12634,10 +12616,10 @@ const AnchorLink = props => {
12634
12616
  } = React.useContext(ConfigContext);
12635
12617
  const prefixCls = getPrefixCls('anchor', customizePrefixCls);
12636
12618
  const active = activeLink === href;
12637
- const wrapperClassName = classNames(`${prefixCls}-link`, className, {
12619
+ const wrapperClassName = className(`${prefixCls}-link`, className$1, {
12638
12620
  [`${prefixCls}-link-active`]: active
12639
12621
  });
12640
- const titleClassName = classNames(`${prefixCls}-link-title`, {
12622
+ const titleClassName = className(`${prefixCls}-link-title`, {
12641
12623
  [`${prefixCls}-link-title-active`]: active
12642
12624
  });
12643
12625
  return /*#__PURE__*/React.createElement("div", {
@@ -12830,9 +12812,9 @@ const ActionRowTable = ({
12830
12812
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: contentTooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
12831
12813
  Button,
12832
12814
  {
12833
- onClick: handleClick,
12815
+ onClick: toggleDelete,
12834
12816
  type: "text",
12835
- className: "cursor-pointer ",
12817
+ className: "cursor-pointer",
12836
12818
  shape: "circle",
12837
12819
  icon: /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteIcon, { fill: "#DD4338" })
12838
12820
  }
@@ -12856,4 +12838,33 @@ const ActionRowTable = ({
12856
12838
  ] });
12857
12839
  };
12858
12840
 
12859
- export { PAGE_NUMBER as $, 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, ConfirmModal as U, ErrorBoundary as V, Watermark as W, CategoryStatus as X, ActionRowTable as Y, START_PAGE as Z, START_PAGE_SIZE as _, Tooltip as a, PAGE_SIZE as a0, SORT_BY as a1, SORT_DESC as a2, TypeActionRowTable as a3, TypeBulkActions as a4, TypeStatusTable as a5, BulkActions as a6, 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$1 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 };
12841
+ const BreadcrumbHeading = (props) => {
12842
+ const { menu } = props;
12843
+ //! State
12844
+ const location = useLocation();
12845
+ const pathUrl = location.pathname;
12846
+ const breadcrumbs = [{ title: "Trang chủ", href: "/" }];
12847
+ menu.forEach((itemMenu) => {
12848
+ itemMenu.modules.forEach((itemModule) => {
12849
+ if (pathUrl.startsWith(itemModule.path)) {
12850
+ breadcrumbs.push({
12851
+ title: itemModule.name,
12852
+ href: itemModule.path
12853
+ });
12854
+ }
12855
+ itemModule.subMenu?.forEach((itemSubmenu) => {
12856
+ if (pathUrl.startsWith(itemSubmenu.path)) {
12857
+ breadcrumbs.push({
12858
+ title: itemSubmenu.name,
12859
+ href: itemSubmenu.path
12860
+ });
12861
+ }
12862
+ });
12863
+ });
12864
+ });
12865
+ //! Function
12866
+ //! Render
12867
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: className("flex justify-between items-end"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { items: breadcrumbs }) });
12868
+ };
12869
+
12870
+ export { PAGE_NUMBER as $, 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, ConfirmModal as U, ErrorBoundary as V, Watermark as W, CategoryStatus as X, ActionRowTable as Y, START_PAGE as Z, START_PAGE_SIZE as _, Tooltip as a, PAGE_SIZE as a0, SORT_BY as a1, SORT_DESC as a2, TypeActionRowTable as a3, TypeBulkActions as a4, TypeStatusTable as a5, BulkActions as a6, BreadcrumbHeading as a7, 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$1 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 };
@@ -1,4 +1,4 @@
1
- import { g as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, c as Icon, _ as _extends, d as classNames } from './AntdIcon-CwSrIOy0.js';
1
+ import { g as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, c as Icon, _ as _extends, d as className } from './AntdIcon-CtaI55qk.js';
2
2
  import { Select as Select$1, Radio, Upload, Image, Switch as Switch$1 } from 'antd';
3
3
  import * as React from 'react';
4
4
  import { useState } from 'react';
@@ -247,7 +247,7 @@ const Switch = (props) => {
247
247
  {
248
248
  checked: !!value,
249
249
  onChange: handleChange,
250
- className: classNames("focus:outline-none", customStyleSwitch),
250
+ className: className("focus:outline-none", customStyleSwitch),
251
251
  disabled,
252
252
  ...restProps
253
253
  }
@@ -1,2 +1,2 @@
1
- export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/AntdIcon-CwSrIOy0.js';
2
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-CCKfNjFl.js';
1
+ export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/AntdIcon-CtaI55qk.js';
2
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-CigYj8FF.js';
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
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-BdvBQ4xR.js';
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';
1
+ export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a7 as BreadcrumbHeading, 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/BreadcrumbHeading-Bb9JwHgb.js';
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-CtaI55qk.js';
3
3
  import 'react-router';
4
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-CCKfNjFl.js';
4
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-CigYj8FF.js';
5
5
  export { u as useToast } from './chunks/useToast-DL7nQTK1.js';
6
6
  export { u as useMessage } from './chunks/useMessage-CADDGtSx.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-BdvBQ4xR.js';
2
- export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-CwSrIOy0.js';
1
+ export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a7 as BreadcrumbHeading, 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/BreadcrumbHeading-Bb9JwHgb.js';
2
+ export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-CtaI55qk.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.109",
4
+ "version": "1.9.112",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/fields.d.ts CHANGED
@@ -6,8 +6,8 @@ import { Dayjs } from 'dayjs';
6
6
  import { default as default_2 } from 'react';
7
7
  import { IAllProps } from '@tinymce/tinymce-react';
8
8
  import { InputProps as InputProps_2 } from 'antd';
9
- import { JSX as JSX_2 } from 'react/jsx-runtime';
10
- import { JSX as JSX_3 } from 'react';
9
+ import { JSX } from 'react/jsx-runtime';
10
+ import { JSX as JSX_2 } from 'react';
11
11
  import { RadioGroupProps } from 'antd';
12
12
  import { RangePickerProps } from 'antd/es/date-picker';
13
13
  import * as React_2 from 'react';
@@ -20,7 +20,7 @@ import { UploadProps } from 'antd';
20
20
  import { UseFormSetValue } from 'react-hook-form';
21
21
  import { UseFormStateReturn } from 'react-hook-form';
22
22
 
23
- export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
23
+ export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
24
24
 
25
25
  export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
26
26
  field?: ControllerRenderProps<any, any>;
@@ -53,9 +53,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
53
53
  size?: TSize;
54
54
  }
55
55
 
56
- export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
56
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
57
57
 
58
- export declare const Input: (props: InputProps) => JSX_2.Element;
58
+ export declare const Input: (props: InputProps) => JSX.Element;
59
59
 
60
60
  export declare interface InputProps extends InputProps_2 {
61
61
  field?: ControllerRenderProps<any, any>;
@@ -73,7 +73,7 @@ export declare interface InputProps extends InputProps_2 {
73
73
  }
74
74
 
75
75
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
76
- render(): JSX_2.Element;
76
+ render(): JSX.Element;
77
77
  }
78
78
 
79
79
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -91,10 +91,10 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
91
91
  type?: TInputNumberType;
92
92
  prefix?: string;
93
93
  suffix?: string;
94
- helperText?: () => JSX_3.Element | null;
94
+ helperText?: () => JSX_2.Element | null;
95
95
  }
96
96
 
97
- export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
97
+ export declare const RadioGroup: (props: RadioProps) => JSX.Element;
98
98
 
99
99
  export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
100
100
  field?: ControllerRenderProps<any, any>;
@@ -107,7 +107,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
107
107
  position?: TPositionRadio;
108
108
  }
109
109
 
110
- export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
110
+ export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
111
111
 
112
112
  export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
113
113
  field?: ControllerRenderProps<any, any>;
@@ -119,7 +119,7 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
119
119
  customStyleDatePicker?: string;
120
120
  }
121
121
 
122
- export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
122
+ export declare const Select: (props: SelectFieldProps) => JSX.Element;
123
123
 
124
124
  export declare interface SelectFieldProps extends SelectProps {
125
125
  field?: ControllerRenderProps<any, any>;
@@ -132,7 +132,7 @@ export declare interface SelectFieldProps extends SelectProps {
132
132
  classNameSelect?: string;
133
133
  }
134
134
 
135
- export declare const Switch: (props: SwitchProps) => JSX_2.Element;
135
+ export declare const Switch: (props: SwitchProps) => JSX.Element;
136
136
 
137
137
  export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
138
138
  field?: ControllerRenderProps<any, any>;
@@ -156,7 +156,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
156
156
  declare type TInputNumberType = "number" | "money";
157
157
 
158
158
  export declare const TinyMCE: {
159
- (props: TinyProps): JSX_2.Element;
159
+ (props: TinyProps): JSX.Element;
160
160
  displayName: string;
161
161
  };
162
162
 
@@ -180,7 +180,7 @@ declare type TPositionRadio = "before" | "after";
180
180
 
181
181
  declare type TSize = "small" | "medium" | "large";
182
182
 
183
- export declare const UploadField: (props: UploadFieldProps) => JSX_2.Element;
183
+ export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
184
184
 
185
185
  export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
186
186
  field?: ControllerRenderProps<any, any>;