@natoora-libs/core 0.2.18 → 0.2.20
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/dist/{TableDesktop-BrpwT-lM.d.cts → TableDesktop-wpKCBVE4.d.cts} +1 -1
- package/dist/{TableDesktop-BrpwT-lM.d.ts → TableDesktop-wpKCBVE4.d.ts} +1 -1
- package/dist/components/index.cjs +136 -147
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +4 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +125 -136
- package/dist/components/index.js.map +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -3673,41 +3673,29 @@ var ClearFiltersConfirmationDialog = ({
|
|
|
3673
3673
|
};
|
|
3674
3674
|
|
|
3675
3675
|
// src/components/CompanyLogo/CompanyLogo.tsx
|
|
3676
|
-
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3677
3676
|
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3678
|
-
var useStyles15 = makeStyles15()((theme, { imageLogoDarkSmall, imageLogoLightSmall }) => ({
|
|
3679
|
-
logoSmall: {
|
|
3680
|
-
height: 46,
|
|
3681
|
-
width: 112
|
|
3682
|
-
},
|
|
3683
|
-
logoMedium: {
|
|
3684
|
-
height: 72,
|
|
3685
|
-
width: 160
|
|
3686
|
-
},
|
|
3687
|
-
logoDark: {
|
|
3688
|
-
backgroundImage: `url(${imageLogoDarkSmall})`
|
|
3689
|
-
},
|
|
3690
|
-
logoLight: {
|
|
3691
|
-
backgroundImage: `url(${imageLogoLightSmall})`
|
|
3692
|
-
}
|
|
3693
|
-
}));
|
|
3694
3677
|
var CompanyLogo = ({
|
|
3695
3678
|
size,
|
|
3696
3679
|
color,
|
|
3697
3680
|
imageLogoDarkSmall,
|
|
3698
3681
|
imageLogoLightSmall
|
|
3699
3682
|
}) => {
|
|
3700
|
-
const
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3683
|
+
const src = color === "dark" ? imageLogoDarkSmall : imageLogoLightSmall;
|
|
3684
|
+
const dimensions = size === "small" ? { width: 112, height: 46 } : { width: 160, height: 72 };
|
|
3685
|
+
return /* @__PURE__ */ jsx76(
|
|
3686
|
+
"img",
|
|
3687
|
+
{
|
|
3688
|
+
src,
|
|
3689
|
+
alt: "Company logo",
|
|
3690
|
+
width: dimensions.width,
|
|
3691
|
+
height: dimensions.height,
|
|
3692
|
+
fetchPriority: "high",
|
|
3693
|
+
decoding: "async",
|
|
3694
|
+
style: {
|
|
3695
|
+
display: "block"
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
);
|
|
3711
3699
|
};
|
|
3712
3700
|
var CompanyLogo_default = CompanyLogo;
|
|
3713
3701
|
|
|
@@ -3760,9 +3748,9 @@ var ControlledCheckbox_default = ControlledCheckbox;
|
|
|
3760
3748
|
// src/components/ControlledNumberInput/ControlledNumberInput.tsx
|
|
3761
3749
|
import { Controller as Controller2 } from "react-hook-form";
|
|
3762
3750
|
import { TextField as TextField2 } from "@mui/material";
|
|
3763
|
-
import { makeStyles as
|
|
3751
|
+
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3764
3752
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
3765
|
-
var
|
|
3753
|
+
var useStyles15 = makeStyles15()(() => ({
|
|
3766
3754
|
selectInput: {
|
|
3767
3755
|
minWidth: 122
|
|
3768
3756
|
}
|
|
@@ -3778,7 +3766,7 @@ var ControlledNumberInput = ({
|
|
|
3778
3766
|
shrink = false,
|
|
3779
3767
|
className
|
|
3780
3768
|
}) => {
|
|
3781
|
-
const { classes } =
|
|
3769
|
+
const { classes } = useStyles15();
|
|
3782
3770
|
const blockInvalidChar = (input) => ![
|
|
3783
3771
|
"0",
|
|
3784
3772
|
"1",
|
|
@@ -3844,10 +3832,10 @@ import {
|
|
|
3844
3832
|
InputAdornment as InputAdornment2,
|
|
3845
3833
|
TextField as TextField3
|
|
3846
3834
|
} from "@mui/material";
|
|
3847
|
-
import { makeStyles as
|
|
3835
|
+
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3848
3836
|
import { jsx as jsx79, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3849
3837
|
var convertUnderscoreToHyphen = (str) => str.replace(/_/g, "-");
|
|
3850
|
-
var
|
|
3838
|
+
var useStyles16 = makeStyles16()((theme) => ({
|
|
3851
3839
|
textFieldButtons: {
|
|
3852
3840
|
display: "flex",
|
|
3853
3841
|
flexDirection: "column",
|
|
@@ -3875,7 +3863,7 @@ var ControlledNumericField = ({
|
|
|
3875
3863
|
"data-testid": dataTestId,
|
|
3876
3864
|
fieldName
|
|
3877
3865
|
}) => {
|
|
3878
|
-
const { classes } =
|
|
3866
|
+
const { classes } = useStyles16();
|
|
3879
3867
|
const isLowerThanMinimum = (value) => min !== void 0 && min > value;
|
|
3880
3868
|
const isGreaterThanMaximum = (value) => max !== void 0 && max < value;
|
|
3881
3869
|
const handleChange = (field, value) => {
|
|
@@ -4027,9 +4015,9 @@ var ControlledNumericField_default = ControlledNumericField;
|
|
|
4027
4015
|
// src/components/ControlledSelectWithArray/ControlledSelectWithArray.tsx
|
|
4028
4016
|
import { Controller as Controller4 } from "react-hook-form";
|
|
4029
4017
|
import { FormControl, FormHelperText, InputLabel, Select } from "@mui/material";
|
|
4030
|
-
import { makeStyles as
|
|
4018
|
+
import { makeStyles as makeStyles17 } from "tss-react/mui";
|
|
4031
4019
|
import { jsx as jsx80, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
4032
|
-
var
|
|
4020
|
+
var useStyles17 = makeStyles17()(() => ({
|
|
4033
4021
|
selectInput: {
|
|
4034
4022
|
minWidth: 122
|
|
4035
4023
|
}
|
|
@@ -4044,7 +4032,7 @@ var ControlledSelectWithArray = ({
|
|
|
4044
4032
|
className,
|
|
4045
4033
|
revalidateFormFunction
|
|
4046
4034
|
}) => {
|
|
4047
|
-
const { classes } =
|
|
4035
|
+
const { classes } = useStyles17();
|
|
4048
4036
|
return /* @__PURE__ */ jsx80(
|
|
4049
4037
|
Controller4,
|
|
4050
4038
|
{
|
|
@@ -4096,9 +4084,9 @@ var ControlledSelectWithArray_default = ControlledSelectWithArray;
|
|
|
4096
4084
|
// src/components/ControlledSelectWithObject/ControlledSelectWithObject.tsx
|
|
4097
4085
|
import { Controller as Controller5 } from "react-hook-form";
|
|
4098
4086
|
import { FormControl as FormControl2, FormHelperText as FormHelperText2, InputLabel as InputLabel2, Select as Select2 } from "@mui/material";
|
|
4099
|
-
import { makeStyles as
|
|
4087
|
+
import { makeStyles as makeStyles18 } from "tss-react/mui";
|
|
4100
4088
|
import { jsx as jsx81, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4101
|
-
var
|
|
4089
|
+
var useStyles18 = makeStyles18()(() => ({
|
|
4102
4090
|
selectInput: {
|
|
4103
4091
|
minWidth: 122
|
|
4104
4092
|
}
|
|
@@ -4114,7 +4102,7 @@ var ControlledSelectWithObject = ({
|
|
|
4114
4102
|
listToDisableFromOptions = [],
|
|
4115
4103
|
revalidateFormFunction
|
|
4116
4104
|
}) => {
|
|
4117
|
-
const { classes } =
|
|
4105
|
+
const { classes } = useStyles18();
|
|
4118
4106
|
return /* @__PURE__ */ jsx81(
|
|
4119
4107
|
Controller5,
|
|
4120
4108
|
{
|
|
@@ -4177,9 +4165,9 @@ import {
|
|
|
4177
4165
|
} from "react-hook-form";
|
|
4178
4166
|
import { Box as Box17, TextField as TextField4 } from "@mui/material";
|
|
4179
4167
|
import classNames from "classnames";
|
|
4180
|
-
import { makeStyles as
|
|
4168
|
+
import { makeStyles as makeStyles19 } from "tss-react/mui";
|
|
4181
4169
|
import { jsx as jsx82, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4182
|
-
var
|
|
4170
|
+
var useStyles19 = makeStyles19()(() => ({
|
|
4183
4171
|
fullWidthWrapper: {
|
|
4184
4172
|
maxWidth: "100%"
|
|
4185
4173
|
},
|
|
@@ -4205,7 +4193,7 @@ var ControlledValidTextInput = ({
|
|
|
4205
4193
|
updateCustomerData,
|
|
4206
4194
|
customHandleBlurValidationAndSubmit
|
|
4207
4195
|
}) => {
|
|
4208
|
-
const { classes } =
|
|
4196
|
+
const { classes } = useStyles19();
|
|
4209
4197
|
const defaultHandleBlurValidationAndSubmit = async ({ name, value, onChange }, isDirty) => {
|
|
4210
4198
|
const trimmedValue = value?.trim();
|
|
4211
4199
|
if (value !== trimmedValue) {
|
|
@@ -4288,9 +4276,9 @@ var ControlledValidTextInput_default = ControlledValidTextInput;
|
|
|
4288
4276
|
import { useState as useState4 } from "react";
|
|
4289
4277
|
import { Paper as Paper2, Skeleton as Skeleton3 } from "@mui/material";
|
|
4290
4278
|
import { DataGrid as MUIDataGrid } from "@mui/x-data-grid";
|
|
4291
|
-
import { makeStyles as
|
|
4279
|
+
import { makeStyles as makeStyles20 } from "tss-react/mui";
|
|
4292
4280
|
import { Fragment as Fragment3, jsx as jsx83, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4293
|
-
var
|
|
4281
|
+
var useStyles20 = makeStyles20()(() => ({
|
|
4294
4282
|
root: {
|
|
4295
4283
|
justifyContent: "space-between",
|
|
4296
4284
|
display: "flex",
|
|
@@ -4327,7 +4315,7 @@ var DataGrid = ({
|
|
|
4327
4315
|
height,
|
|
4328
4316
|
children
|
|
4329
4317
|
}) => {
|
|
4330
|
-
const { classes } =
|
|
4318
|
+
const { classes } = useStyles20();
|
|
4331
4319
|
const [sortModel, setSortModel] = useState4([
|
|
4332
4320
|
{
|
|
4333
4321
|
field: sortField || "id",
|
|
@@ -4468,9 +4456,9 @@ var Date_default = Date;
|
|
|
4468
4456
|
// src/components/DeleteSubstitutionDialogContent/DeleteSubstitutionDialogContent.tsx
|
|
4469
4457
|
import { memo as memo10 } from "react";
|
|
4470
4458
|
import { Alert as Alert2, AlertTitle as AlertTitle2, Typography as Typography12, Box as Box18 } from "@mui/material";
|
|
4471
|
-
import { makeStyles as
|
|
4459
|
+
import { makeStyles as makeStyles21 } from "tss-react/mui";
|
|
4472
4460
|
import { Fragment as Fragment4, jsx as jsx85, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
4473
|
-
var
|
|
4461
|
+
var useStyles21 = makeStyles21()(() => ({
|
|
4474
4462
|
alert: { marginBottom: 16 },
|
|
4475
4463
|
bottomBar: {
|
|
4476
4464
|
marginTop: "12px",
|
|
@@ -4486,7 +4474,7 @@ var DeleteSubstitutionDialogContent = ({
|
|
|
4486
4474
|
substitutionName,
|
|
4487
4475
|
deleteSubstitution
|
|
4488
4476
|
}) => {
|
|
4489
|
-
const { classes } =
|
|
4477
|
+
const { classes } = useStyles21();
|
|
4490
4478
|
return /* @__PURE__ */ jsxs50(Fragment4, { children: [
|
|
4491
4479
|
/* @__PURE__ */ jsxs50(Alert2, { severity: "warning", className: classes.alert, children: [
|
|
4492
4480
|
/* @__PURE__ */ jsxs50(AlertTitle2, { children: [
|
|
@@ -4516,9 +4504,9 @@ var DeleteSubstitutionDialogContent_default = memo10(DeleteSubstitutionDialogCon
|
|
|
4516
4504
|
// src/components/DeleteUserDialogContent/DeleteUserDialogContent.tsx
|
|
4517
4505
|
import { memo as memo11 } from "react";
|
|
4518
4506
|
import { Alert as Alert3, AlertTitle as AlertTitle3, Typography as Typography13, Box as Box19 } from "@mui/material";
|
|
4519
|
-
import { makeStyles as
|
|
4507
|
+
import { makeStyles as makeStyles22 } from "tss-react/mui";
|
|
4520
4508
|
import { Fragment as Fragment5, jsx as jsx86, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
4521
|
-
var
|
|
4509
|
+
var useStyles22 = makeStyles22()(() => ({
|
|
4522
4510
|
alert: { marginBottom: 16 },
|
|
4523
4511
|
bottomBar: {
|
|
4524
4512
|
marginTop: "12px",
|
|
@@ -4534,7 +4522,7 @@ var DeleteUserDialogContent = ({
|
|
|
4534
4522
|
userName,
|
|
4535
4523
|
deleteUser
|
|
4536
4524
|
}) => {
|
|
4537
|
-
const { classes } =
|
|
4525
|
+
const { classes } = useStyles22();
|
|
4538
4526
|
return /* @__PURE__ */ jsxs51(Fragment5, { children: [
|
|
4539
4527
|
/* @__PURE__ */ jsxs51(Alert3, { severity: "warning", className: classes.alert, children: [
|
|
4540
4528
|
/* @__PURE__ */ jsxs51(AlertTitle3, { children: [
|
|
@@ -4624,9 +4612,9 @@ var FileCard_default = FileCard;
|
|
|
4624
4612
|
import { memo as memo12 } from "react";
|
|
4625
4613
|
import { Typography as Typography15 } from "@mui/material";
|
|
4626
4614
|
import { brown, teal } from "@mui/material/colors";
|
|
4627
|
-
import { makeStyles as
|
|
4615
|
+
import { makeStyles as makeStyles23 } from "tss-react/mui";
|
|
4628
4616
|
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
4629
|
-
var
|
|
4617
|
+
var useStyles23 = makeStyles23()((theme) => ({
|
|
4630
4618
|
siteOne: {
|
|
4631
4619
|
backgroundColor: teal["50"],
|
|
4632
4620
|
color: teal["500"],
|
|
@@ -4652,7 +4640,7 @@ var useStyles24 = makeStyles24()((theme) => ({
|
|
|
4652
4640
|
}));
|
|
4653
4641
|
var FilledLabel = (props) => {
|
|
4654
4642
|
const { color, copy } = props;
|
|
4655
|
-
const { classes } =
|
|
4643
|
+
const { classes } = useStyles23();
|
|
4656
4644
|
return /* @__PURE__ */ jsx88(Typography15, { variant: "caption", className: classes[color], children: copy });
|
|
4657
4645
|
};
|
|
4658
4646
|
var FilledLabel_default = memo12(FilledLabel);
|
|
@@ -4668,9 +4656,9 @@ import {
|
|
|
4668
4656
|
ListItemText,
|
|
4669
4657
|
Divider as Divider4
|
|
4670
4658
|
} from "@mui/material";
|
|
4671
|
-
import { makeStyles as
|
|
4659
|
+
import { makeStyles as makeStyles24 } from "tss-react/mui";
|
|
4672
4660
|
import { Fragment as Fragment6, jsx as jsx89, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
4673
|
-
var
|
|
4661
|
+
var useStyles24 = makeStyles24()((theme) => ({
|
|
4674
4662
|
filterOptions: {
|
|
4675
4663
|
height: 450,
|
|
4676
4664
|
overflowY: "auto",
|
|
@@ -4698,7 +4686,7 @@ var FilterGroupSelector = ({
|
|
|
4698
4686
|
handleClickOnApply,
|
|
4699
4687
|
optionsList = [{ category: "Category", options: ["Option 1"] }]
|
|
4700
4688
|
}) => {
|
|
4701
|
-
const { classes } =
|
|
4689
|
+
const { classes } = useStyles24();
|
|
4702
4690
|
const [anchorEl, setAnchorEl] = useState5(null);
|
|
4703
4691
|
const [values, setValues] = useState5([]);
|
|
4704
4692
|
const open = Boolean(anchorEl);
|
|
@@ -4797,9 +4785,9 @@ import {
|
|
|
4797
4785
|
ListItemText as ListItemText2,
|
|
4798
4786
|
Divider as Divider5
|
|
4799
4787
|
} from "@mui/material";
|
|
4800
|
-
import { makeStyles as
|
|
4788
|
+
import { makeStyles as makeStyles25 } from "tss-react/mui";
|
|
4801
4789
|
import { Fragment as Fragment7, jsx as jsx90, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
4802
|
-
var
|
|
4790
|
+
var useStyles25 = makeStyles25()((theme) => ({
|
|
4803
4791
|
filterOptions: {
|
|
4804
4792
|
height: 450,
|
|
4805
4793
|
overflowY: "auto",
|
|
@@ -4826,7 +4814,7 @@ var FilterSimpleSelector = ({
|
|
|
4826
4814
|
setSelectedOptions,
|
|
4827
4815
|
handleClickOnApply
|
|
4828
4816
|
}) => {
|
|
4829
|
-
const { classes } =
|
|
4817
|
+
const { classes } = useStyles25();
|
|
4830
4818
|
const [anchorEl, setAnchorEl] = useState6(null);
|
|
4831
4819
|
const [values, setValues] = useState6([]);
|
|
4832
4820
|
const open = Boolean(anchorEl);
|
|
@@ -4905,10 +4893,10 @@ var FilterSimpleSelector_default = FilterSimpleSelector;
|
|
|
4905
4893
|
// src/components/FixedFooter/FixedFooter.tsx
|
|
4906
4894
|
import * as React4 from "react";
|
|
4907
4895
|
import { Box as Box23 } from "@mui/material";
|
|
4908
|
-
import { makeStyles as
|
|
4896
|
+
import { makeStyles as makeStyles26 } from "tss-react/mui";
|
|
4909
4897
|
import { jsx as jsx91, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4910
4898
|
var footerHeight = "64px";
|
|
4911
|
-
var
|
|
4899
|
+
var useStyles26 = makeStyles26()((theme) => ({
|
|
4912
4900
|
root: {
|
|
4913
4901
|
position: "fixed",
|
|
4914
4902
|
bottom: 0,
|
|
@@ -4928,7 +4916,7 @@ var useStyles27 = makeStyles27()((theme) => ({
|
|
|
4928
4916
|
}
|
|
4929
4917
|
}));
|
|
4930
4918
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4931
|
-
const { classes } =
|
|
4919
|
+
const { classes } = useStyles26();
|
|
4932
4920
|
return /* @__PURE__ */ jsxs55(Box23, { children: [
|
|
4933
4921
|
/* @__PURE__ */ jsx91(Box23, { className: classes.fixedOffset }),
|
|
4934
4922
|
/* @__PURE__ */ jsx91(
|
|
@@ -4947,9 +4935,9 @@ var FixedFooter_default = React4.memo(FixedFooter);
|
|
|
4947
4935
|
|
|
4948
4936
|
// src/components/Header/Header.tsx
|
|
4949
4937
|
import { Paper as Paper3 } from "@mui/material";
|
|
4950
|
-
import { makeStyles as
|
|
4938
|
+
import { makeStyles as makeStyles27 } from "tss-react/mui";
|
|
4951
4939
|
import { jsx as jsx92, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4952
|
-
var
|
|
4940
|
+
var useStyles27 = makeStyles27()((theme) => ({
|
|
4953
4941
|
container: {
|
|
4954
4942
|
margin: theme.spacing(1)
|
|
4955
4943
|
},
|
|
@@ -4970,7 +4958,7 @@ var Header = ({
|
|
|
4970
4958
|
children = null,
|
|
4971
4959
|
wrappedHeader = false
|
|
4972
4960
|
}) => {
|
|
4973
|
-
const { classes, cx } =
|
|
4961
|
+
const { classes, cx } = useStyles27();
|
|
4974
4962
|
return /* @__PURE__ */ jsx92(
|
|
4975
4963
|
Paper3,
|
|
4976
4964
|
{
|
|
@@ -5022,9 +5010,9 @@ import { Fragment as Fragment9 } from "react";
|
|
|
5022
5010
|
import { Box as Box24, Chip as Chip4, Typography as Typography18 } from "@mui/material";
|
|
5023
5011
|
import { purple } from "@mui/material/colors";
|
|
5024
5012
|
import classNames2 from "classnames";
|
|
5025
|
-
import { makeStyles as
|
|
5013
|
+
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
5026
5014
|
import { jsx as jsx94, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
5027
|
-
var
|
|
5015
|
+
var useStyles28 = makeStyles28()(() => ({
|
|
5028
5016
|
container: {
|
|
5029
5017
|
display: "flex",
|
|
5030
5018
|
alignItems: "center",
|
|
@@ -5059,7 +5047,7 @@ var LocationsSectionInfo = ({
|
|
|
5059
5047
|
isPicking,
|
|
5060
5048
|
isStock
|
|
5061
5049
|
}) => {
|
|
5062
|
-
const { classes } =
|
|
5050
|
+
const { classes } = useStyles28();
|
|
5063
5051
|
const getLocationLabel = () => {
|
|
5064
5052
|
if (isPicking && isStock) {
|
|
5065
5053
|
return "PICKING & STOCK";
|
|
@@ -5093,9 +5081,9 @@ var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
|
5093
5081
|
// src/components/Notes/Notes.tsx
|
|
5094
5082
|
import { useEffect as useEffect4, useState as useState7 } from "react";
|
|
5095
5083
|
import { FormControl as FormControl3, Input, InputAdornment as InputAdornment3, InputLabel as InputLabel3 } from "@mui/material";
|
|
5096
|
-
import { makeStyles as
|
|
5084
|
+
import { makeStyles as makeStyles29 } from "tss-react/mui";
|
|
5097
5085
|
import { jsx as jsx95, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
5098
|
-
var
|
|
5086
|
+
var useStyles29 = makeStyles29()((theme) => ({
|
|
5099
5087
|
wrapper: {
|
|
5100
5088
|
padding: theme.spacing(3),
|
|
5101
5089
|
backgroundColor: colors.blueOpacity08
|
|
@@ -5136,7 +5124,7 @@ var Notes2 = ({
|
|
|
5136
5124
|
onChange(value);
|
|
5137
5125
|
}
|
|
5138
5126
|
};
|
|
5139
|
-
const { classes } =
|
|
5127
|
+
const { classes } = useStyles29();
|
|
5140
5128
|
return /* @__PURE__ */ jsx95("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs59(FormControl3, { fullWidth: true, children: [
|
|
5141
5129
|
/* @__PURE__ */ jsx95(InputLabel3, { htmlFor: "notes", children: "Notes" }),
|
|
5142
5130
|
/* @__PURE__ */ jsx95(
|
|
@@ -5319,9 +5307,9 @@ var Numpad_default = Numpad;
|
|
|
5319
5307
|
// src/components/NumpadInput/NumpadInput.tsx
|
|
5320
5308
|
import { memo as memo14, useState as useState8 } from "react";
|
|
5321
5309
|
import { TextField as TextField5, Typography as Typography19 } from "@mui/material";
|
|
5322
|
-
import { makeStyles as
|
|
5310
|
+
import { makeStyles as makeStyles30 } from "tss-react/mui";
|
|
5323
5311
|
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5324
|
-
var
|
|
5312
|
+
var useStyles30 = makeStyles30()(() => ({
|
|
5325
5313
|
c_numpadinput__textfield: {
|
|
5326
5314
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
5327
5315
|
transform: "translate(18px, -13px) scale(0.75)"
|
|
@@ -5346,7 +5334,7 @@ var useStyles31 = makeStyles31()(() => ({
|
|
|
5346
5334
|
}));
|
|
5347
5335
|
var NumpadInput = (props) => {
|
|
5348
5336
|
const { handleNextClick, inputLabel, children } = props;
|
|
5349
|
-
const { classes } =
|
|
5337
|
+
const { classes } = useStyles30();
|
|
5350
5338
|
const [state, setState] = useState8("");
|
|
5351
5339
|
const handleNumpadClick = (value) => {
|
|
5352
5340
|
setState(state + value);
|
|
@@ -5397,9 +5385,9 @@ var NumpadInput_default = memo14(NumpadInput);
|
|
|
5397
5385
|
|
|
5398
5386
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
5399
5387
|
import { Box as Box25 } from "@mui/material";
|
|
5400
|
-
import { makeStyles as
|
|
5388
|
+
import { makeStyles as makeStyles31 } from "tss-react/mui";
|
|
5401
5389
|
import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
5402
|
-
var
|
|
5390
|
+
var useStyles31 = makeStyles31()(() => ({
|
|
5403
5391
|
numpadContainer: {
|
|
5404
5392
|
display: "flex",
|
|
5405
5393
|
flexDirection: "row",
|
|
@@ -5429,7 +5417,7 @@ var useStyles32 = makeStyles32()(() => ({
|
|
|
5429
5417
|
}
|
|
5430
5418
|
}));
|
|
5431
5419
|
var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
5432
|
-
const { classes: styles } =
|
|
5420
|
+
const { classes: styles } = useStyles31();
|
|
5433
5421
|
return /* @__PURE__ */ jsxs62(Box25, { className: styles.numpadContainer, children: [
|
|
5434
5422
|
/* @__PURE__ */ jsxs62(Box25, { className: styles.numpadNumbersContainer, children: [
|
|
5435
5423
|
/* @__PURE__ */ jsxs62(Box25, { className: styles.numpadRow, children: [
|
|
@@ -5564,10 +5552,10 @@ var NumpadPlus_default = NumpadPlus;
|
|
|
5564
5552
|
|
|
5565
5553
|
// src/components/Pagination/Pagination.tsx
|
|
5566
5554
|
import { Pagination, Paper as Paper4, Typography as Typography20 } from "@mui/material";
|
|
5567
|
-
import { makeStyles as
|
|
5555
|
+
import { makeStyles as makeStyles32 } from "tss-react/mui";
|
|
5568
5556
|
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
5569
5557
|
var paginationHeight = "56px";
|
|
5570
|
-
var
|
|
5558
|
+
var useStyles32 = makeStyles32()((theme) => ({
|
|
5571
5559
|
root: {
|
|
5572
5560
|
display: "flex",
|
|
5573
5561
|
flexDirection: "row",
|
|
@@ -5604,7 +5592,7 @@ var PaginationForTable = ({
|
|
|
5604
5592
|
style,
|
|
5605
5593
|
updateFilters
|
|
5606
5594
|
}) => {
|
|
5607
|
-
const { classes, cx } =
|
|
5595
|
+
const { classes, cx } = useStyles32();
|
|
5608
5596
|
const handleChange = (event, value) => {
|
|
5609
5597
|
updateFilters({ ...appliedFilters, page: value });
|
|
5610
5598
|
};
|
|
@@ -5699,9 +5687,9 @@ import {
|
|
|
5699
5687
|
TextField as TextField7,
|
|
5700
5688
|
Typography as Typography22
|
|
5701
5689
|
} from "@mui/material";
|
|
5702
|
-
import { makeStyles as
|
|
5690
|
+
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
5703
5691
|
import { jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5704
|
-
var
|
|
5692
|
+
var useStyles33 = makeStyles33()((theme) => ({
|
|
5705
5693
|
container: {
|
|
5706
5694
|
position: "relative",
|
|
5707
5695
|
/**
|
|
@@ -5842,7 +5830,7 @@ var PlusMinusInput = ({
|
|
|
5842
5830
|
}
|
|
5843
5831
|
updateInputValue(value);
|
|
5844
5832
|
};
|
|
5845
|
-
const { classes, cx } =
|
|
5833
|
+
const { classes, cx } = useStyles33();
|
|
5846
5834
|
return /* @__PURE__ */ jsx101("div", { className: classes.container, children: /* @__PURE__ */ jsxs65(
|
|
5847
5835
|
FormGroup,
|
|
5848
5836
|
{
|
|
@@ -6267,7 +6255,7 @@ import {
|
|
|
6267
6255
|
ListSubheader,
|
|
6268
6256
|
Tooltip as Tooltip7
|
|
6269
6257
|
} from "@mui/material";
|
|
6270
|
-
import { makeStyles as
|
|
6258
|
+
import { makeStyles as makeStyles34 } from "tss-react/mui";
|
|
6271
6259
|
|
|
6272
6260
|
// src/utils/useGetActiveSection.ts
|
|
6273
6261
|
import { useEffect as useEffect6, useState as useState10 } from "react";
|
|
@@ -6275,7 +6263,7 @@ var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
|
|
|
6275
6263
|
|
|
6276
6264
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
6277
6265
|
import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6278
|
-
var
|
|
6266
|
+
var useStyles34 = makeStyles34()(
|
|
6279
6267
|
(_theme, _params, classes) => ({
|
|
6280
6268
|
root: {
|
|
6281
6269
|
[`&.${classes.selected}`]: {
|
|
@@ -6294,7 +6282,7 @@ var RenderContentList = ({
|
|
|
6294
6282
|
warningItems,
|
|
6295
6283
|
warningMessage = "Missing information on this section"
|
|
6296
6284
|
}) => {
|
|
6297
|
-
const { classes } =
|
|
6285
|
+
const { classes } = useStyles34();
|
|
6298
6286
|
const [active, setActive] = useState11(activeSection);
|
|
6299
6287
|
const observer = useRef5(null);
|
|
6300
6288
|
const isScrolling = useRef5(false);
|
|
@@ -6401,9 +6389,9 @@ var RenderContentList_default = RenderContentList;
|
|
|
6401
6389
|
|
|
6402
6390
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
6403
6391
|
import { Box as Box28, Divider as Divider6, Paper as Paper5, Typography as Typography25 } from "@mui/material";
|
|
6404
|
-
import { makeStyles as
|
|
6392
|
+
import { makeStyles as makeStyles35 } from "tss-react/mui";
|
|
6405
6393
|
import { Fragment as Fragment11, jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
6406
|
-
var
|
|
6394
|
+
var useStyles35 = makeStyles35()((theme) => ({
|
|
6407
6395
|
wrapper: {
|
|
6408
6396
|
display: "flex",
|
|
6409
6397
|
gap: theme.spacing(2),
|
|
@@ -6434,7 +6422,7 @@ var RowProductCard = ({
|
|
|
6434
6422
|
product,
|
|
6435
6423
|
size = "medium"
|
|
6436
6424
|
}) => {
|
|
6437
|
-
const { classes, cx } =
|
|
6425
|
+
const { classes, cx } = useStyles35();
|
|
6438
6426
|
const hasColumns = columns.length >= 1;
|
|
6439
6427
|
const imageSize = {
|
|
6440
6428
|
small: "c_productbust__image_sm",
|
|
@@ -6501,9 +6489,9 @@ var RowProductCard_default = RowProductCard;
|
|
|
6501
6489
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
6502
6490
|
import { useEffect as useEffect8, useRef as useRef6, useState as useState12 } from "react";
|
|
6503
6491
|
import { Box as Box29, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper6, Typography as Typography26 } from "@mui/material";
|
|
6504
|
-
import { makeStyles as
|
|
6492
|
+
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
6505
6493
|
import { jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
6506
|
-
var
|
|
6494
|
+
var useStyles36 = makeStyles36()((theme) => ({
|
|
6507
6495
|
dialog: {
|
|
6508
6496
|
margin: "0 auto",
|
|
6509
6497
|
[theme.breakpoints.up("md")]: {
|
|
@@ -6545,7 +6533,7 @@ var ScrollableDialog = ({
|
|
|
6545
6533
|
const [bodyHeight, setBodyHeight] = useState12(0);
|
|
6546
6534
|
const [hasScrollBar, setHasScrollBar] = useState12(false);
|
|
6547
6535
|
const [maxDialogHeight, setMaxDialogHeight] = useState12(0);
|
|
6548
|
-
const { classes, cx } =
|
|
6536
|
+
const { classes, cx } = useStyles36();
|
|
6549
6537
|
const headerRef = useRef6(null);
|
|
6550
6538
|
const footerRef = useRef6(null);
|
|
6551
6539
|
const titleRef = useRef6(null);
|
|
@@ -6631,7 +6619,7 @@ var ScrollableDialog_default = ScrollableDialog;
|
|
|
6631
6619
|
|
|
6632
6620
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
6633
6621
|
import { Box as Box30, Paper as Paper8 } from "@mui/material";
|
|
6634
|
-
import { makeStyles as
|
|
6622
|
+
import { makeStyles as makeStyles38 } from "tss-react/mui";
|
|
6635
6623
|
|
|
6636
6624
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
6637
6625
|
import { useState as useState13, useEffect as useEffect9 } from "react";
|
|
@@ -6642,9 +6630,9 @@ import {
|
|
|
6642
6630
|
Search as SearchIcon
|
|
6643
6631
|
} from "@mui/icons-material";
|
|
6644
6632
|
import { Button as Button14, Divider as Divider8, InputBase, Paper as Paper7 } from "@mui/material";
|
|
6645
|
-
import { makeStyles as
|
|
6633
|
+
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
6646
6634
|
import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
6647
|
-
var
|
|
6635
|
+
var useStyles37 = makeStyles37()((theme) => ({
|
|
6648
6636
|
searchContainer: {
|
|
6649
6637
|
height: 46,
|
|
6650
6638
|
padding: "4px",
|
|
@@ -6689,7 +6677,7 @@ var SearchWithFilters = ({
|
|
|
6689
6677
|
disabled = false
|
|
6690
6678
|
}) => {
|
|
6691
6679
|
const [searchText, setSearchText] = useState13(searchValue);
|
|
6692
|
-
const { classes } =
|
|
6680
|
+
const { classes } = useStyles37();
|
|
6693
6681
|
const handleTextChange = (e) => {
|
|
6694
6682
|
const { value } = e.target;
|
|
6695
6683
|
setSearchText(value);
|
|
@@ -6736,7 +6724,7 @@ var SearchWithFilters_default = React6.memo(SearchWithFilters);
|
|
|
6736
6724
|
|
|
6737
6725
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
6738
6726
|
import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
6739
|
-
var
|
|
6727
|
+
var useStyles38 = makeStyles38()((theme) => ({
|
|
6740
6728
|
wrapper: {
|
|
6741
6729
|
display: "flex",
|
|
6742
6730
|
flexDirection: "column",
|
|
@@ -6770,7 +6758,7 @@ var SearchAndFilterHeader = ({
|
|
|
6770
6758
|
appliedFiltersComponent,
|
|
6771
6759
|
searchValue
|
|
6772
6760
|
}) => {
|
|
6773
|
-
const { classes } =
|
|
6761
|
+
const { classes } = useStyles38();
|
|
6774
6762
|
return /* @__PURE__ */ jsx109(Paper8, { children: /* @__PURE__ */ jsxs73(Box30, { className: classes.wrapper, children: [
|
|
6775
6763
|
/* @__PURE__ */ jsxs73(Box30, { className: classes.container, children: [
|
|
6776
6764
|
/* @__PURE__ */ jsxs73(Box30, { className: classes.leftSection, children: [
|
|
@@ -6797,7 +6785,7 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
6797
6785
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
6798
6786
|
import * as React7 from "react";
|
|
6799
6787
|
import { Box as Box32 } from "@mui/material";
|
|
6800
|
-
import { makeStyles as
|
|
6788
|
+
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
6801
6789
|
|
|
6802
6790
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
6803
6791
|
import { useState as useState14, memo as memo16 } from "react";
|
|
@@ -6807,9 +6795,9 @@ import {
|
|
|
6807
6795
|
Search as SearchIcon2
|
|
6808
6796
|
} from "@mui/icons-material";
|
|
6809
6797
|
import { Box as Box31, Button as Button15, Divider as Divider9, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
|
|
6810
|
-
import { makeStyles as
|
|
6798
|
+
import { makeStyles as makeStyles39 } from "tss-react/mui";
|
|
6811
6799
|
import { Fragment as Fragment12, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6812
|
-
var
|
|
6800
|
+
var useStyles39 = makeStyles39()((theme) => ({
|
|
6813
6801
|
c_search: {
|
|
6814
6802
|
height: 46,
|
|
6815
6803
|
padding: "4px",
|
|
@@ -6867,7 +6855,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6867
6855
|
enterPressedInSearch,
|
|
6868
6856
|
searchedValue
|
|
6869
6857
|
} = props;
|
|
6870
|
-
const { classes } =
|
|
6858
|
+
const { classes } = useStyles39();
|
|
6871
6859
|
const [searchText, setSearchText] = useState14("");
|
|
6872
6860
|
const handleTextChange = (e) => {
|
|
6873
6861
|
const { value } = e.target;
|
|
@@ -6921,7 +6909,7 @@ var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
|
|
|
6921
6909
|
|
|
6922
6910
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
6923
6911
|
import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6924
|
-
var
|
|
6912
|
+
var useStyles40 = makeStyles40()((theme) => ({
|
|
6925
6913
|
container: {
|
|
6926
6914
|
display: "flex",
|
|
6927
6915
|
alignItems: "center",
|
|
@@ -6951,7 +6939,7 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
6951
6939
|
button,
|
|
6952
6940
|
searchedValue
|
|
6953
6941
|
} = props;
|
|
6954
|
-
const { classes } =
|
|
6942
|
+
const { classes } = useStyles40();
|
|
6955
6943
|
return /* @__PURE__ */ jsxs75(Box32, { className: classes.container, children: [
|
|
6956
6944
|
/* @__PURE__ */ jsxs75(Box32, { className: classes.leftSection, children: [
|
|
6957
6945
|
/* @__PURE__ */ jsx111(AppLabel_default, { appName }),
|
|
@@ -7021,9 +7009,9 @@ var SearchHeader = memo18(
|
|
|
7021
7009
|
import HistoryIcon from "@mui/icons-material/History";
|
|
7022
7010
|
import InfoIcon from "@mui/icons-material/Info";
|
|
7023
7011
|
import { Box as Box34, Divider as Divider10, IconButton as IconButton4, Tooltip as Tooltip8, Typography as Typography27 } from "@mui/material";
|
|
7024
|
-
import { makeStyles as
|
|
7012
|
+
import { makeStyles as makeStyles41 } from "tss-react/mui";
|
|
7025
7013
|
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7026
|
-
var
|
|
7014
|
+
var useStyles41 = makeStyles41()((theme) => ({
|
|
7027
7015
|
container: {
|
|
7028
7016
|
display: "flex",
|
|
7029
7017
|
alignItems: "flex-end",
|
|
@@ -7064,7 +7052,7 @@ var SectionName = ({
|
|
|
7064
7052
|
buttonDisabled,
|
|
7065
7053
|
openHistoryLog
|
|
7066
7054
|
}) => {
|
|
7067
|
-
const { classes } =
|
|
7055
|
+
const { classes } = useStyles41();
|
|
7068
7056
|
const handleScroll = (e) => {
|
|
7069
7057
|
e.preventDefault();
|
|
7070
7058
|
if (sectionId) {
|
|
@@ -7381,9 +7369,9 @@ var SmartSelect = forwardRef2(
|
|
|
7381
7369
|
import { memo as memo19 } from "react";
|
|
7382
7370
|
import { Typography as Typography29 } from "@mui/material";
|
|
7383
7371
|
import { red as red2 } from "@mui/material/colors";
|
|
7384
|
-
import { makeStyles as
|
|
7372
|
+
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
7385
7373
|
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7386
|
-
var
|
|
7374
|
+
var useStyles42 = makeStyles42()((theme) => ({
|
|
7387
7375
|
red: {
|
|
7388
7376
|
backgroundColor: red2["50"],
|
|
7389
7377
|
color: red2["500"],
|
|
@@ -7396,7 +7384,7 @@ var useStyles43 = makeStyles43()((theme) => ({
|
|
|
7396
7384
|
}
|
|
7397
7385
|
}));
|
|
7398
7386
|
var SquareLabel = ({ color, copy }) => {
|
|
7399
|
-
const { classes } =
|
|
7387
|
+
const { classes } = useStyles42();
|
|
7400
7388
|
return /* @__PURE__ */ jsx116(Typography29, { className: classes[color], children: copy });
|
|
7401
7389
|
};
|
|
7402
7390
|
var SquareLabel_default = memo19(SquareLabel);
|
|
@@ -7742,7 +7730,7 @@ import {
|
|
|
7742
7730
|
TableRow as TableRow2,
|
|
7743
7731
|
TableSortLabel as TableSortLabel2
|
|
7744
7732
|
} from "@mui/material";
|
|
7745
|
-
import { makeStyles as
|
|
7733
|
+
import { makeStyles as makeStyles43 } from "tss-react/mui";
|
|
7746
7734
|
import { v4 as uuidv4 } from "uuid";
|
|
7747
7735
|
|
|
7748
7736
|
// src/components/TableLoading/TableLoading.tsx
|
|
@@ -7801,7 +7789,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7801
7789
|
|
|
7802
7790
|
// src/components/Table/Table.tsx
|
|
7803
7791
|
import { jsx as jsx121, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
7804
|
-
var
|
|
7792
|
+
var useStyles43 = makeStyles43()(() => ({
|
|
7805
7793
|
root: {
|
|
7806
7794
|
height: "calc(100vh - 262px)",
|
|
7807
7795
|
overflow: "scroll"
|
|
@@ -7840,7 +7828,7 @@ var Table = ({
|
|
|
7840
7828
|
appliedFilters?.sortField || "delivery_date"
|
|
7841
7829
|
);
|
|
7842
7830
|
const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
|
|
7843
|
-
const { classes } =
|
|
7831
|
+
const { classes } = useStyles43();
|
|
7844
7832
|
const rowHeight = 56;
|
|
7845
7833
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
7846
7834
|
const handleRequestSort = (event, property) => {
|
|
@@ -8143,9 +8131,9 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8143
8131
|
|
|
8144
8132
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
8145
8133
|
import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography33 } from "@mui/material";
|
|
8146
|
-
import { makeStyles as
|
|
8134
|
+
import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
8147
8135
|
import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8148
|
-
var
|
|
8136
|
+
var useStyles44 = makeStyles44()(() => ({
|
|
8149
8137
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
8150
8138
|
tableCellDefault: { padding: 24 }
|
|
8151
8139
|
}));
|
|
@@ -8155,7 +8143,7 @@ var TableEmptyResult = ({
|
|
|
8155
8143
|
handleClickOnClearFiltersButton = () => {
|
|
8156
8144
|
}
|
|
8157
8145
|
}) => {
|
|
8158
|
-
const { classes } =
|
|
8146
|
+
const { classes } = useStyles44();
|
|
8159
8147
|
return showClearFilterButton ? /* @__PURE__ */ jsx126(TableRow5, { children: /* @__PURE__ */ jsxs87(
|
|
8160
8148
|
TableCell5,
|
|
8161
8149
|
{
|
|
@@ -9283,9 +9271,9 @@ var TableDesktopToolbar = ({
|
|
|
9283
9271
|
import { memo as memo22, useEffect as useEffect14, useState as useState24 } from "react";
|
|
9284
9272
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
9285
9273
|
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
9286
|
-
import { makeStyles as
|
|
9274
|
+
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
9287
9275
|
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
9288
|
-
var
|
|
9276
|
+
var useStyles45 = makeStyles45()(() => ({
|
|
9289
9277
|
sortLabel: {
|
|
9290
9278
|
"& .MuiTableSortLabel-icon": {
|
|
9291
9279
|
opacity: 1
|
|
@@ -9294,7 +9282,7 @@ var useStyles46 = makeStyles46()(() => ({
|
|
|
9294
9282
|
}));
|
|
9295
9283
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
9296
9284
|
const [sortableCells, setSortableCells] = useState24([]);
|
|
9297
|
-
const { classes } =
|
|
9285
|
+
const { classes } = useStyles45();
|
|
9298
9286
|
useEffect14(() => {
|
|
9299
9287
|
setSortableCells(cells);
|
|
9300
9288
|
}, []);
|
|
@@ -9344,9 +9332,9 @@ var TableHeader_default = memo22(TableHeader);
|
|
|
9344
9332
|
|
|
9345
9333
|
// src/components/TextDivider/TextDivider.tsx
|
|
9346
9334
|
import { Box as Box44, Typography as Typography36, Divider as Divider12, Button as Button20 } from "@mui/material";
|
|
9347
|
-
import { makeStyles as
|
|
9335
|
+
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
9348
9336
|
import { jsx as jsx136, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9349
|
-
var
|
|
9337
|
+
var useStyles46 = makeStyles46()(() => ({
|
|
9350
9338
|
icon: {
|
|
9351
9339
|
fontSize: 20
|
|
9352
9340
|
},
|
|
@@ -9380,7 +9368,7 @@ var TextDivider = ({
|
|
|
9380
9368
|
iconPosition = "left",
|
|
9381
9369
|
titleWeight = "400"
|
|
9382
9370
|
}) => {
|
|
9383
|
-
const { classes } =
|
|
9371
|
+
const { classes } = useStyles46();
|
|
9384
9372
|
const iconColor = color ?? colors.neutral900;
|
|
9385
9373
|
return /* @__PURE__ */ jsxs92(
|
|
9386
9374
|
Box44,
|
|
@@ -9413,11 +9401,11 @@ var TextDivider_default = TextDivider;
|
|
|
9413
9401
|
|
|
9414
9402
|
// src/components/ThemedDateRangePicker/ThemedDateRangePicker.tsx
|
|
9415
9403
|
import { DateRangePicker } from "react-dates";
|
|
9416
|
-
import { makeStyles as
|
|
9404
|
+
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
9417
9405
|
import "react-dates/initialize";
|
|
9418
9406
|
import "react-dates/lib/css/_datepicker.css";
|
|
9419
9407
|
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
9420
|
-
var
|
|
9408
|
+
var useStyles47 = makeStyles47()((theme) => ({
|
|
9421
9409
|
wrapper: {
|
|
9422
9410
|
"& .DateRangePicker": {
|
|
9423
9411
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.grey[900] : colors.neutral100,
|
|
@@ -9511,7 +9499,7 @@ var ThemedDateRangePicker = ({
|
|
|
9511
9499
|
className,
|
|
9512
9500
|
...props
|
|
9513
9501
|
}) => {
|
|
9514
|
-
const { classes, cx } =
|
|
9502
|
+
const { classes, cx } = useStyles47();
|
|
9515
9503
|
return /* @__PURE__ */ jsx137("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx137(DateRangePicker, { ...props }) });
|
|
9516
9504
|
};
|
|
9517
9505
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
@@ -9519,9 +9507,9 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
9519
9507
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
9520
9508
|
import { memo as memo23 } from "react";
|
|
9521
9509
|
import { AppBar, Box as Box45, Toolbar } from "@mui/material";
|
|
9522
|
-
import { makeStyles as
|
|
9510
|
+
import { makeStyles as makeStyles48 } from "tss-react/mui";
|
|
9523
9511
|
import { jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9524
|
-
var
|
|
9512
|
+
var useStyles48 = makeStyles48()((theme) => ({
|
|
9525
9513
|
menuButton: {
|
|
9526
9514
|
color: theme.palette.primary.contrastText
|
|
9527
9515
|
},
|
|
@@ -9537,12 +9525,13 @@ var TheToolbar = ({
|
|
|
9537
9525
|
handleOpen,
|
|
9538
9526
|
LeftDrawer,
|
|
9539
9527
|
leftSection,
|
|
9540
|
-
rightSection
|
|
9528
|
+
rightSection,
|
|
9529
|
+
isAuthenticated = true
|
|
9541
9530
|
}) => {
|
|
9542
|
-
const { classes } =
|
|
9531
|
+
const { classes } = useStyles48();
|
|
9543
9532
|
return /* @__PURE__ */ jsxs93(Box45, { children: [
|
|
9544
9533
|
/* @__PURE__ */ jsx138(AppBar, { children: /* @__PURE__ */ jsxs93(Toolbar, { className: classes.topBar, children: [
|
|
9545
|
-
/* @__PURE__ */ jsx138(
|
|
9534
|
+
isAuthenticated ? /* @__PURE__ */ jsx138(
|
|
9546
9535
|
RoundButton_default,
|
|
9547
9536
|
{
|
|
9548
9537
|
className: classes.menuButton,
|
|
@@ -9550,7 +9539,7 @@ var TheToolbar = ({
|
|
|
9550
9539
|
noStrokes: true,
|
|
9551
9540
|
onClick: handleOpen
|
|
9552
9541
|
}
|
|
9553
|
-
),
|
|
9542
|
+
) : null,
|
|
9554
9543
|
/* @__PURE__ */ jsx138(
|
|
9555
9544
|
CompanyLogo_default,
|
|
9556
9545
|
{
|
|
@@ -9619,9 +9608,9 @@ import {
|
|
|
9619
9608
|
Paper as Paper13,
|
|
9620
9609
|
Fade as Fade2
|
|
9621
9610
|
} from "@mui/material";
|
|
9622
|
-
import { makeStyles as
|
|
9611
|
+
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
9623
9612
|
import { jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9624
|
-
var
|
|
9613
|
+
var useStyles49 = makeStyles49()((theme) => ({
|
|
9625
9614
|
paper: {
|
|
9626
9615
|
padding: theme.spacing(2)
|
|
9627
9616
|
},
|
|
@@ -9649,7 +9638,7 @@ var TwoButtonDialog = ({
|
|
|
9649
9638
|
cancelLabel = "CANCEL",
|
|
9650
9639
|
cancelButton
|
|
9651
9640
|
}) => {
|
|
9652
|
-
const { classes } =
|
|
9641
|
+
const { classes } = useStyles49();
|
|
9653
9642
|
return /* @__PURE__ */ jsx140(
|
|
9654
9643
|
Dialog5,
|
|
9655
9644
|
{
|