@floegence/floe-webapp-core 0.52.2 → 0.52.4

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/surface.css CHANGED
@@ -409,20 +409,50 @@
409
409
  @media (forced-colors: none) {
410
410
  :root[data-floe-surface-style='soft-neumorphic']:not([data-floe-shell-theme='hc-light'])
411
411
  [data-floe-floating-window-surface='true'][data-floe-surface='floating'] {
412
+ --floe-window-radius: 10px;
412
413
  background: var(--floe-window-background);
413
414
  color: var(--floe-window-foreground);
414
415
  --muted-foreground: var(--floe-window-muted-foreground);
415
416
  border-color: var(--floe-window-border);
416
417
  --floe-surface-decoration: var(--floe-window-shadow);
418
+ border-radius: var(--floe-window-radius);
417
419
 
418
420
  & [data-floe-floating-window-titlebar='true'] {
419
- background: var(--floe-window-titlebar-background);
420
- border-bottom-color: transparent;
421
+ position: relative;
422
+ background-color: var(--floe-window-titlebar-background);
423
+ background-image: none;
424
+ border-bottom-color: var(--floe-surface-divider);
421
425
  color: var(--floe-window-foreground);
422
426
  transition: none;
427
+ border-radius: calc(var(--floe-window-radius) - 1px) calc(var(--floe-window-radius) - 1px) 0 0;
428
+ }
429
+ & [data-floe-floating-window-titlebar='true']::before {
430
+ content: '';
431
+ position: absolute;
432
+ inset: 0 14px auto;
433
+ height: 1px;
434
+ background: linear-gradient(
435
+ 90deg,
436
+ transparent,
437
+ color-mix(in srgb, var(--ring) 42%, transparent) 50%,
438
+ transparent
439
+ );
440
+ opacity: 0.72;
441
+ pointer-events: none;
423
442
  }
424
443
  &[data-floe-floating-window-state='inactive'] > [data-floe-floating-window-titlebar='true'] {
425
444
  background: color-mix(in srgb, var(--floe-window-titlebar-background) 50%, var(--floe-window-background));
445
+ background-image: none;
446
+ }
447
+ &[data-floe-floating-window-state='active'] > [data-floe-floating-window-titlebar='true'] {
448
+ background-color: color-mix(in srgb, var(--accent) 24%, var(--floe-window-titlebar-background));
449
+ }
450
+ & [data-floe-floating-window-content='true'] {
451
+ background: color-mix(in srgb, var(--floe-window-background) 96%, var(--background));
452
+ }
453
+ & [data-floe-floating-window-footer='true'] {
454
+ background: color-mix(in srgb, var(--floe-window-background) 92%, var(--muted));
455
+ border-top-color: var(--floe-surface-divider);
426
456
  }
427
457
  & > [data-floe-floating-window-titlebar='true'] button {
428
458
  transition-property: background-color, border-color, opacity;
@@ -436,6 +466,14 @@
436
466
  }
437
467
  }
438
468
 
469
+ /* Dark shell palettes use a restrained dark step for active chrome so the
470
+ * window remains discoverable without a bright outline or animated glow. */
471
+ :root.dark[data-floe-surface-style='soft-neumorphic']:not([data-floe-shell-theme='hc-light'])
472
+ [data-floe-floating-window-surface='true'][data-floe-floating-window-state='active']
473
+ > [data-floe-floating-window-titlebar='true'] {
474
+ background-color: color-mix(in srgb, var(--background) 38%, var(--floe-window-titlebar-background));
475
+ }
476
+
439
477
  /* FloatingWindow keeps rich text at scale 1 throughout its short presence
440
478
  * motion. Only presence promotes this panel; the existing geometry owner
441
479
  * already promotes direct drag/resize, so adding a second hot layer is wasteful. */
package/dist/ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AffixInput as e, Input as t, NumberInput as a, Textarea as i } from "./components/ui/Input.js";
2
- import { AnimatedBorderCard as c, Card as T, CardContent as l, CardDescription as m, CardFooter as p, CardHeader as C, CardTitle as E, Interactive3DCard as s, MorphCard as f, NeonCard as _ } from "./components/ui/Card.js";
2
+ import { AnimatedBorderCard as c, Card as T, CardContent as l, CardDescription as m, CardFooter as p, CardHeader as C, CardTitle as s, Interactive3DCard as E, MorphCard as f, NeonCard as _ } from "./components/ui/Card.js";
3
3
  import { AreaChart as A, DataBarChart as R, DataPieChart as x, LineChart as d, MonitoringChart as u } from "./components/ui/Charts.js";
