@gnwebsoft/ui 2.17.2 → 2.17.3

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.
@@ -1,10 +1,29 @@
1
- // src/components/ClearButton/index.tsx
2
- import { Fragment, jsx } from "react/jsx-runtime";
1
+ // src/components/ClearButton/ClearButton.tsx
2
+ import { Button } from "@mui/material";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var ClearButton = ({ isSubmitting, handleClear }) => {
5
+ return /* @__PURE__ */ jsx(Button, { variant: "outlined", onClick: handleClear, children: "Clear" });
6
+ };
7
+ var ClearButton_default = ClearButton;
3
8
 
4
9
  // src/components/FilterButton/FilterButton.tsx
5
- import { Fragment as Fragment2, jsx as jsx2 } from "react/jsx-runtime";
10
+ import { LoadingButton } from "@mui/lab";
11
+ import { Badge } from "@mui/material";
12
+ import FilterAltIcon from "@mui/icons-material/FilterAlt";
13
+ import { jsx as jsx2 } from "react/jsx-runtime";
6
14
  var FilterButton = ({ isSubmitting }) => {
7
- return /* @__PURE__ */ jsx2(Fragment2, {});
15
+ return /* @__PURE__ */ jsx2(
16
+ LoadingButton,
17
+ {
18
+ type: "submit",
19
+ variant: "contained",
20
+ loading: isSubmitting,
21
+ disableRipple: true,
22
+ sx: { bgcolor: "#3caed7 !important" },
23
+ startIcon: /* @__PURE__ */ jsx2(Badge, { color: "error", variant: "standard", children: /* @__PURE__ */ jsx2(FilterAltIcon, { width: "20", height: "20" }) }),
24
+ children: "Filter"
25
+ }
26
+ );
8
27
  };
9
28
  var FilterButton_default = FilterButton;
10
29
 
@@ -17,15 +36,15 @@ import {
17
36
  Grid2,
18
37
  Typography
19
38
  } from "@mui/material";
