@agentero/design-system 0.32.0 → 0.32.2

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.
@@ -140,7 +140,7 @@ var x = r({
140
140
  });
141
141
  };
142
142
  S.displayName = "Table.Cell";
143
- var C = r({ base: "relative z-[1] [&>svg]:shrink-0 [&>svg]:transition-transform [&>svg]:duration-200 data-[state=open]:[&>svg]:rotate-180" }), w = ({ toggleExpanded: r, isExpanded: i, className: a, ...s }) => /* @__PURE__ */ o(t, {
143
+ var C = r({ base: "relative z-[1] [&>svg]:shrink-0 [&>svg]:transition-transform [&>svg]:duration-200 data-[state=open]:[&>svg]:rotate-180 motion-reduce:[&>svg]:transition-none" }), w = ({ toggleExpanded: r, isExpanded: i, className: a, ...s }) => /* @__PURE__ */ o(t, {
144
144
  variant: "ghost",
145
145
  onClick: r,
146
146
  className: e(C(), a),
package/src/tabs/tabs.js CHANGED
@@ -24,8 +24,8 @@ var o = t({
24
24
  list: "w-full gap-6 border-b border-border-default-base-primary bg-bg-default-base-primary px-4",
25
25
  trigger: [
26
26
  "grid h-10 content-center text-text-default-base-tertiary",
27
- "before:absolute before:inset-x-0 before:bottom-0 before:h-0.5 before:origin-bottom before:scale-y-0 before:bg-text-button-secondary-enable before:transition-transform before:duration-200 before:will-change-transform before:content-['']",
28
- "data-[state=active]:before:scale-y-100"
27
+ "before:absolute before:inset-x-0 before:bottom-0 before:h-0.5 before:bg-text-button-secondary-enable before:opacity-0 before:transition-opacity before:duration-150 before:content-['']",
28
+ "data-[state=active]:before:opacity-100"
29
29
  ]
30
30
  },
31
31
  enclosed: {
@@ -8,10 +8,10 @@ var i = e({ base: [
8
8
  "rounded-sm border border-border-default-base-primary bg-bg-default-base-primary shadow-sm",
9
9
  "text-xs text-pretty text-text-default-base-secondary select-none",
10
10
  "will-change-[transform,opacity]",
11
- "data-[side=bottom]:animate-tooltip-slide-in-from-top",
12
- "data-[side=top]:animate-tooltip-slide-in-from-bottom",
13
- "data-[side=left]:animate-tooltip-slide-in-from-right",
14
- "data-[side=right]:animate-tooltip-slide-in-from-left",
11
+ "data-[state=delayed-open]:data-[side=bottom]:animate-tooltip-slide-in-from-top",
12
+ "data-[state=delayed-open]:data-[side=top]:animate-tooltip-slide-in-from-bottom",
13
+ "data-[state=delayed-open]:data-[side=left]:animate-tooltip-slide-in-from-right",
14
+ "data-[state=delayed-open]:data-[side=right]:animate-tooltip-slide-in-from-left",
15
15
  "motion-reduce:animate-none!"
16
16
  ] }), a = ({ children: e, content: a, side: o = "top", align: s, sideOffset: c = 4, asChild: l = !1, hideWhenDetached: u, delayDuration: d = 0, open: f, defaultOpen: p, onOpenChange: m, className: h }) => /* @__PURE__ */ t(r.Provider, {
17
17
  delayDuration: d,
package/theme/base.css CHANGED
@@ -782,6 +782,10 @@
782
782
 
783
783
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
784
784
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
785
+ /* Strong ease-out for surfaces entering and leaving. The built-in ease-out is
786
+ * too flat to read at 150–200ms, and ease-in holds back the first frames of
787
+ * an exit, which is the part people watch. */
788
+ --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
785
789
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
786
790
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
787
791
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
@@ -790,29 +794,31 @@
790
794
  * ANIMATIONS
791
795
  * ======================================== */
792
796
 
793
- --animate-cmd-overlay-in: cmd-overlay-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
794
- --animate-cmd-overlay-out: cmd-overlay-out 150ms ease-in forwards;
795
- --animate-cmd-content-in: cmd-content-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
796
- --animate-cmd-content-out: cmd-content-out 150ms ease-in forwards;
797
+ --animate-cmd-overlay-in: cmd-overlay-in 200ms var(--ease-out-quint);
798
+ --animate-cmd-overlay-out: cmd-overlay-out 150ms var(--ease-out-quint) forwards;
799
+ --animate-cmd-content-in: cmd-content-in 200ms var(--ease-out-quint);
800
+ --animate-cmd-content-out: cmd-content-out 150ms var(--ease-out-quint) forwards;
797
801
  --animate-fade-in: fadeIn 0.3s forwards;
798
- --animate-dropdown-slide-in: dropdownSlideIn 200ms ease-out;
799
- --animate-dropdown-slide-out: dropdownSlideOut 150ms ease-in;
802
+ --animate-dropdown-slide-in: dropdownSlideIn 200ms var(--ease-out-quint);
803
+ --animate-dropdown-slide-out: dropdownSlideOut 150ms var(--ease-out-quint);
800
804
  /* Radix Presence unmounts as soon as a node's CSS animation ends, so a node
801
805
  * whose exit is driven by a transition needs a placeholder animation to hold
802
806
  * it mounted. Keep the duration in sync with any exit transition using it. */
803
807
  --animate-presence-hold: presenceHold 150ms linear;
804
- --animate-dropdown-slide-in-from-top: dropdownSlideInFromTop 200ms ease-out;
805
- --animate-dropdown-slide-in-from-bottom: dropdownSlideInFromBottom 200ms ease-out;
806
- --animate-dropdown-slide-in-from-left: dropdownSlideInFromLeft 200ms ease-out;
807
- --animate-dropdown-slide-in-from-right: dropdownSlideInFromRight 200ms ease-out;
808
- --animate-modal-overlay-in: modalOverlayIn 200ms ease-out;
809
- --animate-modal-overlay-out: modalOverlayOut 150ms ease-in forwards;
810
- --animate-modal-content-in: modalContentIn 200ms ease-out;
811
- --animate-modal-content-out: modalContentOut 150ms ease-in forwards;
812
- --animate-tooltip-slide-in-from-top: tooltipSlideInFromTop 200ms ease-out;
813
- --animate-tooltip-slide-in-from-bottom: tooltipSlideInFromBottom 200ms ease-out;
814
- --animate-tooltip-slide-in-from-left: tooltipSlideInFromLeft 200ms ease-out;
815
- --animate-tooltip-slide-in-from-right: tooltipSlideInFromRight 200ms ease-out;
808
+ --animate-dropdown-slide-in-from-top: dropdownSlideInFromTop 200ms var(--ease-out-quint);
809
+ --animate-dropdown-slide-in-from-bottom: dropdownSlideInFromBottom 200ms var(--ease-out-quint);
810
+ --animate-dropdown-slide-in-from-left: dropdownSlideInFromLeft 200ms var(--ease-out-quint);
811
+ --animate-dropdown-slide-in-from-right: dropdownSlideInFromRight 200ms var(--ease-out-quint);
812
+ --animate-modal-overlay-in: modalOverlayIn 200ms var(--ease-out-quint);
813
+ --animate-modal-overlay-out: modalOverlayOut 150ms var(--ease-out-quint) forwards;
814
+ --animate-modal-content-in: modalContentIn 200ms var(--ease-out-quint);
815
+ --animate-modal-content-out: modalContentOut 150ms var(--ease-out-quint) forwards;
816
+ --animate-tooltip-slide-in-from-top: tooltipSlideInFromTop 150ms var(--ease-out-quint);
817
+ --animate-tooltip-slide-in-from-bottom: tooltipSlideInFromBottom 150ms var(--ease-out-quint);
818
+ --animate-tooltip-slide-in-from-left: tooltipSlideInFromLeft 150ms var(--ease-out-quint);
819
+ --animate-tooltip-slide-in-from-right: tooltipSlideInFromRight 150ms var(--ease-out-quint);
820
+ --animate-accordion-down: accordionDown 200ms var(--ease-out-quint);
821
+ --animate-accordion-up: accordionUp 200ms var(--ease-out-quint);
816
822
 
817
823
  /* ========================================
818
824
  * Z-INDEX