4
4
  import { Button as L } from "./components/ui/Button.js";
5
5
  import { CANVAS_WHEEL_INTERACTIVE_ATTR as I, DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR as P, DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR as O, DEFAULT_WORKBENCH_TEXT_SELECTION_SURFACE_SELECTOR as W, DEFAULT_WORKBENCH_WIDGET_ACTIVATION_SURFACE_SELECTOR as D, DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR as N, LOCAL_INTERACTION_SURFACE_ATTR as v, WORKBENCH_TEXT_SELECTION_SURFACE_ATTR as h, WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR as k, WORKBENCH_WIDGET_SHELL_ATTR as B, isLocalInteractionSurfaceTarget as U, resolveSurfaceInteractionTargetRole as b, resolveSurfaceWheelRouting as H, resolveWorkbenchWidgetEventOwnership as M, resolveWorkbenchWidgetLocalTypingTarget as w, resolveWorkbenchWidgetTextSelectionTarget as y, shouldActivateWorkbenchWidgetLocalTarget as G } from "./components/ui/localInteractionSurface.js";
@@ -7,7 +7,7 @@ import { Checkbox as V, CheckboxGroup as z, CheckboxList as j } from "./componen
7
7
  import { CircularProgress as Y, LinearProgress as Q, SegmentedProgress as Z, StepsProgress as q } from "./components/ui/Progress.js";
8
8
  import { CommandPalette as $ } from "./components/ui/CommandPalette.js";
9
9
  import { ConfirmDialog as or, Dialog as er } from "./components/ui/Dialog.js";
10
- import { DIALOG_SURFACE_BOUNDARY_ATTR as ar, DIALOG_SURFACE_HOST_ATTR as ir, SURFACE_PORTAL_HOST_ATTR as nr, SURFACE_PORTAL_LAYER_ATTR as cr, __resetSurfacePortalScopeForTests as Tr, ensureSurfacePortalInteractionTracking as lr, isSurfacePortalMode as mr, projectSurfacePortalPosition as pr, projectSurfacePortalRect as Cr, resolveSurfacePortalBoundaryRect as Er, resolveSurfacePortalHost as sr, resolveSurfacePortalMount as fr, resolveSurfacePortalMountRect as _r } from "./components/ui/dialogSurfaceScope.js";
10
+ import { DIALOG_SURFACE_BOUNDARY_ATTR as ar, DIALOG_SURFACE_HOST_ATTR as ir, SURFACE_PORTAL_HOST_ATTR as nr, SURFACE_PORTAL_LAYER_ATTR as cr, __resetSurfacePortalScopeForTests as Tr, ensureSurfacePortalInteractionTracking as lr, isSurfacePortalMode as mr, projectSurfacePortalPosition as pr, projectSurfacePortalRect as Cr, resolveSurfacePortalBoundaryRect as sr, resolveSurfacePortalHost as Er, resolveSurfacePortalMount as fr, resolveSurfacePortalMountRect as _r } from "./components/ui/dialogSurfaceScope.js";
11
11
  import { DialogPlacementProvider as Ar } from "./components/ui/DialogPlacementContext.js";
12
12
  import { DirectoryInput as xr } from "./components/ui/DirectoryInput.js";
13
13
  import { DirectoryPicker as ur } from "./components/ui/DirectoryPicker.js";
@@ -21,7 +21,7 @@ import { InfiniteCanvas as oo } from "./components/ui/InfiniteCanvas.js";
21
21
  import { MENU_ITEM_SELECTOR as to, focusMenuItem as ao, getMenuItems as io, handleMenuKeyboardNavigation as no, moveMenuFocus as co } from "./components/ui/menuUtils.js";
22
22
  import { MobileKeyboard as lo } from "./components/ui/MobileKeyboard.js";
23
23
  import { Pagination as po } from "./components/ui/Pagination.js";
24
- import { PickerNavigationError as Eo, createFilesystemPickerDataSource as so, formatPickerPath as fo, parsePickerPath as _o } from "./components/ui/picker/PickerNavigation.js";
24
+ import { PickerNavigationError as so, createFilesystemPickerDataSource as Eo, formatPickerPath as fo, parsePickerPath as _o } from "./components/ui/picker/PickerNavigation.js";
25
25
  import { ProcessingIndicator as Ao } from "./components/ui/ProcessingIndicator.js";
26
26
  import { QuoteBlock as xo } from "./components/ui/QuoteBlock.js";
