@yr3/ui 1.0.18 → 1.0.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/index.cjs CHANGED
@@ -68,6 +68,7 @@ __export(index_exports, {
68
68
  NotistackProvider: () => NotistackProvider,
69
69
  Pending: () => Pending,
70
70
  Phone: () => Phone,
71
+ Picker: () => Picker,
71
72
  PlacesAutocomplete: () => PlacesAutocomplete,
72
73
  Radio: () => Radio,
73
74
  Select: () => Select,
@@ -152,6 +153,8 @@ var bemMerge = (...args) => {
152
153
 
153
154
  // src/utils/calendar.ts
154
155
  var import_dayjs = __toESM(require("dayjs"), 1);
156
+ var import_updateLocale = __toESM(require("dayjs/plugin/updateLocale"), 1);
157
+ import_dayjs.default.extend(import_updateLocale.default);
155
158
  function getMonthCalendar(year, month, startIndex, selected, props) {
156
159
  const today = (0, import_dayjs.default)().startOf("day");
157
160
  const startOfMonth = (0, import_dayjs.default)().year(year).month(month).startOf("month");
@@ -225,17 +228,23 @@ function getMonthCalendar(year, month, startIndex, selected, props) {
225
228
  currentDay: dayCurrent
226
229
  };
227
230
  }
228
- function getMonthCalendarProps({ year, years, month, formatMonth, monthsDisabled }) {
231
+ function getMonthCalendarProps({ year, data, value, daysFormat }) {
229
232
  const startIndex = (0, import_dayjs.default)().year(year).month().valueOf();
233
+ import_dayjs.default.updateLocale("en", {
234
+ months: daysFormat?.months || ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]
235
+ });
230
236
  return {
231
- month: (0, import_dayjs.default)().set("m", month).format(formatMonth || "MMM"),
232
237
  year,
233
238
  startIndex,
234
- years,
239
+ years: data.years,
240
+ value,
241
+ last: !value ? "" : (0, import_dayjs.default)().year(Number(value?.split("-")[1])).month(Number(value?.split("-")[0]) - 2).format("MM-YYYY"),
242
+ prev: !value ? "" : (0, import_dayjs.default)().year(Number(value?.split("-")[1])).month(Number(value?.split("-")[0])).format("MM-YYYY"),
235
243
  months: Array.from({ length: 12 }, (_, i) => ({
236
- label: (0, import_dayjs.default)().month(i).format(formatMonth || "MMM"),
237
- value: (0, import_dayjs.default)().month(i).format("MM"),
238
- disabled: (0, import_dayjs.default)().year(year).month(i).isAfter((0, import_dayjs.default)(), "month") || monthsDisabled && monthsDisabled.includes(i)
244
+ label: (0, import_dayjs.default)().month(i).format(daysFormat?.month || "MMM"),
245
+ value: (0, import_dayjs.default)().month(i).format(daysFormat?.value || "MM"),
246
+ disabled: (0, import_dayjs.default)().year(year).month(i).isAfter((0, import_dayjs.default)(), "month") || data.exclude.find((e) => e.year === year)?.months.includes(i),
247
+ selected: !data.selected ? false : (0, import_dayjs.default)().year(year).month(Number(value?.split("-")[0]) - 1).format("MM") === (0, import_dayjs.default)().month(i).format(daysFormat?.value || "MM")
239
248
  }))
240
249
  };
241
250
  }
@@ -1727,6 +1736,23 @@ var monthSelectorIconVariants = createVariants({
1727
1736
  }
1728
1737
  }
1729
1738
  });
1739
+ var monthSelectorContainerVariants = createVariants({
1740
+ base: "yr3MonthSelector--year-options",
1741
+ variants: {
1742
+ color: {
1743
+ primary: "yr3MonthSelector--icon-color-primary",
1744
+ secondary: "yr3MonthSelector--icon-color-secondary",
1745
+ success: "yr3MonthSelector--icon-color-success",
1746
+ text: "yr3MonthSelector--icon-color-text",
1747
+ disabled: "yr3MonthSelector--icon-color-disabled",
1748
+ background: "yr3MonthSelector--icon-color-background",
1749
+ error: "yr3MonthSelector--icon-color-error",
1750
+ warning: "yr3MonthSelector--icon-color-warning",
1751
+ info: "yr3MonthSelector--icon-color-info",
1752
+ common: "yr3MonthSelector--icon-color-common"
1753
+ }
1754
+ }
1755
+ });
1730
1756
 
1731
1757
  // src/Icons/IconRight.tsx
1732
1758
  var import_jsx_runtime23 = require("react/jsx-runtime");
@@ -1770,17 +1796,37 @@ var initialPropsComponent3 = {
1770
1796
  height: 20
1771
1797
  },
1772
1798
  component: void 0
1799
+ },
1800
+ text: {
1801
+ variant: "caption",
1802
+ color: "primary",
1803
+ ui: {},
1804
+ style: {},
1805
+ button: {}
1806
+ },
1807
+ container: {
1808
+ color: "primary",
1809
+ ui: {},
1810
+ style: {}
1773
1811
  }
1774
1812
  };
