@ecohouse/ui 0.1.11 → 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",
@@ -2042,6 +2065,7 @@ var Button = react.forwardRef(
2042
2065
  paddingRight: hasIcon ? metrics.paddingRightWithIcon : metrics.paddingRight,
2043
2066
  gap: hasIcon ? metrics.gap : 0
2044
2067
  },
2068
+ hasIcon ? styles8.contentWithIcon : styles8.contentWithoutIcon,
2045
2069
  disabled && styles8.disabled,
2046
2070
  style
2047
2071
  ];
@@ -2097,6 +2121,12 @@ var styles8 = reactNative.StyleSheet.create({
2097
2121
  disabled: {
2098
2122
  opacity: 0.6
2099
2123
  },
2124
+ contentWithIcon: {
2125
+ justifyContent: "space-between"
2126
+ },
2127
+ contentWithoutIcon: {
2128
+ justifyContent: "center"
2129
+ },
2100
2130
  label: {},
2101
2131
  labelAndroid: {
2102
2132
  includeFontPadding: false
@@ -2303,6 +2333,7 @@ var DatePicker = react.forwardRef(
2303
2333
  weekdayLabels = DEFAULT_WEEKDAY_LABELS,
2304
2334
  formatValue = formatDate,
2305
2335
  weekStartsOn = 1,
2336
+ calendarStyle,
2306
2337
  style,
2307
2338
  className,
2308
2339
  accessibilityLabel,
@@ -2457,7 +2488,7 @@ var DatePicker = react.forwardRef(
2457
2488
  ]
2458
2489
  }
2459
2490
  ),
2460
- isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.menu, children: [
2491
+ isOpen ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles10.menu, calendarStyle], children: [
2461
2492
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles10.calendarHeader, children: [
2462
2493
  /* @__PURE__ */ jsxRuntime.jsx(
2463
2494
  reactNative.Pressable,
@@ -2637,7 +2668,7 @@ var styles10 = reactNative.StyleSheet.create({
2637
2668
  position: "absolute",
2638
2669
  top: "100%",
2639
2670
  left: 0,
2640
- right: 0,
2671
+ width: DEFAULT_WIDTH,
2641
2672
  marginTop: 8,
2642
2673
  zIndex: 10,
2643
2674
  borderRadius: MENU_RADIUS2,
@@ -4184,6 +4215,7 @@ exports.LayoutGridIcon = LayoutGridIcon;
4184
4215
  exports.LinkedInIcon = LinkedInIcon;
4185
4216
  exports.LogOutIcon = LogOutIcon;
4186
4217
  exports.MailIcon = MailIcon;
4218
+ exports.MenuIcon = MenuIcon;
4187
4219
  exports.MenuItem = MenuItem;
4188
4220
  exports.MinusIcon = MinusIcon;
4189
4221
  exports.NavigateIcon = NavigateIcon;