@floegence/floe-webapp-core 0.101.5 → 0.101.10

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
@@ -216,21 +216,60 @@
216
216
  }
217
217
  }
218
218
 
219
- /* One filled face travels between segmented choices. Labels and native state
220
- * update immediately; only this decorative face moves, including on reversal. */
219
+ /* Native labels retain rail ink. The travelling face clips a second ink layer
220
+ * against its fill, keeping text readable throughout movement and reversal. */
221
221
  .floe-segmented-control__pill {
222
- position: absolute; inset: 0 auto auto 0; pointer-events: none;
222
+ position: absolute;
223
+ inset: 0 auto auto 0;
224
+ pointer-events: none;
223
225
  border: 1px solid var(--primary);
224
226
  background: var(--primary);
227
+ overflow: hidden;
228
+ z-index: 1;
229
+ }
230
+ .floe-segmented-control__ink {
231
+ position: absolute;
232
+ inset: -1px auto auto -1px;
233
+ font-weight: 500;
234
+ color: var(--segmented-control-item-active-color);
225
235
  }
226
- :root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item[aria-checked='true'] {
227
- background: transparent; border-color: transparent; box-shadow: none;
236
+ .floe-segmented-control__ink-label {
237
+ position: absolute;
238
+ display: flex;
239
+ align-items: center;
240
+ justify-content: center;
241
+ white-space: nowrap;
242
+ }
243
+ :root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item {
244
+ color: var(--segmented-control-item-color);
245
+ transition-property: background-color, border-color, box-shadow;
246
+ }
247
+ :root
248
+ .floe-segmented-control[data-floe-segmented-pill]
249
+ .floe-segmented-control__item[aria-checked='true'] {
250
+ background: transparent;
251
+ border-color: transparent;
252
+ box-shadow: none;
228
253
  }
229
254
  @media (prefers-reduced-motion: reduce) {
230
- .floe-segmented-control__pill { transition: none; }
255
+ .floe-segmented-control__pill {
256
+ transition: none;
257
+ }
231
258
  }
232
259
  @media (forced-colors: active) {
233
- .floe-segmented-control__pill { background: Highlight; border-color: Highlight; forced-color-adjust: none; transition: none; }
260
+ .floe-segmented-control__ink {
261
+ color: HighlightText;
262
+ forced-color-adjust: none;
263
+ }
264
+ :root .floe-segmented-control[data-floe-segmented-pill] .floe-segmented-control__item {
265
+ color: ButtonText;
266
+ }
267
+ .floe-segmented-control__pill {
268
+ background: Highlight;
269
+ border-color: Highlight;
270
+ forced-color-adjust: none;
271
+ transition: none;
272
+ }
234
273
  }
235
274
 
236
275
  /* A compound input has one decorative boundary, including host compositions
package/dist/ui.css CHANGED
@@ -1950,3 +1950,31 @@
1950
1950
  @media (prefers-reduced-motion: reduce) { .floe-theme-picker button { transition: none; } .floe-theme-picker button::after { animation: none; } }
1951
1951
  @media (forced-colors: active) { .floe-theme-picker [aria-checked='true'] { outline: 2px solid Highlight; outline-offset: -2px; } }
1952
1952
  }
1953
+
1954
+ @layer components {
1955
+ .floe-settings-disclosure { min-width: 0; }
1956
+ .floe-settings-disclosure[hidden] { display: none; }
1957
+ .floe-settings-disclosure__trigger {
1958
+ display: flex; align-items: center; justify-content: space-between; gap: 12px;
1959
+ width: 100%; padding: 12px; text-align: start; cursor: pointer; border-radius: inherit;
1960
+ color: var(--foreground); font-size: var(--floe-type-control); line-height: var(--floe-line-control);
1961
+ transition: background-color var(--floe-duration-fast) var(--floe-ease-out);
1962
+ }
1963
+ .floe-settings-disclosure__trigger:hover { background: var(--muted); }
1964
+ .floe-settings-disclosure__trigger:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
1965
+ .floe-settings-disclosure__trigger:disabled { opacity: .5; cursor: not-allowed; }
1966
+ .floe-settings-disclosure__heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
1967
+ .floe-settings-disclosure__description { color: var(--muted-foreground); font-size: var(--floe-type-supporting); font-weight: 400; }
1968
+ .floe-settings-disclosure__chevron { width: 16px; height: 16px; flex: none; color: var(--muted-foreground); transition: transform var(--floe-duration-base) var(--floe-ease-out); }
1969
+ .floe-settings-disclosure[data-open='true'] > .floe-settings-disclosure__trigger > .floe-settings-disclosure__chevron { transform: rotate(90deg); }
1970
+ .floe-settings-disclosure__panel {
1971
+ display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0;
1972
+ transition: grid-template-rows var(--floe-duration-base) var(--floe-ease-out), opacity var(--floe-duration-fast) var(--floe-ease-out), visibility var(--floe-duration-base);
1973
+ }
1974
+ .floe-settings-disclosure[data-open='true'] > .floe-settings-disclosure__panel { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
1975
+ .floe-settings-disclosure__clip { min-height: 0; overflow: hidden; }
1976
+ .floe-settings-disclosure__content { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-top: 1px solid var(--border); min-width: 0; }
1977
+ @media (prefers-reduced-motion: reduce) {
1978
+ .floe-settings-disclosure__panel, .floe-settings-disclosure__chevron, .floe-settings-disclosure__trigger { transition: none; }
1979
+ }
1980
+ }
package/dist/ui.js CHANGED
@@ -2,7 +2,7 @@ import { createTextSearch as r, findTextRanges as t } from "./components/ui/text
2
2
  import { TextSearchBar as n } from "./components/ui/TextSearchBar.js";
3
3
  import { Accordion as c } from "./components/ui/Accordion.js";
4
4
  import { AffixInput as m, Input as p, NumberInput as f, Textarea as T } from "./components/ui/Input.js";
5
- import { AreaChart as s, DataBarChart as C, DataPieChart as S, LineChart as d, MonitoringChart as E } from "./components/ui/Charts.js";
5
+ import { AreaChart as x, DataBarChart as C, DataPieChart as S, LineChart as d, MonitoringChart as E } from "./components/ui/Charts.js";
6
6
  import { Breadcrumb as A } from "./components/ui/Breadcrumb.js";
7
7
  import { Button as _ } from "./components/ui/Button.js";
8
8
  import { CANVAS_WHEEL_INTERACTIVE_ATTR as F, DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR as P, DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR as L, DEFAULT_WORKBENCH_TEXT_SELECTION_SURFACE_SELECTOR as I, DEFAULT_WORKBENCH_WIDGET_ACTIVATION_SURFACE_SELECTOR as b, DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR as D, LOCAL_INTERACTION_SURFACE_ATTR as O, WORKBENCH_TEXT_SELECTION_SURFACE_ATTR as h, WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR as W, WORKBENCH_WIDGET_SHELL_ATTR as k, isLocalInteractionSurfaceTarget as v, resolveSurfaceInteractionTargetRole as N, resolveSurfaceWheelRouting as B, resolveWorkbenchWidgetEventOwnership as H, resolveWorkbenchWidgetLocalTypingTarget as M, resolveWorkbenchWidgetTextSelectionTarget as U, shouldActivateWorkbenchWidgetLocalTarget as y } from "./components/ui/localInteractionSurface.js";
@@ -12,7 +12,7 @@ import { Checkbox as q, CheckboxGroup as J, CheckboxList as $ } from "./componen
12
12
  import { CircularProgress as oe, LinearProgress as re, SegmentedProgress as te, StepsProgress as ae } from "./components/ui/Progress.js";
13
13
  import { Combobox as ie, MultiSelect as ce, Select as le } from "./components/ui/Select.js";
14
14
  import { CommandPalette as pe } from "./components/ui/CommandPalette.js";
15
- import { ConfirmDialog as Te, Dialog as xe } from "./components/ui/Dialog.js";
15
+ import { ConfirmDialog as Te, Dialog as se } from "./components/ui/Dialog.js";
16
16
  import { ContextMenuActionIcon as Ce, ContextMenuActionItems as Se, ContextMenuActions as de, useContextMenuActions as Ee } from "./components/ui/ContextMenuActions.js";
17
17
  import { DIALOG_SURFACE_BOUNDARY_ATTR as Ae, DIALOG_SURFACE_HOST_ATTR as Re, SURFACE_PORTAL_HOST_ATTR as _e, SURFACE_PORTAL_LAYER_ATTR as ge, __resetSurfacePortalScopeForTests as Fe, ensureSurfacePortalInteractionTracking as Pe, isSurfacePortalMode as Le, projectSurfacePortalPosition as Ie, projectSurfacePortalRect as be, resolveSurfacePortalBoundaryRect as De, resolveSurfacePortalHost as Oe, resolveSurfacePortalMount as he, resolveSurfacePortalMountRect as We } from "./components/ui/dialogSurfaceScope.js";
18
18
  import { DataTable as ve } from "./components/ui/DataTable.js";
@@ -27,7 +27,7 @@ import { FeedbackIndicator as to } from "./components/ui/FeedbackIndicator.js";
27
27
  import { FileOpenPicker as no, normalizeFileOpenSelection as io, updateFileOpenSelection as co } from "./components/ui/FileOpenPicker.js";
28
28
  import { FileSavePicker as mo } from "./components/ui/FileSavePicker.js";
29
29
  import { FloatingWindow as fo } from "./components/ui/FloatingWindow.js";
30
- import { Form as xo, FormActions as so, FormControl as Co, FormDescription as So, FormDivider as Eo, FormField as uo, FormLabel as Ao, FormMessage as Ro, FormRow as _o, FormSection as go, useFormSubmitting as Fo } from "./components/ui/Form.js";
30
+ import { Form as so, FormActions as xo, FormControl as Co, FormDescription as So, FormDivider as Eo, FormField as uo, FormLabel as Ao, FormMessage as Ro, FormRow as _o, FormSection as go, useFormSubmitting as Fo } from "./components/ui/Form.js";
31
31
  import { InfiniteCanvas as Lo } from "./components/ui/InfiniteCanvas.js";
32
32
  import { KeyedFor as bo } from "./components/ui/KeyedFor.js";
33
33
  import { MENU_ITEM_SELECTOR as Oo, focusMenuItem as ho, getMenuItems as Wo, handleMenuKeyboardNavigation as ko, moveMenuFocus as vo } from "./components/ui/menuUtils.js";
@@ -42,36 +42,37 @@ import { QuoteBlock as er } from "./components/ui/QuoteBlock.js";
42
42
  import { RadioGroup as rr, RadioList as tr, RadioOption as ar } from "./components/ui/Radio.js";
43
43
  import { RetainedPanel as ir } from "./components/ui/RetainedPanel.js";
44
44
  import { SegmentedControl as lr } from "./components/ui/SegmentedControl.js";
45
- import { SettingRow as pr, SettingsLayout as fr, SettingsList as Tr, SettingsNavigation as xr, SettingsSection as sr } from "./components/ui/Settings.js";
46
- import { Slider as Sr } from "./components/ui/Slider.js";
47
- import { StableText as Er } from "./components/ui/StableText.js";
48
- import { StatusRegion as Ar } from "./components/ui/StatusRegion.js";
49
- import { Stepper as _r, Wizard as gr, useWizard as Fr } from "./components/ui/Stepper.js";
50
- import { SurfaceAnchoredLayer as Lr } from "./components/ui/SurfaceAnchoredLayer.js";
51
- import { SurfaceFloatingLayer as br } from "./components/ui/SurfaceFloatingLayer.js";
52
- import { SurfaceFloatingPanel as Or } from "./components/ui/SurfaceFloatingPanel.js";
53
- import { Switch as Wr } from "./components/ui/Switch.js";
54
- import { TabPanel as vr, Tabs as Nr } from "./components/ui/Tabs.js";
55
- import { Table as Hr, TableBody as Mr, TableCaption as Ur, TableCell as yr, TableFooter as wr, TableHead as Kr, TableHeader as Vr, TableRow as Gr } from "./components/ui/Table.js";
56
- import { Tag as jr } from "./components/ui/Tag.js";
57
- import { ThemePicker as Yr } from "./components/ui/ThemePicker.js";
58
- import { Tooltip as Zr } from "./components/ui/Tooltip.js";
59
- import { WindowTabs as Jr } from "./components/ui/WindowTabs.js";
60
- import { addCalendarDays as et, addCalendarMonths as ot, calendarDays as rt, formatCalendarDate as tt, parseCalendarDate as at } from "./components/ui/calendarModel.js";
61
- import { clientToCanvasLocal as it, clientToCanvasWorld as ct, createViewportFromZoomAnchor as lt, isPointInsideCanvasRect as mt, localToCanvasWorld as pt } from "./components/ui/canvasGeometry.js";
62
- import { createContextSourceRegistry as Tt } from "./components/ui/contextSource.js";
63
- import { createControllableValue as st } from "./components/ui/controllable.js";
64
- import { createFloatingPresence as St } from "./components/ui/floatingPresence.js";
65
- import { createTableModel as Et } from "./components/ui/dataTableModel.js";
66
- import { intersectSurfaceRects as At } from "./components/ui/surfaceFloatingBoundary.js";
67
- import { joinAriaIds as _t, useFormControl as gt, useFormField as Ft } from "./components/ui/formFieldContext.js";
68
- import { observeDialogHeight as Lt } from "./components/ui/dialogHeightMotion.js";
69
- import { resolveFloatingWindowViewport as bt } from "./components/ui/floatingWindowGeometry.js";
70
- import { startPointerSession as Ot } from "./components/ui/pointerSession.js";
45
+ import { SettingRow as pr, SettingsLayout as fr, SettingsList as Tr, SettingsNavigation as sr, SettingsSection as xr } from "./components/ui/Settings.js";
46
+ import { SettingsDisclosure as Sr } from "./components/ui/SettingsDisclosure.js";
47
+ import { Slider as Er } from "./components/ui/Slider.js";
48
+ import { StableText as Ar } from "./components/ui/StableText.js";
49
+ import { StatusRegion as _r } from "./components/ui/StatusRegion.js";
50
+ import { Stepper as Fr, Wizard as Pr, useWizard as Lr } from "./components/ui/Stepper.js";
51
+ import { SurfaceAnchoredLayer as br } from "./components/ui/SurfaceAnchoredLayer.js";
52
+ import { SurfaceFloatingLayer as Or } from "./components/ui/SurfaceFloatingLayer.js";
53
+ import { SurfaceFloatingPanel as Wr } from "./components/ui/SurfaceFloatingPanel.js";
54
+ import { Switch as vr } from "./components/ui/Switch.js";
55
+ import { TabPanel as Br, Tabs as Hr } from "./components/ui/Tabs.js";
56
+ import { Table as Ur, TableBody as yr, TableCaption as wr, TableCell as Kr, TableFooter as Vr, TableHead as Gr, TableHeader as zr, TableRow as jr } from "./components/ui/Table.js";
57
+ import { Tag as Yr } from "./components/ui/Tag.js";
58
+ import { ThemePicker as Zr } from "./components/ui/ThemePicker.js";
59
+ import { Tooltip as Jr } from "./components/ui/Tooltip.js";
60
+ import { WindowTabs as et } from "./components/ui/WindowTabs.js";
61
+ import { addCalendarDays as rt, addCalendarMonths as tt, calendarDays as at, formatCalendarDate as nt, parseCalendarDate as it } from "./components/ui/calendarModel.js";
62
+ import { clientToCanvasLocal as lt, clientToCanvasWorld as mt, createViewportFromZoomAnchor as pt, isPointInsideCanvasRect as ft, localToCanvasWorld as Tt } from "./components/ui/canvasGeometry.js";
63
+ import { createContextSourceRegistry as xt } from "./components/ui/contextSource.js";
64
+ import { createControllableValue as St } from "./components/ui/controllable.js";
65
+ import { createFloatingPresence as Et } from "./components/ui/floatingPresence.js";
66
+ import { createTableModel as At } from "./components/ui/dataTableModel.js";
67
+ import { intersectSurfaceRects as _t } from "./components/ui/surfaceFloatingBoundary.js";
68
+ import { joinAriaIds as Ft, useFormControl as Pt, useFormField as Lt } from "./components/ui/formFieldContext.js";
69
+ import { observeDialogHeight as bt } from "./components/ui/dialogHeightMotion.js";
70
+ import { resolveFloatingWindowViewport as Ot } from "./components/ui/floatingWindowGeometry.js";
71
+ import { startPointerSession as Wt } from "./components/ui/pointerSession.js";
71
72
  export {
72
73
  c as Accordion,
73
74
  m as AffixInput,
74
- s as AreaChart,
75
+ x as AreaChart,
75
76
  A as Breadcrumb,
76
77
  _ as Button,
77
78
  F as CANVAS_WHEEL_INTERACTIVE_ATTR,
@@ -104,7 +105,7 @@ export {
104
105
  ve as DataTable,
105
106
  Be as DatePicker,
106
107
  He as DateRangePicker,
107
- xe as Dialog,
108
+ se as Dialog,
108
109
  Ue as DialogPlacementProvider,
109
110
  we as DirectoryFavoriteButton,
110
111
  Ve as DirectoryInput,
@@ -115,8 +116,8 @@ export {
115
116
  no as FileOpenPicker,
116
117
  mo as FileSavePicker,
117
118
  fo as FloatingWindow,
118
- xo as Form,
119
- so as FormActions,
119
+ so as Form,
120
+ xo as FormActions,
120
121
  Co as FormControl,
121
122
  So as FormDescription,
122
123
  Eo as FormDivider,
@@ -156,77 +157,78 @@ export {
156
157
  te as SegmentedProgress,
157
158
  le as Select,
158
159
  pr as SettingRow,
160
+ Sr as SettingsDisclosure,
159
161
  fr as SettingsLayout,
160
162
  Tr as SettingsList,
161
- xr as SettingsNavigation,
162
- sr as SettingsSection,
163
- Sr as Slider,
164
- Er as StableText,
165
- Ar as StatusRegion,
166
- _r as Stepper,
163
+ sr as SettingsNavigation,
164
+ xr as SettingsSection,
165
+ Er as Slider,
166
+ Ar as StableText,
167
+ _r as StatusRegion,
168
+ Fr as Stepper,
167
169
  ae as StepsProgress,
168
170
  $e as SuccessBlock,
169
- Lr as SurfaceAnchoredLayer,
170
- br as SurfaceFloatingLayer,
171
- Or as SurfaceFloatingPanel,
172
- Wr as Switch,
173
- vr as TabPanel,
174
- Hr as Table,
175
- Mr as TableBody,
176
- Ur as TableCaption,
177
- yr as TableCell,
178
- wr as TableFooter,
179
- Kr as TableHead,
180
- Vr as TableHeader,
181
- Gr as TableRow,
182
- Nr as Tabs,
183
- jr as Tag,
171
+ br as SurfaceAnchoredLayer,
172
+ Or as SurfaceFloatingLayer,
173
+ Wr as SurfaceFloatingPanel,
174
+ vr as Switch,
175
+ Br as TabPanel,
176
+ Ur as Table,
177
+ yr as TableBody,
178
+ wr as TableCaption,
179
+ Kr as TableCell,
180
+ Vr as TableFooter,
181
+ Gr as TableHead,
182
+ zr as TableHeader,
183
+ jr as TableRow,
184
+ Hr as Tabs,
185
+ Yr as Tag,
184
186
  n as TextSearchBar,
185
187
  T as Textarea,
186
- Yr as ThemePicker,
188
+ Zr as ThemePicker,
187
189
  eo as TipBlock,
188
- Zr as Tooltip,
190
+ Jr as Tooltip,
189
191
  h as WORKBENCH_TEXT_SELECTION_SURFACE_ATTR,
190
192
  W as WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR,
191
193
  k as WORKBENCH_WIDGET_SHELL_ATTR,
192
194
  oo as WarningBlock,
193
- Jr as WindowTabs,
194
- gr as Wizard,
195
+ et as WindowTabs,
196
+ Pr as Wizard,
195
197
  Fe as __resetSurfacePortalScopeForTests,
196
- et as addCalendarDays,
197
- ot as addCalendarMonths,
198
- rt as calendarDays,
198
+ rt as addCalendarDays,
199
+ tt as addCalendarMonths,
200
+ at as calendarDays,
199
201
  Jo as capturePromptCardAnchor,
200
- it as clientToCanvasLocal,
201
- ct as clientToCanvasWorld,
202
- Tt as createContextSourceRegistry,
203
- st as createControllableValue,
202
+ lt as clientToCanvasLocal,
203
+ mt as clientToCanvasWorld,
204
+ xt as createContextSourceRegistry,
205
+ St as createControllableValue,
204
206
  Vo as createFilesystemPickerDataSource,
205
- St as createFloatingPresence,
206
- Et as createTableModel,
207
+ Et as createFloatingPresence,
208
+ At as createTableModel,
207
209
  r as createTextSearch,
208
- lt as createViewportFromZoomAnchor,
210
+ pt as createViewportFromZoomAnchor,
209
211
  Pe as ensureSurfacePortalInteractionTracking,
210
212
  t as findTextRanges,
211
213
  ho as focusMenuItem,
212
- tt as formatCalendarDate,
214
+ nt as formatCalendarDate,
213
215
  Go as formatPickerPath,
214
216
  Wo as getMenuItems,
215
217
  ko as handleMenuKeyboardNavigation,
216
- At as intersectSurfaceRects,
218
+ _t as intersectSurfaceRects,
217
219
  v as isLocalInteractionSurfaceTarget,
218
- mt as isPointInsideCanvasRect,
220
+ ft as isPointInsideCanvasRect,
219
221
  Le as isSurfacePortalMode,
220
- _t as joinAriaIds,
221
- pt as localToCanvasWorld,
222
+ Ft as joinAriaIds,
223
+ Tt as localToCanvasWorld,
222
224
  vo as moveMenuFocus,
223
225
  io as normalizeFileOpenSelection,
224
- Lt as observeDialogHeight,
225
- at as parseCalendarDate,
226
+ bt as observeDialogHeight,
227
+ it as parseCalendarDate,
226
228
  zo as parsePickerPath,
227
229
  Ie as projectSurfacePortalPosition,
228
230
  be as projectSurfacePortalRect,
229
- bt as resolveFloatingWindowViewport,
231
+ Ot as resolveFloatingWindowViewport,
230
232
  N as resolveSurfaceInteractionTargetRole,
231
233
  De as resolveSurfacePortalBoundaryRect,
232
234
  Oe as resolveSurfacePortalHost,
@@ -237,11 +239,11 @@ export {
237
239
  M as resolveWorkbenchWidgetLocalTypingTarget,
238
240
  U as resolveWorkbenchWidgetTextSelectionTarget,
239
241
  y as shouldActivateWorkbenchWidgetLocalTarget,
240
- Ot as startPointerSession,
242
+ Wt as startPointerSession,
241
243
  co as updateFileOpenSelection,
242
244
  Ee as useContextMenuActions,
243
- gt as useFormControl,
244
- Ft as useFormField,
245
+ Pt as useFormControl,
246
+ Lt as useFormField,
245
247
  Fo as useFormSubmitting,
246
- Fr as useWizard
248
+ Lr as useWizard
247
249
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.101.5",
3
+ "version": "0.101.10",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",