1775
- var MonthSelector = ({ label, year, month, value, defaultValue, propsComponent, years, language, formatMonth = "MMM", monthsDisabled }) => {
1813
+ var MonthSelector = ({ label, value, defaultValue, propsComponent, data, daysFormat, onNext, onLast }) => {
1776
1814
  const [open, setOpen] = React10.useState(false);
1777
1815
  const [valueState, setValueState] = React10.useState(value || defaultValue || null);
1778
- const [yearSelected, setYearSelected] = React10.useState(0);
1816
+ const [yearSelected, setYearSelected] = React10.useState(data?.years.findIndex((y) => data.year) || 0);
1779
1817
  const ref = React10.useRef(null);
1780
1818
  useClickAway(ref, () => setOpen(false));
1781
1819
  const properties = mergeDeep(initialPropsComponent3, propsComponent || {});
1782
1820
  const iconClasses = monthSelectorIconVariants({ color: properties?.icon?.color });
1783
- const data = React10.useMemo(() => getMonthCalendarProps({ year, month, years, language, formatMonth, monthsDisabled }), [year, month, years, language, formatMonth, monthsDisabled]);
1821
+ const containerClasses = monthSelectorContainerVariants({ color: properties?.container?.color });
1822
+ const getData = React10.useMemo(() => getMonthCalendarProps({ year: data.years[yearSelected], data, daysFormat, value: valueState }), [yearSelected, data, daysFormat, valueState]);
1823
+ React10.useEffect(() => {
1824
+ if (onNext) onNext(getData.prev);
1825
+ if (onLast) onLast(getData.last);
1826
+ }, [getData]);
1827
+ React10.useEffect(() => {
1828
+ setValueState(value || defaultValue || null);
1829
+ }, [value, defaultValue]);
1784
1830
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "yr3MonthSelector", ref, children: [
1785
1831
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1786
1832
  Input,
@@ -1820,34 +1866,42 @@ var MonthSelector = ({ label, year, month, value, defaultValue, propsComponent,
1820
1866
  style: composeStyles(properties?.wrapper?.ui, properties?.wrapper?.style),
1821
1867
  "data-testid": "yr3MonthSelector--wrapper",
1822
1868
  children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "yr3MonthSelector--component", children: [
1823
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "yr3MonthSelector--year-options", children: [
1824
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { disabled: yearSelected === 0, type: "button", className: `yr3MonthSelector--year-button-back ${yearSelected === 0 ? "yr3MonthSelector--year-button-back--disabled" : ""} `, onClick: () => setYearSelected(yearSelected - 1), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconLeft, { width: 20, height: 20, stroke: "currentColor" }) }),
1825
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `yr3MonthSelector--year-option`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { variant: "body1", color: "primary", children: [
1826
- years[yearSelected],
1827
- " "
1828
- ] }) }),
1829
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1830
- "button",
1831
- {
1832
- disabled: yearSelected === years.length - 1,
1833
- type: "button",
1834
- className: `yr3MonthSelector--year-button-next ${yearSelected === years.length - 1 ? "yr3MonthSelector--year-button-next--disabled" : ""}`,
1835
- onClick: () => setYearSelected(yearSelected + 1),
1836
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconRight, { width: 20, height: 30, stroke: "currentColor" })
1837
- }
1838
- )
1839
- ] }),
1840
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "yr3MonthSelector--months", children: data.months.map((m) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1869
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1870
+ "div",
1871
+ {
1872
+ className: containerClasses,
1873
+ style: composeStyles(properties?.container?.ui, properties?.container?.style),
1874
+ children: [
1875
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { disabled: yearSelected === 0, type: "button", className: `yr3MonthSelector--year-button-back ${yearSelected === 0 ? "yr3MonthSelector--year-button-back--disabled" : ""} `, onClick: () => setYearSelected(yearSelected - 1), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconLeft, { width: 20, height: 20, stroke: "currentColor" }) }),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: `yr3MonthSelector--year-option`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { variant: "body1", color: "primary", children: [
1877
+ data.years[yearSelected],
1878
+ " "
1879
+ ] }) }),
1880
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1881
+ "button",
1882
+ {
1883
+ disabled: yearSelected === data.years.length - 1,
1884
+ type: "button",
1885
+ className: `yr3MonthSelector--year-button-next ${yearSelected === data.years.length - 1 ? "yr3MonthSelector--year-button-next--disabled" : ""}`,
1886
+ onClick: () => setYearSelected(yearSelected + 1),
1887
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconRight, { width: 20, height: 30, stroke: "currentColor" })
1888
+ }
1889
+ )
1890
+ ]
1891
+ }
1892
+ ),
1893
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "yr3MonthSelector--months", children: getData.months.map((m) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1841
1894
  "button",
1842
1895
  {
1843
1896
  type: "button",
1897
+ style: properties?.text?.button,
1844
1898
  disabled: m.disabled,
1845
- className: `yr3MonthSelector--month ${m.disabled ? "yr3MonthSelector--month-disabled" : ""}`,
1899
+ className: `yr3MonthSelector--month ${m.disabled ? "yr3MonthSelector--month--disabled" : ""} ${m.selected ? "yr3MonthSelector--month--selected" : ""}`,
1846
1900
  onClick: () => {
1847
- setValueState(`${m.value}-${years[yearSelected]}`);
1901
+ setValueState(`${m.value}-${data.years[yearSelected]}`);
1848
1902
  setOpen(false);
1849
1903
  },
1850
- children: m.label
1904
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { ...properties?.text, weight: m.disabled ? "thin" : "medium", children: m.label })
1851
1905
  },
