funuicss 3.4.3 → 3.4.5

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/css/fun.css CHANGED
@@ -2456,6 +2456,7 @@ h6, .h6 {
2456
2456
  }
2457
2457
 
2458
2458
 
2459
+
2459
2460
  /*buttons*/
2460
2461
  .button {
2461
2462
  border: none;
@@ -3519,12 +3520,10 @@ background-color: rgba(var(--borderRgb), 0.3);
3519
3520
  }
3520
3521
 
3521
3522
 
3522
- .custom-select {position: relative; width: 100%; border-radius: var(--InputButtonBorderRadius); isolation: isolate;}
3523
+ .custom-select {position: relative; width: 100%; border-radius: var(--InputButtonBorderRadius); }
3523
3524
 
3524
3525
  .custom-select.fullWidth {max-width: none;}
3525
3526
 
3526
-
3527
-
3528
3527
  .select-trigger {
3529
3528
  display: flex;
3530
3529
  align-items: center;
@@ -3631,18 +3630,19 @@ border-top: none;
3631
3630
  border-radius: 0 0 0.5rem 0.5rem;
3632
3631
  max-height: 250px;
3633
3632
  overflow: hidden;
3634
- z-index: 9999;
3635
3633
  opacity: 0;
3636
3634
  visibility: hidden;
3637
3635
  transform: translateY(-10px);
3638
3636
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
3639
3637
  box-shadow: var(--card);
3638
+ z-index: 1000 !important;
3640
3639
  }
3641
3640
 
3642
3641
  .select-dropdown.open {
3643
3642
  opacity: 1;
3644
3643
  visibility: visible;
3645
3644
  transform: translateY(0);
3645
+
3646
3646
  }
3647
3647
 