27
27
  import { RadioGroup as Fo, RadioList as Lo, RadioOption as go } from "./components/ui/Radio.js";
@@ -34,8 +34,9 @@ import { Tag as wo } from "./components/ui/Tag.js";
34
34
  import { Tooltip as Go } from "./components/ui/Tooltip.js";
35
35
  import { clientToCanvasLocal as Vo, clientToCanvasWorld as zo, createViewportFromZoomAnchor as jo, isPointInsideCanvasRect as Xo, localToCanvasWorld as Yo } from "./components/ui/canvasGeometry.js";
36
36
  import { createFloatingPresence as Zo } from "./components/ui/floatingPresence.js";
37
- import { resolveFloatingWindowViewport as Jo } from "./components/ui/floatingWindowGeometry.js";
38
- import { startPointerSession as re } from "./components/ui/pointerSession.js";
37
+ import { intersectSurfaceRects as Jo } from "./components/ui/surfaceFloatingBoundary.js";
38
+ import { resolveFloatingWindowViewport as re } from "./components/ui/floatingWindowGeometry.js";
39
+ import { startPointerSession as ee } from "./components/ui/pointerSession.js";
39
40
  export {
40
41
  e as AffixInput,
41
42
  c as AnimatedBorderCard,
@@ -47,7 +48,7 @@ export {
47
48
  m as CardDescription,
48
49
  p as CardFooter,
49
50
  C as CardHeader,
50
- E as CardTitle,
51
+ s as CardTitle,
51
52
  V as Checkbox,
52
53
  z as CheckboxGroup,
53
54
  j as CheckboxList,
@@ -86,7 +87,7 @@ export {
86
87
  oo as InfiniteCanvas,
87
88
  Wr as InfoBlock,
88
89
  t as Input,
89
- s as Interactive3DCard,
90
+ E as Interactive3DCard,
90
91
  v as LOCAL_INTERACTION_SURFACE_ATTR,
91
92
  d as LineChart,
92
93
  Q as LinearProgress,
@@ -98,7 +99,7 @@ export {
98
99
  Dr as NoteBlock,
99
100
  a as NumberInput,
100
101
  po as Pagination,
101
- Eo as PickerNavigationError,
102
+ so as PickerNavigationError,
102
103
  Ao as ProcessingIndicator,
103
104
  xo as QuoteBlock,
104
105
  Fo as RadioGroup,
@@ -128,7 +129,7 @@ export {
128
129
  Tr as __resetSurfacePortalScopeForTests,
129
130
  Vo as clientToCanvasLocal,
130
131
  zo as clientToCanvasWorld,
131
- so as createFilesystemPickerDataSource,
132
+ Eo as createFilesystemPickerDataSource,
132
133
  Zo as createFloatingPresence,
133
134
  jo as createViewportFromZoomAnchor,
134
135
  lr as ensureSurfacePortalInteractionTracking,
@@ -136,6 +137,7 @@ export {
136
137
  fo as formatPickerPath,
137
138
  io as getMenuItems,
138
139
  no as handleMenuKeyboardNavigation,
140
+ Jo as intersectSurfaceRects,
139
141
  U as isLocalInteractionSurfaceTarget,
140
142
  Xo as isPointInsideCanvasRect,
141
143
  mr as isSurfacePortalMode,
@@ -145,10 +147,10 @@ export {
145
147
  _o as parsePickerPath,
146
148
  pr as projectSurfacePortalPosition,
147
149
  Cr as projectSurfacePortalRect,
148
- Jo as resolveFloatingWindowViewport,
150
+ re as resolveFloatingWindowViewport,
149
151
  b as resolveSurfaceInteractionTargetRole,
150
- Er as resolveSurfacePortalBoundaryRect,
151
- sr as resolveSurfacePortalHost,
152
+ sr as resolveSurfacePortalBoundaryRect,
153
+ Er as resolveSurfacePortalHost,
152
154
  fr as resolveSurfacePortalMount,
153
155
  _r as resolveSurfacePortalMountRect,
154
156
  H as resolveSurfaceWheelRouting,
@@ -156,7 +158,7 @@ export {
156
158
  w as resolveWorkbenchWidgetLocalTypingTarget,
157
159
  y as resolveWorkbenchWidgetTextSelectionTarget,
158
160
  G as shouldActivateWorkbenchWidgetLocalTarget,
159
- re as startPointerSession,
161
+ ee as startPointerSession,
160
162
  br as updateFileOpenSelection,
161
163
  $r as useFormSubmitting,
162
164
  No as useWizard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.52.2",
3
+ "version": "0.52.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",