@pnkx-lib/ui 1.9.190 → 1.9.192
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/style.css +1 -1
- package/es/chunks/{AntdIcon-B_SLhOJa.js → AntdIcon-ZIq9SabE.js} +68 -3
- package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
- package/es/chunks/createClass-CBKC8ctW.js +77 -0
- package/es/chunks/{defineProperty-D53odpB3.js → defineProperty-DPy3D8dn.js} +1 -1
- package/es/chunks/{index.esm-DPdCEbIy.js → index.esm-o4O8pXMN.js} +7 -17
- package/es/chunks/{layout-B04d5Lfr.js → layout-DnU0VrHH.js} +31 -1196
- package/es/fields/CascaderField.js +1 -1
- package/es/fields/DatePicker.js +3 -76
- package/es/fields/Input.js +1 -1
- package/es/fields/PnkxField.js +1 -1
- package/es/fields/Select.js +1 -1
- package/es/fields/SliderRanger.js +1 -1
- package/es/fields/SliderSingle.js +1 -1
- package/es/fields/Switch.js +1 -1
- package/es/fields/Textarea.js +1 -1
- package/es/fields/TimeRangePicker.js +8 -15
- package/es/fields/TinyMCE.js +47 -11
- package/es/fields/Upload.js +1 -1
- package/es/ui/CategoryStatus.js +1 -1
- package/es/ui/Container.js +1 -1
- package/es/ui/Layout.js +1 -1
- package/es/ui/SearchFilterForm.js +2 -2
- package/es/ui/Sidebar.js +3 -3
- package/es/ui/UploadImage.js +1 -1
- package/es/ui/index.js +2 -2
- package/package.json +2 -2
- package/types/components/fields/TimeRangePicker.d.ts +1 -1
|
@@ -3,7 +3,7 @@ import { Cascader as Cascader$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
7
7
|
|
|
8
8
|
const Cascader = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/DatePicker.js
CHANGED
|
@@ -2,14 +2,15 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { createElement, Component, createRef, useRef } from 'react';
|
|
4
4
|
import { c as className } from '../chunks/index-mzHK7Za8.js';
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _typeof, a as _unsupportedIterableToArray, b as _defineProperty } from '../chunks/defineProperty-DPy3D8dn.js';
|
|
6
|
+
import { b as _inherits, c as _createSuper, _ as _createClass, a as _classCallCheck, d as _assertThisInitialized$1 } from '../chunks/createClass-CBKC8ctW.js';
|
|
6
7
|
import * as ReactDOM from 'react-dom';
|
|
7
8
|
import ReactDOM__default, { findDOMNode } from 'react-dom';
|
|
8
9
|
import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-BFTU3MAI.js';
|
|
9
10
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
10
11
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
11
12
|
import { Label } from '../ui/Label.js';
|
|
12
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
13
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
13
14
|
|
|
14
15
|
function requiredArgs(required, args) {
|
|
15
16
|
if (args.length < required) {
|
|
@@ -3802,80 +3803,6 @@ function assign(target, object) {
|
|
|
3802
3803
|
return target;
|
|
3803
3804
|
}
|
|
3804
3805
|
|
|
3805
|
-
function _assertThisInitialized$1(e) {
|
|
3806
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3807
|
-
return e;
|
|
3808
|
-
}
|
|
3809
|
-
|
|
3810
|
-
function _setPrototypeOf$1(t, e) {
|
|
3811
|
-
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
3812
|
-
return t.__proto__ = e, t;
|
|
3813
|
-
}, _setPrototypeOf$1(t, e);
|
|
3814
|
-
}
|
|
3815
|
-
|
|
3816
|
-
function _inherits(t, e) {
|
|
3817
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
3818
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
3819
|
-
constructor: {
|
|
3820
|
-
value: t,
|
|
3821
|
-
writable: true,
|
|
3822
|
-
configurable: true
|
|
3823
|
-
}
|
|
3824
|
-
}), Object.defineProperty(t, "prototype", {
|
|
3825
|
-
writable: false
|
|
3826
|
-
}), e && _setPrototypeOf$1(t, e);
|
|
3827
|
-
}
|
|
3828
|
-
|
|
3829
|
-
function _getPrototypeOf(t) {
|
|
3830
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
3831
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
3832
|
-
}, _getPrototypeOf(t);
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
function _isNativeReflectConstruct() {
|
|
3836
|
-
try {
|
|
3837
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
3838
|
-
} catch (t) {}
|
|
3839
|
-
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
3840
|
-
return !!t;
|
|
3841
|
-
})();
|
|
3842
|
-
}
|
|
3843
|
-
|
|
3844
|
-
function _possibleConstructorReturn(t, e) {
|
|
3845
|
-
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
3846
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3847
|
-
return _assertThisInitialized$1(t);
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
|
-
function _createSuper(t) {
|
|
3851
|
-
var r = _isNativeReflectConstruct();
|
|
3852
|
-
return function () {
|
|
3853
|
-
var e,
|
|
3854
|
-
o = _getPrototypeOf(t);
|
|
3855
|
-
if (r) {
|
|
3856
|
-
var s = _getPrototypeOf(this).constructor;
|
|
3857
|
-
e = Reflect.construct(o, arguments, s);
|
|
3858
|
-
} else e = o.apply(this, arguments);
|
|
3859
|
-
return _possibleConstructorReturn(this, e);
|
|
3860
|
-
};
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
function _classCallCheck(a, n) {
|
|
3864
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
function _defineProperties(e, r) {
|
|
3868
|
-
for (var t = 0; t < r.length; t++) {
|
|
3869
|
-
var o = r[t];
|
|
3870
|
-
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
3871
|
-
}
|
|
3872
|
-
}
|
|
3873
|
-
function _createClass(e, r, t) {
|
|
3874
|
-
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
3875
|
-
writable: false
|
|
3876
|
-
}), e;
|
|
3877
|
-
}
|
|
3878
|
-
|
|
3879
3806
|
var TIMEZONE_UNIT_PRIORITY = 10;
|
|
3880
3807
|
var Setter = /*#__PURE__*/function () {
|
|
3881
3808
|
function Setter() {
|
package/es/fields/Input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Input as Input$1 } from 'antd';
|
|
|
4
4
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
5
5
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
6
6
|
import { Label } from '../ui/Label.js';
|
|
7
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
7
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
8
8
|
import { Tooltip } from '../ui/Tooltip.js';
|
|
9
9
|
|
|
10
10
|
/**
|
package/es/fields/PnkxField.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Controller } from '../chunks/index.esm-
|
|
3
|
+
import { C as Controller } from '../chunks/index.esm-o4O8pXMN.js';
|
|
4
4
|
|
|
5
5
|
class PnkxField extends React.PureComponent {
|
|
6
6
|
render() {
|
package/es/fields/Select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Select as Select$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
7
7
|
|
|
8
8
|
const Select = (props) => {
|
|
9
9
|
//! State
|
|
@@ -3,7 +3,7 @@ import { Slider } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
7
7
|
|
|
8
8
|
const SliderRange = (props) => {
|
|
9
9
|
//! State
|
|
@@ -3,7 +3,7 @@ import { Slider } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
7
7
|
|
|
8
8
|
const SliderSingle = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/Switch.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Switch as Switch$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
7
7
|
|
|
8
8
|
const Switch = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/Textarea.js
CHANGED
|
@@ -4,7 +4,7 @@ import { g as get } from '../chunks/get-C880miVG.js';
|
|
|
4
4
|
import { Input } from 'antd';
|
|
5
5
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
6
6
|
import { Label } from '../ui/Label.js';
|
|
7
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
7
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
8
8
|
|
|
9
9
|
const { TextArea } = Input;
|
|
10
10
|
const Textarea = forwardRef(
|
|
@@ -7,23 +7,16 @@ import { g as get } from '../chunks/get-C880miVG.js';
|
|
|
7
7
|
const { RangePicker } = TimePicker;
|
|
8
8
|
const TimeRangePicker = (props) => {
|
|
9
9
|
const { field, afterOnChange, formState, label, required, ...rest } = props;
|
|
10
|
-
const
|
|
11
|
-
const fieldValue = field?.value;
|
|
12
|
-
const fieldOnChange = field?.onChange;
|
|
13
|
-
const fieldOnBlur = field?.onBlur;
|
|
10
|
+
const { name, value, onChange, onBlur } = field || {};
|
|
14
11
|
const { touchedFields, errors, isSubmitted } = formState || {};
|
|
15
|
-
const isTouched =
|
|
16
|
-
const errorMessage =
|
|
12
|
+
const isTouched = get(touchedFields, name);
|
|
13
|
+
const errorMessage = get(errors, name)?.message;
|
|
17
14
|
const handleChange = (dates, dateStrings) => {
|
|
18
|
-
|
|
19
|
-
fieldOnChange(dates);
|
|
20
|
-
}
|
|
15
|
+
onChange?.(dates);
|
|
21
16
|
afterOnChange?.(dates, dateStrings);
|
|
22
17
|
};
|
|
23
18
|
const handleBlur = () => {
|
|
24
|
-
|
|
25
|
-
fieldOnBlur();
|
|
26
|
-
}
|
|
19
|
+
onBlur?.();
|
|
27
20
|
};
|
|
28
21
|
const renderErrorMessage = () => {
|
|
29
22
|
if (!errorMessage) return null;
|
|
@@ -41,11 +34,11 @@ const TimeRangePicker = (props) => {
|
|
|
41
34
|
/* @__PURE__ */ jsx(
|
|
42
35
|
RangePicker,
|
|
43
36
|
{
|
|
44
|
-
|
|
45
|
-
value: fieldValue || null,
|
|
37
|
+
value: value || null,
|
|
46
38
|
onChange: handleChange,
|
|
47
39
|
onBlur: handleBlur,
|
|
48
|
-
status: (isTouched || isSubmitted) && errorMessage ? "error" : void 0
|
|
40
|
+
status: (isTouched || isSubmitted) && errorMessage ? "error" : void 0,
|
|
41
|
+
...rest
|
|
49
42
|
}
|
|
50
43
|
),
|
|
51
44
|
renderErrorMessage()
|
package/es/fields/TinyMCE.js
CHANGED
|
@@ -1301,6 +1301,45 @@ var getTinymce = function (view) {
|
|
|
1301
1301
|
return global && global.tinymce ? global.tinymce : null;
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
1304
|
+
const toInt = (str) => parseInt(str, 10);
|
|
1305
|
+
const cmp = (a, b) => {
|
|
1306
|
+
const delta = a - b;
|
|
1307
|
+
if (delta === 0) {
|
|
1308
|
+
return 0 /* Comparison.EQ */;
|
|
1309
|
+
}
|
|
1310
|
+
return delta > 0 ? 1 /* Comparison.GT */ : -1 /* Comparison.LT */;
|
|
1311
|
+
};
|
|
1312
|
+
const nu = (major, minor, patch) => ({ major, minor, patch });
|
|
1313
|
+
const parse = (versionString) => {
|
|
1314
|
+
const parts = /([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(versionString);
|
|
1315
|
+
return parts ? nu(toInt(parts[1]), toInt(parts[2]), toInt(parts[3])) : nu(0, 0, 0);
|
|
1316
|
+
};
|
|
1317
|
+
const compare = (version1, version2) => {
|
|
1318
|
+
const cmp1 = cmp(version1.major, version2.major);
|
|
1319
|
+
if (cmp1 !== 0 /* Comparison.EQ */) {
|
|
1320
|
+
return cmp1;
|
|
1321
|
+
}
|
|
1322
|
+
const cmp2 = cmp(version1.minor, version2.minor);
|
|
1323
|
+
if (cmp2 !== 0 /* Comparison.EQ */) {
|
|
1324
|
+
return cmp2;
|
|
1325
|
+
}
|
|
1326
|
+
const cmp3 = cmp(version1.patch, version2.patch);
|
|
1327
|
+
if (cmp3 !== 0 /* Comparison.EQ */) {
|
|
1328
|
+
return cmp3;
|
|
1329
|
+
}
|
|
1330
|
+
return 0 /* Comparison.EQ */;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
// Creates a semver string out of tinymce major and minor properties this also handles
|
|
1334
|
+
// the pre semver case with 3.x versions of tinymce having a extra dot 1.2.3.4 we simply
|
|
1335
|
+
// ignore the extra dot and normalize that to proper semver
|
|
1336
|
+
const createSemVer = (tinymce) => {
|
|
1337
|
+
const semver = [tinymce.majorVersion, tinymce.minorVersion].join('.');
|
|
1338
|
+
return semver.split('.').slice(0, 3).join('.');
|
|
1339
|
+
};
|
|
1340
|
+
const getVersion = (tinymce) => parse(createSemVer(tinymce));
|
|
1341
|
+
const isLessThan = (tinymce, version) => !tinymce ? false : compare(getVersion(tinymce), parse(version)) === -1 /* Semver.Comparison.LT */;
|
|
1342
|
+
|
|
1304
1343
|
var isFunction = function (x) { return typeof x === 'function'; };
|
|
1305
1344
|
var isEventProp = function (name) { return name in eventPropTypes; };
|
|
1306
1345
|
var eventAttrToEventName = function (attrName) { return attrName.substr(2); };
|
|
@@ -1377,7 +1416,10 @@ var getTinymceOrError = function (view) {
|
|
|
1377
1416
|
}
|
|
1378
1417
|
return tinymce;
|
|
1379
1418
|
};
|
|
1380
|
-
var isDisabledOptionSupported = function (
|
|
1419
|
+
var isDisabledOptionSupported = function (view) {
|
|
1420
|
+
var tinymce = getTinymceOrError(view);
|
|
1421
|
+
return !isLessThan(tinymce, '7.6.0');
|
|
1422
|
+
};
|
|
1381
1423
|
|
|
1382
1424
|
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
1383
1425
|
__assign$1 = Object.assign || function(t) {
|
|
@@ -1643,7 +1685,9 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1643
1685
|
return;
|
|
1644
1686
|
}
|
|
1645
1687
|
var tinymce = getTinymceOrError(_this.view);
|
|
1646
|
-
var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target
|
|
1688
|
+
var finalInit = __assign(__assign(__assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target }), isDisabledOptionSupported(_this.view)
|
|
1689
|
+
? { disabled: _this.props.disabled, readonly: _this.props.readonly }
|
|
1690
|
+
: { readonly: _this.props.disabled || _this.props.readonly }), { inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
|
|
1647
1691
|
_this.editor = editor;
|
|
1648
1692
|
_this.bindHandlers({});
|
|
1649
1693
|
// When running in inline mode the editor gets the initial value
|
|
@@ -1660,14 +1704,6 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1660
1704
|
if (_this.props.init && isFunction(_this.props.init.setup)) {
|
|
1661
1705
|
_this.props.init.setup(editor);
|
|
1662
1706
|
}
|
|
1663
|
-
if (_this.props.disabled) {
|
|
1664
|
-
if (isDisabledOptionSupported(_this.editor)) {
|
|
1665
|
-
_this.editor.options.set('disabled', _this.props.disabled);
|
|
1666
|
-
}
|
|
1667
|
-
else {
|
|
1668
|
-
_this.editor.mode.set('readonly');
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
1707
|
}, init_instance_callback: function (editor) {
|
|
1672
1708
|
var _a;
|
|
1673
1709
|
// check for changes that happened since tinymce.init() was called
|
|
@@ -1763,7 +1799,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1763
1799
|
setMode(this.editor, readonly ? 'readonly' : 'design');
|
|
1764
1800
|
}
|
|
1765
1801
|
if (this.props.disabled !== prevProps.disabled) {
|
|
1766
|
-
if (isDisabledOptionSupported(this.
|
|
1802
|
+
if (isDisabledOptionSupported(this.view)) {
|
|
1767
1803
|
this.editor.options.set('disabled', this.props.disabled);
|
|
1768
1804
|
}
|
|
1769
1805
|
else {
|
package/es/fields/Upload.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Upload, Image } from 'antd';
|
|
|
5
5
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
6
6
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
7
7
|
import { Label } from '../ui/Label.js';
|
|
8
|
-
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-
|
|
8
|
+
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
|
9
9
|
|
|
10
10
|
// This icon file is generated automatically.
|
|
11
11
|
var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
package/es/ui/CategoryStatus.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
2
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
3
3
|
|
|
4
4
|
var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
|
|
5
5
|
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
|
package/es/ui/Container.js
CHANGED
package/es/ui/Layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-
|
|
2
|
+
import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-DnU0VrHH.js';
|
|
3
3
|
|
|
4
4
|
const LayoutComponent = ({
|
|
5
5
|
layoutClassName,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { u as useForm } from '../chunks/index.esm-
|
|
2
|
+
import { u as useForm } from '../chunks/index.esm-o4O8pXMN.js';
|
|
3
3
|
import { Button } from './Button.js';
|
|
4
|
-
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-
|
|
4
|
+
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
|
|
7
7
|
// This icon file is generated automatically.
|
package/es/ui/Sidebar.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { useNavigate, useLocation } from 'react-router';
|
|
5
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
-
import { H as Header } from '../chunks/layout-
|
|
5
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
6
|
+
import { H as Header } from '../chunks/layout-DnU0VrHH.js';
|
|
7
7
|
import { AutoComplete, Divider, Dropdown, Flex } from 'antd';
|
|
8
8
|
import { Input } from '../fields/Input.js';
|
|
9
|
-
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-
|
|
9
|
+
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
|
10
10
|
|
|
11
11
|
// This icon file is generated automatically.
|
|
12
12
|
var DownOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
package/es/ui/UploadImage.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { Upload, Image, Tooltip, message } from 'antd';
|
|
5
5
|
import { Spin } from './Spin.js';
|
|
6
|
-
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-
|
|
6
|
+
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
|
7
7
|
|
|
8
8
|
// This icon file is generated automatically.
|
|
9
9
|
var CloseOutlined$1 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
|
package/es/ui/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
6
6
|
import React__default, { useLayoutEffect, useEffect, useRef, useMemo, useCallback, useState, memo, useReducer, createContext, useContext } from 'react';
|
|
7
7
|
import { Table as Table$1 } from 'antd';
|
|
8
8
|
import { Modal } from './Modal.js';
|
|
9
|
-
import { u as useForm } from '../chunks/index.esm-
|
|
9
|
+
import { u as useForm } from '../chunks/index.esm-o4O8pXMN.js';
|
|
10
10
|
import { PnkxField } from '../fields/PnkxField.js';
|
|
11
11
|
import { Checkbox } from '../fields/Checkbox.js';
|
|
12
12
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
13
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
13
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
|
|
14
14
|
import { Badge } from './Badge.js';
|
|
15
15
|
export { typeColorMap } from './Badge.js';
|
|
16
16
|
import { Heading } from './Heading.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnkx-lib/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.192",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@headlessui/react": "^2.2.2",
|
|
135
135
|
"@heroicons/react": "^2.2.0",
|
|
136
136
|
"@hookform/resolvers": "^5.0.1",
|
|
137
|
-
"@pnkx-lib/core": "^1.1.
|
|
137
|
+
"@pnkx-lib/core": "^1.1.62",
|
|
138
138
|
"@pnkx-lib/icon": "^0.0.35",
|
|
139
139
|
"@tailwindcss/cli": "^4.1.6",
|
|
140
140
|
"@tinymce/miniature": "^6.0.0",
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TimeRangePickerProps as AntdTimeRangePickerProps } from 'antd/es/time-picker';
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
5
|
-
interface TimeRangePickerProps extends
|
|
5
|
+
interface TimeRangePickerProps extends AntdTimeRangePickerProps {
|
|
6
6
|
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
|
7
7
|
field?: ControllerRenderProps<any, any>;
|
|
8
8
|
formState?: UseFormStateReturn<any>;
|