3648
3648
  .select-dropdown.rounded {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.4.3",
2
+ "version": "3.4.5",
3
3
  "name": "funuicss",
4
4
  "description": "React and Next.js component UI Library for creating Easy and good looking websites with fewer lines of code. Elevate your web development experience with our cutting-edge React/Next.js component UI Library. Craft stunning websites effortlessly, boasting both seamless functionality and aesthetic appeal—all achieved with minimal lines of code. Unleash the power of simplicity and style in your projects!",
5
5
  "main": "index.js",
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  var react_1 = __importStar(require("react"));
37
37
  var Select = function (_a) {
38
- var id = _a.id, name = _a.name, value = _a.value, defaultValue = _a.defaultValue, _b = _a.placeholder, placeholder = _b === void 0 ? 'Select an option' : _b, _c = _a.options, options = _c === void 0 ? [] : _c, onChange = _a.onChange, onBlur = _a.onBlur, _d = _a.searchable, searchable = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.bordered, bordered = _f === void 0 ? false : _f, _g = _a.borderless, borderless = _g === void 0 ? false : _g, _h = _a.rounded, rounded = _h === void 0 ? false : _h, _j = _a.flat, flat = _j === void 0 ? false : _j, _k = _a.fullWidth, fullWidth = _k === void 0 ? false : _k, _l = _a.status, status = _l === void 0 ? '' : _l, _m = _a.className, className = _m === void 0 ? '' : _m, _o = _a.funcss, funcss = _o === void 0 ? '' : _o, _p = _a.style, style = _p === void 0 ? {} : _p;
38
+ var id = _a.id, name = _a.name, value = _a.value, defaultValue = _a.defaultValue, _b = _a.placeholder, placeholder = _b === void 0 ? 'Select an option' : _b, _c = _a.options, options = _c === void 0 ? [] : _c, onChange = _a.onChange, onBlur = _a.onBlur, _d = _a.searchable, searchable = _d === void 0 ? true : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.bordered, bordered = _f === void 0 ? false : _f, _g = _a.borderless, borderless = _g === void 0 ? false : _g, _h = _a.rounded, rounded = _h === void 0 ? false : _h, _j = _a.flat, flat = _j === void 0 ? false : _j, _k = _a.fullWidth, fullWidth = _k === void 0 ? false : _k, _l = _a.status, status = _l === void 0 ? '' : _l, _m = _a.className, className = _m === void 0 ? '' : _m, _o = _a.funcss, funcss = _o === void 0 ? '' : _o, _p = _a.style, style = _p === void 0 ? {} : _p;
39
39
  var _q = (0, react_1.useState)(false), isOpen = _q[0], setIsOpen = _q[1];
40
40
  var _r = (0, react_1.useState)(null), selectedOption = _r[0], setSelectedOption = _r[1];
41
41
  var _s = (0, react_1.useState)(''), searchQuery = _s[0], setSearchQuery = _s[1];
package/ui/table/Table.js CHANGED
@@ -89,6 +89,7 @@ var ToolTip_1 = __importDefault(require("../tooltip/ToolTip"));
89
89
  var Tip_1 = __importDefault(require("../tooltip/Tip"));
90
90
  var Flex_1 = __importDefault(require("../flex/Flex"));
91
91
  var ci_1 = require("react-icons/ci");
92
+ var io5_1 = require("react-icons/io5");
92
93
  function Table(_a) {
93
94
  var _b, _c;
94
95
  var children = _a.children, funcss = _a.funcss, bordered = _a.bordered, noStripped = _a.noStripped, hoverable = _a.hoverable, _d = _a.title, title = _d === void 0 ? "" : _d, showTotal = _a.showTotal, light = _a.light, dark = _a.dark, head = _a.head, body = _a.body, data = _a.data, _e = _a.isLoading, isLoading = _e === void 0 ? false : _e, right = _a.right, hideExport = _a.hideExport, height = _a.height, _f = _a.pageSize, pageSize = _f === void 0 ? data ? 10 : 0 : _f, // Default page size,
@@ -105,7 +106,7 @@ function Table(_a) {
105
106
  var endIndex = data ? Math.min(startIndex + pageSize, ((_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.length) || 0) : 0;
106
107
  var _j = (0, react_1.useState)(null), selectedField = _j[0], setSelectedField = _j[1];
107
108
  var _k = (0, react_1.useState)(null), selectedValue = _k[0], setSelectedValue = _k[1];
108
- var _l = (0, react_1.useState)(false), showSearch = _l[0], setshowSearch = _l[1];
109
+ var _l = (0, react_1.useState)(true), showSearch = _l[0], setshowSearch = _l[1];
109
110
  var _m = (0, react_1.useState)(""), searchQuery = _m[0], setsearchQuery = _m[1];
110
111
  // Enhanced filter logic:
111
112
  var normalize = function (val) { return val === null || val === void 0 ? void 0 : val.toString().toLowerCase().trim(); };
@@ -197,10 +198,10 @@ function Table(_a) {
197
198
  React.createElement("div", null,
198
199
  React.createElement(Text_1.default, { text: 'Records: ', size: 'sm' }),
199
200
  React.createElement(Text_1.default, { text: filteredData.length, weight: 600, color: 'primary' }))),
200
- data && filterableFields ?
201
+ data ?
201
202
  React.createElement("div", null,
202
203
  React.createElement(Flex_1.default, { width: '100%', wrap: 'nowrap', alignItems: 'center', gap: 0.7 },
203
- !selectedField && !showSearch &&
204
+ !selectedField && !showSearch && filterableFields &&
204
205
  React.createElement("div", { className: '' },
205
206
  React.createElement(Select_1.default, { fullWidth: true, searchable: true, funcss: 'min-w-300 w-full', rounded: true, value: selectedField || '', onChange: function (e) { return handleFieldChange(e); }, options: __spreadArray([
206
207
  { text: '🔍 Filter', value: '' },
@@ -209,7 +210,7 @@ function Table(_a) {
209
210
  text: field,
210
211
  value: field
211
212
  }); }), true) })),
212
- selectedField && !showSearch && (React.createElement("div", { className: '' },
213
+ selectedField && !showSearch && filterableFields && (React.createElement("div", { className: '' },
213
214
  React.createElement(Select_1.default, { rounded: true, searchable: true, funcss: 'min-w-300 w-full', fullWidth: true, value: selectedValue || '', onChange: function (e) {
214
215
  if (e === 'clear_all') {
215
216
  setSelectedField('');
@@ -235,8 +236,10 @@ function Table(_a) {
235
236
  React.createElement("div", { className: 'animated fade-in' },
236
237
  React.createElement("div", { onClick: function () { return setshowSearch(false); } },
237
238
  React.createElement(ToolTip_1.default, null,
238
- React.createElement(pi_1.PiXThin, { className: 'pointer', size: 23, onClick: function () { return setshowSearch(false); } }),
239
- React.createElement(Tip_1.default, { tip: "bottom", animation: "Opacity", duration: 1, content: "Close Search" })))))
239
+ filterableFields ? React.createElement(io5_1.IoFilterOutline, null)
240
+ :
241
+ React.createElement(pi_1.PiXThin, { className: 'pointer', size: 23, onClick: function () { return setshowSearch(false); } }),
242
+ React.createElement(Tip_1.default, { tip: "bottom", animation: "Opacity", duration: 1, content: filterableFields ? "Filter" : "Close Search" })))))
240
243
  :
241
244
  React.createElement("div", { className: 'animated fade-in' },
242
245
  React.createElement(ToolTip_1.default, null,