@yr3/ui 1.0.3 → 1.0.5

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.cjs CHANGED
@@ -53,7 +53,9 @@ __export(index_exports, {
53
53
  IconDown: () => IconDown,
54
54
  IconSearch: () => IconSearch,
55
55
  Image: () => Image,
56
+ ImageDropzone: () => ImageDropzone,
56
57
  Input: () => Input,
58
+ InputArea: () => InputArea,
57
59
  Label: () => Label,
58
60
  Modal: () => Modal,
59
61
  ModalContainer: () => ModalContainer,
@@ -61,6 +63,7 @@ __export(index_exports, {
61
63
  NotistackProvider: () => NotistackProvider,
62
64
  Pending: () => Pending,
63
65
  Phone: () => Phone,
66
+ PlacesAutocomplete: () => PlacesAutocomplete,
64
67
  Radio: () => Radio,
65
68
  Select: () => Select,
66
69
  Slide: () => Slide,
@@ -1469,16 +1472,72 @@ var Image = ({
1469
1472
  );
1470
1473
  };
1471
1474
 
1472
- // src/components/Input/Input.tsx
1475
+ // src/components/ImageDropzone/ImageDropzone.tsx
1473
1476
  var React11 = __toESM(require("react"), 1);
1477
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1478
+ var ImageDropzone = ({ onChange, multiple, ui, style, propsComponent, bordered, component, defaultImage, variant = "outlined" }) => {
1479
+ const [dragging, setDragging] = React11.useState(false);
1480
+ const [files, setFiles] = React11.useState([]);
1481
+ const inputRef = React11.useRef(null);
1482
+ const handleFiles = (fileList) => {
1483
+ if (!fileList) return;
1484
+ const newFiles = Array.from(fileList);
1485
+ setFiles((prev) => {
1486
+ const updated = multiple ? [...prev, ...newFiles] : newFiles;
1487
+ onChange?.(updated);
1488
+ return updated;
1489
+ });
1490
+ };
1491
+ const classes = bem("yr3Dropzone");
1492
+ const classComponent = classes(void 0, { "dragging": !!dragging, "bordered": !!bordered, variant });
1493
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Box, { as: "div", position: "relative", content: "center", ...propsComponent?.box, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1494
+ "div",
1495
+ {
1496
+ className: classComponent,
1497
+ onDragOver: (e) => {
1498
+ e.preventDefault();
1499
+ setDragging(true);
1500
+ },
1501
+ onDragLeave: () => setDragging(false),
1502
+ onDrop: (e) => {
1503
+ e.preventDefault();
1504
+ setDragging(false);
1505
+ handleFiles(e.dataTransfer.files);
1506
+ },
1507
+ onClick: () => inputRef.current?.click(),
1508
+ style: composeStyles(ui, style),
1509
+ children: [
1510
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1511
+ "input",
1512
+ {
1513
+ ref: inputRef,
1514
+ type: "file",
1515
+ hidden: true,
1516
+ multiple,
1517
+ accept: "image/*",
1518
+ onChange: (e) => handleFiles(e.target.files)
1519
+ }
1520
+ ),
1521
+ isEmpty(files) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "yr3Dropzone--content", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { variant: "helper", color: "disabled", ...propsComponent?.text, children: propsComponent?.text?.primary || "Drag and drop an image here, or click to select one" }) }),
1522
+ multiple && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "yr3Dropzone--previews", children: files.map((file, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("img", { src: URL.createObjectURL(file) }, i)) }),
1523
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "yr3Dropzone--preview", children: files.map((file, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("img", { src: URL.createObjectURL(file) }, i)) }),
1524
+ !!defaultImage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "yr3Dropzone--preview", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("img", { src: defaultImage }) }),
1525
+ component
1526
+ ]
1527
+ }
1528
+ ) });
1529
+ };
1530
+
1531
+ // src/components/Input/Input.tsx
1532
+ var React12 = __toESM(require("react"), 1);
1474
1533
 
1475
1534
  // src/components/Label/Label.tsx
