@pnkx-lib/ui 1.9.480 → 1.9.481

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.
@@ -1294,8 +1294,9 @@ const Input = (props) => {
1294
1294
  allowClear,
1295
1295
  subLabel,
1296
1296
  classNameSubLabel,
1297
- maxValue,
1298
1297
  toLowerCaseSafe,
1298
+ // maxValue,
1299
+ // minValue,
1299
1300
  ...restProps
1300
1301
  } = props;
1301
1302
  const { name, value, onChange, onBlur } = field || {};
@@ -1369,7 +1370,6 @@ const Input = (props) => {
1369
1370
  return /* @__PURE__ */ jsx(
1370
1371
  NumericFormatCustom,
1371
1372
  {
1372
- maxValue,
1373
1373
  name,
1374
1374
  ref: inputRef,
1375
1375
  type,
@@ -1456,7 +1456,8 @@ const NumericFormatCustom = forwardRef((props, ref) => {
1456
1456
  type,
1457
1457
  prefix,
1458
1458
  helperText,
1459
- maxValue = 999999999999999,
1459
+ // minValue,
1460
+ // maxValue = 999_999_999_999_999,
1460
1461
  decimalScale,
1461
1462
  thousandSeparator,
1462
1463
  decimalSeparator,
@@ -1494,10 +1495,6 @@ const NumericFormatCustom = forwardRef((props, ref) => {
1494
1495
  valueIsNumericString: true,
1495
1496
  getInputRef: ref,
1496
1497
  prefix: isMoney ? "$" : prefix,
1497
- isAllowed: (values) => {
1498
- const { floatValue } = values;
1499
- return floatValue === void 0 || floatValue.toString().length <= maxValue;
1500
- },
1501
1498
  ...restProps
1502
1499
  }
1503
1500
  ),
package/es/ui/index.js CHANGED
@@ -132238,6 +132238,123 @@ function requireLib () {
132238
132238
 
132239
132239
  var libExports = /*@__PURE__*/ requireLib();
132240
132240
 
132241
+ const RefuseApprovalDropListIcon = ({
132242
+ size = 22,
132243
+ color = "currentColor",
132244
+ className,
132245
+ style,
132246
+ onClick,
132247
+ "aria-label": ariaLabel,
132248
+ title,
132249
+ stroke,
132250
+ ...props
132251
+ }) => /* @__PURE__ */ jsx(
132252
+ "div",
132253
+ {
132254
+ className,
132255
+ style: {
132256
+ width: size,
132257
+ height: size,
132258
+ cursor: onClick ? "pointer" : "default",
132259
+ ...style
132260
+ },
132261
+ onClick,
132262
+ role: onClick ? "button" : void 0,
132263
+ "aria-label": ariaLabel,
132264
+ title,
132265
+ ...props,
132266
+ children: /* @__PURE__ */ jsxs(
132267
+ "svg",
132268
+ {
132269
+ xmlns: "http://www.w3.org/2000/svg",
132270
+ width: "100%",
132271
+ height: "100%",
132272
+ viewBox: "0 0 22 22",
132273
+ fill: "none",
132274
+ children: [
132275
+ /* @__PURE__ */ jsx(
132276
+ "path",
132277
+ {
132278
+ d: "M11 20.1663C16.06 20.1663 20.1666 16.0597 20.1666 10.9997C20.1666 5.93967 16.06 1.83301 11 1.83301C5.93998 1.83301 1.83331 5.93967 1.83331 10.9997C1.83331 16.0597 5.93998 20.1663 11 20.1663Z",
132279
+ stroke: stroke || "#292D32",
132280
+ strokeWidth: "1.5",
132281
+ "stroke-miterlimit": "10",
132282
+ strokeLinecap: "round",
132283
+ "stroke-linejoin": "round"
132284
+ }
132285
+ ),
132286
+ /* @__PURE__ */ jsx(
132287
+ "path",
132288
+ {
132289
+ d: "M17.3249 4.58301L4.49158 17.4163",
132290
+ stroke: stroke || "#292D32",
132291
+ strokeWidth: "1.5",
132292
+ "stroke-miterlimit": "10",
132293
+ strokeLinecap: "round",
132294
+ "stroke-linejoin": "round"
132295
+ }
132296
+ )
132297
+ ]
132298
+ }
132299
+ )
132300
+ }
132301
+ );
132302
+
132303
+ const ViewIcon = ({
132304
+ size = 20,
132305
+ color = "currentColor",
132306
+ className,
132307
+ style,
132308
+ onClick,
132309
+ "aria-label": ariaLabel,
132310
+ title,
132311
+ ...props
132312
+ }) => /* @__PURE__ */ jsx(
132313
+ "div",
132314
+ {
132315
+ className,
132316
+ style: {
132317
+ width: size,
132318
+ height: size,
132319
+ cursor: onClick ? "pointer" : "default",
132320
+ ...style
132321
+ },
132322
+ onClick,
132323
+ role: onClick ? "button" : void 0,
132324
+ "aria-label": ariaLabel,
132325
+ title,
132326
+ ...props,
132327
+ children: /* @__PURE__ */ jsxs(
132328
+ "svg",
132329
+ {
132330
+ width: "100%",
132331
+ height: "100%",
132332
+ viewBox: "0 0 20 20",
132333
+ fill: "none",
132334
+ xmlns: "http://www.w3.org/2000/svg",
132335
+ children: [
132336
+ /* @__PURE__ */ jsx(
132337
+ "path",
132338
+ {
132339
+ d: "M2.42466 10.9778C2.14002 10.3585 2.14002 9.6441 2.42466 9.02484C3.74225 6.15832 6.6389 4.16797 10.0004 4.16797C13.362 4.16797 16.2586 6.15833 17.5762 9.02484C17.8608 9.6441 17.8608 10.3585 17.5762 10.9778C16.2586 13.8443 13.362 15.8346 10.0004 15.8346C6.6389 15.8346 3.74225 13.8443 2.42466 10.9778Z",
132340
+ stroke: color || "#007BE5",
132341
+ "stroke-width": "1.5"
132342
+ }
132343
+ ),
132344
+ /* @__PURE__ */ jsx(
132345
+ "path",
132346
+ {
132347
+ d: "M12.5004 10.0013C12.5004 11.382 11.3811 12.5013 10.0004 12.5013C8.61972 12.5013 7.50043 11.382 7.50043 10.0013C7.50043 8.62059 8.61972 7.5013 10.0004 7.5013C11.3811 7.5013 12.5004 8.62059 12.5004 10.0013Z",
132348
+ stroke: color || "#007BE5",
132349
+ "stroke-width": "1.5"
132350
+ }
132351
+ )
132352
+ ]
132353
+ }
132354
+ )
132355
+ }
132356
+ );
132357
+
132241
132358
  const ActionRowTable = ({
132242
132359
  type,
132243
132360
  contentTooltip,
@@ -132258,6 +132375,17 @@ const ActionRowTable = ({
132258
132375
  };
132259
132376
  const renderAction = () => {
132260
132377
  switch (type) {
132378
+ case TypeActionRowTable.VIEW:
132379
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tooltip$1, { title: contentTooltip, children: /* @__PURE__ */ jsx(
132380
+ Button$1,
132381
+ {
132382
+ onClick: handleClick,
132383
+ type: "text",
132384
+ className: "cursor-pointer",
132385
+ shape: "circle",
132386
+ icon: /* @__PURE__ */ jsx(ViewIcon, { color: "#007BE5" })
132387
+ }
132388
+ ) }) });
132261
132389
  case TypeActionRowTable.EDIT:
132262
132390
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tooltip$1, { title: contentTooltip, children: /* @__PURE__ */ jsx(
132263
132391
  Button$1,
@@ -132430,68 +132558,6 @@ const DropListActions = ({
132430
132558
  ) }) });
132431
132559
  };
132432
132560
 
132433
- const RefuseApprovalDropListIcon = ({
132434
- size = 22,
132435
- color = "currentColor",
132436
- className,
132437
- style,
132438
- onClick,
132439
- "aria-label": ariaLabel,
132440
- title,
132441
- stroke,
132442
- ...props
132443
- }) => /* @__PURE__ */ jsx(
132444
- "div",
132445
- {
132446
- className,
132447
- style: {
132448
- width: size,
132449
- height: size,
132450
- cursor: onClick ? "pointer" : "default",
132451
- ...style
132452
- },
132453
- onClick,
132454
- role: onClick ? "button" : void 0,
132455
- "aria-label": ariaLabel,
132456
- title,
132457
- ...props,
132458
- children: /* @__PURE__ */ jsxs(
132459
- "svg",
132460
- {
132461
- xmlns: "http://www.w3.org/2000/svg",
132462
- width: "100%",
132463
- height: "100%",
132464
- viewBox: "0 0 22 22",
132465
- fill: "none",
132466
- children: [
132467
- /* @__PURE__ */ jsx(
132468
- "path",
132469
- {
132470
- d: "M11 20.1663C16.06 20.1663 20.1666 16.0597 20.1666 10.9997C20.1666 5.93967 16.06 1.83301 11 1.83301C5.93998 1.83301 1.83331 5.93967 1.83331 10.9997C1.83331 16.0597 5.93998 20.1663 11 20.1663Z",
132471
- stroke: stroke || "#292D32",
132472
- strokeWidth: "1.5",
132473
- "stroke-miterlimit": "10",
132474
- strokeLinecap: "round",
132475
- "stroke-linejoin": "round"
132476
- }
132477
- ),
132478
- /* @__PURE__ */ jsx(
132479
- "path",
132480
- {
132481
- d: "M17.3249 4.58301L4.49158 17.4163",
132482
- stroke: stroke || "#292D32",
132483
- strokeWidth: "1.5",
132484
- "stroke-miterlimit": "10",
132485
- strokeLinecap: "round",
132486
- "stroke-linejoin": "round"
132487
- }
132488
- )
132489
- ]
132490
- }
132491
- )
132492
- }
132493
- );
132494
-
132495
132561
  const BulkActions = ({
132496
132562
  quantity = 0,
132497
132563
  handleDelete,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.480",
4
+ "version": "1.9.481",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -136,7 +136,7 @@
136
136
  "@headlessui/react": "^2.2.2",
137
137
  "@heroicons/react": "^2.2.0",
138
138
  "@hookform/resolvers": "^5.1.1",
139
- "@pnkx-lib/icon": "^0.0.70",
139
+ "@pnkx-lib/icon": "^0.0.77",
140
140
  "@react-pdf-viewer/core": "^3.12.0",
141
141
  "@react-pdf-viewer/default-layout": "^3.12.0",
142
142
  "@tailwindcss/cli": "^4.1.6",
@@ -23,7 +23,6 @@ export interface InputProps extends InputPropsAntd {
23
23
  inputPassword?: boolean;
24
24
  subLabel?: string;
25
25
  classNameSubLabel?: string;
26
- maxValue?: number;
27
26
  thousandSeparator?: string;
28
27
  decimalSeparator?: string;
29
28
  toLowerCaseSafe?: boolean;