1852
1906
  "month-" + m.value
1853
1907
  )) })
@@ -2526,12 +2580,171 @@ var Pending = ({
2526
2580
  );
2527
2581
  };
2528
2582
 
2583
+ // src/components/Picker/Picker.tsx
2584
+ var React17 = __toESM(require("react"), 1);
2585
+
2586
+ // src/components/Picker/picker.variants.ts
2587
+ var PickerVariants = createVariants({
2588
+ base: "yr3Picker",
2589
+ variants: {
2590
+ variant: {
2591
+ filled: "yr3Picker--filled",
2592
+ outlined: "yr3Picker--outlined",
2593
+ base: "yr3Picker--base",
2594
+ lined: "yr3Picker--lined"
2595
+ },
2596
+ color: {
2597
+ primary: "yr3Picker--color-primary",
2598
+ secondary: "yr3Picker--color-secondary",
2599
+ success: "yr3Picker--color-success",
2600
+ text: "yr3Picker--color-text",
2601
+ disabled: "yr3Picker--color-disabled",
2602
+ background: "yr3Picker--color-background",
2603
+ error: "yr3Picker--color-error",
2604
+ warning: "yr3Picker--color-warning",
2605
+ info: "yr3Picker--color-info",
2606
+ common: "yr3Picker--color-common"
2607
+ },
2608
+ animated: {
2609
+ true: "yr3Picker--animated"
2610
+ },
2611
+ icon: {
2612
+ true: "yr3Picker--icon"
2613
+ },
2614
+ wrapper: {
2615
+ true: "yr3Picker--wrapper"
2616
+ }
2617
+ }
2618
+ });
2619
+ var PickerIconVariants = createVariants({
2620
+ base: "yr3Picker--icon",
2621
+ variants: {
2622
+ color: {
2623
+ primary: "yr3Picker--icon-color-primary",
2624
+ secondary: "yr3Picker--icon-color-secondary",
2625
+ success: "yr3Picker--icon-color-success",
2626
+ text: "yr3Picker--icon-color-text",
2627
+ disabled: "yr3Picker--icon-color-disabled",
2628
+ background: "yr3Picker--icon-color-background",
2629
+ error: "yr3Picker--icon-color-error",
2630
+ warning: "yr3Picker--icon-color-warning",
2631
+ info: "yr3Picker--icon-color-info",
2632
+ common: "yr3Picker--icon-color-common"
2633
+ },
2634
+ animated: {
2635
+ true: "yr3Picker--icon-animated"
2636
+ },
2637
+ open: {
2638
+ true: "yr3Picker--icon-open"
2639
+ }
2640
+ }
2641
+ });
2642
+
2643
+ // src/components/Picker/Picker.tsx
2644
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2645
+ var initiaPropsComponent3 = {
2646
+ control: {
2647
+ variant: "outlined",
2648
+ color: "primary",
2649
+ ui: {},
2650
+ style: {}
2651
+ },
2652
+ label: {
2653
+ display: true,
2654
+ color: "primary",
2655
+ ui: {},
2656
+ style: {}
2657
+ },
2658
+ wrapper: {
2659
+ ui: {},
2660
+ style: {}
2661
+ },
2662
+ icon: {
2663
+ style: {
2664
+ width: 24,
2665
+ height: 24
2666
+ },
2667
+ color: "primary",
2668
+ component: void 0
2669
+ }
2670
+ };
2671
+ var Picker = ({ label, variant, color, children, name, value, onChange, propsComponent, closeOnSelect }) => {
2672
+ const [open, setOpen] = React17.useState(false);
2673
+ const [valueState, setValueState] = React17.useState(value || null);
2674
+ const ref = React17.useRef(null);
2675
+ useClickAway(ref, () => setOpen(false));
2676
+ const properties = mergeDeep(initiaPropsComponent3, propsComponent || {});
2677
+ const classesIcon = PickerIconVariants({ color: properties?.icon?.color, animated: open, open });
2678
+ const classes = PickerVariants({ wrapper: true, variant, color });
2679
+ React17.useEffect(() => {
2680
+ if (value !== void 0) {
2681
+ setValueState(value);
2682
+ }
2683
+ }, [value]);
2684
+ React17.useEffect(() => {
2685
+ if (closeOnSelect && valueState) {
2686
+ setOpen(false);
2687
+ }
2688
+ }, [valueState, closeOnSelect]);
2689
+ React17.useEffect(() => {
2690
+ if (valueState !== null && onChange) {
2691
+ onChange({ event: {}, target: { name, value: valueState }, currentTarget: { name, value: valueState } }, valueState);
2692
+ }
2693
+ }, [valueState, onChange, name]);
2694
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: classes, ref, children: [
2695
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2696
+ Input,
2697
+ {
2698
+ label,
2699
+ variant: "base",
2700
+ disabled: true,
2701
+ color,
2702
+ value: valueState || "",
2703
+ propsComponent: {
2704
+ control: {
2705
+ variant,
2706
+ color
2707
+ },
2708
+ label: properties?.label
2709
+ }
2710
+ }
2711
+ ),
2712
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2713
+ "div",
2714
+ {
2715
+ className: classesIcon,
2716
+ style: properties?.icon?.style,
2717
+ onClick: () => setOpen((prev) => !prev),
2718
+ "data-testid": "yr3Picker--icon",
2719
+ children: properties?.icon?.component ? properties?.icon.component : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2720
+ IconDown,
2721
+ {
2722
+ width: properties?.icon?.style?.width,
2723
+ height: properties?.icon?.style?.height,
2724
+ stroke: "currentColor",
2725
+ style: properties?.icon?.style
2726
+ }
2727
+ )
2728
+ }
2729
+ ),
2730
+ open && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2731
+ "div",
2732
+ {
2733
+ className: "yr3Picker--container",
2734
+ style: composeStyles(properties?.wrapper?.ui, properties?.wrapper?.style),
2735
+ "data-testid": "yr3Picker-container",
2736
+ children
2737
+ }
2738
+ )
2739
+ ] });
2740
+ };
2741
+
2529
2742
  // src/components/Phone/Phone.tsx
