@floegence/floe-webapp-core 0.86.76 → 0.87.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/components/index.d.ts +2 -0
- package/dist/components/ui/Accordion.d.ts +16 -0
- package/dist/components/ui/Accordion.js +59 -0
- package/dist/components/ui/Breadcrumb.d.ts +14 -0
- package/dist/components/ui/Breadcrumb.js +72 -0
- package/dist/components/ui/Calendar.d.ts +17 -0
- package/dist/components/ui/Calendar.js +151 -0
- package/dist/components/ui/Checkbox.js +137 -130
- package/dist/components/ui/DataTable.d.ts +33 -0
- package/dist/components/ui/DataTable.js +269 -0
- package/dist/components/ui/DatePicker.d.ts +35 -0
- package/dist/components/ui/DatePicker.js +198 -0
- package/dist/components/ui/Dropdown.d.ts +4 -20
- package/dist/components/ui/Dropdown.js +195 -231
- package/dist/components/ui/Form.d.ts +24 -5
- package/dist/components/ui/Form.js +179 -128
- package/dist/components/ui/Input.d.ts +6 -0
- package/dist/components/ui/Input.js +237 -189
- package/dist/components/ui/Pagination.js +211 -162
- package/dist/components/ui/Popover.d.ts +6 -1
- package/dist/components/ui/Popover.js +75 -56
- package/dist/components/ui/Select.d.ts +46 -0
- package/dist/components/ui/Select.js +414 -0
- package/dist/components/ui/Slider.d.ts +7 -0
- package/dist/components/ui/Slider.js +28 -0
- package/dist/components/ui/Switch.js +41 -32
- package/dist/components/ui/Table.d.ts +9 -0
- package/dist/components/ui/Table.js +97 -0
- package/dist/components/ui/calendarModel.d.ts +6 -0
- package/dist/components/ui/calendarModel.js +37 -0
- package/dist/components/ui/controllable.d.ts +7 -0
- package/dist/components/ui/controllable.js +10 -0
- package/dist/components/ui/dataTableModel.d.ts +18 -0
- package/dist/components/ui/dataTableModel.js +18 -0
- package/dist/components/ui/formFieldContext.d.ts +26 -0
- package/dist/components/ui/formFieldContext.js +40 -0
- package/dist/components/ui/index.d.ts +13 -1
- package/dist/components/ui/picker/PickerBase.js +106 -112
- package/dist/context/LocaleContext.d.ts +55 -0
- package/dist/context/LocaleContext.js +80 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/full.d.ts +2 -0
- package/dist/full.js +776 -737
- package/dist/index.js +111 -107
- package/dist/styles.css +1 -1
- package/dist/ui.js +223 -184
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { FloeProvider as r } from "./app/FloeProvider.js";
|
|
2
|
-
import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as
|
|
2
|
+
import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as a, builtInThemes as n, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as u } from "./styles/themes/index.js";
|
|
3
3
|
import { floeColorTokenCategories as x, floeDesignTokens as g, floeFontFamilyTokens as y, floeMotionTokens as C, floeRadiusTokens as S, floeSharedCssVariables as h, floeSpacingTokens as F, floeSurfaceTokens as v, floeThemeColorVariables as P, floeTypographyTokens as k, getFloeColorTokenValue as R } from "./styles/tokens.js";
|
|
4
|
-
import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as
|
|
4
|
+
import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as L, builtInShellThemePresets as b, createShellThemePreset as _, getShellThemePresetsForMode as A, normalizeShellThemeSelection as M, presetSupportsMode as O, resolveShellThemePresetName as N } from "./styles/themes/presets.js";
|
|
5
5
|
import { CommandProvider as U, createCommandService as w, useCommand as G } from "./context/CommandContext.js";
|
|
6
6
|
import { ComponentRegistryProvider as W, createComponentRegistry as K, hasComponentRegistryContext as V, useComponentContextFactory as z, useComponentRegistry as Q, useOptionalComponentRegistry as q } from "./context/ComponentRegistry.js";
|
|
7
7
|
import { DEFAULT_FLOE_CONFIG as j, FloeConfigProvider as J, useFloeConfig as X, useResolvedFloeConfig as Z } from "./context/FloeConfigContext.js";
|
|
8
8
|
import { DeckProvider as ee, createDeckService as oe, useDeck as re } from "./context/DeckContext.js";
|
|
9
|
-
import { FLOE_GEOMETRY_SURFACE_ATTR as ie, FLOE_HOT_INTERACTION_ATTR as se, startHotInteraction as
|
|
9
|
+
import { FLOE_GEOMETRY_SURFACE_ATTR as ie, FLOE_HOT_INTERACTION_ATTR as se, startHotInteraction as ae } from "./utils/hotInteraction.js";
|
|
10
10
|
import { FileBrowserDragProvider as me, hasFileBrowserDragContext as le, useFileBrowserDrag as pe } from "./context/FileBrowserDragContext.js";
|
|
11
11
|
import { LayoutProvider as de, createLayoutService as Te, useLayout as ue, useMobileLayout as ce } from "./context/LayoutContext.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
12
|
+
import { LocaleProvider as ge, defaultFloeMessages as ye, useFloeLocale as Ce } from "./context/LocaleContext.js";
|
|
13
|
+
import { NotificationContainer as he, NotificationProvider as Fe, createNotificationService as ve, useNotification as Pe } from "./context/NotificationContext.js";
|
|
14
|
+
import { ThemeProvider as Re, createThemeService as Ie, useTheme as De } from "./context/ThemeContext.js";
|
|
15
|
+
import { ViewActivationProvider as Le, useViewActivation as be } from "./context/ViewActivationContext.js";
|
|
16
|
+
import { WidgetRegistryProvider as Ae, createWidgetRegistry as Me, useWidgetRegistry as Oe } from "./context/WidgetRegistry.js";
|
|
17
|
+
import { WidgetStateProvider as Be, useCurrentWidgetId as Ue, useWidgetState as we, useWidgetStateContext as Ge } from "./context/WidgetStateContext.js";
|
|
18
|
+
import { applyDragDelta as We, applyResizeDelta as Ke, getGridCellSize as Ve, pixelDeltaToGridDelta as ze, positionToGridArea as Qe, snapToGrid as qe } from "./utils/gridLayout.js";
|
|
19
|
+
import { calculateFitScale as je } from "./utils/fitScale.js";
|
|
20
|
+
import { checkCollision as Xe, constrainPosition as Ze, findFreePosition as $e, hasCollision as eo, sameGridPosition as oo } from "./utils/gridCollision.js";
|
|
21
|
+
import { cn as to } from "./utils/cn.js";
|
|
22
|
+
import { createAdaptiveSidebar as so } from "./hooks/createAdaptiveSidebar.js";
|
|
23
|
+
import { createRetainedContent as no } from "./hooks/createRetainedContent.js";
|
|
24
|
+
import { createSimpleContext as lo } from "./context/createSimpleContext.js";
|
|
25
|
+
import { createUIFirstSelection as fo } from "./utils/uiFirstSelection.js";
|
|
26
|
+
import { deferAfterPaint as uo, deferNonBlocking as co } from "./utils/defer.js";
|
|
27
|
+
import { duration as go, easing as yo, fadeIn as Co, listContainer as So, listItem as ho, panelResize as Fo, popIn as vo, scaleIn as Po, sidebarVariants as ko, slideInFromBottom as Ro, slideInFromLeft as Io, slideInFromRight as Do, slideInFromTop as Eo, springConfig as Lo } from "./utils/animations.js";
|
|
28
|
+
import { formatKeybind as _o, isMacLikePlatform as Ao, isPrimaryModKeyPressed as Mo, matchKeybind as Oo, parseKeybind as No } from "./utils/keybind.js";
|
|
29
|
+
import { isTypingElement as Uo, shouldIgnoreHotkeys as wo } from "./utils/dom.js";
|
|
30
|
+
import { lockBodyStyle as Ho } from "./utils/bodyStyleLock.js";
|
|
31
|
+
import { registerCommandContributions as Ko, useCommandContributions as Vo } from "./hooks/useCommandContributions.js";
|
|
32
|
+
import { secureRandomUUID as Qo } from "./utils/secureRandom.js";
|
|
33
|
+
import { useDebounce as Yo } from "./hooks/useDebounce.js";
|
|
34
|
+
import { useDeckDrag as Jo } from "./hooks/useDeckDrag.js";
|
|
35
|
+
import { useFileBrowserDropTarget as Zo, useFileBrowserItemDrag as $o } from "./hooks/useFileBrowserDrag.js";
|
|
36
|
+
import { useKeybind as or } from "./hooks/useKeybind.js";
|
|
37
|
+
import { useMediaQuery as tr } from "./hooks/useMediaQuery.js";
|
|
38
|
+
import { useOverlayMask as sr } from "./hooks/useOverlayMask.js";
|
|
39
|
+
import { usePersisted as nr } from "./hooks/usePersisted.js";
|
|
40
|
+
import { useResizeObserver as lr } from "./hooks/useResizeObserver.js";
|
|
40
41
|
export {
|
|
41
42
|
D as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
42
43
|
U as CommandProvider,
|
|
@@ -49,43 +50,45 @@ export {
|
|
|
49
50
|
J as FloeConfigProvider,
|
|
50
51
|
r as FloeProvider,
|
|
51
52
|
de as LayoutProvider,
|
|
52
|
-
ge as
|
|
53
|
-
|
|
53
|
+
ge as LocaleProvider,
|
|
54
|
+
he as NotificationContainer,
|
|
55
|
+
Fe as NotificationProvider,
|
|
54
56
|
E as REQUIRED_SHELL_THEME_TOKENS,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
Re as ThemeProvider,
|
|
58
|
+
Le as ViewActivationProvider,
|
|
59
|
+
Ae as WidgetRegistryProvider,
|
|
60
|
+
Be as WidgetStateProvider,
|
|
61
|
+
We as applyDragDelta,
|
|
62
|
+
Ke as applyResizeDelta,
|
|
61
63
|
i as applyShellThemeAttribute,
|
|
62
64
|
s as applySurfaceStyleAttribute,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
a as applyTheme,
|
|
66
|
+
L as assertUniqueThemePresetNames,
|
|
67
|
+
b as builtInShellThemePresets,
|
|
68
|
+
n as builtInThemes,
|
|
69
|
+
je as calculateFitScale,
|
|
70
|
+
Xe as checkCollision,
|
|
71
|
+
to as cn,
|
|
72
|
+
Ze as constrainPosition,
|
|
73
|
+
so as createAdaptiveSidebar,
|
|
72
74
|
w as createCommandService,
|
|
73
75
|
K as createComponentRegistry,
|
|
74
76
|
oe as createDeckService,
|
|
75
77
|
Te as createLayoutService,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
ve as createNotificationService,
|
|
79
|
+
no as createRetainedContent,
|
|
78
80
|
_ as createShellThemePreset,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
lo as createSimpleContext,
|
|
82
|
+
Ie as createThemeService,
|
|
83
|
+
fo as createUIFirstSelection,
|
|
84
|
+
Me as createWidgetRegistry,
|
|
85
|
+
ye as defaultFloeMessages,
|
|
86
|
+
uo as deferAfterPaint,
|
|
87
|
+
co as deferNonBlocking,
|
|
88
|
+
go as duration,
|
|
89
|
+
yo as easing,
|
|
90
|
+
Co as fadeIn,
|
|
91
|
+
$e as findFreePosition,
|
|
89
92
|
x as floeColorTokenCategories,
|
|
90
93
|
g as floeDesignTokens,
|
|
91
94
|
y as floeFontFamilyTokens,
|
|
@@ -96,73 +99,74 @@ export {
|
|
|
96
99
|
v as floeSurfaceTokens,
|
|
97
100
|
P as floeThemeColorVariables,
|
|
98
101
|
k as floeTypographyTokens,
|
|
99
|
-
|
|
102
|
+
_o as formatKeybind,
|
|
100
103
|
R as getFloeColorTokenValue,
|
|
101
|
-
|
|
104
|
+
Ve as getGridCellSize,
|
|
102
105
|
A as getShellThemePresetsForMode,
|
|
103
106
|
m as getSystemTheme,
|
|
104
|
-
|
|
107
|
+
eo as hasCollision,
|
|
105
108
|
V as hasComponentRegistryContext,
|
|
106
109
|
le as hasFileBrowserDragContext,
|
|
107
110
|
l as isFloeSurfaceStyle,
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
Ao as isMacLikePlatform,
|
|
112
|
+
Mo as isPrimaryModKeyPressed,
|
|
110
113
|
p as isThemeType,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
Uo as isTypingElement,
|
|
115
|
+
So as listContainer,
|
|
116
|
+
ho as listItem,
|
|
117
|
+
Ho as lockBodyStyle,
|
|
118
|
+
Oo as matchKeybind,
|
|
116
119
|
f as mergeThemeTokenMaps,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
M as normalizeShellThemeSelection,
|
|
121
|
+
Fo as panelResize,
|
|
122
|
+
No as parseKeybind,
|
|
123
|
+
ze as pixelDeltaToGridDelta,
|
|
124
|
+
vo as popIn,
|
|
125
|
+
Qe as positionToGridArea,
|
|
126
|
+
O as presetSupportsMode,
|
|
127
|
+
Ko as registerCommandContributions,
|
|
125
128
|
N as resolveShellThemePresetName,
|
|
126
129
|
d as resolveThemeTokenOverrides,
|
|
127
130
|
T as resolveThemeTokens,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
131
|
+
oo as sameGridPosition,
|
|
132
|
+
Po as scaleIn,
|
|
133
|
+
Qo as secureRandomUUID,
|
|
134
|
+
wo as shouldIgnoreHotkeys,
|
|
135
|
+
ko as sidebarVariants,
|
|
136
|
+
Ro as slideInFromBottom,
|
|
137
|
+
Io as slideInFromLeft,
|
|
138
|
+
Do as slideInFromRight,
|
|
139
|
+
Eo as slideInFromTop,
|
|
140
|
+
qe as snapToGrid,
|
|
141
|
+
Lo as springConfig,
|
|
142
|
+
ae as startHotInteraction,
|
|
140
143
|
u as syncThemeTokenOverrides,
|
|
141
144
|
G as useCommand,
|
|
142
|
-
|
|
145
|
+
Vo as useCommandContributions,
|
|
143
146
|
z as useComponentContextFactory,
|
|
144
147
|
Q as useComponentRegistry,
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
Ue as useCurrentWidgetId,
|
|
149
|
+
Yo as useDebounce,
|
|
147
150
|
re as useDeck,
|
|
148
|
-
|
|
151
|
+
Jo as useDeckDrag,
|
|
149
152
|
pe as useFileBrowserDrag,
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
Zo as useFileBrowserDropTarget,
|
|
154
|
+
$o as useFileBrowserItemDrag,
|
|
152
155
|
X as useFloeConfig,
|
|
153
|
-
|
|
156
|
+
Ce as useFloeLocale,
|
|
157
|
+
or as useKeybind,
|
|
154
158
|
ue as useLayout,
|
|
155
|
-
|
|
159
|
+
tr as useMediaQuery,
|
|
156
160
|
ce as useMobileLayout,
|
|
157
|
-
|
|
161
|
+
Pe as useNotification,
|
|
158
162
|
q as useOptionalComponentRegistry,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
sr as useOverlayMask,
|
|
164
|
+
nr as usePersisted,
|
|
165
|
+
lr as useResizeObserver,
|
|
162
166
|
Z as useResolvedFloeConfig,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
De as useTheme,
|
|
168
|
+
be as useViewActivation,
|
|
169
|
+
Oe as useWidgetRegistry,
|
|
170
|
+
we as useWidgetState,
|
|
171
|
+
Ge as useWidgetStateContext
|
|
168
172
|
};
|