@natoora-libs/core 0.2.29 → 0.2.31-ticket-system-v1
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/components/index.cjs +73 -68
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +4 -2
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +14 -9
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -79,6 +79,7 @@ type BaseAddressFormFields = {
|
|
|
79
79
|
};
|
|
80
80
|
type AddressFormFieldsProps = {
|
|
81
81
|
form: UseFormReturn<BaseAddressFormFields>;
|
|
82
|
+
hidePrimaryPhoneNumberField?: boolean;
|
|
82
83
|
countriesSelectProps: {
|
|
83
84
|
countries: AddressCountry[];
|
|
84
85
|
isCountriesFetching: boolean;
|
|
@@ -90,7 +91,7 @@ type AddressFormFieldsProps = {
|
|
|
90
91
|
};
|
|
91
92
|
googlePlacesAutocompleteProps?: GooglePlacesAddressAutocompleteProps;
|
|
92
93
|
};
|
|
93
|
-
declare const AddressFormFields: ({ form, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare const AddressFormFields: ({ form, hidePrimaryPhoneNumberField, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
|
|
94
95
|
|
|
95
96
|
interface AlertDialogProps {
|
|
96
97
|
open: boolean;
|
|
@@ -904,11 +905,12 @@ type SearchHeaderProps = {
|
|
|
904
905
|
children?: ReactNode;
|
|
905
906
|
onSearch?: (value: string) => void;
|
|
906
907
|
value?: string;
|
|
908
|
+
initialValue?: string;
|
|
907
909
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
908
910
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
909
911
|
width?: number;
|
|
910
912
|
};
|
|
911
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
913
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, initialValue }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
912
914
|
|
|
913
915
|
interface ISearchWithFiltersProps {
|
|
914
916
|
enterPressedInSearch?: () => void;
|
|
@@ -79,6 +79,7 @@ type BaseAddressFormFields = {
|
|
|
79
79
|
};
|
|
80
80
|
type AddressFormFieldsProps = {
|
|
81
81
|
form: UseFormReturn<BaseAddressFormFields>;
|
|
82
|
+
hidePrimaryPhoneNumberField?: boolean;
|
|
82
83
|
countriesSelectProps: {
|
|
83
84
|
countries: AddressCountry[];
|
|
84
85
|
isCountriesFetching: boolean;
|
|
@@ -90,7 +91,7 @@ type AddressFormFieldsProps = {
|
|
|
90
91
|
};
|
|
91
92
|
googlePlacesAutocompleteProps?: GooglePlacesAddressAutocompleteProps;
|
|
92
93
|
};
|
|
93
|
-
declare const AddressFormFields: ({ form, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare const AddressFormFields: ({ form, hidePrimaryPhoneNumberField, countriesSelectProps: { countries, isCountriesFetching, refetchCountries }, statesSelectProps: { addressStates, isAddressStatesFetching }, googlePlacesAutocompleteProps, }: AddressFormFieldsProps) => react_jsx_runtime.JSX.Element;
|
|
94
95
|
|
|
95
96
|
interface AlertDialogProps {
|
|
96
97
|
open: boolean;
|
|
@@ -904,11 +905,12 @@ type SearchHeaderProps = {
|
|
|
904
905
|
children?: ReactNode;
|
|
905
906
|
onSearch?: (value: string) => void;
|
|
906
907
|
value?: string;
|
|
908
|
+
initialValue?: string;
|
|
907
909
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
908
910
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
909
911
|
width?: number;
|
|
910
912
|
};
|
|
911
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
913
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, initialValue }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
912
914
|
|
|
913
915
|
interface ISearchWithFiltersProps {
|
|
914
916
|
enterPressedInSearch?: () => void;
|
package/dist/components/index.js
CHANGED
|
@@ -302,7 +302,7 @@ var require_debounce = __commonJS({
|
|
|
302
302
|
|
|
303
303
|
// src/components/ActiveFiltersIconButton/ActiveFiltersIconButton.tsx
|
|
304
304
|
import { memo } from "react";
|
|
305
|
-
import
|
|
305
|
+
import FilterList from "@mui/icons-material/FilterList";
|
|
306
306
|
import { Typography, Chip, IconButton } from "@mui/material";
|
|
307
307
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
308
308
|
var ActiveFiltersIconButton = memo(
|
|
@@ -723,7 +723,7 @@ var SmartSelect = forwardRef(
|
|
|
723
723
|
}
|
|
724
724
|
return baseOptions;
|
|
725
725
|
}, [options, value, defaultOption]);
|
|
726
|
-
const
|
|
726
|
+
const handleFetchData = () => {
|
|
727
727
|
if (!options?.length) {
|
|
728
728
|
refetch?.();
|
|
729
729
|
}
|
|
@@ -822,7 +822,8 @@ var SmartSelect = forwardRef(
|
|
|
822
822
|
"data-testid": `${dataTestId}-select`,
|
|
823
823
|
value: value ?? "",
|
|
824
824
|
onChange: handleChange,
|
|
825
|
-
onOpen:
|
|
825
|
+
onOpen: handleFetchData,
|
|
826
|
+
onFocus: handleFetchData,
|
|
826
827
|
onKeyDown: handleKeyDown,
|
|
827
828
|
label: inputLabel,
|
|
828
829
|
MenuProps: menuProps,
|
|
@@ -849,6 +850,7 @@ var ADDRESS_FORM_FIELDS = [
|
|
|
849
850
|
];
|
|
850
851
|
var AddressFormFields = ({
|
|
851
852
|
form,
|
|
853
|
+
hidePrimaryPhoneNumberField = false,
|
|
852
854
|
countriesSelectProps: { countries, isCountriesFetching, refetchCountries },
|
|
853
855
|
statesSelectProps: { addressStates, isAddressStatesFetching },
|
|
854
856
|
googlePlacesAutocompleteProps
|
|
@@ -913,7 +915,7 @@ var AddressFormFields = ({
|
|
|
913
915
|
helperText: "Name this address for easier reference (e.g. Office, Home, etc.)."
|
|
914
916
|
}
|
|
915
917
|
),
|
|
916
|
-
/* @__PURE__ */ jsx6(
|
|
918
|
+
!hidePrimaryPhoneNumberField && /* @__PURE__ */ jsx6(
|
|
917
919
|
Controller2,
|
|
918
920
|
{
|
|
919
921
|
control,
|
|
@@ -2332,7 +2334,8 @@ var ImageButton = (props) => {
|
|
|
2332
2334
|
var ImageButton_default = memo6(ImageButton);
|
|
2333
2335
|
|
|
2334
2336
|
// src/components/Buttons/SquareButton/SquareButton.tsx
|
|
2335
|
-
import
|
|
2337
|
+
import Add2 from "@mui/icons-material/Add";
|
|
2338
|
+
import ChevronRight from "@mui/icons-material/ChevronRight";
|
|
2336
2339
|
import { Typography as Typography9, Button as Button10 } from "@mui/material";
|
|
2337
2340
|
import { makeStyles as makeStyles10 } from "tss-react/mui";
|
|
2338
2341
|
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -5364,7 +5367,7 @@ var DeliveryInstructionsFormFields = ({
|
|
|
5364
5367
|
};
|
|
5365
5368
|
|
|
5366
5369
|
// src/components/FileCard/FileCard.tsx
|
|
5367
|
-
import
|
|
5370
|
+
import DescriptionIcon from "@mui/icons-material/Description";
|
|
5368
5371
|
import { Typography as Typography16, Box as Box25 } from "@mui/material";
|
|
5369
5372
|
import { jsx as jsx92, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
5370
5373
|
var getFileMetadata = (file) => {
|
|
@@ -7739,7 +7742,8 @@ var SearchHeader = ({
|
|
|
7739
7742
|
value,
|
|
7740
7743
|
onChange,
|
|
7741
7744
|
onKeyDown,
|
|
7742
|
-
width
|
|
7745
|
+
width,
|
|
7746
|
+
initialValue
|
|
7743
7747
|
}) => {
|
|
7744
7748
|
return /* @__PURE__ */ jsxs80(
|
|
7745
7749
|
Paper10,
|
|
@@ -7767,7 +7771,8 @@ var SearchHeader = ({
|
|
|
7767
7771
|
onSearch,
|
|
7768
7772
|
value,
|
|
7769
7773
|
onChange,
|
|
7770
|
-
onKeyDown
|
|
7774
|
+
onKeyDown,
|
|
7775
|
+
initialValue
|
|
7771
7776
|
}
|
|
7772
7777
|
),
|
|
7773
7778
|
renderExtraAction
|
|
@@ -10099,7 +10104,7 @@ var TableDesktopToolbar = ({
|
|
|
10099
10104
|
|
|
10100
10105
|
// src/components/TableHeader/TableHeader.tsx
|
|
10101
10106
|
import { memo as memo21, useEffect as useEffect16, useState as useState26 } from "react";
|
|
10102
|
-
import
|
|
10107
|
+
import ImportExportIcon from "@mui/icons-material/ImportExport";
|
|
10103
10108
|
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
10104
10109
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
10105
10110
|
import { jsx as jsx140 } from "react/jsx-runtime";
|