@mirror-physics/fractal-ui 0.2.0-next.80 → 0.2.0-next.83

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.css CHANGED
@@ -103,6 +103,24 @@
103
103
  .fractal-button--primary:not(:disabled):active {
104
104
  background-color: var(--button-primary-active, var(--fg-primary));
105
105
  }
106
+ .fractal-button__shortcut {
107
+ display: inline-flex;
108
+ align-items: center;
109
+ gap: 2px;
110
+ padding: 1px 4px;
111
+ border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
112
+ border-radius: var(--radius-sm, 4px);
113
+ background: color-mix(in srgb, currentColor 10%, transparent);
114
+ color: inherit;
115
+ font-family: var(--font-sans);
116
+ font-size: 0.6875rem;
117
+ font-weight: 500;
118
+ line-height: 1.2;
119
+ }
120
+ .fractal-button .fractal-button__shortcut svg {
121
+ inline-size: 12px;
122
+ block-size: 12px;
123
+ }
106
124
 
107
125
  /* src/components/CodeBlock/CodeBlock.css */
108
126
  .fractal-code-block {
@@ -1773,7 +1791,7 @@
1773
1791
  }
1774
1792
  .fractal-dropdown-trigger:hover,
1775
1793
  .fractal-dropdown-trigger--tertiary:hover {
1776
- background: var(--bg-surface-1);
1794
+ background: var(--control-hover-bg, var(--hover-canvas));
1777
1795
  }
1778
1796
  .fractal-dropdown-trigger:disabled,
1779
1797
  .fractal-dropdown-trigger:disabled:hover {
@@ -3770,4 +3788,48 @@
3770
3788
  .fractal-column-editor__panel[data-dragging] .fractal-column-editor__row {
3771
3789
  cursor: grabbing;
3772
3790
  }
3791
+
3792
+ /* src/components/Tooltip/Tooltip.css */
3793
+ .fractal-tooltip {
3794
+ z-index: 10000;
3795
+ box-sizing: border-box;
3796
+ width: max-content;
3797
+ max-width: min(var(--tooltip-max-width), var(--radix-tooltip-content-available-width));
3798
+ padding: var(--space-2) var(--space-3);
3799
+ border: 1px solid var(--border-subtle);
3800
+ border-radius: var(--radius-md);
3801
+ background: var(--bg-surface-1);
3802
+ color: var(--fg-primary);
3803
+ box-shadow: var(--shadow-md);
3804
+ font-family: var(--font-sans);
3805
+ font-size: 0.75rem;
3806
+ font-weight: 400;
3807
+ line-height: 1.4;
3808
+ overflow-wrap: anywhere;
3809
+ animation: fractal-tooltip-enter var(--duration-normal) var(--ease-out);
3810
+ }
3811
+ .fractal-tooltip[data-state=closed] {
3812
+ animation: fractal-tooltip-exit var(--duration-fast) var(--ease-in) forwards;
3813
+ }
3814
+ @keyframes fractal-tooltip-enter {
3815
+ from {
3816
+ opacity: 0;
3817
+ }
3818
+ to {
3819
+ opacity: 1;
3820
+ }
3821
+ }
3822
+ @keyframes fractal-tooltip-exit {
3823
+ from {
3824
+ opacity: 1;
3825
+ }
3826
+ to {
3827
+ opacity: 0;
3828
+ }
3829
+ }
3830
+ @media (prefers-reduced-motion: reduce) {
3831
+ .fractal-tooltip {
3832
+ animation: none;
3833
+ }
3834
+ }
3773
3835
  /*# sourceMappingURL=index.css.map */