@gryt/ui 0.15.1 → 0.16.0

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.js CHANGED
@@ -876,7 +876,21 @@ function Do({ className: a, value: t = null, ...e }) {
876
876
  value: t,
877
877
  className: n("gryt-progress w-full", a),
878
878
  ...e,
879
- children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(O.Indicator, { className: "h-full rounded-(--gryt-radius-full) bg-gryt-accent transition-[width] duration-300 ease-out motion-reduce:transition-none" }) })
879
+ children: /* @__PURE__ */ o(O.Track, { className: "h-1.5 w-full overflow-hidden rounded-(--gryt-radius-full) bg-gryt-surface-raised", children: /* @__PURE__ */ o(
880
+ O.Indicator,
881
+ {
882
+ className: n(
883
+ "h-full rounded-(--gryt-radius-full) bg-gryt-accent",
884
+ "transition-[width] duration-300 ease-out motion-reduce:transition-none",
885
+ // Base UI marks the indicator indeterminate and leaves its width
886
+ // unset, and nothing styled that — so an indeterminate Progress
887
+ // rendered a track with an invisible indicator. An empty bar reads
888
+ // as "nothing has happened yet", which is why it went unnoticed
889
+ // rather than being reported. GRYT-382.
890
+ t === null && "gryt-progress-indeterminate"
891
+ )
892
+ }
893
+ ) })
880
894
  }
881
895
  );
882
896
  }
@@ -1121,7 +1135,7 @@ const ge = s(
1121
1135
  className: n(
1122
1136
  "gryt-drawer flex flex-col gap-4 border-gryt-border bg-gryt-surface text-gryt-text",
1123
1137
  "overflow-y-auto overscroll-contain outline-none",
1124
- "transition-transform duration-(--gryt-dur-spring-soft) ease-spring",
1138
+ "transition-transform duration-(--gryt-dur-spring-soft) ease-spring-tight",
1125
1139
  // While the finger is down the panel must track it exactly. Any
1126
1140
  // duration here turns a drag into a drag plus lag.
1127
1141
  "data-swiping:duration-0 data-swiping:select-none",
@@ -1144,7 +1158,7 @@ const ge = s(
1144
1158
  // Lightens as the panel is dragged away, so letting go halfway does not
1145
1159
  // leave a full-strength scrim over a half-gone sheet.
1146
1160
  "[opacity:calc(1-var(--drawer-swipe-progress,0))]",
1147
- "transition-opacity duration-(--gryt-dur-spring-soft) ease-spring",
1161
+ "transition-opacity duration-(--gryt-dur-spring-soft) ease-spring-tight",
1148
1162
  "data-swiping:duration-0",
1149
1163
  "data-starting-style:opacity-0 data-ending-style:opacity-0",
1150
1164
  "motion-reduce:transition-none",