2530
- var React18 = __toESM(require("react"), 1);
2743
+ var React19 = __toESM(require("react"), 1);
2531
2744
 
2532
2745
  // src/components/Selector/Selector.tsx
2533
- var React17 = __toESM(require("react"), 1);
2534
- var import_jsx_runtime37 = require("react/jsx-runtime");
2746
+ var React18 = __toESM(require("react"), 1);
2747
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2535
2748
  var initalPropsComponent2 = {
2536
2749
  text: {
2537
2750
  variant: "caption",
@@ -2544,16 +2757,16 @@ var initalPropsComponent2 = {
2544
2757
  }
2545
2758
  };
2546
2759
  var Selector = ({ ui, style, options, name, value, defaultValue, onChange, iconColor, icon, propsComponent = initalPropsComponent2 }) => {
2547
- const [open, setOpen] = React17.useState(false);
2548
- const [valueState, setValueState] = React17.useState(value || defaultValue || null);
2549
- const ref = React17.useRef(null);
2760
+ const [open, setOpen] = React18.useState(false);
2761
+ const [valueState, setValueState] = React18.useState(value || defaultValue || null);
2762
+ const ref = React18.useRef(null);
2550
2763
  useClickAway(ref, () => setOpen(false));
2551
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "yr3Selector-wrapper", ref, children: [
2552
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `yr3Selector ${open ? "yr3Selector--open" : ""}`, style: composeStyles(ui, style), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "yr3Selector--control", children: [
2553
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "yr3Selector--icon", onClick: () => setOpen((prev) => !prev), children: icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(IconDown, { stroke: `var(--color-${iconColor || "disabled"})`, width: 24, height: 24 }) }),
2764
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "yr3Selector-wrapper", ref, children: [
2765
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `yr3Selector ${open ? "yr3Selector--open" : ""}`, style: composeStyles(ui, style), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "yr3Selector--control", children: [
2766
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "yr3Selector--icon", onClick: () => setOpen((prev) => !prev), children: icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(IconDown, { stroke: `var(--color-${iconColor || "disabled"})`, width: 24, height: 24 }) }),
2554
2767
  valueState
2555
2768
  ] }) }),
2556
- open && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "yr3Selector--menu", style: composeStyles(propsComponent.menu?.ui, propsComponent.menu?.style), children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2769
+ open && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "yr3Selector--menu", style: composeStyles(propsComponent.menu?.ui, propsComponent.menu?.style), children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2557
2770
  "div",
2558
2771
  {
2559
2772
  className: "yr3Selector--option",
@@ -2574,7 +2787,7 @@ var Selector = ({ ui, style, options, name, value, defaultValue, onChange, iconC
2574
2787
  };
2575
2788
  onChange?.(event, opt.value);
2576
2789
  },
2577
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, { ...propsComponent?.text, children: propsComponent?.text?.children || opt.label })
2790
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Text, { ...propsComponent?.text, children: propsComponent?.text?.children || opt.label })
2578
2791
  },
2579
2792
  opt.value
2580
2793
  )) })
