funuicss 3.3.6 → 3.3.7

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.3.6",
2
+ "version": "3.3.7",
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",
package/ui/table/Table.js CHANGED
@@ -189,14 +189,14 @@ function Table(_a) {
189
189
  React.createElement("div", { className: "col width-200-max" },
190
190
  React.createElement(RowFlex_1.default, { gap: 0.7 },
191
191
  !selectedField &&
192
- React.createElement(Select_1.default, { value: selectedField || '', onChange: function (e) { return handleFieldChange(e); }, options: __spreadArray([
192
+ React.createElement(Select_1.default, { searchable: true, value: selectedField || '', onChange: function (e) { return handleFieldChange(e); }, options: __spreadArray([
193
193
  { text: '🔍 Filter', value: '' },
194
194
  { text: 'All*', value: '' }
195
195
  ], (filterableFields || []).map(function (field) { return ({
196
196
  text: field,
197
197
  value: field
198
198
  }); }), true) }),
199
- selectedField && (React.createElement(Select_1.default, { funcss: "width-200-max", value: selectedValue || '', onChange: function (e) {
199
+ selectedField && (React.createElement(Select_1.default, { searchable: true, funcss: "width-200-max", value: selectedValue || '', onChange: function (e) {
200
200
  if (e === 'clear_all') {
201
201
  setSelectedField('');
202
202
  }
@@ -243,7 +243,7 @@ function Table(_a) {
243
243
  isLoading &&
244
244
  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function () { return (React.createElement(Row_1.default, { funcss: 'skeleton' })); }),
245
245
  children ? children : ''),
246
- (filteredData.length === 0 && !isLoading) &&
246
+ (filteredData.length === 0 && !isLoading && !children) &&
247
247
  React.createElement(ScrollInView_1.default, null,
248
248
  React.createElement(View_1.default, { funcss: 'max-w-400 p-4 text-center center' },
249
249
  React.createElement("div", null, (emptyResponse === null || emptyResponse === void 0 ? void 0 : emptyResponse.icon) || React.createElement(pi_1.PiEmpty, { size: 30, className: 'text-error' })),