20
- import { Fragment as Fragment3, jsx as jsx3, jsxs } from "react/jsx-runtime";
39
+ import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
21
40
  var FormWrapper = ({
22
41
  children,
23
42
  title,
24
43
  editMode,
25
44
  breadCrumb
26
45
  }) => {
27
- return /* @__PURE__ */ jsxs(Fragment3, { children: [
28
- breadCrumb ? breadCrumb : /* @__PURE__ */ jsx3(Fragment3, {}),
46
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ breadCrumb ? breadCrumb : /* @__PURE__ */ jsx3(Fragment, {}),
29
48
  /* @__PURE__ */ jsxs(
30
49
  Card,
31
50
  {
@@ -209,6 +228,7 @@ var SimpleToolbar = () => /* @__PURE__ */ jsxs4(GridToolbarContainer, { children
209
228
  var SimpleToolbar_default = SimpleToolbar;
210
229
 
211
230
  export {
231
+ ClearButton_default,
212
232
  FilterButton_default,
213
233
  FormWrapper_default,
214
234
  LabelText_default,
@@ -1,10 +1,29 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/components/ClearButton/index.tsx
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/components/ClearButton/ClearButton.tsx
2
+ var _material = require('@mui/material');
2
3
  var _jsxruntime = require('react/jsx-runtime');
4
+ var ClearButton = ({ isSubmitting, handleClear }) => {
5
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, { variant: "outlined", onClick: handleClear, children: "Clear" });
6
+ };
7
+ var ClearButton_default = ClearButton;
3
8
 
4
9
  // src/components/FilterButton/FilterButton.tsx
10
+ var _lab = require('@mui/lab');
11
+
12
+ var _FilterAlt = require('@mui/icons-material/FilterAlt'); var _FilterAlt2 = _interopRequireDefault(_FilterAlt);
5
13
 
6
14
  var FilterButton = ({ isSubmitting }) => {
7
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
15
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16
+ _lab.LoadingButton,
17
+ {
18
+ type: "submit",
19
+ variant: "contained",
20
+ loading: isSubmitting,
21
+ disableRipple: true,
22
+ sx: { bgcolor: "#3caed7 !important" },
23
+ startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Badge, { color: "error", variant: "standard", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FilterAlt2.default, { width: "20", height: "20" }) }),
24
+ children: "Filter"
25
+ }
26
+ );
8
27
  };
9
28
  var FilterButton_default = FilterButton;
10
29
 
@@ -16,7 +35,7 @@ var FilterButton_default = FilterButton;
16
35
 
17
36
 
18
37
 
19
- var _material = require('@mui/material');
38
+
20
39
 
21
40
  var FormWrapper = ({
22
41
  children,
@@ -214,4 +233,5 @@ var SimpleToolbar_default = SimpleToolbar;
214
233
 
215
234
 
216
235
 
217
- exports.FilterButton_default = FilterButton_default; exports.FormWrapper_default = FormWrapper_default; exports.LabelText_default = LabelText_default; exports.ListWrapper_default = ListWrapper_default; exports.SimpleToolbar_default = SimpleToolbar_default;
236
+
237
+ exports.ClearButton_default = ClearButton_default; exports.FilterButton_default = FilterButton_default; exports.FormWrapper_default = FormWrapper_default; exports.LabelText_default = LabelText_default; exports.ListWrapper_default = ListWrapper_default; exports.SimpleToolbar_default = SimpleToolbar_default;
@@ -1,6 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default, { PropsWithChildren } from 'react';
3
3
 
4
+ type ClearButtonProps = {
5
+ isSubmitting: boolean;
6
+ handleClear: () => void;
7
+ };
8
+ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
9
+
4
10
  type FilterButtonProps = {
5
11
  isSubmitting: boolean;
6
12
  };
@@ -28,4 +34,4 @@ declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => rea
28
34
 
29
35
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
30
36
 
31
- export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
37
+ export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
@@ -1,6 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import react__default, { PropsWithChildren } from 'react';
3
3
 
4
+ type ClearButtonProps = {
5
+ isSubmitting: boolean;
6
+ handleClear: () => void;
7
+ };
8
+ declare const ClearButton: ({ isSubmitting, handleClear }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
9
+
4
10
  type FilterButtonProps = {
5
11
  isSubmitting: boolean;
6
12
  };
@@ -28,4 +34,4 @@ declare const ListWrapper: ({ children, title, count }: ListWrapperProps) => rea
28
34
 
29
35
  declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
30
36
 
31
- export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
37
+ export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar };
@@ -4,11 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkPCTIEZLNjs = require('../chunk-PCTIEZLN.js');
8
7
 
8
+ var _chunkDK74BFWAjs = require('../chunk-DK74BFWA.js');
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.FilterButton = _chunkPCTIEZLNjs.FilterButton_default; exports.FormWrapper = _chunkPCTIEZLNjs.FormWrapper_default; exports.LabelText = _chunkPCTIEZLNjs.LabelText_default; exports.ListWrapper = _chunkPCTIEZLNjs.ListWrapper_default; exports.SimpleToolbar = _chunkPCTIEZLNjs.SimpleToolbar_default;
14
+
15
+
16
+ exports.ClearButton = _chunkDK74BFWAjs.ClearButton_default; exports.FilterButton = _chunkDK74BFWAjs.FilterButton_default; exports.FormWrapper = _chunkDK74BFWAjs.FormWrapper_default; exports.LabelText = _chunkDK74BFWAjs.LabelText_default; exports.ListWrapper = _chunkDK74BFWAjs.ListWrapper_default; exports.SimpleToolbar = _chunkDK74BFWAjs.SimpleToolbar_default;
@@ -1,11 +1,13 @@
1
1
  import {
2
+ ClearButton_default,
2
3
  FilterButton_default,
3
4
  FormWrapper_default,
4
5
  LabelText_default,
5
6
  ListWrapper_default,
6
7
  SimpleToolbar_default
7
- } from "../chunk-2LTU3GNL.mjs";
8
+ } from "../chunk-BWAFZ6F6.mjs";
8
9
  export {
10
+ ClearButton_default as ClearButton,
9
11
  FilterButton_default as FilterButton,
10
12
  FormWrapper_default as FormWrapper,
11
13
  LabelText_default as LabelText,
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.mjs';
1
+ export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.mjs';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
3
3
  export { A as ApiResponse, V as ValidationErrors } from './ApiResponse-DWjEML13.mjs';
4
4
  export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.js';
1
+ export { ClearButton, FilterButton, FormWrapper, LabelText, ListWrapper, SimpleToolbar } from './components/index.js';
2
2
  export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
3
3
  export { A as ApiResponse, V as ValidationErrors } from './ApiResponse-DWjEML13.js';
4
4
  export { A as AsyncSelectPayload } from './AsyncSelectPayload-DHN-R3gc.js';
package/dist/index.js CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkPCTIEZLNjs = require('./chunk-PCTIEZLN.js');
7
+
8
+ var _chunkDK74BFWAjs = require('./chunk-DK74BFWA.js');
8
9
  require('./chunk-7M2VOCYN.js');
9
10
  require('./chunk-TLJXC46A.js');
10
11
 
@@ -35,4 +36,5 @@ var _chunkYAGXZLL6js = require('./chunk-YAGXZLL6.js');
35
36
 
36
37
 
37
38
 
38
- exports.Field = _chunkNLI47OFIjs.Field_default; exports.FilterButton = _chunkPCTIEZLNjs.FilterButton_default; exports.FormWrapper = _chunkPCTIEZLNjs.FormWrapper_default; exports.LabelText = _chunkPCTIEZLNjs.LabelText_default; exports.ListWrapper = _chunkPCTIEZLNjs.ListWrapper_default; exports.SimpleToolbar = _chunkPCTIEZLNjs.SimpleToolbar_default; exports.api = _chunkYAGXZLL6js.api; exports.flattenObjectKeys = _chunkYAGXZLL6js.flattenObjectKeys; exports.getTimezone = _chunkYAGXZLL6js.getTimezone; exports.propertyExists = _chunkYAGXZLL6js.propertyExists; exports.readValueAsDate = _chunkYAGXZLL6js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkYAGXZLL6js.removeLeadingTrailingSlashes; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
39
+
40
+ exports.ClearButton = _chunkDK74BFWAjs.ClearButton_default; exports.Field = _chunkNLI47OFIjs.Field_default; exports.FilterButton = _chunkDK74BFWAjs.FilterButton_default; exports.FormWrapper = _chunkDK74BFWAjs.FormWrapper_default; exports.LabelText = _chunkDK74BFWAjs.LabelText_default; exports.ListWrapper = _chunkDK74BFWAjs.ListWrapper_default; exports.SimpleToolbar = _chunkDK74BFWAjs.SimpleToolbar_default; exports.api = _chunkYAGXZLL6js.api; exports.flattenObjectKeys = _chunkYAGXZLL6js.flattenObjectKeys; exports.getTimezone = _chunkYAGXZLL6js.getTimezone; exports.propertyExists = _chunkYAGXZLL6js.propertyExists; exports.readValueAsDate = _chunkYAGXZLL6js.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkYAGXZLL6js.removeLeadingTrailingSlashes; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  import {
2
+ ClearButton_default,
2
3
  FilterButton_default,
3
4
  FormWrapper_default,
4
5
  LabelText_default,
5
6
  ListWrapper_default,
6
7
  SimpleToolbar_default
7
- } from "./chunk-2LTU3GNL.mjs";
8
+ } from "./chunk-BWAFZ6F6.mjs";
8
9
  import "./chunk-2JFL7TS5.mjs";
9
10
  import "./chunk-5VR5QVUV.mjs";
10
11
  import {
@@ -22,6 +23,7 @@ import {
22
23
  removeLeadingTrailingSlashes
23
24
  } from "./chunk-DMQDQUAE.mjs";
24
25
  export {
26
+ ClearButton_default as ClearButton,
25
27
  Field_default as Field,
26
28
  FilterButton_default as FilterButton,
27
29
  FormWrapper_default as FormWrapper,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.17.2",
3
+ "version": "2.17.3",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",