@pnkx-lib/ui 1.9.559 → 1.9.561

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/ui/Layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-GtzhUyP3.js';
2
+ import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-DACIS0E1.js';
3
3
  import * as React from 'react';
4
4
  import { useContext, useState, useEffect, useRef } from 'react';
5
5
  import { c as classNames } from '../chunks/index-xdC7i8zM.js';
@@ -185,7 +185,7 @@ const prepareComponentToken = token => {
185
185
  };
186
186
  // ============================== Export ==============================
187
187
  const DEPRECATED_TOKENS = [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']];
188
- const useStyle$1 = genStyleHooks('Layout', genLayoutStyle, prepareComponentToken, {
188
+ const useStyle$1 = genStyleHooks('Layout', token => [genLayoutStyle(token)], prepareComponentToken, {
189
189
  deprecatedTokens: DEPRECATED_TOKENS
190
190
  });
191
191
 
@@ -296,7 +296,7 @@ const genSiderStyle = token => {
296
296
  }
297
297
  };
298
298
  };
299
- const useStyle = genStyleHooks(['Layout', 'Sider'], genSiderStyle, prepareComponentToken, {
299
+ const useStyle = genStyleHooks(['Layout', 'Sider'], token => [genSiderStyle(token)], prepareComponentToken, {
300
300
  deprecatedTokens: DEPRECATED_TOKENS
301
301
  });
302
302
 
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { u as useForm } from '../chunks/index.esm-Dr5ZHcf7.js';
2
+ import { u as useForm } from '../chunks/index.esm-AaUjBMaK.js';
3
3
  import { Button } from './Button.js';
4
4
  import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
5
5
  import * as React from 'react';
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Select, Table } from 'antd';
3
- import { useState, useRef, useCallback } from 'react';
3
+ import { useState, useRef, useCallback, useEffect } from 'react';
4
4
  import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
5
5
  import { g as get } from '../chunks/get-BtGVDpFp.js';
6
6
  import { i as isEmpty } from '../chunks/isEmpty-DF7aUYTo.js';
@@ -31,6 +31,7 @@ const SelectSingleTable = ({
31
31
  label,
32
32
  required,
33
33
  classNameLabel,
34
+ defaultValue,
34
35
  ...selectProps
35
36
  }) => {
36
37
  const [open, setOpen] = useState(false);
@@ -145,6 +146,16 @@ const SelectSingleTable = ({
145
146
  setSearchValue("");
146
147
  }
147
148
  };
149
+ useEffect(() => {
150
+ if (defaultValue && onChange) {
151
+ onChange({
152
+ target: {
153
+ name,
154
+ value: defaultValue
155
+ }
156
+ });
157
+ }
158
+ }, [defaultValue]);
148
159
  const dropdownRender = () => /* @__PURE__ */ jsx("div", { className: "select-single-table-dropdown", children: /* @__PURE__ */ jsx(
149
160
  "div",
150
161
  {
@@ -173,6 +184,7 @@ const SelectSingleTable = ({
173
184
  )
174
185
  }
175
186
  ) });
187
+ console.log(getDisplayValue());
176
188
  return /* @__PURE__ */ jsxs(
177
189
  "div",
178
190
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import React__default, { useLayoutEffect, useEffect, useRef, useMemo, useCallback, useState, memo, useReducer, createContext, useContext } from 'react';
3
- import { u as useForm } from '../../chunks/index.esm-Dr5ZHcf7.js';
3
+ import { u as useForm } from '../../chunks/index.esm-AaUjBMaK.js';
4
4
  import { Checkbox } from '../../fields/Checkbox.js';
5
5
  import { PnkxField } from '../../fields/PnkxField.js';
6
6
  import { unstable_batchedUpdates, createPortal } from 'react-dom';
@@ -8,7 +8,7 @@ import { t as twMerge } from '../../chunks/bundle-mjs-BME7zF0Z.js';
8
8
  import { Modal } from '../Modal.js';
9
9
  import { Button } from '../Button.js';
10
10
  import { L as ListStatusApproved, d as TypeBulkActions } from '../../chunks/table-CIEieGXp.js';
11
- import { i as isBoolean } from '../../chunks/isBoolean-BjHoULBq.js';
11
+ import { i as isBoolean } from '../../chunks/isBoolean-De4T9T2f.js';
12
12
  import { Badge } from '../Badge.js';
13
13
  import { Tooltip } from '../Tooltip.js';
14
14
  import { Heading } from '../Heading.js';
package/es/ui/Tabs.js CHANGED
@@ -29,8 +29,8 @@ const identity = (arg) => arg;
29
29
  function useStore(api, selector = identity) {
30
30
  const slice = React__default.useSyncExternalStore(
31
31
  api.subscribe,
32
- React__default.useCallback(() => selector(api.getState()), [api, selector]),
33
- React__default.useCallback(() => selector(api.getInitialState()), [api, selector])
32
+ () => selector(api.getState()),
33
+ () => selector(api.getInitialState())
34
34
  );
35
35
  React__default.useDebugValue(slice);
36
36
  return slice;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { C as Controller } from '../chunks/index.esm-Dr5ZHcf7.js';
2
+ import { C as Controller } from '../chunks/index.esm-AaUjBMaK.js';
3
3
  import { UploadComponent } from './UploadComponent.js';
4
4
 
5
5
  const UploadImage = ({
package/es/ui/index.js CHANGED
@@ -54,7 +54,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
54
54
  import { T as TypeActionRowTable } from '../chunks/table-CIEieGXp.js';
55
55
  export { L as ListStatusApproved, P as PAGE_NUMBER, b as PAGE_SIZE, R as RemoveIconColor, c as SORT, S as START_PAGE, a as START_PAGE_SIZE, d as TypeBulkActions, e as TypeCategoryBulkActions, f as TypeStatusTable } from '../chunks/table-CIEieGXp.js';
56
56
  import { useToggle } from '@pnkx-lib/core';
57
- import { D as DeleteIcon } from '../chunks/isBoolean-BjHoULBq.js';
58
57
  export { BulkActions } from './BulkActions/index.js';
59
58
  export { BreadcrumbHeading } from './BreadcrumbHeading.js';
60
59
  export { Card } from './Card.js';
@@ -80,14 +79,49 @@ export { badgeStatusclinicalConfig } from './ClinicalStatus.js';
80
79
  export { I as ID_TABLE_WRAPPER, a as MAX_TAG_COUNT, M as MAX_TAG_TEXT_LENGTH, T as TINY_API } from '../chunks/common-BcURBmQ-.js';
81
80
  export { Sidebar } from './Sidebar/index.js';
82
81
 
83
- const EditIcon = ({ stroke, fill = "#007BE5" }) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 14, height: 15, fill: "none", children: /* @__PURE__ */ jsx(
84
- "path",
82
+ const EditIcon = ({
83
+ size = 20,
84
+ color = "currentColor",
85
+ className,
86
+ style,
87
+ onClick,
88
+ "aria-label": ariaLabel,
89
+ title,
90
+ ...props
91
+ }) => /* @__PURE__ */ jsx(
92
+ "div",
85
93
  {
86
- fill,
87
- stroke,
88
- d: "m1.177 11.137.711.237-.711-.237ZM1.8 9.264l-.712-.238.712.238Zm.644-1.043.53.53-.53-.53ZM8.667 2l-.53-.53.53.53ZM12 5.333l.53.53-.53-.53Zm-6.222 6.222-.53-.53.53.53Zm-1.042.644.237.711-.237-.711Zm-1.873.624.237.712-.237-.712Zm2.574-.95-.452-.598.452.599Zm-.263.163-.333-.672.333.672Zm7.629-9.11-.672.333.672-.333Zm0 1.48-.672-.333.672.333Zm-3.21-3.21.333.673-.333-.672Zm1.48 0-.333.673.333-.672Zm-9.11 7.63.673.333-.672-.333Zm.163-.263-.599-.452.6.452Zm-1.26 4.066-.706.252.706-.252Zm.505.505-.252.706.252-.706ZM8.364 2.303a.75.75 0 0 0-1.061 1.06l1.06-1.06Zm2.272 4.394a.75.75 0 0 0 1.061-1.06l-1.06 1.06ZM7 12.917a.75.75 0 0 0 0 1.5v-1.5Zm5.833 1.5a.75.75 0 0 0 0-1.5v1.5Zm-11.656-3.28.711.237.624-1.873-.711-.237-.712-.238L.465 10.9l.712.238ZM2.445 8.22l.53.53 6.222-6.22L8.667 2l-.53-.53-6.222 6.22.53.531ZM12 5.333l-.53-.53-6.222 6.221.53.53.53.53 6.222-6.22-.53-.53ZM4.736 12.2l-.237-.712-1.873.625.237.711.237.712 1.873-.625-.237-.711Zm1.042-.644-.53-.53c-.18.18-.222.219-.263.25l.452.599.451.598c.144-.108.269-.235.42-.387l-.53-.53Zm-1.042.644.237.711c.204-.068.373-.122.535-.202l-.334-.672-.333-.672c-.047.023-.1.043-.342.123l.237.712Zm.7-.325-.451-.6a.92.92 0 0 1-.144.09l.333.672.334.672c.134-.067.261-.146.38-.236l-.451-.598ZM12 2l-.53.53c.497.497.608.622.661.73l.672-.334.672-.333c-.19-.383-.533-.712-.945-1.124L12 2Zm0 3.333.53.53c.412-.411.755-.74.945-1.124l-.672-.333-.672-.333c-.053.107-.164.233-.661.73l.53.53Zm.803-2.407-.672.333a.917.917 0 0 1 0 .814l.672.333.672.333a2.417 2.417 0 0 0 0-2.146l-.672.333ZM8.667 2l.53.53c.497-.497.622-.608.73-.661l-.334-.672L9.26.525c-.383.19-.712.533-1.124.944l.53.53ZM12 2l.53-.53c-.411-.412-.74-.755-1.124-.945l-.333.672-.333.672c.107.053.232.164.73.661L12 2Zm-2.407-.803.333.672a.917.917 0 0 1 .814 0l.333-.672.333-.672a2.417 2.417 0 0 0-2.146 0l.333.672ZM1.801 9.264l.711.237c.081-.242.1-.295.124-.342l-.672-.333-.672-.334c-.08.161-.135.33-.203.534l.712.238Zm.644-1.043-.53-.53c-.152.152-.279.276-.388.42l.6.452.598.452a2.99 2.99 0 0 1 .25-.263l-.53-.53Zm-.481.605.672.333c.025-.05.055-.1.089-.144l-.599-.452-.599-.452c-.09.12-.168.247-.235.381l.672.334Zm-.787 2.31L.465 10.9c-.13.393-.246.737-.312 1.016-.063.267-.118.617.007.966l.706-.252.706-.252c.028.078-.007.088.041-.119.046-.196.135-.463.275-.884l-.711-.237Zm1.686 1.687-.237-.711c-.421.14-.688.228-.884.274-.208.049-.197.014-.12.041l-.251.707-.252.706c.349.124.698.07.966.007.278-.066.622-.181 1.015-.312l-.237-.712ZM.866 12.63l-.706.252c.16.447.511.8.96.96l.251-.707.252-.707a.083.083 0 0 1-.05-.05l-.707.252Zm6.967-9.796-.53.53 3.333 3.334.53-.53.531-.53-3.333-3.334-.53.53ZM7 13.666v.75h5.833v-1.5H7v.75Z"
94
+ className,
95
+ style: {
96
+ width: size,
97
+ height: size,
98
+ cursor: onClick ? "pointer" : "default",
99
+ ...style
100
+ },
101
+ onClick,
102
+ role: onClick ? "button" : void 0,
103
+ "aria-label": ariaLabel,
104
+ title,
105
+ ...props,
106
+ children: /* @__PURE__ */ jsx(
107
+ "svg",
108
+ {
109
+ width: "100%",
110
+ height: "100%",
111
+ viewBox: "0 0 20 20",
112
+ fill: "none",
113
+ xmlns: "http://www.w3.org/2000/svg",
114
+ children: /* @__PURE__ */ jsx(
115
+ "path",
116
+ {
117
+ d: "M4.17657 14.1366L4.88808 14.3738L4.17657 14.1366ZM4.80089 12.2636L4.08938 12.0265L4.08938 12.0265L4.80089 12.2636ZM5.44509 11.2213L5.97542 11.7516L5.97542 11.7516L5.44509 11.2213ZM11.6666 4.99975L11.1363 4.46942V4.46942L11.6666 4.99975ZM15 8.33308L15.5303 8.86341V8.86341L15 8.33308ZM8.77843 14.5546L8.2481 14.0243L8.2481 14.0243L8.77843 14.5546ZM7.73608 15.1988L7.97325 15.9103H7.97326L7.73608 15.1988ZM5.86312 15.8231L6.10029 16.5347L6.10029 16.5347L5.86312 15.8231ZM8.43672 14.8736L7.98504 14.2748L7.98504 14.2748L8.43672 14.8736ZM8.17417 15.0358L7.84064 14.3641L8.17417 15.0358ZM15.803 5.92639L15.131 6.2594V6.2594L15.803 5.92639ZM15.803 7.40644L15.131 7.07343V7.07343L15.803 7.40644ZM12.5933 4.19674L12.9263 4.86875L12.9263 4.86875L12.5933 4.19674ZM14.0733 4.19674L13.7403 4.86875V4.86875L14.0733 4.19674ZM4.96388 11.8255L5.63564 12.1591L5.63564 12.1591L4.96388 11.8255ZM5.12615 11.563L4.52742 11.1113L4.52742 11.1113L5.12615 11.563ZM3.86599 15.6287L3.15956 15.8806L3.86599 15.6287ZM4.37101 16.1337L4.1191 16.8401L4.1191 16.8401L4.37101 16.1337ZM11.3636 5.30278C11.0707 5.00989 10.5959 5.00989 10.303 5.30278C10.0101 5.59567 10.0101 6.07055 10.303 6.36344L11.3636 5.30278ZM13.6363 9.69677C13.9292 9.98967 14.4041 9.98967 14.697 9.69677C14.9898 9.40388 14.9898 8.92901 14.697 8.63611L13.6363 9.69677ZM9.99996 15.9164C9.58575 15.9164 9.24996 16.2522 9.24996 16.6664C9.24996 17.0806 9.58575 17.4164 9.99996 17.4164V15.9164ZM15.8333 17.4164C16.2475 17.4164 16.5833 17.0806 16.5833 16.6664C16.5833 16.2522 16.2475 15.9164 15.8333 15.9164V17.4164ZM4.17657 14.1366L4.88808 14.3738L5.5124 12.5008L4.80089 12.2636L4.08938 12.0265L3.46506 13.8994L4.17657 14.1366ZM5.44509 11.2213L5.97542 11.7516L12.197 5.53008L11.6666 4.99975L11.1363 4.46942L4.91476 10.691L5.44509 11.2213ZM15 8.33308L14.4696 7.80275L8.2481 14.0243L8.77843 14.5546L9.30876 15.0849L15.5303 8.86341L15 8.33308ZM7.73608 15.1988L7.49891 14.4873L5.62594 15.1116L5.86312 15.8231L6.10029 16.5347L7.97325 15.9103L7.73608 15.1988ZM8.77843 14.5546L8.2481 14.0243C8.06793 14.2045 8.02648 14.2436 7.98504 14.2748L8.43672 14.8736L8.8884 15.4723C9.03233 15.3637 9.1569 15.2368 9.30876 15.0849L8.77843 14.5546ZM7.73608 15.1988L7.97326 15.9103C8.17699 15.8424 8.34621 15.7878 8.50769 15.7076L8.17417 15.0358L7.84064 14.3641C7.79415 14.3871 7.74063 14.4067 7.49891 14.4873L7.73608 15.1988ZM8.43672 14.8736L7.98504 14.2748C7.93977 14.309 7.89143 14.3388 7.84064 14.3641L8.17417 15.0358L8.50769 15.7076C8.6416 15.6411 8.76905 15.5623 8.88841 15.4723L8.43672 14.8736ZM15 4.99975L14.4696 5.53008C14.9668 6.02727 15.0779 6.15241 15.131 6.2594L15.803 5.92639L16.475 5.59338C16.2851 5.21021 15.9418 4.88097 15.5303 4.46942L15 4.99975ZM15 8.33308L15.5303 8.86341C15.9418 8.45186 16.2851 8.12262 16.475 7.73945L15.803 7.40644L15.131 7.07343C15.0779 7.18042 14.9668 7.30556 14.4696 7.80275L15 8.33308ZM15.803 5.92639L15.131 6.2594C15.258 6.51586 15.258 6.81697 15.131 7.07343L15.803 7.40644L16.475 7.73945C16.81 7.06333 16.81 6.2695 16.475 5.59338L15.803 5.92639ZM11.6666 4.99975L12.197 5.53008C12.6941 5.03289 12.8193 4.92177 12.9263 4.86875L12.5933 4.19674L12.2603 3.52472C11.8771 3.7146 11.5479 4.05787 11.1363 4.46942L11.6666 4.99975ZM15 4.99975L15.5303 4.46942C15.1187 4.05786 14.7895 3.7146 14.4063 3.52472L14.0733 4.19674L13.7403 4.86875C13.8473 4.92177 13.9724 5.03288 14.4696 5.53008L15 4.99975ZM12.5933 4.19674L12.9263 4.86875C13.1827 4.74167 13.4838 4.74167 13.7403 4.86875L14.0733 4.19674L14.4063 3.52472C13.7302 3.18968 12.9364 3.18968 12.2603 3.52472L12.5933 4.19674ZM4.80089 12.2636L5.5124 12.5008C5.59298 12.2591 5.61256 12.2056 5.63564 12.1591L4.96388 11.8255L4.29213 11.492C4.21195 11.6535 4.15729 11.8227 4.08938 12.0265L4.80089 12.2636ZM5.44509 11.2213L4.91477 10.6909C4.76291 10.8428 4.636 10.9674 4.52742 11.1113L5.12615 11.563L5.72489 12.0147C5.75615 11.9732 5.79526 11.9318 5.97542 11.7516L5.44509 11.2213ZM4.96388 11.8255L5.63564 12.1591C5.66086 12.1083 5.69074 12.0599 5.72489 12.0147L5.12615 11.563L4.52742 11.1113C4.43738 11.2307 4.35861 11.3581 4.29213 11.492L4.96388 11.8255ZM4.17657 14.1366L3.46506 13.8994C3.33407 14.2924 3.21866 14.6362 3.15318 14.9149C3.09031 15.1824 3.03521 15.5319 3.15956 15.8806L3.86599 15.6287L4.57242 15.3768C4.60023 15.4548 4.5647 15.4653 4.61341 15.258C4.6595 15.0619 4.74764 14.7951 4.88808 14.3738L4.17657 14.1366ZM5.86312 15.8231L5.62595 15.1116C5.20464 15.2521 4.93782 15.3402 4.74168 15.3863C4.53442 15.435 4.54493 15.3995 4.62292 15.4273L4.37101 16.1337L4.1191 16.8401C4.46782 16.9645 4.81727 16.9094 5.08481 16.8465C5.36348 16.781 5.70735 16.6656 6.10029 16.5347L5.86312 15.8231ZM3.86599 15.6287L3.15956 15.8806C3.31919 16.3283 3.67145 16.6805 4.1191 16.8401L4.37101 16.1337L4.62292 15.4273C4.59936 15.4189 4.58082 15.4003 4.57242 15.3768L3.86599 15.6287ZM10.8333 5.83311L10.303 6.36344L13.6363 9.69677L14.1666 9.16644L14.697 8.63611L11.3636 5.30278L10.8333 5.83311ZM9.99996 16.6664V17.4164H15.8333V16.6664V15.9164H9.99996V16.6664Z",
118
+ fill: color
119
+ }
120
+ )
121
+ }
122
+ )
89
123
  }
90
- ) });
124
+ );
91
125
 
92
126
  const ActionIcon = ({
93
127
  size = 24,
@@ -195,6 +229,50 @@ const ViewIcon = ({
195
229
  }
196
230
  );
197
231
 
232
+ const TrashCanIcon = ({
233
+ size = 20,
234
+ color = "currentColor",
235
+ className,
236
+ style,
237
+ onClick,
238
+ "aria-label": ariaLabel,
239
+ title,
240
+ ...props
241
+ }) => /* @__PURE__ */ jsx(
242
+ "div",
243
+ {
244
+ className,
245
+ style: {
246
+ width: size,
247
+ height: size,
248
+ cursor: onClick ? "pointer" : "default",
249
+ ...style
250
+ },
251
+ onClick,
252
+ role: onClick ? "button" : void 0,
253
+ "aria-label": ariaLabel,
254
+ title,
255
+ ...props,
256
+ children: /* @__PURE__ */ jsx(
257
+ "svg",
258
+ {
259
+ width: "100%",
260
+ height: "100%",
261
+ viewBox: "0 0 20 20",
262
+ fill: "none",
263
+ xmlns: "http://www.w3.org/2000/svg",
264
+ children: /* @__PURE__ */ jsx(
265
+ "path",
266
+ {
267
+ d: "M15.7438 15.0298L16.4938 15.0365L15.7438 15.0298ZM3.33334 4.25002C2.91913 4.25002 2.58334 4.58581 2.58334 5.00002C2.58334 5.41423 2.91913 5.75002 3.33334 5.75002V5.00002V4.25002ZM16.6667 5.75002C17.0809 5.75002 17.4167 5.41423 17.4167 5.00002C17.4167 4.58581 17.0809 4.25002 16.6667 4.25002V5.00002V5.75002ZM9.08334 8.33335C9.08334 7.91914 8.74756 7.58335 8.33334 7.58335C7.91913 7.58335 7.58334 7.91914 7.58334 8.33335H8.33334H9.08334ZM7.58334 15C7.58334 15.4142 7.91913 15.75 8.33334 15.75C8.74756 15.75 9.08334 15.4142 9.08334 15H8.33334H7.58334ZM12.4167 8.33335C12.4167 7.91914 12.0809 7.58335 11.6667 7.58335C11.2525 7.58335 10.9167 7.91914 10.9167 8.33335H11.6667H12.4167ZM10.9167 15C10.9167 15.4142 11.2525 15.75 11.6667 15.75C12.0809 15.75 12.4167 15.4142 12.4167 15H11.6667H10.9167ZM15.8333 5.00002L15.0834 4.99332L14.9938 15.0231L15.7438 15.0298L16.4938 15.0365L16.5833 5.00672L15.8333 5.00002ZM12.4106 18.3334V17.5834H7.50001V18.3334V19.0834H12.4106V18.3334ZM4.16668 5.00002H3.41668V15H4.16668H4.91668V5.00002H4.16668ZM3.33334 5.00002V5.75002H4.16668V5.00002V4.25002H3.33334V5.00002ZM4.16668 5.00002V5.75002H6.66668V5.00002V4.25002H4.16668V5.00002ZM6.66668 5.00002V5.75002H13.3333V5.00002V4.25002H6.66668V5.00002ZM13.3333 5.00002V5.75002H15.8333V5.00002V4.25002H13.3333V5.00002ZM15.8333 5.00002V5.75002H16.6667V5.00002V4.25002H15.8333V5.00002ZM6.66668 4.62965H7.41668C7.41668 3.48807 8.48779 2.41669 10 2.41669V1.66669V0.916687C7.83033 0.916687 5.91668 2.49843 5.91668 4.62965H6.66668ZM10 1.66669V2.41669C11.5122 2.41669 12.5833 3.48807 12.5833 4.62965H13.3333H14.0833C14.0833 2.49843 12.1697 0.916687 10 0.916687V1.66669ZM6.66668 4.62965H5.91668V5.00002H6.66668H7.41668V4.62965H6.66668ZM13.3333 4.62965H12.5833V5.00002H13.3333H14.0833V4.62965H13.3333ZM7.50001 18.3334V17.5834C6.07327 17.5834 4.91668 16.4268 4.91668 15H4.16668H3.41668C3.41668 17.2552 5.24485 19.0834 7.50001 19.0834V18.3334ZM15.7438 15.0298L14.9938 15.0231C14.9812 16.4408 13.8283 17.5834 12.4106 17.5834V18.3334V19.0834C14.6515 19.0834 16.4738 17.2773 16.4938 15.0365L15.7438 15.0298ZM8.33334 8.33335H7.58334V15H8.33334H9.08334V8.33335H8.33334ZM11.6667 8.33335H10.9167V15H11.6667H12.4167V8.33335H11.6667Z",
268
+ fill: color || "#E0E0E0"
269
+ }
270
+ )
271
+ }
272
+ )
273
+ }
274
+ );
275
+
198
276
  const PrinterIcon = ({
199
277
  size = 20,
200
278
  color = "currentColor",
@@ -360,7 +438,7 @@ const ActionRowTable = ({
360
438
  type: "text",
361
439
  className: "cursor-pointer",
362
440
  shape: "circle",
363
- icon: /* @__PURE__ */ jsx(EditIcon, { fill: "#007BE5" }),
441
+ icon: /* @__PURE__ */ jsx(EditIcon, { color: "#007BE5" }),
364
442
  disabled
365
443
  }
366
444
  ) }) });
@@ -372,7 +450,7 @@ const ActionRowTable = ({
372
450
  type: "text",
373
451
  className: "cursor-pointer",
374
452
  shape: "circle",
375
- icon: /* @__PURE__ */ jsx(DeleteIcon, { fill: "#DD4338" }),
453
+ icon: /* @__PURE__ */ jsx(TrashCanIcon, { color: "#DD4338" }),
376
454
  disabled
377
455
  }
378
456
  ) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.559",
4
+ "version": "1.9.561",
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.89",
139
+ "@pnkx-lib/icon": "^0.0.92",
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",
@@ -33,4 +33,4 @@ export interface SelectSingleTableProps<T = Record<string, unknown>> extends Omi
33
33
  classNameContainer?: string;
34
34
  classNameLabel?: string;
35
35
  }
36
- export declare const SelectSingleTable: <T>({ columns, dataSource, selectedKey, selectedRow, onSelectionChange, onLoadMore, onSearch, hasMore, loading, rowKey, tableProps, infiniteScroll, loadMoreThreshold, searchPlaceholder, displayField, customeContentTable, customeContainerTable, field, formState, classNameContainer, label, required, classNameLabel, ...selectProps }: SelectSingleTableProps<T>) => import("react/jsx-runtime").JSX.Element;
36
+ export declare const SelectSingleTable: <T>({ columns, dataSource, selectedKey, selectedRow, onSelectionChange, onLoadMore, onSearch, hasMore, loading, rowKey, tableProps, infiniteScroll, loadMoreThreshold, searchPlaceholder, displayField, customeContentTable, customeContainerTable, field, formState, classNameContainer, label, required, classNameLabel, defaultValue, ...selectProps }: SelectSingleTableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,68 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-D5KtpA0t.js';
3
3
  import { r as requireIsObjectLike, b as require_baseGetTag } from './isArray-DNoLuxS1.js';
4
4
 
5
+ const RefuseApprovalDropListIcon = ({
6
+ size = 22,
7
+ color = "currentColor",
8
+ className,
9
+ style,
10
+ onClick,
11
+ "aria-label": ariaLabel,
12
+ title,
13
+ stroke,
14
+ ...props
15
+ }) => /* @__PURE__ */ jsx(
16
+ "div",
17
+ {
18
+ className,
19
+ style: {
20
+ width: size,
21
+ height: size,
22
+ cursor: onClick ? "pointer" : "default",
23
+ ...style
24
+ },
25
+ onClick,
26
+ role: onClick ? "button" : void 0,
27
+ "aria-label": ariaLabel,
28
+ title,
29
+ ...props,
30
+ children: /* @__PURE__ */ jsxs(
31
+ "svg",
32
+ {
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ width: "100%",
35
+ height: "100%",
36
+ viewBox: "0 0 22 22",
37
+ fill: "none",
38
+ children: [
39
+ /* @__PURE__ */ jsx(
40
+ "path",
41
+ {
42
+ 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",
43
+ stroke: stroke || "#292D32",
44
+ strokeWidth: "1.5",
45
+ "stroke-miterlimit": "10",
46
+ strokeLinecap: "round",
47
+ "stroke-linejoin": "round"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsx(
51
+ "path",
52
+ {
53
+ d: "M17.3249 4.58301L4.49158 17.4163",
54
+ stroke: stroke || "#292D32",
55
+ strokeWidth: "1.5",
56
+ "stroke-miterlimit": "10",
57
+ strokeLinecap: "round",
58
+ "stroke-linejoin": "round"
59
+ }
60
+ )
61
+ ]
62
+ }
63
+ )
64
+ }
65
+ );
66
+
5
67
  const RestoreIcon = ({ stroke, fill }) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 22, height: 22, fill: "none", children: /* @__PURE__ */ jsx(
6
68
  "path",
7
69
  {
@@ -129,68 +191,6 @@ const MoreIcon = ({ stroke, fill }) => /* @__PURE__ */ jsx("svg", { xmlns: "http
129
191
  }
130
192
  ) });
131
193
 
132
- const RefuseApprovalDropListIcon = ({
133
- size = 22,
134
- color = "currentColor",
135
- className,
136
- style,
137
- onClick,
138
- "aria-label": ariaLabel,
139
- title,
140
- stroke,
141
- ...props
142
- }) => /* @__PURE__ */ jsx(
143
- "div",
144
- {
145
- className,
146
- style: {
147
- width: size,
148
- height: size,
149
- cursor: onClick ? "pointer" : "default",
150
- ...style
151
- },
152
- onClick,
153
- role: onClick ? "button" : void 0,
154
- "aria-label": ariaLabel,
155
- title,
156
- ...props,
157
- children: /* @__PURE__ */ jsxs(
158
- "svg",
159
- {
160
- xmlns: "http://www.w3.org/2000/svg",
161
- width: "100%",
162
- height: "100%",
163
- viewBox: "0 0 22 22",
164
- fill: "none",
165
- children: [
166
- /* @__PURE__ */ jsx(
167
- "path",
168
- {
169
- 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",
170
- stroke: stroke || "#292D32",
171
- strokeWidth: "1.5",
172
- "stroke-miterlimit": "10",
173
- strokeLinecap: "round",
174
- "stroke-linejoin": "round"
175
- }
176
- ),
177
- /* @__PURE__ */ jsx(
178
- "path",
179
- {
180
- d: "M17.3249 4.58301L4.49158 17.4163",
181
- stroke: stroke || "#292D32",
182
- strokeWidth: "1.5",
183
- "stroke-miterlimit": "10",
184
- strokeLinecap: "round",
185
- "stroke-linejoin": "round"
186
- }
187
- )
188
- ]
189
- }
190
- )
191
- }
192
- );
193
-
194
194
  var isBoolean_1;
195
195
  var hasRequiredIsBoolean;
196
196