@natoora-libs/core 0.2.29 → 0.2.31

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.
@@ -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;
@@ -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;
@@ -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 { FilterList } from "@mui/icons-material";
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 handleOpen = () => {
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: handleOpen,
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 { Add as Add2, ChevronRight } from "@mui/icons-material";
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 { Description as DescriptionIcon } from "@mui/icons-material";
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) => {
@@ -10099,7 +10102,7 @@ var TableDesktopToolbar = ({
10099
10102
 
10100
10103
  // src/components/TableHeader/TableHeader.tsx
10101
10104
  import { memo as memo21, useEffect as useEffect16, useState as useState26 } from "react";
10102
- import { ImportExport as ImportExportIcon } from "@mui/icons-material";
10105
+ import ImportExportIcon from "@mui/icons-material/ImportExport";
10103
10106
  import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
10104
10107
  import { makeStyles as makeStyles46 } from "tss-react/mui";
10105
10108
  import { jsx as jsx140 } from "react/jsx-runtime";