1476
- var import_jsx_runtime22 = require("react/jsx-runtime");
1535
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1477
1536
  var Label = ({ text: text2, children, className, color = "primary", ui, style }) => {
1478
1537
  const classes = bem("yr3Label");
1479
1538
  const classComponent = classes(void 0, { color: `color-${color}` });
1480
1539
  const classnames = bemMerge(classComponent, className);
1481
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1540
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1482
1541
  "span",
1483
1542
  {
1484
1543
  className: classnames,
@@ -1530,7 +1589,7 @@ var inputVariants = createVariants({
1530
1589
  });
1531
1590
 
1532
1591
  // src/components/Input/Input.tsx
1533
- var import_jsx_runtime23 = require("react/jsx-runtime");
1592
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1534
1593
  var initiaPropsComponent = {
1535
1594
  label: {
1536
1595
  display: true,
@@ -1538,7 +1597,7 @@ var initiaPropsComponent = {
1538
1597
  style: {}
1539
1598
  }
1540
1599
  };
1541
- var Input = React11.forwardRef(
1600
+ var Input = React12.forwardRef(
1542
1601
  ({
1543
1602
  label,
1544
1603
  value,
@@ -1553,9 +1612,9 @@ var Input = React11.forwardRef(
1553
1612
  color = "primary",
1554
1613
  ...props
1555
1614
  }, ref) => {
1556
- const [focused, setFocused] = React11.useState(false);
1557
- const [internalValue, setInternalValue] = React11.useState(defaultValue);
1558
- const [internalError, setInternalError] = React11.useState(null);
1615
+ const [focused, setFocused] = React12.useState(false);
1616
+ const [internalValue, setInternalValue] = React12.useState(defaultValue);
1617
+ const [internalError, setInternalError] = React12.useState(null);
1559
1618
  const isControlled = value !== void 0;
1560
1619
  const currentValue = isControlled ? value : internalValue;
1561
1620
  const isActive = focused || !!currentValue;
@@ -1585,8 +1644,8 @@ var Input = React11.forwardRef(
1585
1644
  onChange?.(e, newValue);
1586
1645
  };
1587
1646
  const classes = inputVariants({ color, label: propsComponent?.label?.display });
1588
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Control, { variant, color, label: propsComponent?.label?.display, children: [
1589
- propsComponent?.label?.display && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1647
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Control, { variant, color, label: propsComponent?.label?.display, children: [
1648
+ propsComponent?.label?.display && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1590
1649
  Label,
1591
1650
  {
1592
1651
  text: label || "",
@@ -1595,7 +1654,7 @@ var Input = React11.forwardRef(
1595
1654
  ...propsComponent.label
1596
1655
  }
1597
1656
  ),
1598
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1657
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1599
1658
  "input",
1600
1659
  {
1601
1660
  ref,
@@ -1611,36 +1670,36 @@ var Input = React11.forwardRef(
1611
1670
  "data-testid": "yr3Input"
1612
1671
  }
1613
1672
  ),
1614
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { variant: "helper", "data-testid": "yr3Input-helper", children: error || internalError || "" })
1673
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { variant: "helper", "data-testid": "yr3Input-helper", children: error || internalError || "" })
1615
1674
  ] });
1616
1675
  }
1617
1676
  );
1618
1677
 
1619
1678
  // src/components/Input/InputPhone.tsx
1620
- var React14 = __toESM(require("react"), 1);
1679
+ var React15 = __toESM(require("react"), 1);
1621
1680
 
1622
1681
  // src/components/Select/Selector.tsx
1623
- var React12 = __toESM(require("react"), 1);
1682
+ var React13 = __toESM(require("react"), 1);
1624
1683
 
1625
1684
  // src/Icons/IconDown.tsx
1626
- var import_jsx_runtime24 = require("react/jsx-runtime");
1685
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1627
1686
  var IconDown = (props) => {
1628
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("svg", { width: props.width || "64px", height: props.height || "64px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "yr3Icons", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M7 10L12 15L17 10", stroke: props.stroke || "#fff", strokeWidth: props.strokeWidth || "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1687
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("svg", { width: props.width || "64px", height: props.height || "64px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "yr3Icons", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M7 10L12 15L17 10", stroke: props.stroke || "#fff", strokeWidth: props.strokeWidth || "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1629
1688
  };
1630
1689
 
1631
1690
  // src/components/Select/Selector.tsx
1632
- var import_jsx_runtime25 = require("react/jsx-runtime");
1691
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1633
1692
  var Selector = ({ ui, style, options, name, value, defaultValue, onChange, iconColor, icon }) => {
1634
- const [open, setOpen] = React12.useState(false);
1635
- const [valueState, setValueState] = React12.useState(value || defaultValue || null);
1636
- const ref = React12.useRef(null);
1693
+ const [open, setOpen] = React13.useState(false);
1694
+ const [valueState, setValueState] = React13.useState(value || defaultValue || null);
1695
+ const ref = React13.useRef(null);
1637
1696
  useClickAway(ref, () => setOpen(false));
1638
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "yr3Selector-wrapper", ref, children: [
1639
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: `yr3Selector ${open ? "yr3Selector--open" : ""}`, style: composeStyles(ui, style), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "yr3Selector--control", children: [
1640
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "yr3Selector--icon", onClick: () => setOpen((prev) => !prev), children: icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(IconDown, { stroke: `var(--color-${iconColor || "disabled"})`, width: 24, height: 24 }) }),
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "yr3Selector-wrapper", ref, children: [
1698
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `yr3Selector ${open ? "yr3Selector--open" : ""}`, style: composeStyles(ui, style), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "yr3Selector--control", children: [
1699
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "yr3Selector--icon", onClick: () => setOpen((prev) => !prev), children: icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(IconDown, { stroke: `var(--color-${iconColor || "disabled"})`, width: 24, height: 24 }) }),
1641
1700
  valueState
1642
1701
  ] }) }),
1643
- open && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "yr3Select--menu", children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1702
+ open && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "yr3Select--menu", children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1644
1703
  "div",
1645
1704
  {
1646
1705
  className: "yr3Select--option",
@@ -1670,19 +1729,19 @@ var Selector = ({ ui, style, options, name, value, defaultValue, onChange, iconC
1670
1729
  var Selector_default = Selector;
1671
1730
 
1672
1731
  // src/theme/ThemeProvider.tsx
1673
- var React13 = __toESM(require("react"), 1);
1674
- var import_jsx_runtime26 = require("react/jsx-runtime");
1675
- var ThemeContext = React13.createContext(null);
1732
+ var React14 = __toESM(require("react"), 1);
1733
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1734
+ var ThemeContext = React14.createContext(null);
1676
1735
  var ThemeProvider = ({ theme, children }) => {
1677
- React13.useEffect(() => {
1736
+ React14.useEffect(() => {
1678
1737
  applyTheme(theme);
1679
1738
  }, [theme]);
1680
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(BackdropProvider, { children }) });
1739
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(BackdropProvider, { children }) });
1681
1740
  };
1682
- var useTheme = () => React13.useContext(ThemeContext);
1741
+ var useTheme = () => React14.useContext(ThemeContext);
1683
1742
 
1684
1743
  // src/components/Input/InputPhone.tsx
1685
- var import_jsx_runtime27 = require("react/jsx-runtime");
1744
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1686
1745
  var Phone = ({
1687
1746
  name,
1688
1747
  value,
@@ -1692,8 +1751,8 @@ var Phone = ({
1692
1751
  countries = [],
1693
1752
  propsComponent
1694
1753
  }) => {
1695
- const [prefixValue, setPrefixValue] = React14.useState(prefix);
1696
- const [number, setNumber] = React14.useState(Number(value) || null);
1754
+ const [prefixValue, setPrefixValue] = React15.useState(prefix);
1755
+ const [number, setNumber] = React15.useState(Number(value) || null);
1697
1756
  const theme = useTheme();
1698
1757
  const handleChange = (newPrefix, newNumber) => {
1699
1758
  const full = `${newPrefix}${newNumber.toString()}`;
@@ -1705,10 +1764,10 @@ var Phone = ({
1705
1764
  };
1706
1765
  onChange?.(event, full);
1707
1766
  };
1708
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Control, { variant: "outlined", children: [
1709
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Label, { text: label, className: "yr3Input--active" }),
1710
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "yr3PhoneInput", "data-testid": "yr3Phone", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Flex, { variant: "row", container: true, center: true, children: [
1711
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1767
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Control, { variant: "outlined", children: [
1768
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label, { text: label, className: "yr3Input--active" }),
1769
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "yr3PhoneInput", "data-testid": "yr3Phone", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Flex, { variant: "row", container: true, center: true, children: [
1770
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1712
1771
  Selector_default,
1713
1772
  {
1714
1773
  options: countries.map((c) => ({
@@ -1728,8 +1787,8 @@ var Phone = ({
1728
1787
  style: propsComponent?.selector?.style
1729
1788
  }
1730
1789
  ),
1731
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Divider, { orientation: "vertical", ...propsComponent?.divider }),
1732
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1790
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Divider, { orientation: "vertical", ...propsComponent?.divider }),
1791
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1733
1792
  Input,
1734
1793
  {
1735
1794
  type: "phone",
@@ -1746,22 +1805,127 @@ var Phone = ({
1746
1805
  ] });
1747
1806
  };
1748
1807
 
1808
+ // src/components/InputArea/InputArea.tsx
1809
+ var React16 = __toESM(require("react"), 1);
1810
+
1811
+ // src/components/InputArea/inputAreaVariants.ts
1812
+ var inputAreaVariants = createVariants({
1813
+ base: "yr3InputArea",
1814
+ variants: {
1815
+ variant: {
1816
+ filled: "yr3InputArea--filled",
1817
+ outlined: "yr3InputArea--outlined",
1818
+ base: "yr3InputArea--base",
1819
+ lined: "yr3InputArea--lined"
1820
+ },
1821
+ color: {
1822
+ primary: "yr3InputArea--color-primary",
1823
+ secondary: "yr3InputArea--color-secondary",
1824
+ success: "yr3InputArea--color-success",
1825
+ text: "yr3InputArea--color-text",
1826
+ disabled: "yr3InputArea--color-disabled"
1827
+ },
1828
+ size: {
1829
+ auto: "yr3InputArea--size-auto",
1830
+ full: "yr3InputArea--size-full"
1831
+ },
1832
+ rounded: {
1833
+ true: "yr3InputArea--rounded"
1834
+ },
1835
+ disabled: {
1836
+ true: "yr3InputArea--disabled"
1837
+ },
1838
+ animated: {
1839
+ true: "yr3InputArea--animated"
1840
+ }
1841
+ }
1842
+ });
1843
+
1844
+ // src/components/InputArea/InputArea.tsx
1845
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1846
+ var initiaPropsComponent2 = {
1847
+ label: {
1848
+ display: true,
1849
+ ui: {},
1850
+ style: {}
1851
+ },
1852
+ helperText: ""
1853
+ };
1854
+ var InputArea = ({
1855
+ value,
1856
+ defaultValue = "",
1857
+ onChange,
1858
+ rows = 1,
1859
+ ui,
1860
+ style,
1861
+ label,
1862
+ validate,
1863
+ color = "primary",
1864
+ maxLength = 0,
1865
+ resize = "vertical",
1866
+ variant = "outlined",
1867
+ rounded = false,
1868
+ propsComponent = initiaPropsComponent2
1869
+ }) => {
1870
+ const ref = React16.useRef(null);
1871
+ const [internalValue, setInternalValue] = React16.useState(defaultValue);
1872
+ const isControlled = value !== void 0;
1873
+ const currentValue = isControlled ? value : internalValue;
1874
+ const handleChange = (e) => {
1875
+ const newValue = e.target.value;
1876
+ if (!isControlled) {
1877
+ setInternalValue(newValue);
1878
+ }
1879
+ onChange?.(e, newValue);
1880
+ };
1881
+ const el = ref.current;
1882
+ if (el) {
1883
+ el.style.height = "auto";
1884
+ el.style.height = el.scrollHeight + "px";
1885
+ el.style.resize = resize;
1886
+ }
1887
+ const classes = inputAreaVariants({ variant, color, rounded });
1888
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { style: { position: "relative" }, children: [
1889
+ propsComponent?.label?.display && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1890
+ Label,
1891
+ {
1892
+ text: label || "",
1893
+ className: "yr3Input--active",
1894
+ ...propsComponent.label
1895
+ }
1896
+ ),
1897
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1898
+ "textarea",
1899
+ {
1900
+ className: classes,
1901
+ ref,
1902
+ value: currentValue,
1903
+ rows,
1904
+ onChange: handleChange,
1905
+ style: composeStyles(ui, style),
1906
+ "data-testid": "yr3InputArea"
1907
+ }
1908
+ ),
1909
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Text, { variant: "helper", color: currentValue.length > maxLength ? "error" : "disabled", ui: { textAlign: "right" }, "data-testid": "yr3InputAreaError", children: validate && maxLength ? `${currentValue.length}/${maxLength}` || propsComponent.helperText : "" })
1910
+ ] });
1911
+ };
1912
+
1749
1913
  // src/components/Modal/Modal.tsx
1750
- var React15 = __toESM(require("react"), 1);
1914
+ var React17 = __toESM(require("react"), 1);
1751
1915
 
1752
1916
  // src/components/Modal/ModalContainer.tsx
1753
- var import_jsx_runtime28 = require("react/jsx-runtime");
1917
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1754
1918
  var ModalContainer = ({ children, size = "sm", ui, style }) => {
1755
1919
  const classes = bem("yr3Modal-container");
1756
1920
  const classComponent = classes(void 0, { [`${size}`]: !!size });
1757
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: classComponent, style: composeStyles(ui, style), "data-testid": "yr3Modal-container", children });
1921
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: classComponent, style: composeStyles(ui, style), "data-testid": "yr3Modal-container", children });
1758
1922
  };
1759
1923
 
1760
1924
  // src/components/Modal/Modal.tsx
1761
- var import_jsx_runtime29 = require("react/jsx-runtime");
1925
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1762
1926
  var Modal = ({ open, onClose, children, propsComponent }) => {
1763
1927
  const { show, hide } = useBackdrop();
1764
- React15.useEffect(() => {
1928
+ React17.useEffect(() => {
1765
1929
  if (open) {
1766
1930
  show();
1767
1931
  } else {
@@ -1770,9 +1934,9 @@ var Modal = ({ open, onClose, children, propsComponent }) => {
1770
1934
  }, [open, show]);
1771
1935
  const classes = bem("yr3Modal");
1772
1936
  const classComponent = classes(void 0, { "open": !!open });
1773
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: classComponent, onClick: (e) => e.stopPropagation(), "data-testid": "yr3Modal", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ModalContainer, { ...propsComponent?.container, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Flex, { variant: "column", container: true, center: true, gap: 1, children: [
1937
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: classComponent, onClick: (e) => e.stopPropagation(), "data-testid": "yr3Modal", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ModalContainer, { ...propsComponent?.container, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Flex, { variant: "column", container: true, center: true, gap: 1, children: [
1774
1938
  children,
1775
- propsComponent?.close ? propsComponent.close : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "filled", color: "secondary", onClick: onClose, "data-testid": "yr3Modal-close", children: "Close" })
1939
+ propsComponent?.close ? propsComponent.close : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Button, { variant: "filled", color: "secondary", onClick: onClose, "data-testid": "yr3Modal-close", children: "Close" })
1776
1940
  ] }) }) });
1777
1941
  };
1778
1942
 
@@ -1812,15 +1976,15 @@ var notistackVariants = createVariants({
1812
1976
  });
1813
1977
 
1814
1978
  // src/components/Notistack/Notistack.tsx
1815
- var import_jsx_runtime30 = require("react/jsx-runtime");
1979
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1816
1980
  var Notistack = ({ message, duration = 3e3, variant = "info", color, propsComponent, anchor, exiting = false }) => {
1817
1981
  const classes = notistackVariants({ type: variant, color, exiting, direction: `${anchor?.vertical || "bottom"}-${anchor?.horizontal || "right"}` });
1818
1982
  const containerStyle = composeStyles(propsComponent?.container?.ui, propsComponent?.container?.style);
1819
1983
  const notistackStyle = composeStyles(propsComponent?.notistack?.ui, propsComponent?.notistack?.style);
1820
1984
  const progressStyle = composeStyles(propsComponent?.progress?.ui, propsComponent?.progress?.style);
1821
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: classes, "data-testid": "yr3Notistack", style: notistackStyle, children: [
1822
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { style: containerStyle, children: message }),
1823
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1985
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: classes, "data-testid": "yr3Notistack", style: notistackStyle, children: [
1986
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { style: containerStyle, children: message }),
1987
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1824
1988
  "div",
1825
1989
  {
1826
1990
  className: "yr3Notistack--progress",
@@ -1854,7 +2018,7 @@ var pendingVariants = createVariants({
1854
2018
  });
1855
2019
 
1856
2020
  // src/components/Pending/Pending.tsx
1857
- var import_jsx_runtime31 = require("react/jsx-runtime");
2021
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1858
2022
  var Pending = ({
1859
2023
  variant,
1860
2024
  width,
@@ -1867,7 +2031,7 @@ var Pending = ({
1867
2031
  const widthStyle = variant === "circle" ? size : width;
1868
2032
  const heightStyle = variant === "circle" ? size : height;
1869
2033
  const uiStylePending = uiStyle({ width: widthStyle, height: heightStyle, ...ui });
1870
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2034
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1871
2035
  "div",
1872
2036
  {
1873
2037
  className: pendingVariants({ variant, color }),
@@ -1877,6 +2041,110 @@ var Pending = ({
1877
2041
  );
1878
2042
  };
1879
2043
 
2044
+ // src/components/Places/PlacesAutocomplete.tsx
2045
+ var React18 = __toESM(require("react"), 1);
2046
+ var import_autocomplete_places = require("@yr3/autocomplete-places");
2047
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2048
+ var initPropsComponent = {
2049
+ label: {
2050
+ display: true,
2051
+ ui: {},
2052
+ style: {}
2053
+ },
2054
+ control: {
2055
+ variant: "outlined",
2056
+ color: "primary",
2057
+ label: true,
2058
+ ui: {},
2059
+ style: {}
2060
+ },
2061
+ input: {
2062
+ variant: "outlined",
2063
+ color: "primary",
2064
+ ui: { width: "90dvw" },
2065
+ style: {}
2066
+ },
2067
+ menu: {
2068
+ ui: {},
2069
+ style: {},
2070
+ text: {
2071
+ variant: "body2",
2072
+ color: "primary",
2073
+ ui: {},
2074
+ style: {}
2075
+ }
2076
+ }
2077
+ };
2078
+ var PlacesAutocomplete = ({
2079
+ onSelect,
2080
+ onChangeForm,
2081
+ language = "en",
2082
+ provider = "google",
2083
+ defaultLocation,
2084
+ keyApi,
2085
+ propsComponent = initPropsComponent
2086
+ }) => {
2087
+ const [value, setValue] = React18.useState(null);
2088
+ const inputRef = React18.useRef(null);
2089
+ const [anchorEl, setAnchorEl] = React18.useState(null);
2090
+ const { suggestions, selectPlace } = (0, import_autocomplete_places.useAutocompletePlaces)({ input: value, apiKey: keyApi, language, provider });
2091
+ const handleSelect = async (id) => {
2092
+ const place = await selectPlace(id);
2093
+ const locationData = {
2094
+ name: place.name || "",
2095
+ address: place.address,
2096
+ city: place.city || "",
2097
+ country: place.country || "",
2098
+ zip: place.zip || "",
2099
+ lat: place.lat,
2100
+ lng: place.lng,
2101
+ code: place.code || "",
2102
+ phone: place.phone || "",
2103
+ placeId: id
2104
+ };
2105
+ onSelect(locationData);
2106
+ setValue(place.address);
2107
+ setAnchorEl(null);
2108
+ };
2109
+ React18.useEffect(() => {
2110
+ if (defaultLocation) {
2111
+ setValue(defaultLocation);
2112
+ }
2113
+ }, [defaultLocation]);
2114
+ React18.useEffect(() => {
2115
+ if (value === "") {
2116
+ onSelect(null);
2117
+ }
2118
+ }, [value]);
2119
+ const handleChange = (e) => {
2120
+ setValue(e.target.value);
2121
+ setAnchorEl(e.target.value ? inputRef.current : null);
2122
+ };
2123
+ const open = suggestions.length > 0 && Boolean(anchorEl);
2124
+ React18.useEffect(() => {
2125
+ if (onChangeForm) {
2126
+ onChangeForm({ target: { value } });
2127
+ }
2128
+ }, [onChangeForm]);
2129
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Control, { ...propsComponent?.control, children: [
2130
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2131
+ Input,
2132
+ {
2133
+ ref: inputRef,
2134
+ type: "text",
2135
+ value,
2136
+ onChange: handleChange,
2137
+ propsComponent: {
2138
+ label: propsComponent.label
2139
+ },
2140
+ ...propsComponent?.input
2141
+ },
2142
+ "input-places"
2143
+ ),
2144
+ open && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "yr3Places--menu", style: composeStyles(propsComponent.menu?.ui, propsComponent?.menu?.style), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Flex, { container: true, ui: { p: 1 }, children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Flex, { onClick: () => handleSelect(s.id), ui: { padding: 8, cursor: "pointer", "&:hover": { backgroundColor: "rgba(0,0,0,0.1)" } }, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Text, { ...propsComponent?.menu?.text, children: s.description }) }, s.id)) }) })
2145
+ ] });
2146
+ };
2147
+
1880
2148
  // src/components/Radio/radio.variants.ts
1881
2149
  var radioVariant = createVariants({
1882
2150
  base: "yr3Radio",
@@ -1896,7 +2164,7 @@ var radioVariant = createVariants({
1896
2164
  });
1897
2165
 
1898
2166
  // src/components/Radio/Radio.tsx
1899
- var import_jsx_runtime32 = require("react/jsx-runtime");
2167
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1900
2168
  var Radio = ({
1901
2169
  checked,
1902
2170
  value,
@@ -1912,8 +2180,8 @@ var Radio = ({
1912
2180
  const bemClass = bem("yr3Radio");
1913
2181
  const classes = bemClass(void 0, { [color]: `color-${color}` });
1914
2182
  const variantClass = radioVariant({ variant });
1915
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("label", { className: classes, "data-testid": "yr3Radio", style: composeStyles(propsComponent?.radio?.ui, propsComponent?.radio?.style), children: [
1916
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2183
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: classes, "data-testid": "yr3Radio", style: composeStyles(propsComponent?.radio?.ui, propsComponent?.radio?.style), children: [
2184
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1917
2185
  "input",
1918
2186
  {
1919
2187
  type: "radio",
@@ -1925,8 +2193,8 @@ var Radio = ({
1925
2193
  }
1926
2194
  ),
1927
2195
  iconChecked && checked ? iconChecked : !checked && iconUnchecked ? iconUnchecked : null,
1928
- !iconChecked && !iconUnchecked && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: variantClass, "data-testid": "yr3Radio-dot" }),
1929
- typeof label === "string" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2196
+ !iconChecked && !iconUnchecked && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: variantClass, "data-testid": "yr3Radio-dot" }),
2197
+ typeof label === "string" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1930
2198
  "span",
1931
2199
  {
1932
2200
  className: "yr3Radio--label",
@@ -1939,15 +2207,15 @@ var Radio = ({
1939
2207
  };
1940
2208
 
1941
2209
  // src/components/Select/Select.tsx
1942
- var React16 = __toESM(require("react"), 1);
1943
- var import_jsx_runtime33 = require("react/jsx-runtime");
2210
+ var React19 = __toESM(require("react"), 1);
2211
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1944
2212
  var Select = ({ label, options, name, value, defaultValue, onChange, propsComponent }) => {
1945
- const [open, setOpen] = React16.useState(false);
1946
- const [valueState, setValueState] = React16.useState(value || defaultValue || null);
1947
- const ref = React16.useRef(null);
2213
+ const [open, setOpen] = React19.useState(false);
2214
+ const [valueState, setValueState] = React19.useState(value || defaultValue || null);
2215
+ const ref = React19.useRef(null);
1948
2216
  useClickAway(ref, () => setOpen(false));
1949
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Control, { ...propsComponent?.control, children: [
1950
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2217
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Control, { ...propsComponent?.control, children: [
2218
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1951
2219
  Label,
1952
2220
  {
1953
2221
  ...propsComponent?.label,
@@ -1955,10 +2223,10 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
1955
2223
  className: open || valueState ? "yr3Input--active" : ""
1956
2224
  }
1957
2225
  ),
1958
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "yr3Select-wrapper", ref, children: [
1959
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: `yr3Select ${open ? "yr3Select--open" : ""}`, "data-testid": "yr3Select-wrapper", style: composeStyles(propsComponent?.wrapper?.ui, propsComponent?.wrapper?.style), children: [
1960
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "yr3Select--control", children: valueState }),
1961
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "yr3Select--icon", onClick: () => setOpen((prev) => !prev), "data-testid": "yr3Select-icon", children: propsComponent?.icon?.component ? propsComponent.icon.component : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2226
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "yr3Select-wrapper", ref, children: [
2227
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: `yr3Select ${open ? "yr3Select--open" : ""}`, "data-testid": "yr3Select-wrapper", style: composeStyles(propsComponent?.wrapper?.ui, propsComponent?.wrapper?.style), children: [
2228
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "yr3Select--control", children: valueState }),
2229
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "yr3Select--icon", onClick: () => setOpen((prev) => !prev), "data-testid": "yr3Select-icon", children: propsComponent?.icon?.component ? propsComponent.icon.component : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1962
2230
  IconDown,
1963
2231
  {
1964
2232
  width: propsComponent?.icon?.style?.width || 26,
@@ -1968,13 +2236,13 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
1968
2236
  }
1969
2237
  ) })
1970
2238
  ] }),
1971
- open && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2239
+ open && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1972
2240
  "div",
1973
2241
  {
1974
2242
  className: "yr3Select--menu",
1975
2243
  style: composeStyles(propsComponent?.menu?.ui, propsComponent?.menu?.style),
1976
2244
  "data-testid": "yr3Select-menu",
1977
- children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2245
+ children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1978
2246
  "div",
1979
2247
  {
1980
2248
  className: "yr3Select--option",
@@ -2006,8 +2274,8 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
2006
2274
  };
2007
2275
 
2008
2276
  // src/components/Slide/Slide.tsx
2009
- var React17 = __toESM(require("react"), 1);
2010
- var import_jsx_runtime34 = require("react/jsx-runtime");
2277
+ var React20 = __toESM(require("react"), 1);
2278
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2011
2279
  var Slide = ({
2012
2280
  in: inProp,
2013
2281
  children,
@@ -2021,7 +2289,7 @@ var Slide = ({
2021
2289
  [direction]: true,
2022
2290
  "in": !!inProp
2023
2291
  });
2024
- React17.useEffect(() => {
2292
+ React20.useEffect(() => {
2025
2293
  let timeoutId;
2026
2294
  if (inProp) {
2027
2295
  timeoutId = setTimeout(() => {
@@ -2031,19 +2299,19 @@ var Slide = ({
2031
2299
  return () => clearTimeout(timeoutId);
2032
2300
  }, [inProp, duration, onTransitionEnd]);
2033
2301
  const uiStyleContent = uiStyle({ ...propsComponent?.slide?.ui, transitionDuration: `${duration}ms` });
2034
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2302
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2035
2303
  "div",
2036
2304
  {
2037
2305
  className: "yr3Slide",
2038
2306
  style: uiStyle({ position: "relative", zIndex: 4, overflow: "hidden" }),
2039
2307
  "data-testid": "yr3Slide",
2040
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2308
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2041
2309
  "div",
2042
2310
  {
2043
2311
  className: classNameContent,
2044
2312
  style: composeStyles(uiStyleContent, propsComponent?.slide?.style || {}),
2045
2313
  "data-testid": "yr3Slide-content",
2046
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Box, { ...propsComponent?.box, "data-testid": "yr3Slide-box", children })
2314
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Box, { ...propsComponent?.box, "data-testid": "yr3Slide-box", children })
2047
2315
  }
2048
2316
  )
2049
2317
  }
@@ -2051,7 +2319,7 @@ var Slide = ({
2051
2319
  };
2052
2320
 
2053
2321
  // src/components/Switch/Switch.tsx
2054
- var React18 = __toESM(require("react"), 1);
2322
+ var React21 = __toESM(require("react"), 1);
2055
2323
 
2056
2324
  // src/components/Switch/switch.variants.ts
2057
2325
  var switchVariants = createVariants({
@@ -2080,7 +2348,7 @@ var switchVariants = createVariants({
2080
2348
  });
2081
2349
 
2082
2350
  // src/components/Switch/Switch.tsx
2083
- var import_jsx_runtime35 = require("react/jsx-runtime");
2351
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2084
2352
  var Switch = ({
2085
2353
  checked,
2086
2354
  defaultChecked,
@@ -2090,7 +2358,7 @@ var Switch = ({
2090
2358
  size = "sm",
2091
2359
  label
2092
2360
  }) => {
2093
- const [internal, setInternal] = React18.useState(defaultChecked || false);
2361
+ const [internal, setInternal] = React21.useState(defaultChecked || false);
2094
2362
  const classname = switchVariants({ colors: color, size, disabled: !!disabled, checked: checked ?? internal });
2095
2363
  const isControlled = checked !== void 0;
2096
2364
  const value = isControlled ? checked : internal;
@@ -2098,13 +2366,13 @@ var Switch = ({
2098
2366
  if (!isControlled) setInternal(e.target.checked);
2099
2367
  onChange?.(e, e.target.checked);
2100
2368
  };
2101
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2369
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2102
2370
  "label",
2103
2371
  {
2104
2372
  className: classname,
2105
2373
  "data-testid": "yr3Switch",
2106
2374
  children: [
2107
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2375
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2108
2376
  "input",
2109
2377
  {
2110
2378
  type: "checkbox",
@@ -2113,17 +2381,17 @@ var Switch = ({
2113
2381
  disabled
2114
2382
  }
2115
2383
  ),
2116
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "yr3Switch--track", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "yr3Switch--thumb" }) }),
2117
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "yr3Switch--label", "data-testid": "yr3Switch-label", children: label })
2384
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "yr3Switch--track", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "yr3Switch--thumb" }) }),
2385
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "yr3Switch--label", "data-testid": "yr3Switch-label", children: label })
2118
2386
  ]
2119
2387
  }
2120
2388
  );
2121
2389
  };
2122
2390
 
2123
2391
  // src/Icons/IconSearch.tsx
2124
- var import_jsx_runtime36 = require("react/jsx-runtime");
2392
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2125
2393
  var IconSearch = (props) => {
2126
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { width: props.width || "64px", height: props.height || "64px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2394
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { width: props.width || "64px", height: props.height || "64px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2127
2395
  "path",
2128
2396
  {
2129
2397
  d: "M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z",
@@ -2154,11 +2422,11 @@ var baseTokens = {
2154
2422
  };
2155
2423
 
2156
2424
  // src/theme/notistackContext.tsx
2157
- var React19 = __toESM(require("react"), 1);
2158
- var import_jsx_runtime37 = require("react/jsx-runtime");
2159
- var NotistackContext = React19.createContext(null);
2425
+ var React22 = __toESM(require("react"), 1);
2426
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2427
+ var NotistackContext = React22.createContext(null);
2160
2428
  var NotistackProvider = ({ children }) => {
2161
- const [snacks, setSnacks] = React19.useState([]);
2429
+ const [snacks, setSnacks] = React22.useState([]);
2162
2430
  const enqueueNotistack = (snack) => {
2163
2431
  const id = Date.now();
2164
2432
  setSnacks((prev) => [...prev, { ...snack, id, exiting: false }]);
@@ -2173,23 +2441,23 @@ var NotistackProvider = ({ children }) => {
2173
2441
  setSnacks((prev) => prev.filter((s) => s.id !== id));
2174
2442
  }, duration + exitDuration);
2175
2443
  };
2176
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(NotistackContext.Provider, { value: { enqueueNotistack }, children: [
2444
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(NotistackContext.Provider, { value: { enqueueNotistack }, children: [
2177
2445
  children,
2178
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "yr3NotistackContainer", children: snacks.map((snack) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Notistack, { ...snack }, snack.id)) })
2446
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "yr3NotistackContainer", children: snacks.map((snack) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Notistack, { ...snack }, snack.id)) })
2179
2447
  ] });
2180
2448
  };
2181
- var useNotistack = () => React19.useContext(NotistackContext);
2449
+ var useNotistack = () => React22.useContext(NotistackContext);
2182
2450
 
2183
2451
  // src/theme/useMediaQuery.tsx
2184
- var React20 = __toESM(require("react"), 1);
2452
+ var React23 = __toESM(require("react"), 1);
2185
2453
  function useMediaQuery(query) {
2186
2454
  const theme = useTheme();
2187
2455
  const computedQuery = typeof query === "function" ? query(theme) : query;
2188
- const [matches, setMatches] = React20.useState(() => {
2456
+ const [matches, setMatches] = React23.useState(() => {
2189
2457
  if (typeof window === "undefined") return false;
2190
2458
  return window.matchMedia(computedQuery).matches;
2191
2459
  });
2192
- React20.useEffect(() => {
2460
+ React23.useEffect(() => {
2193
2461
  if (typeof window === "undefined") return;
2194
2462
  const media = window.matchMedia(computedQuery);
2195
2463
  const listener = () => setMatches(media.matches);
@@ -2239,7 +2507,9 @@ initTheme();
2239
2507
  IconDown,
2240
2508
  IconSearch,
2241
2509
  Image,
2510
+ ImageDropzone,
2242
2511
  Input,
2512
+ InputArea,
2243
2513
  Label,
2244
2514
  Modal,
2245
2515
  ModalContainer,
@@ -2247,6 +2517,7 @@ initTheme();
2247
2517
  NotistackProvider,
2248
2518
  Pending,
2249
2519
  Phone,
2520
+ PlacesAutocomplete,
2250
2521
  Radio,
2251
2522
  Select,
2252
2523
  Slide,