@@ -2582,7 +2795,7 @@ var Selector = ({ ui, style, options, name, value, defaultValue, onChange, iconC
2582
2795
  };
2583
2796
 
2584
2797
  // src/components/Phone/Phone.tsx
2585
- var import_jsx_runtime38 = require("react/jsx-runtime");
2798
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2586
2799
  var Phone = ({
2587
2800
  name,
2588
2801
  value,
@@ -2594,13 +2807,13 @@ var Phone = ({
2594
2807
  }) => {
2595
2808
  const isControlled = value !== void 0;
2596
2809
  const initial = value || defaultValue || "";
2597
- const [prefix, setPrefix] = React18.useState(
2810
+ const [prefix, setPrefix] = React19.useState(
2598
2811
  getDialPhone(initial, countries) || countries[0].dial
2599
2812
  );
2600
- const [number, setNumber] = React18.useState(
2813
+ const [number, setNumber] = React19.useState(
2601
2814
  getNumberPhone(initial, prefix) || ""
2602
2815
  );
2603
- React18.useEffect(() => {
2816
+ React19.useEffect(() => {
2604
2817
  if (isControlled && value) {
2605
2818
  const dial = getDialPhone(value, countries);
2606
2819
  const num = getNumberPhone(value, dial);
@@ -2619,10 +2832,10 @@ var Phone = ({
2619
2832
  setPrefix(val);
2620
2833
  onChange?.(null, `${val}${number}`);
2621
2834
  };
2622
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Control, { variant: "outlined", ui: { height: 50, position: "relative" }, children: [
2623
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { text: label, className: "yr3Input--active" }),
2624
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Flex, { variant: "row", container: true, center: true, children: [
2625
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2835
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Control, { variant: "outlined", ui: { height: 50, position: "relative" }, children: [
2836
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label, { text: label, className: "yr3Input--active" }),
2837
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Flex, { variant: "row", container: true, center: true, children: [
2838
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2626
2839
  Selector,
2627
2840
  {
2628
2841
  options: countries.map((c) => ({
@@ -2634,7 +2847,7 @@ var Phone = ({
2634
2847
  ...propsComponent?.selector
2635
2848
  }
2636
2849
  ),
2637
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2850
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2638
2851
  Divider,
2639
2852
  {
2640
2853
  orientation: "vertical",
@@ -2643,7 +2856,7 @@ var Phone = ({
2643
2856
  ...propsComponent?.divider
2644
2857
  }
2645
2858
  ),
2646
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2859
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2647
2860
  Input,
2648
2861
  {
2649
2862
  type: "number",
@@ -2659,9 +2872,9 @@ var Phone = ({
2659
2872
  };
2660
2873
 
2661
2874
  // src/components/Places/PlacesAutocomplete.tsx
2662
- var React19 = __toESM(require("react"), 1);
2875
+ var React20 = __toESM(require("react"), 1);
2663
2876
  var import_autocomplete_places = require("@yr3/autocomplete-places");
2664
- var import_jsx_runtime39 = require("react/jsx-runtime");
2877
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2665
2878
  var initPropsComponent = {
2666
2879
  label: {
2667
2880
  display: true,
@@ -2701,9 +2914,9 @@ var PlacesAutocomplete = ({
2701
2914
  keyApi,
2702
2915
  propsComponent = initPropsComponent
2703
2916
  }) => {
2704
- const [value, setValue] = React19.useState(null);
2705
- const inputRef = React19.useRef(null);
2706
- const [anchorEl, setAnchorEl] = React19.useState(null);
2917
+ const [value, setValue] = React20.useState(null);
2918
+ const inputRef = React20.useRef(null);
2919
+ const [anchorEl, setAnchorEl] = React20.useState(null);
2707
2920
  const { suggestions, selectPlace } = (0, import_autocomplete_places.useAutocompletePlaces)({ input: value, apiKey: keyApi, language, provider });
2708
2921
  const handleSelect = async (id) => {
2709
2922
  const place = await selectPlace(id);
@@ -2723,12 +2936,12 @@ var PlacesAutocomplete = ({
2723
2936
  setValue(place.address);
2724
2937
  setAnchorEl(null);
2725
2938
  };
2726
- React19.useEffect(() => {
2939
+ React20.useEffect(() => {
2727
2940
  if (defaultLocation) {
2728
2941
  setValue(defaultLocation);
2729
2942
  }
2730
2943
  }, [defaultLocation]);
2731
- React19.useEffect(() => {
2944
+ React20.useEffect(() => {
2732
2945
  if (value === "") {
2733
2946
  onSelect(null);
2734
2947
  }
@@ -2738,13 +2951,13 @@ var PlacesAutocomplete = ({
2738
2951
  setAnchorEl(e.target.value ? inputRef.current : null);
2739
2952
  };
2740
2953
  const open = suggestions.length > 0 && Boolean(anchorEl);
2741
- React19.useEffect(() => {
2954
+ React20.useEffect(() => {
2742
2955
  if (onChangeForm) {
2743
2956
  onChangeForm({ target: { value } });
2744
2957
  }
2745
2958
  }, [onChangeForm]);
2746
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Control, { ...propsComponent?.control, children: [
2747
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2959
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Control, { ...propsComponent?.control, children: [
2960
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2748
2961
  Input,
2749
2962
  {
2750
2963
  ref: inputRef,
@@ -2758,7 +2971,7 @@ var PlacesAutocomplete = ({
2758
2971
  },
2759
2972
  "input-places"
2760
2973
  ),
2761
- open && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "yr3Places--menu", style: composeStyles(propsComponent.menu?.ui, propsComponent?.menu?.style), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Flex, { container: true, ui: { p: 1 }, children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Flex, { onClick: () => handleSelect(s.id), ui: { padding: 8, cursor: "pointer", "&:hover": { backgroundColor: "rgba(0,0,0,0.1)" } }, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { ...propsComponent?.menu?.text, children: s.description }) }, s.id)) }) })
2974
+ open && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "yr3Places--menu", style: composeStyles(propsComponent.menu?.ui, propsComponent?.menu?.style), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Flex, { container: true, ui: { p: 1 }, children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Flex, { onClick: () => handleSelect(s.id), ui: { padding: 8, cursor: "pointer", "&:hover": { backgroundColor: "rgba(0,0,0,0.1)" } }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Text, { ...propsComponent?.menu?.text, children: s.description }) }, s.id)) }) })
2762
2975
  ] });
2763
2976
  };
2764
2977
 
@@ -2786,7 +2999,7 @@ var radioVariant = createVariants({
2786
2999
  });
2787
3000
 
2788
3001
  // src/components/Radio/Radio.tsx
2789
- var import_jsx_runtime40 = require("react/jsx-runtime");
3002
+ var import_jsx_runtime41 = require("react/jsx-runtime");
2790
3003
  var Radio = ({
2791
3004
  checked,
2792
3005
  value,
@@ -2802,8 +3015,8 @@ var Radio = ({
2802
3015
  const bemClass = bem("yr3Radio");
2803
3016
  const classes = bemClass(void 0, { [color]: `color-${color}` });
2804
3017
  const variantClass = radioVariant({ variant });
2805
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("label", { className: classes, "data-testid": "yr3Radio", style: composeStyles(propsComponent?.radio?.ui, propsComponent?.radio?.style), children: [
2806
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3018
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: classes, "data-testid": "yr3Radio", style: composeStyles(propsComponent?.radio?.ui, propsComponent?.radio?.style), children: [
3019
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2807
3020
  "input",
2808
3021
  {
2809
3022
  type: "radio",
@@ -2815,8 +3028,8 @@ var Radio = ({
2815
3028
  }
2816
3029
  ),
2817
3030
  iconChecked && checked ? iconChecked : !checked && iconUnchecked ? iconUnchecked : null,
2818
- !iconChecked && !iconUnchecked && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: variantClass, "data-testid": "yr3Radio-dot" }),
2819
- typeof label === "string" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3031
+ !iconChecked && !iconUnchecked && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: variantClass, "data-testid": "yr3Radio-dot" }),
3032
+ typeof label === "string" && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2820
3033
  "span",
2821
3034
  {
2822
3035
  className: "yr3Radio--label",
@@ -2829,7 +3042,7 @@ var Radio = ({
2829
3042
  };
2830
3043
 
2831
3044
  // src/components/Select/Select.tsx
2832
- var React20 = __toESM(require("react"), 1);
3045
+ var React21 = __toESM(require("react"), 1);
2833
3046
 
2834
3047
  // src/components/Select/select.variants.ts
2835
3048
  var selectVariants = createVariants({
@@ -2889,8 +3102,8 @@ var selectIconVariants = createVariants({
2889
3102
  });
2890
3103
 
2891
3104
  // src/components/Select/Select.tsx
2892
- var import_jsx_runtime41 = require("react/jsx-runtime");
2893
- var initiaPropsComponent3 = {
3105
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3106
+ var initiaPropsComponent4 = {
2894
3107
  control: {
2895
3108
  variant: "outlined",
2896
3109
  color: "primary",
@@ -2929,15 +3142,15 @@ var initiaPropsComponent3 = {
2929
3142
  }
2930
3143
  };
2931
3144
  var Select = ({ label, options, name, value, defaultValue, onChange, propsComponent }) => {
2932
- const [open, setOpen] = React20.useState(false);
2933
- const [valueState, setValueState] = React20.useState(value || defaultValue || null);
2934
- const ref = React20.useRef(null);
3145
+ const [open, setOpen] = React21.useState(false);
3146
+ const [valueState, setValueState] = React21.useState(value || defaultValue || null);
3147
+ const ref = React21.useRef(null);
2935
3148
  useClickAway(ref, () => setOpen(false));
2936
- const properties = mergeDeep(initiaPropsComponent3, propsComponent || {});
3149
+ const properties = mergeDeep(initiaPropsComponent4, propsComponent || {});
2937
3150
  const classesIcon = selectIconVariants({ color: properties?.icon?.color, animated: open, open });
2938
3151
  const classes = selectVariants({ wrapper: true });
2939
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: classes, ref, children: [
2940
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3152
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: classes, ref, children: [
3153
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2941
3154
  Input,
2942
3155
  {
2943
3156
  label,
@@ -2950,14 +3163,14 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
2950
3163
  }
2951
3164
  }
2952
3165
  ),
2953
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3166
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2954
3167
  "div",
2955
3168
  {
2956
3169
  className: classesIcon,
2957
3170
  style: properties?.icon?.style,
2958
3171
  onClick: () => setOpen((prev) => !prev),
2959
3172
  "data-testid": "yr3Select-icon",
2960
- children: properties?.icon?.component ? properties?.icon.component : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3173
+ children: properties?.icon?.component ? properties?.icon.component : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2961
3174
  IconDown,
2962
3175
  {
2963
3176
  width: properties?.icon?.style?.width,
@@ -2968,13 +3181,13 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
2968
3181
  )
2969
3182
  }
2970
3183
  ),
2971
- open && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3184
+ open && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2972
3185
  "div",
2973
3186
  {
2974
3187
  className: "yr3Select--menu",
2975
3188
  style: composeStyles(properties?.menu?.ui, properties?.menu?.style),
2976
3189
  "data-testid": "yr3Select-menu",
2977
- children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3190
+ children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2978
3191
  "div",
2979
3192
  {
2980
3193
  className: "yr3Select--option",
@@ -2996,7 +3209,7 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
2996
3209
  onChange?.(event, opt.value);
2997
3210
  },
2998
3211
  style: composeStyles(properties?.menu?.options?.ui, properties?.menu?.options?.style),
2999
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Text, { as: "span", variant: "caption", color: properties?.menu?.options?.text?.color || "primary", ...properties?.menu?.options?.text, children: opt.label })
3212
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Text, { as: "span", variant: "caption", color: properties?.menu?.options?.text?.color || "primary", ...properties?.menu?.options?.text, children: opt.label })
3000
3213
  },
3001
3214
  opt.value
3002
3215
  ))
@@ -3006,8 +3219,8 @@ var Select = ({ label, options, name, value, defaultValue, onChange, propsCompon
3006
3219
  };
3007
3220
 
3008
3221
  // src/components/Slide/Slide.tsx
3009
- var React21 = __toESM(require("react"), 1);
3010
- var import_jsx_runtime42 = require("react/jsx-runtime");
3222
+ var React22 = __toESM(require("react"), 1);
3223
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3011
3224
  var initialPropsComponent5 = {
3012
3225
  slide: {
3013
3226
  ui: {},
@@ -3030,7 +3243,7 @@ var Slide = ({
3030
3243
  "in": !!inProp,
3031
3244
  "out": !inProp
3032
3245
  });
3033
- React21.useEffect(() => {
3246
+ React22.useEffect(() => {
3034
3247
  let timeoutId;
3035
3248
  if (inProp) {
3036
3249
  timeoutId = setTimeout(() => {
@@ -3040,19 +3253,19 @@ var Slide = ({
3040
3253
  return () => clearTimeout(timeoutId);
3041
3254
  }, [inProp, duration, onTransitionEnd]);
3042
3255
  const uiStyleContent = uiStyle({ ...properties?.slide?.ui, transitionDuration: `${duration}ms` });
3043
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3256
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3044
3257
  "div",
3045
3258
  {
3046
3259
  className: "yr3Slide",
3047
3260
  style: composeStyles(),
3048
3261
  "data-testid": "yr3Slide",
3049
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3262
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3050
3263
  "div",
3051
3264
  {
3052
3265
  className: classNameContent,
3053
3266
  style: composeStyles(uiStyleContent, properties?.slide?.style || {}),
3054
3267
  "data-testid": "yr3Slide-content",
3055
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Box, { ...properties?.box, "data-testid": "yr3Slide-box", children })
3268
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Box, { ...properties?.box, "data-testid": "yr3Slide-box", children })
3056
3269
  }
3057
3270
  )
3058
3271
  }
@@ -3060,7 +3273,7 @@ var Slide = ({
3060
3273
  };
3061
3274
 
3062
3275
  // src/components/Switch/Switch.tsx
3063
- var React22 = __toESM(require("react"), 1);
3276
+ var React23 = __toESM(require("react"), 1);
3064
3277
 
3065
3278
  // src/components/Switch/switch.variants.ts
3066
3279
  var switchVariants = createVariants({
@@ -3097,7 +3310,7 @@ var switchVariants = createVariants({
3097
3310
  });
3098
3311
 
3099
3312
  // src/components/Switch/Switch.tsx
3100
- var import_jsx_runtime43 = require("react/jsx-runtime");
3313
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3101
3314
  var Switch = ({
3102
3315
  checked,
3103
3316
  defaultChecked,
@@ -3109,7 +3322,7 @@ var Switch = ({
3109
3322
  placement = "end",
3110
3323
  propsComponent
3111
3324
  }) => {
3112
- const [internal, setInternal] = React22.useState(defaultChecked || false);
3325
+ const [internal, setInternal] = React23.useState(defaultChecked || false);
3113
3326
  const classname = switchVariants({ colors: color, size, disabled: !!disabled, checked: checked ?? internal, placement });
3114
3327
  const isControlled = checked !== void 0;
3115
3328
  const value = isControlled ? checked : internal;
@@ -3117,13 +3330,13 @@ var Switch = ({
3117
3330
  if (!isControlled) setInternal(e.target.checked);
3118
3331
  onChange?.(e, e.target.checked);
3119
3332
  };
3120
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3333
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
3121
3334
  "label",
3122
3335
  {
3123
3336
  className: classname,
3124
3337
  "data-testid": "yr3Switch",
3125
3338
  children: [
3126
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3339
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3127
3340
  "input",
3128
3341
  {
3129
3342
  type: "checkbox",
@@ -3132,8 +3345,8 @@ var Switch = ({
3132
3345
  disabled
3133
3346
  }
3134
3347
  ),
3135
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "yr3Switch--track", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "yr3Switch--thumb" }) }),
3136
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3348
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "yr3Switch--track", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "yr3Switch--thumb" }) }),
3349
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3137
3350
  "span",
3138
3351
  {
3139
3352
  className: "yr3Switch--label",
@@ -3148,14 +3361,14 @@ var Switch = ({
3148
3361
  };
3149
3362
 
3150
3363
  // src/theme/ThemeProvider.tsx
3151
- var React24 = __toESM(require("react"), 1);
3364
+ var React25 = __toESM(require("react"), 1);
3152
3365
 
3153
3366
  // src/theme/notistackContext.tsx
3154
- var React23 = __toESM(require("react"), 1);
3155
- var import_jsx_runtime44 = require("react/jsx-runtime");
3156
- var NotistackContext = React23.createContext(null);
3367
+ var React24 = __toESM(require("react"), 1);
3368
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3369
+ var NotistackContext = React24.createContext(null);
3157
3370
  var NotistackProvider = ({ children }) => {
3158
- const [snacks, setSnacks] = React23.useState([]);
3371
+ const [snacks, setSnacks] = React24.useState([]);
3159
3372
  const notistack = (snack) => {
3160
3373
  const id = Date.now();
3161
3374
  setSnacks((prev) => [...prev, { ...snack, id, exiting: false }]);
@@ -3170,13 +3383,13 @@ var NotistackProvider = ({ children }) => {
3170
3383
  setSnacks((prev) => prev.filter((s) => s.id !== id));
3171
3384
  }, duration + exitDuration);
3172
3385
  };
3173
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(NotistackContext.Provider, { value: { notistack }, children: [
3386
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(NotistackContext.Provider, { value: { notistack }, children: [
3174
3387
  children,
3175
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "yr3NotistackContainer", children: snacks.map((snack) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Notistack, { ...snack }, snack.id)) })
3388
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "yr3NotistackContainer", children: snacks.map((snack) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Notistack, { ...snack }, snack.id)) })
3176
3389
  ] });
3177
3390
  };
3178
3391
  var useNotistack = () => {
3179
- const ctx = React23.useContext(NotistackContext);
3392
+ const ctx = React24.useContext(NotistackContext);
3180
3393
  if (!ctx) {
3181
3394
  throw new Error("NotistackProvider missing");
3182
3395
  }
@@ -3184,15 +3397,15 @@ var useNotistack = () => {
3184
3397
  };
3185
3398
 
3186
3399
  // src/theme/ThemeProvider.tsx
3187
- var import_jsx_runtime45 = require("react/jsx-runtime");
3188
- var ThemeContext = React24.createContext(null);
3400
+ var import_jsx_runtime46 = require("react/jsx-runtime");
3401
+ var ThemeContext = React25.createContext(null);
3189
3402
  var ThemeProvider = ({ theme, children }) => {
3190
- React24.useEffect(() => {
3403
+ React25.useEffect(() => {
3191
3404
  applyTheme(theme);
3192
3405
  }, [theme]);
3193
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(BackdropProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(NotistackProvider, { children }) }) });
3406
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ThemeContext.Provider, { value: theme, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(BackdropProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(NotistackProvider, { children }) }) });
3194
3407
  };
3195
- var useTheme = () => React24.useContext(ThemeContext);
3408
+ var useTheme = () => React25.useContext(ThemeContext);
3196
3409
 
3197
3410
  // src/theme/tokens.ts
3198
3411
  var baseTokens = {
@@ -3213,15 +3426,15 @@ var baseTokens = {
3213
3426
  };
3214
3427
 
3215
3428
  // src/theme/useMediaQuery.tsx
3216
- var React25 = __toESM(require("react"), 1);
3429
+ var React26 = __toESM(require("react"), 1);
3217
3430
  function useMediaQuery(query) {
3218
3431
  const theme = useTheme();
3219
3432
  const computedQuery = typeof query === "function" ? query(theme) : query;
3220
- const [matches, setMatches] = React25.useState(() => {
3433
+ const [matches, setMatches] = React26.useState(() => {
3221
3434
  if (typeof window === "undefined") return false;
3222
3435
  return window.matchMedia(computedQuery).matches;
3223
3436
  });
3224
- React25.useEffect(() => {
3437
+ React26.useEffect(() => {
3225
3438
  if (typeof window === "undefined") return;
3226
3439
  const media = window.matchMedia(computedQuery);
3227
3440
  const listener = () => setMatches(media.matches);
@@ -3255,7 +3468,7 @@ var usePlaces = ({ input, language, apiKey, provider }) => {
3255
3468
  };
3256
3469
 
3257
3470
  // src/hooks/useBreakpoint.ts
3258
- var React26 = __toESM(require("react"), 1);
3471
+ var React27 = __toESM(require("react"), 1);
3259
3472
  var breakUp = (bp) => `(min-width: ${bp}px)`;
3260
3473
  var breakDown = (bp) => `(max-width: ${bp}px)`;
3261
3474
  function useBreakpoint(queryInput) {
@@ -3265,8 +3478,8 @@ function useBreakpoint(queryInput) {
3265
3478
  if (typeof window === "undefined") return false;
3266
3479
  return window.matchMedia(query).matches;
3267
3480
  };
3268
- const [matches, setMatches] = React26.useState(getMatch);
3269
- React26.useEffect(() => {
3481
+ const [matches, setMatches] = React27.useState(getMatch);
3482
+ React27.useEffect(() => {
3270
3483
  if (typeof window === "undefined") return;
3271
3484
  const media = window.matchMedia(query);
3272
3485
  const listener = (e) => {
@@ -3331,6 +3544,7 @@ initTheme();
3331
3544
  NotistackProvider,
3332
3545
  Pending,
3333
3546
  Phone,
3547
+ Picker,
3334
3548
  PlacesAutocomplete,
3335
3549
  Radio,
3336
3550
  Select,