@ecohouse/ui 0.1.62 → 0.1.64

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
@@ -31551,6 +31551,11 @@ var triggerWebBlurStyle = reactNative.Platform.OS === "web" ? {
31551
31551
  backdropFilter: "blur(40px)",
31552
31552
  WebkitBackdropFilter: "blur(40px)"
31553
31553
  } : {};
31554
+ var variantWebTransitionStyle = reactNative.Platform.OS === "web" ? {
31555
+ transitionProperty: "background-color, border-color, box-shadow, backdrop-filter, -webkit-backdrop-filter",
31556
+ transitionDuration: "200ms",
31557
+ transitionTimingFunction: "ease"
31558
+ } : {};
31554
31559
  var menuWebBlurStyle = reactNative.Platform.OS === "web" ? {
31555
31560
  backdropFilter: "blur(40px)",
31556
31561
  WebkitBackdropFilter: "blur(40px)"
@@ -31656,6 +31661,7 @@ var Avatar = react.forwardRef(function Avatar2({
31656
31661
  accessibilityState: isInteractive ? { disabled, expanded: hasMenu ? isOpen : void 0 } : void 0,
31657
31662
  style: [
31658
31663
  styles6.root,
31664
+ variantWebTransitionStyle,
31659
31665
  isLightVariant ? styles6.rootLight : styles6.rootDark,
31660
31666
  isLightVariant && triggerWebBlurStyle,
31661
31667
  disabled && styles6.disabled,
@@ -31711,6 +31717,7 @@ var Avatar = react.forwardRef(function Avatar2({
31711
31717
  {
31712
31718
  style: [
31713
31719
  styles6.menu,
31720
+ variantWebTransitionStyle,
31714
31721
  isLightVariant ? styles6.menuLight : styles6.menuDark,
31715
31722
  isLightVariant && menuWebBlurStyle,
31716
31723
  menuWidth != null && { right: void 0, width: menuWidth }
@@ -31727,7 +31734,7 @@ var Avatar = react.forwardRef(function Avatar2({
31727
31734
  hoverColor: item.hoverColor ?? (isLightVariant ? colors.whiteAlpha7 : void 0),
31728
31735
  labelStyle: item.labelStyle,
31729
31736
  onPress: () => handleItemPress(item),
31730
- style: isLightVariant ? item.backgroundColor ? styles6.emphasizedMenuItem : styles6.menuItem : void 0
31737
+ style: item.backgroundColor ? styles6.emphasizedMenuItem : styles6.menuItem
31731
31738
  },
31732
31739
  itemKey
31733
31740
  );
@@ -31837,6 +31844,9 @@ var styles6 = reactNative.StyleSheet.create({
31837
31844
  overflow: "hidden"
31838
31845
  },
31839
31846
  menuDark: {
31847
+ // Matches menuLight's border so switching variants does not shift the menu by 2px.
31848
+ borderWidth: 1,
31849
+ borderColor: "transparent",
31840
31850
  backgroundColor: colors.grey700,
31841
31851
  ...reactNative.Platform.select({
31842
31852
  web: {
@@ -35234,7 +35244,7 @@ var DatePicker = react.forwardRef(
35234
35244
  style: [
35235
35245
  styles27.dayCircle,
35236
35246
  isSelectedEndpoint && styles27.dayCircleSelected,
35237
- dayUnavailable && styles27.dayCircleBooked,
35247
+ dayUnavailable && styles27.dayCircleUnavailable,
35238
35248
  isHovered && styles27.dayCircleHovered
35239
35249
  ],
35240
35250
  children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -35243,7 +35253,7 @@ var DatePicker = react.forwardRef(
35243
35253
  style: [
35244
35254
  styles27.dayText,
35245
35255
  { color: dayTextColor },
35246
- dayUnavailable && styles27.dayTextBooked
35256
+ dayUnavailable && styles27.dayTextUnavailable
35247
35257
  ],
35248
35258
  children: day.getDate()
35249
35259
  }
@@ -35559,13 +35569,14 @@ var styles27 = reactNative.StyleSheet.create({
35559
35569
  borderRadius: 22,
35560
35570
  overflow: "hidden"
35561
35571
  },
35562
- dayCircleBooked: {
35563
- backgroundColor: colors.grey700,
35572
+ /** Unavailable day: filled circle a step lighter than the calendar, dimmed number. */
35573
+ dayCircleUnavailable: {
35574
+ backgroundColor: colors.grey600,
35564
35575
  borderRadius: 22,
35565
35576
  overflow: "hidden"
35566
35577
  },
35567
- dayTextBooked: {
35568
- textDecorationLine: "line-through"
35578
+ dayTextUnavailable: {
35579
+ color: colors.grey200
35569
35580
  },
35570
35581
  dayCircleHovered: {
35571
35582
  backgroundColor: colors.grey600
@@ -36731,11 +36742,13 @@ function reconcileVerificationCells(cells, code, length) {
36731
36742
  }
36732
36743
  function updateVerificationCells(currentCells, index, input, length) {
36733
36744
  const safeLength = Math.max(1, length);
36734
- const safeIndex = Math.min(Math.max(0, index), safeLength - 1);
36745
+ const focusedIndex = Math.min(Math.max(0, index), safeLength - 1);
36735
36746
  const cells = Array.from({ length: safeLength }, (_, cellIndex) => {
36736
36747
  const cell = currentCells[cellIndex] ?? "";
36737
36748
  return /^\d$/.test(cell) ? cell : "";
36738
36749
  });
36750
+ const pastedDigits = input.replace(/\D/g, "");
36751
+ const safeIndex = pastedDigits.length > 1 && pastedDigits.length > safeLength - focusedIndex ? 0 : focusedIndex;
36739
36752
  const insertedDigits = normalizeVerificationCode(input, safeLength - safeIndex);
36740
36753
  if (!insertedDigits) {
36741
36754
  cells[safeIndex] = "";