@gnwebsoft/ui 2.18.32 → 2.18.33

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.
@@ -36,6 +36,7 @@ var FilterButton = ({
36
36
  loading: isSubmitting,
37
37
  disabled: !show,
38
38
  disableRipple: true,
39
+ color: "primary",
39
40
  sx: {
40
41
  display: "flex",
41
42
  alignItems: "center",
@@ -60,7 +61,7 @@ import {
60
61
  useTheme as useTheme2
61
62
  } from "@mui/material";
62
63
  import ManageSearchIcon from "@mui/icons-material/ManageSearch";
63
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
64
+ import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
64
65
  var FilterWrapper = ({
65
66
  children,
66
67
  title,
@@ -68,7 +69,8 @@ var FilterWrapper = ({
68
69
  cardSx,
69
70
  textSx,
70
71
  icon,
71
- iconSx
72
+ iconSx,
73
+ showCount
72
74
  }) => {
73
75
  const theme = useTheme2();
74
76
  return /* @__PURE__ */ jsxs(
@@ -115,10 +117,9 @@ var FilterWrapper = ({
115
117
  ...textSx
116
118
  },
117
119
  children: [
118
- title,
119
- " (",
120
- filterCount,
121
- ")"
120
+ title ? title : "Filter",
121
+ " ",
122
+ showCount ? `(${filterCount ? filterCount : 0})` : /* @__PURE__ */ jsx3(Fragment, {})
122
123
  ]
123
124
  }
124
125
  )
@@ -185,7 +186,7 @@ var FormWrapper = ({
185
186
  children: [
186
187
  /* @__PURE__ */ jsxs2(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
187
188
  icon ?? icon,
188
- /* @__PURE__ */ jsx4(Typography2, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })
189
+ /* @__PURE__ */ jsx4(Typography2, { color: "primary", sx: textSx, children: title })
189
190
  ] }),
190
191
  actionButton
191
192
  ]
@@ -286,7 +287,7 @@ import {
286
287
  useTheme as useTheme3
287
288
  } from "@mui/material";
288
289
  import ManageSearchIcon2 from "@mui/icons-material/ManageSearch";
289
- import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
290
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
290
291
  var ListWrapper = ({
291
292
  children,
292
293
  title,
@@ -300,7 +301,7 @@ var ListWrapper = ({
300
301
  showCount = true
301
302
  }) => {
302
303
  const theme = useTheme3();
303
- if (!show) return /* @__PURE__ */ jsx6(Fragment, {});
304
+ if (!show) return /* @__PURE__ */ jsx6(Fragment2, {});
304
305
  return /* @__PURE__ */ jsxs4(
305
306
  Card3,
306
307
  {
@@ -353,9 +354,8 @@ var ListWrapper = ({
353
354
  ...textSx
354
355
  },
355
356
  children: [
356
- title,
357
- " ",
358
- showCount ? `(${count ? count : 0})` : /* @__PURE__ */ jsx6(Fragment, {})
357
+ title ? title : "List",
358
+ showCount ? `(${count ? count : 0})` : /* @__PURE__ */ jsx6(Fragment2, {})
359
359
  ]
360
360
  }
361
361
  )
@@ -410,19 +410,19 @@ var SimpleToolbar_default = SimpleToolbar;
410
410
 
411
411
  // src/components/SimpleButton/SimpleButton.tsx
412
412
  import { Button as Button2 } from "@mui/material";
413
- import { Fragment as Fragment2, jsx as jsx8 } from "react/jsx-runtime";
413
+ import { Fragment as Fragment3, jsx as jsx8 } from "react/jsx-runtime";
414
414
  var SimpleButton = function SelectMultiElement(props) {
415
415
  const { show, ...rest } = props;
416
- if (!!show) return /* @__PURE__ */ jsx8(Fragment2, {});
416
+ if (!!show) return /* @__PURE__ */ jsx8(Fragment3, {});
417
417
  return /* @__PURE__ */ jsx8(Button2, { ...rest });
418
418
  };
419
419
  var SimpleButton_default = SimpleButton;
420
420
 
421
421
  // src/components/AuthorizedView/AuthorizedView.tsx
422
- import { Fragment as Fragment3, jsx as jsx9 } from "react/jsx-runtime";
422
+ import { Fragment as Fragment4, jsx as jsx9 } from "react/jsx-runtime";
423
423
  var AuthorizedView = ({ children, show }) => {
424
- if (!show) return /* @__PURE__ */ jsx9(Fragment3, {});
425
- return /* @__PURE__ */ jsx9(Fragment3, { children });
424
+ if (!show) return /* @__PURE__ */ jsx9(Fragment4, {});
425
+ return /* @__PURE__ */ jsx9(Fragment4, { children });
426
426
  };
427
427
  var AuthorizedView_default = AuthorizedView;
428
428
 
@@ -36,6 +36,7 @@ var FilterButton = ({
36
36
  loading: isSubmitting,
37
37
  disabled: !show,
38
38
  disableRipple: true,
39
+ color: "primary",
39
40
  sx: {
40
41
  display: "flex",
41
42
  alignItems: "center",
@@ -68,7 +69,8 @@ var FilterWrapper = ({
68
69
  cardSx,
69
70
  textSx,
70
71
  icon,
71
- iconSx
72
+ iconSx,
73
+ showCount
72
74
  }) => {
73
75
  const theme = _material.useTheme.call(void 0, );
74
76
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -115,10 +117,9 @@ var FilterWrapper = ({
115
117
  ...textSx
116
118
  },
117
119
  children: [
118
- title,
119
- " (",
120
- filterCount,
121
- ")"
120
+ title ? title : "Filter",
121
+ " ",
122
+ showCount ? `(${filterCount ? filterCount : 0})` : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {})
122
123
  ]
123
124
  }
124
125
  )
@@ -185,7 +186,7 @@ var FormWrapper = ({
185
186
  children: [
186
187
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
187
188
  _nullishCoalesce(icon, () => ( icon)),
188
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })
189
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { color: "primary", sx: textSx, children: title })
189
190
  ] }),
190
191
  actionButton
191
192
  ]
@@ -353,8 +354,7 @@ var ListWrapper = ({
353
354
  ...textSx
354
355
  },
355
356
  children: [
356
- title,
357
- " ",
357
+ title ? title : "List",
358
358
  showCount ? `(${count ? count : 0})` : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {})
359
359
  ]
360
360
  }
@@ -21,18 +21,19 @@ type FilterButtonProps = {
21
21
  declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
22
22
 
23
23
  type FilterWrapperProps = PropsWithChildren<{
24
- title: string;
25
- filterCount: number;
24
+ title?: string;
25
+ filterCount?: number;
26
26
  cardSx?: SxProps;
27
27
  textSx?: SxProps;
28
28
  icon?: ReactNode;
29
29
  iconSx?: SxProps;
30
+ showCount?: boolean;
30
31
  }>;
31
- declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
32
+ declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
32
33
 
33
34
  type FormWrapper = PropsWithChildren<{
34
35
  title: string;
35
- editMode: boolean;
36
+ editMode?: boolean;
36
37
  icon?: ReactNode;
37
38
  cardSx?: SxProps;
38
39
  textSx?: SxProps;
@@ -66,8 +67,8 @@ type LabelTextProps = {
66
67
  declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
67
68
 
68
69
  type ListWrapperProps = PropsWithChildren<{
69
- title: string;
70
- count: number;
70
+ title?: string;
71
+ count?: number;
71
72
  show?: boolean;
72
73
  actionButton?: ReactNode;
73
74
  cardSx?: SxProps;
@@ -21,18 +21,19 @@ type FilterButtonProps = {
21
21
  declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
22
22
 
23
23
  type FilterWrapperProps = PropsWithChildren<{
24
- title: string;
25
- filterCount: number;
24
+ title?: string;
25
+ filterCount?: number;
26
26
  cardSx?: SxProps;
27
27
  textSx?: SxProps;
28
28
  icon?: ReactNode;
29
29
  iconSx?: SxProps;
30
+ showCount?: boolean;
30
31
  }>;
31
- declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
32
+ declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
32
33
 
33
34
  type FormWrapper = PropsWithChildren<{
34
35
  title: string;
35
- editMode: boolean;
36
+ editMode?: boolean;
36
37
  icon?: ReactNode;
37
38
  cardSx?: SxProps;
38
39
  textSx?: SxProps;
@@ -66,8 +67,8 @@ type LabelTextProps = {
66
67
  declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
67
68
 
68
69
  type ListWrapperProps = PropsWithChildren<{
69
- title: string;
70
- count: number;
70
+ title?: string;
71
+ count?: number;
71
72
  show?: boolean;
72
73
  actionButton?: ReactNode;
73
74
  cardSx?: SxProps;
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkHTRRCH33js = require('../chunk-HTRRCH33.js');
11
+ var _chunkWEPRO2OOjs = require('../chunk-WEPRO2OO.js');
12
12
 
13
13
 
14
14
 
@@ -19,4 +19,4 @@ var _chunkHTRRCH33js = require('../chunk-HTRRCH33.js');
19
19
 
20
20
 
21
21
 
22
- exports.AuthorizedView = _chunkHTRRCH33js.AuthorizedView_default; exports.ClearButton = _chunkHTRRCH33js.ClearButton_default; exports.FilterButton = _chunkHTRRCH33js.FilterButton_default; exports.FilterWrapper = _chunkHTRRCH33js.FilterWrapper_default; exports.FormWrapper = _chunkHTRRCH33js.FormWrapper_default; exports.LabelText = _chunkHTRRCH33js.LabelText_default; exports.ListWrapper = _chunkHTRRCH33js.ListWrapper_default; exports.SimpleButton = _chunkHTRRCH33js.SimpleButton_default; exports.SimpleToolbar = _chunkHTRRCH33js.SimpleToolbar_default;
22
+ exports.AuthorizedView = _chunkWEPRO2OOjs.AuthorizedView_default; exports.ClearButton = _chunkWEPRO2OOjs.ClearButton_default; exports.FilterButton = _chunkWEPRO2OOjs.FilterButton_default; exports.FilterWrapper = _chunkWEPRO2OOjs.FilterWrapper_default; exports.FormWrapper = _chunkWEPRO2OOjs.FormWrapper_default; exports.LabelText = _chunkWEPRO2OOjs.LabelText_default; exports.ListWrapper = _chunkWEPRO2OOjs.ListWrapper_default; exports.SimpleButton = _chunkWEPRO2OOjs.SimpleButton_default; exports.SimpleToolbar = _chunkWEPRO2OOjs.SimpleToolbar_default;
@@ -8,7 +8,7 @@ import {
8
8
  ListWrapper_default,
9
9
  SimpleButton_default,
10
10
  SimpleToolbar_default
11
- } from "../chunk-OS5KT6UM.mjs";
11
+ } from "../chunk-KM5TYX5L.mjs";
12
12
  export {
13
13
  AuthorizedView_default as AuthorizedView,
14
14
  ClearButton_default as ClearButton,
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkHTRRCH33js = require('./chunk-HTRRCH33.js');
11
+ var _chunkWEPRO2OOjs = require('./chunk-WEPRO2OO.js');
12
12
  require('./chunk-7M2VOCYN.js');
13
13
  require('./chunk-6BGQA4BQ.js');
14
14
 
@@ -53,4 +53,4 @@ var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
53
53
 
54
54
 
55
55
 
56
- exports.AuthorizedView = _chunkHTRRCH33js.AuthorizedView_default; exports.ClearButton = _chunkHTRRCH33js.ClearButton_default; exports.Field = _chunk4E6AXVK7js.Field_default; exports.Field2 = _chunkSTC2BZ2Ljs.Field_default; exports.FilterButton = _chunkHTRRCH33js.FilterButton_default; exports.FilterWrapper = _chunkHTRRCH33js.FilterWrapper_default; exports.FormWrapper = _chunkHTRRCH33js.FormWrapper_default; exports.LabelText = _chunkHTRRCH33js.LabelText_default; exports.ListWrapper = _chunkHTRRCH33js.ListWrapper_default; exports.SimpleButton = _chunkHTRRCH33js.SimpleButton_default; exports.SimpleToolbar = _chunkHTRRCH33js.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
56
+ exports.AuthorizedView = _chunkWEPRO2OOjs.AuthorizedView_default; exports.ClearButton = _chunkWEPRO2OOjs.ClearButton_default; exports.Field = _chunk4E6AXVK7js.Field_default; exports.Field2 = _chunkSTC2BZ2Ljs.Field_default; exports.FilterButton = _chunkWEPRO2OOjs.FilterButton_default; exports.FilterWrapper = _chunkWEPRO2OOjs.FilterWrapper_default; exports.FormWrapper = _chunkWEPRO2OOjs.FormWrapper_default; exports.LabelText = _chunkWEPRO2OOjs.LabelText_default; exports.ListWrapper = _chunkWEPRO2OOjs.ListWrapper_default; exports.SimpleButton = _chunkWEPRO2OOjs.SimpleButton_default; exports.SimpleToolbar = _chunkWEPRO2OOjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  ListWrapper_default,
9
9
  SimpleButton_default,
10
10
  SimpleToolbar_default
11
- } from "./chunk-OS5KT6UM.mjs";
11
+ } from "./chunk-KM5TYX5L.mjs";
12
12
  import "./chunk-2JFL7TS5.mjs";
13
13
  import "./chunk-EVPUCTZA.mjs";
14
14
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.18.32",
3
+ "version": "2.18.33",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",