mayak-common-library 0.0.23 → 0.0.24
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/index.js +13 -10
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -584,6 +584,9 @@ var FromToInput = ({ label }) => {
|
|
|
584
584
|
};
|
|
585
585
|
var FromToInput_default = FromToInput;
|
|
586
586
|
|
|
587
|
+
// src/providers/Providers.tsx
|
|
588
|
+
var import_react8 = __toESM(require("react"));
|
|
589
|
+
|
|
587
590
|
// src/theme/index.tsx
|
|
588
591
|
var import_react6 = require("react");
|
|
589
592
|
var import_cache = __toESM(require("@emotion/cache"));
|
|
@@ -679,18 +682,18 @@ function ThemeRegistry(props) {
|
|
|
679
682
|
|
|
680
683
|
// src/providers/Providers.tsx
|
|
681
684
|
var Providers = ({ children }) => {
|
|
682
|
-
return /* @__PURE__ */
|
|
685
|
+
return /* @__PURE__ */ import_react8.default.createElement(ThemeRegistry, null, children);
|
|
683
686
|
};
|
|
684
687
|
var Providers_default = Providers;
|
|
685
688
|
|
|
686
689
|
// src/components/AppBar/AppBar.tsx
|
|
687
|
-
var
|
|
690
|
+
var import_react9 = require("react");
|
|
688
691
|
var import_material12 = require("@mui/material");
|
|
689
692
|
var import_link = __toESM(require("next/link"));
|
|
690
693
|
var AppBar = ({ links }) => {
|
|
691
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
692
|
-
const navItemsRef = (0,
|
|
693
|
-
(0,
|
|
694
|
+
const [activeIndex, setActiveIndex] = (0, import_react9.useState)(0);
|
|
695
|
+
const navItemsRef = (0, import_react9.useRef)([]);
|
|
696
|
+
(0, import_react9.useEffect)(() => {
|
|
694
697
|
const indicator = document.querySelector(".nav-indicator");
|
|
695
698
|
const navItem = navItemsRef.current[activeIndex];
|
|
696
699
|
const navItemWidth = navItem.offsetWidth;
|
|
@@ -750,8 +753,8 @@ var ImageContainer = (props) => {
|
|
|
750
753
|
var ImageContainer_default = ImageContainer;
|
|
751
754
|
|
|
752
755
|
// src/icons/map-search.svg
|
|
753
|
-
var
|
|
754
|
-
var SvgMapSearch = (props) => /* @__PURE__ */
|
|
756
|
+
var React8 = __toESM(require("react"));
|
|
757
|
+
var SvgMapSearch = (props) => /* @__PURE__ */ React8.createElement("svg", __spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React8.createElement("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
755
758
|
var map_search_default = SvgMapSearch;
|
|
756
759
|
|
|
757
760
|
// src/components/Card/CategoryCard.tsx
|
|
@@ -865,7 +868,7 @@ var TeamPersonCard = (props) => {
|
|
|
865
868
|
var TeamPersonCard_default = TeamPersonCard;
|
|
866
869
|
|
|
867
870
|
// src/components/Autocomplete/Autocomplete.tsx
|
|
868
|
-
var
|
|
871
|
+
var import_react10 = require("react");
|
|
869
872
|
var import_material18 = require("@mui/material");
|
|
870
873
|
var import_react_hook_form = require("react-hook-form");
|
|
871
874
|
var RenderInputAutocomplete = (_a) => {
|
|
@@ -900,8 +903,8 @@ var CustomPaperComponent = (props) => {
|
|
|
900
903
|
};
|
|
901
904
|
var Autocomplete = (props) => {
|
|
902
905
|
const { values } = props;
|
|
903
|
-
const [open, setOpen] = (0,
|
|
904
|
-
const [anchorEl, setAnchorEl] = (0,
|
|
906
|
+
const [open, setOpen] = (0, import_react10.useState)(false);
|
|
907
|
+
const [anchorEl, setAnchorEl] = (0, import_react10.useState)(null);
|
|
905
908
|
const { field } = (0, import_react_hook_form.useController)(props);
|
|
906
909
|
const handleClick = (event) => {
|
|
907
910
|
if (open)
|
package/dist/index.mjs
CHANGED
|
@@ -534,6 +534,9 @@ var FromToInput = ({ label }) => {
|
|
|
534
534
|
};
|
|
535
535
|
var FromToInput_default = FromToInput;
|
|
536
536
|
|
|
537
|
+
// src/providers/Providers.tsx
|
|
538
|
+
import React7 from "react";
|
|
539
|
+
|
|
537
540
|
// src/theme/index.tsx
|
|
538
541
|
import { useState as useState3 } from "react";
|
|
539
542
|
import createCache from "@emotion/cache";
|
|
@@ -629,7 +632,7 @@ function ThemeRegistry(props) {
|
|
|
629
632
|
|
|
630
633
|
// src/providers/Providers.tsx
|
|
631
634
|
var Providers = ({ children }) => {
|
|
632
|
-
return /* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ React7.createElement(ThemeRegistry, null, children);
|
|
633
636
|
};
|
|
634
637
|
var Providers_default = Providers;
|
|
635
638
|
|
|
@@ -700,8 +703,8 @@ var ImageContainer = (props) => {
|
|
|
700
703
|
var ImageContainer_default = ImageContainer;
|
|
701
704
|
|
|
702
705
|
// src/icons/map-search.svg
|
|
703
|
-
import * as
|
|
704
|
-
var SvgMapSearch = (props) => /* @__PURE__ */
|
|
706
|
+
import * as React8 from "react";
|
|
707
|
+
var SvgMapSearch = (props) => /* @__PURE__ */ React8.createElement("svg", __spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React8.createElement("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
705
708
|
var map_search_default = SvgMapSearch;
|
|
706
709
|
|
|
707
710
|
// src/components/Card/CategoryCard.tsx
|