@ecohouse/ui 0.1.10 → 0.1.12

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
@@ -621,6 +621,28 @@ function MailIcon({ size = 20, color = colors.primary, strokeWidth = 2 }) {
621
621
  ) });
622
622
  }
623
623
 
624
+ // src/icons/Menu/menuPath.ts
625
+ var MENU_PATH = "M8 12.6667H17.3333M1 6.83332H17.3333M8 0.999985H17.3333";
626
+ var MENU_CLOSE_PATH = "M15 1L1 15M1 1L15 15";
627
+ function MenuIcon({
628
+ size = 19,
629
+ color = colors.white,
630
+ strokeWidth = 2,
631
+ open = false
632
+ }) {
633
+ return /* @__PURE__ */ jsxRuntime.jsx(Svg__default.default, { width: size, height: size, viewBox: "0 0 19 19", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
634
+ Svg.Path,
635
+ {
636
+ d: open ? MENU_CLOSE_PATH : MENU_PATH,
637
+ stroke: color,
638
+ strokeWidth,
639
+ strokeLinecap: "round",
640
+ strokeLinejoin: "round",
641
+ transform: open ? "translate(1.5 1.5)" : "translate(0 2.5)"
642
+ }
643
+ ) });
644
+ }
645
+
624
646
  // src/icons/Minus/minusPath.ts
625
647
  var MINUS_PATH = "M3.33337 8H12.6667";
626
648
  function MinusIcon({ size = 16, color = colors.white, strokeWidth = 2 }) {
@@ -877,6 +899,7 @@ var icons = {
877
899
  linkedin: LinkedInIcon,
878
900
  logOut: LogOutIcon,
879
901
  mail: MailIcon,
902
+ menu: MenuIcon,
880
903
  minus: MinusIcon,
881
904
  navigate: NavigateIcon,
882
905
  phone: PhoneIcon,
@@ -893,7 +916,7 @@ var icons = {
893
916
  };
894
917
  var iconNames = Object.keys(icons);
895
918
  var iconGroups = {
896
- navigation: ["arrowRight", "chevronDown", "chevronLeft", "home", "navigate"],
919
+ navigation: ["arrowRight", "chevronDown", "chevronLeft", "home", "menu", "navigate"],
897
920
  actions: [
898
921
  "show",
899
922
  "bell",
@@ -1899,10 +1922,7 @@ var styles6 = reactNative.StyleSheet.create({
1899
1922
  gap: 8,
1900
1923
  borderRadius: 12,
1901
1924
  backgroundColor: colors.whiteAlpha6,
1902
- ...reactNative.Platform.select({
1903
- web: { boxShadow: `0 8px 24px ${colors.black}73` },
1904
- default: { elevation: 8 }
1905
- })
1925
+ overflow: "hidden"
1906
1926
  },
1907
1927
  item: {
1908
1928
  height: CONTROL_HEIGHT,
@@ -2045,6 +2065,7 @@ var Button = react.forwardRef(
2045
2065
  paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
2046
2066
  gap: hasIcon ? metrics.gap : 0
2047
2067
  },
2068
+ hasIcon ? styles8.contentWithIcon : styles8.contentWithoutIcon,
2048
2069
  disabled && styles8.disabled,
2049
2070
  style
2050
2071
  ];
@@ -2100,6 +2121,12 @@ var styles8 = reactNative.StyleSheet.create({
2100
2121
  disabled: {
2101
2122
  opacity: 0.6
2102
2123
  },
2124
+ contentWithIcon: {
2125
+ justifyContent: "space-between"
2126
+ },
2127
+ contentWithoutIcon: {
2128
+ justifyContent: "center"
2129
+ },
2103
2130
  label: {},
2104
2131
  labelAndroid: {
2105
2132
  includeFontPadding: false
@@ -2306,6 +2333,7 @@ var DatePicker = react.forwardRef(
2306
2333
  weekdayLabels = DEFAULT_WEEKDAY_LABELS,
2307
2334
  formatValue = formatDate,
2308
2335
  weekStartsOn = 1,
2336
+ calendarStyle,
2309
2337
  style,
2310
2338
  className,
2311
2339
  accessibilityLabel,
@@ -2460,7 +2488,7 @@ var DatePicker = react.forwardRef(
2460
2488
  ]
2461
2489
  }
2462
2490
  ),
2463
- isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.menu, children: [
2491
+ isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles10.menu, calendarStyle], children: [
2464
2492
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.calendarHeader, children: [
2465
2493
  /* @__PURE__ */ jsxRuntime.jsx(
2466
2494
  reactNative.Pressable,
@@ -2640,7 +2668,7 @@ var styles10 = reactNative.StyleSheet.create({
2640
2668
  position: "absolute",
2641
2669
  top: "100%",
2642
2670
  left: 0,
2643
- right: 0,
2671
+ width: DEFAULT_WIDTH,
2644
2672
  marginTop: 8,
2645
2673
  zIndex: 10,
2646
2674
  borderRadius: MENU_RADIUS2,
@@ -4187,6 +4215,7 @@ exports.LayoutGridIcon = LayoutGridIcon;
4187
4215
  exports.LinkedInIcon = LinkedInIcon;
4188
4216
  exports.LogOutIcon = LogOutIcon;
4189
4217
  exports.MailIcon = MailIcon;
4218
+ exports.MenuIcon = MenuIcon;
4190
4219
  exports.MenuItem = MenuItem;
4191
4220
  exports.MinusIcon = MinusIcon;
4192
4221
  exports.NavigateIcon = NavigateIcon;