@fibery/ui-kit 8.0.0 → 9.0.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.
@@ -0,0 +1,15 @@
1
+ import { IconBaseProps } from "../icons/types.js";
2
+ import { FunctionComponent, ReactNode } from "react";
3
+ //#region src/actions-menu/actions-menu-toggle-item.d.ts
4
+ type ActionsMenuToggleItemProps = {
5
+ checked: boolean;
6
+ onCheckedChange: (checked: boolean) => void;
7
+ Icon?: FunctionComponent<IconBaseProps>;
8
+ iconColor?: string;
9
+ disabled?: boolean;
10
+ children: ReactNode;
11
+ className?: string;
12
+ };
13
+ declare const ActionsMenuToggleItem: React.FC<ActionsMenuToggleItemProps>;
14
+ //#endregion
15
+ export { ActionsMenuToggleItem, ActionsMenuToggleItemProps };
@@ -0,0 +1,54 @@
1
+ import "./actions-menu-toggle-item.wyw-in-js.css";
2
+ import { themeVars } from "../theming.generated.js";
3
+ import { useIsPhone } from "../use-is-phone.js";
4
+ import { ToggleOnOff } from "../toggle-on-off.js";
5
+ import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
6
+ /* empty css */
7
+ import { noop } from "@fibery/helpers/src/_";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { memo } from "react";
10
+ import { cx } from "@linaria/core";
11
+ import { stopPropagation } from "@fibery/react/src/stop-propagation";
12
+ import { preventDefault } from "@fibery/react/src/prevent-default";
13
+ //#region src/actions-menu/actions-menu-toggle-item.tsx
14
+ var rowCss = "r13fgtxg-row";
15
+ var rowContentCss = "rn9ns5t-rowContent";
16
+ var cornerCss = "c1fv76hq-corner";
17
+ var toggleCornerCss = "tsyu910-toggleCorner";
18
+ var ActionsMenuToggleItem = memo(function ActionsMenuToggleItem({ checked, onCheckedChange, Icon, iconColor, disabled, children, className }) {
19
+ const { MenuPrimitive } = useActionsMenuContext();
20
+ const isPhone = useIsPhone();
21
+ return /* @__PURE__ */ jsxs(MenuPrimitive.CheckboxItem, {
22
+ checked,
23
+ onCheckedChange,
24
+ onSelect: preventDefault,
25
+ onClick: stopPropagation,
26
+ className: cx(rowCss, className),
27
+ disabled,
28
+ children: [
29
+ Icon && /* @__PURE__ */ jsx("div", {
30
+ className: cornerCss,
31
+ children: /* @__PURE__ */ jsx(Icon, {
32
+ color: `var(--actions-menu-item-icon-color, ${iconColor ?? themeVars.iconColor})`,
33
+ iconSize: isPhone ? 20 : 18
34
+ })
35
+ }),
36
+ /* @__PURE__ */ jsx("div", {
37
+ className: rowContentCss,
38
+ children
39
+ }),
40
+ /* @__PURE__ */ jsx("div", {
41
+ className: cx(cornerCss, toggleCornerCss),
42
+ "aria-hidden": true,
43
+ children: /* @__PURE__ */ jsx(ToggleOnOff, {
44
+ value: checked,
45
+ onChange: noop,
46
+ tabIndex: -1,
47
+ disabled
48
+ })
49
+ })
50
+ ]
51
+ });
52
+ });
53
+ //#endregion
54
+ export { ActionsMenuToggleItem };
@@ -0,0 +1,4 @@
1
+ .r13fgtxg-row{display:flex;align-items:center;min-height:var(--fibery-layout-menuItemHeight);gap:6px;}.fibery-mobile .r13fgtxg-row{gap:8px;}
2
+ .rn9ns5t-rowContent{flex-grow:1;}
3
+ .c1fv76hq-corner{display:flex;align-items:center;}
4
+ .tsyu910-toggleCorner{pointer-events:none;}
@@ -3,6 +3,7 @@ import { ActionsMenuItem } from "./actions-menu-item.js";
3
3
  import { $TSFixMe } from "../tsfixme.js";
4
4
  import { ActionsMenuSeparator } from "./actions-menu-separator.js";
5
5
  import { ActionsMenuSubMenu } from "./actions-menu-sub-menu.js";
6
+ import { ActionsMenuToggleItem } from "./actions-menu-toggle-item.js";
6
7
  import { ActionsMenu } from "./actions-menu.js";
7
8
  import { AsyncActionsMenuItem } from "./async-actions-menu-item.js";
8
9
  import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
@@ -11,4 +12,4 @@ import { insertSeparators } from "./utils/insert-separators.js";
11
12
  declare const ActionsMenuGroup: (props: $TSFixMe) => import("react/jsx-runtime").JSX.Element;
12
13
  declare const ActionsMenuLabel: (props: $TSFixMe) => import("react/jsx-runtime").JSX.Element;
13
14
  //#endregion
14
- export { ActionsMenu, ActionsMenuCheckboxItem, ActionsMenuGroup, ActionsMenuItem, ActionsMenuLabel, ActionsMenuSeparator, ActionsMenuSubMenu, AsyncActionsMenuItem, insertSeparators, useActionsMenuContext };
15
+ export { ActionsMenu, ActionsMenuCheckboxItem, ActionsMenuGroup, ActionsMenuItem, ActionsMenuLabel, ActionsMenuSeparator, ActionsMenuSubMenu, ActionsMenuToggleItem, AsyncActionsMenuItem, insertSeparators, useActionsMenuContext };
@@ -2,6 +2,7 @@ import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
2
2
  import { ActionsMenu } from "./actions-menu.js";
3
3
  import { ActionsMenuItem } from "./actions-menu-item.js";
4
4
  import { ActionsMenuCheckboxItem } from "./actions-menu-checkbox-item.js";
5
+ import { ActionsMenuToggleItem } from "./actions-menu-toggle-item.js";
5
6
  import { AsyncActionsMenuItem } from "./async-actions-menu-item.js";
6
7
  import { ActionsMenuSubMenu } from "./actions-menu-sub-menu.js";
7
8
  import { ActionsMenuSeparator } from "./actions-menu-separator.js";
@@ -17,4 +18,4 @@ var ActionsMenuLabel = (props) => {
17
18
  return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...props });
18
19
  };
19
20
  //#endregion
20
- export { ActionsMenu, ActionsMenuCheckboxItem, ActionsMenuGroup, ActionsMenuItem, ActionsMenuLabel, ActionsMenuSeparator, ActionsMenuSubMenu, AsyncActionsMenuItem, insertSeparators, useActionsMenuContext };
21
+ export { ActionsMenu, ActionsMenuCheckboxItem, ActionsMenuGroup, ActionsMenuItem, ActionsMenuLabel, ActionsMenuSeparator, ActionsMenuSubMenu, ActionsMenuToggleItem, AsyncActionsMenuItem, insertSeparators, useActionsMenuContext };
@@ -21,6 +21,7 @@ var PrefixedInputNumber = forwardRef(function PrefixedInputNumber(props, ref) {
21
21
  prefixCls: "ant-input-number",
22
22
  upHandler: upNode,
23
23
  downHandler: downNode,
24
+ wheel: false,
24
25
  ...props,
25
26
  ref
26
27
  });
@@ -50,6 +50,9 @@ declare function defsFromPalette({ key, whiteA, white, blackA, blackish, black,
50
50
  readonly colorBgAIFloatingLauncher: [string, string];
51
51
  readonly colorBgAIFloatingPanelContent: [string, string];
52
52
  readonly colorBgAISidebarContent: [string, string];
53
+ readonly gradientBgAIGeneration: readonly ["radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)", "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)"];
54
+ readonly gradientBgAIHighlight: readonly ["radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)", "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)"];
55
+ readonly gradientBgAILoader: readonly ["linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)", "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)"];
53
56
  readonly colorBgFloatingPanel: [string, string];
54
57
  readonly shadowFloatingPanel: [string, string];
55
58
  readonly pageContentBg: [string, string];
@@ -655,6 +658,9 @@ declare function sideFromDefs(defs: ThemeDefs, mode: ThemeMode): {
655
658
  readonly colorBgAIFloatingLauncher: string;
656
659
  readonly colorBgAIFloatingPanelContent: string;
657
660
  readonly colorBgAISidebarContent: string;
661
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
662
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
663
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
658
664
  readonly colorBgFloatingPanel: string;
659
665
  readonly shadowFloatingPanel: string;
660
666
  readonly pageContentBg: string;
@@ -311,6 +311,9 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
311
311
  colorBgAIFloatingLauncher: surface.level1_4,
312
312
  colorBgAIFloatingPanelContent: surface.level1_3,
313
313
  colorBgAISidebarContent: surface.level1,
314
+ gradientBgAIGeneration: ["radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)", "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)"],
315
+ gradientBgAIHighlight: ["radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)", "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)"],
316
+ gradientBgAILoader: ["linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)", "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)"],
314
317
  colorBgFloatingPanel: floatingPanel.bg,
315
318
  shadowFloatingPanel: floatingPanel.shadow,
316
319
  pageContentBg: surface.level0elevated,
@@ -54,6 +54,9 @@ declare function themeFromDefs(defs: ThemeDefs, mode: ThemeMode, ns?: string): {
54
54
  readonly colorBgAIFloatingLauncher: string;
55
55
  readonly colorBgAIFloatingPanelContent: string;
56
56
  readonly colorBgAISidebarContent: string;
57
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
58
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
59
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
57
60
  readonly colorBgFloatingPanel: string;
58
61
  readonly shadowFloatingPanel: string;
59
62
  readonly pageContentBg: string;
@@ -662,6 +665,9 @@ declare function themeFromPaletteImpl(palette: ThemePalette, mode: ThemeMode, ns
662
665
  readonly colorBgAIFloatingLauncher: string;
663
666
  readonly colorBgAIFloatingPanelContent: string;
664
667
  readonly colorBgAISidebarContent: string;
668
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
669
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
670
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
665
671
  readonly colorBgFloatingPanel: string;
666
672
  readonly shadowFloatingPanel: string;
667
673
  readonly pageContentBg: string;
@@ -1269,6 +1275,9 @@ declare const themeFromPalette: typeof themeFromPaletteImpl & import("@fibery/he
1269
1275
  readonly colorBgAIFloatingLauncher: string;
1270
1276
  readonly colorBgAIFloatingPanelContent: string;
1271
1277
  readonly colorBgAISidebarContent: string;
1278
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
1279
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
1280
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
1272
1281
  readonly colorBgFloatingPanel: string;
1273
1282
  readonly shadowFloatingPanel: string;
1274
1283
  readonly pageContentBg: string;
@@ -1877,6 +1886,9 @@ declare const stylesFromTheme: ((arg: Pick<{
1877
1886
  readonly colorBgAIFloatingLauncher: string;
1878
1887
  readonly colorBgAIFloatingPanelContent: string;
1879
1888
  readonly colorBgAISidebarContent: string;
1889
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
1890
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
1891
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
1880
1892
  readonly colorBgFloatingPanel: string;
1881
1893
  readonly shadowFloatingPanel: string;
1882
1894
  readonly pageContentBg: string;
@@ -2483,6 +2495,9 @@ declare const stylesFromTheme: ((arg: Pick<{
2483
2495
  readonly colorBgAIFloatingLauncher: string;
2484
2496
  readonly colorBgAIFloatingPanelContent: string;
2485
2497
  readonly colorBgAISidebarContent: string;
2498
+ readonly gradientBgAIGeneration: "radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%)" | "radial-gradient(50% 50% at 50% 50%, rgba(255, 102, 235, 0.6) 0%, transparent 100%)";
2499
+ readonly gradientBgAIHighlight: "radial-gradient(ellipse at top, #c6b0ff30, transparent), radial-gradient(ellipse at bottom right, #c7d6fe30, transparent)" | "radial-gradient(ellipse at top, #c6b0ff40, transparent), radial-gradient(ellipse at bottom right, #c7d6fe60, transparent)";
2500
+ readonly gradientBgAILoader: "linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%)";
2486
2501
  readonly colorBgFloatingPanel: string;
2487
2502
  readonly shadowFloatingPanel: string;
2488
2503
  readonly pageContentBg: string;
package/lib/embed.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { ThemePalette } from "./design-system/types.js";
2
+ import { ThemeMode } from "./theme-settings-core.js";
3
+ import { PropsWithChildren } from "react";
4
+ //#region src/embed.d.ts
5
+ type RootProps = PropsWithChildren<{
6
+ mode: ThemeMode;
7
+ palette: ThemePalette;
8
+ }>;
9
+ /**
10
+ * Establishes the UI-kit environment for one embedded React root.
11
+ * Server output uses the standalone fallback; host variables are adopted during the first client layout.
12
+ */
13
+ declare function Root({ mode, palette, children }: RootProps): import("react/jsx-runtime").JSX.Element;
14
+ /** Carries the current embedded UI-kit environment into a consumer-owned DOM portal. */
15
+ declare function PortalBridge({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
16
+ declare const FiberyEmbed: {
17
+ readonly Root: typeof Root;
18
+ readonly PortalBridge: typeof PortalBridge;
19
+ };
20
+ //#endregion
21
+ export { FiberyEmbed };
package/lib/embed.js ADDED
@@ -0,0 +1,165 @@
1
+ import "./embed.wyw-in-js.css";
2
+ import { neutralStyles } from "./theming.generated.js";
3
+ import { stylesFromTheme, themeFromPalette } from "./design-system/theme.js";
4
+ import "./mobile-styles.js";
5
+ import { EmbedPortalBoundaryContext, ThematicContext, ThemeContext, ThemePaletteContext, ThemePreferenceContext, ThemeStylesContext, diffThemeStyles } from "./theme-provider.js";
6
+ import { defaultLayoutVariables, mobileLayoutVariables } from "./layout-variables.js";
7
+ /* empty css */
8
+ import { jsx } from "react/jsx-runtime";
9
+ import { useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
10
+ import invariant from "invariant";
11
+ //#region src/embed.tsx
12
+ var useIsomorphicLayoutEffect = typeof document === "undefined" ? useEffect : useLayoutEffect;
13
+ var globals = "g3a7pha-globals";
14
+ var displayContents = "d1i9n6bp-displayContents";
15
+ function layoutStylesFor(element) {
16
+ if (element?.closest(`.fibery-mobile`)) return {
17
+ ...defaultLayoutVariables,
18
+ ...mobileLayoutVariables
19
+ };
20
+ return defaultLayoutVariables;
21
+ }
22
+ function stylesForEmbedTheme(theme, element) {
23
+ return {
24
+ ...stylesFromTheme(theme),
25
+ ...layoutStylesFor(element)
26
+ };
27
+ }
28
+ function mergeStyles(...styles) {
29
+ const merged = Object.assign({}, ...styles);
30
+ return Object.keys(merged).length === 0 ? void 0 : merged;
31
+ }
32
+ function resolveEmbedTheme(element, theme, styles, adoptHostColors) {
33
+ const computedStyles = element.ownerDocument.defaultView?.getComputedStyle(element);
34
+ const effectiveColors = { ...theme.colors };
35
+ const effectiveStyles = {};
36
+ const stylesDiff = {};
37
+ const colorKeys = new Map(Object.keys(theme.colors).map((key) => [theme.varname(key), key]));
38
+ let inheritedColorCount = 0;
39
+ for (const [variableName, fallbackValue] of Object.entries(styles)) {
40
+ const inheritedValue = computedStyles?.getPropertyValue(variableName).trim() ?? "";
41
+ const colorKey = colorKeys.get(variableName);
42
+ if (colorKey) {
43
+ if (inheritedValue.length > 0) {
44
+ inheritedColorCount++;
45
+ if (adoptHostColors) effectiveColors[colorKey] = inheritedValue;
46
+ }
47
+ effectiveStyles[variableName] = adoptHostColors && inheritedValue.length > 0 ? inheritedValue : fallbackValue;
48
+ if (inheritedValue.length === 0 || !adoptHostColors && inheritedValue !== fallbackValue) stylesDiff[variableName] = fallbackValue;
49
+ } else {
50
+ effectiveStyles[variableName] = inheritedValue || fallbackValue;
51
+ if (inheritedValue.length === 0) stylesDiff[variableName] = fallbackValue;
52
+ }
53
+ }
54
+ if (inheritedColorCount === 0) {
55
+ const missingLayoutStyles = Object.fromEntries(Object.entries(stylesDiff).filter(([variableName]) => !colorKeys.has(variableName)));
56
+ return {
57
+ sourceTheme: theme,
58
+ theme,
59
+ styles: effectiveStyles,
60
+ stylesDiff: mergeStyles(diffThemeStyles(stylesFromTheme(theme), neutralStyles.light), missingLayoutStyles),
61
+ useGlobals: true
62
+ };
63
+ }
64
+ return {
65
+ sourceTheme: theme,
66
+ theme: adoptHostColors ? {
67
+ ...theme,
68
+ colors: effectiveColors
69
+ } : theme,
70
+ styles: effectiveStyles,
71
+ stylesDiff: Object.keys(stylesDiff).length === 0 ? void 0 : stylesDiff,
72
+ useGlobals: false
73
+ };
74
+ }
75
+ function measureWithoutFallback(element, styles, measure) {
76
+ for (const variableName of Object.keys(styles)) element.style.removeProperty(variableName);
77
+ try {
78
+ return measure();
79
+ } finally {
80
+ for (const [variableName, value] of Object.entries(styles)) element.style.setProperty(variableName, value);
81
+ }
82
+ }
83
+ function EmbedThemeBoundary({ theme, portal = false, children }) {
84
+ const elementRef = useRef(null);
85
+ const styles = useMemo(() => stylesForEmbedTheme(theme), [theme]);
86
+ const [resolution, setResolution] = useState();
87
+ const currentResolution = resolution?.sourceTheme === theme ? resolution : void 0;
88
+ useIsomorphicLayoutEffect(() => {
89
+ const element = elementRef.current;
90
+ if (element) {
91
+ const resolvedStyles = stylesForEmbedTheme(theme, element);
92
+ setResolution(measureWithoutFallback(element, styles, () => resolveEmbedTheme(element, theme, resolvedStyles, !portal)));
93
+ }
94
+ }, [
95
+ portal,
96
+ theme,
97
+ styles
98
+ ]);
99
+ const effectiveTheme = currentResolution?.theme ?? theme;
100
+ const effectiveStyles = currentResolution?.styles ?? styles;
101
+ const className = currentResolution?.useGlobals ? `${displayContents} ${globals}` : displayContents;
102
+ return /* @__PURE__ */ jsx(ThemeContext.Provider, {
103
+ value: effectiveTheme,
104
+ children: jsx(ThemeStylesContext.Provider, {
105
+ value: effectiveStyles,
106
+ children: /* @__PURE__ */ jsx("div", {
107
+ ref: elementRef,
108
+ style: currentResolution ? currentResolution.stylesDiff : styles,
109
+ className,
110
+ children
111
+ })
112
+ })
113
+ });
114
+ }
115
+ function EmbedPortalThemeBoundary(props) {
116
+ return /* @__PURE__ */ jsx(EmbedThemeBoundary, {
117
+ ...props,
118
+ portal: true
119
+ });
120
+ }
121
+ var ignorePaletteOverride = () => {};
122
+ /**
123
+ * Establishes the UI-kit environment for one embedded React root.
124
+ * Server output uses the standalone fallback; host variables are adopted during the first client layout.
125
+ */
126
+ function Root({ mode, palette, children }) {
127
+ const theme = themeFromPalette(palette, mode);
128
+ const thematicContextValue = useMemo(() => ({
129
+ palette,
130
+ truePalette: palette,
131
+ setPalette: ignorePaletteOverride
132
+ }), [palette]);
133
+ return /* @__PURE__ */ jsx(ThemePreferenceContext.Provider, {
134
+ value: mode,
135
+ children: jsx(ThematicContext.Provider, {
136
+ value: thematicContextValue,
137
+ children: /* @__PURE__ */ jsx(ThemePaletteContext.Provider, {
138
+ value: palette,
139
+ children: /* @__PURE__ */ jsx(EmbedPortalBoundaryContext.Provider, {
140
+ value: EmbedPortalThemeBoundary,
141
+ children: /* @__PURE__ */ jsx(EmbedThemeBoundary, {
142
+ theme,
143
+ children
144
+ })
145
+ })
146
+ })
147
+ })
148
+ });
149
+ }
150
+ /** Carries the current embedded UI-kit environment into a consumer-owned DOM portal. */
151
+ function PortalBridge({ children }) {
152
+ const EmbedPortalBoundary = useContext(EmbedPortalBoundaryContext);
153
+ const theme = useContext(ThemeContext);
154
+ invariant(EmbedPortalBoundary, `<FiberyEmbed.PortalBridge> must be inside <FiberyEmbed.Root>`);
155
+ return /* @__PURE__ */ jsx(EmbedPortalBoundary, {
156
+ theme,
157
+ children
158
+ });
159
+ }
160
+ var FiberyEmbed = {
161
+ Root,
162
+ PortalBridge
163
+ };
164
+ //#endregion
165
+ export { FiberyEmbed };
@@ -0,0 +1,2 @@
1
+ .g3a7pha-globals{--surfaceElevationS:0 2px 4px 0 rgba(0,0,0,0.05);--surfaceElevationM:0 4px 8px 0 rgba(0,0,0,0.09);--surfaceElevationL:0 8px 12px 0 rgba(0,0,0,0.09);--shadow50:0 0 0 1px rgba(23, 23, 23, 0.05);--shadow100:0 1px 4px 0 rgba(23, 23, 23, 0.05);--shadow200:0 2px 6px 0 rgba(23, 23, 23, 0.05);--shadow300:0 3px 6px -3px rgba(23, 23, 23, 0.1),0 8px 20px -4px rgba(23, 23, 23, 0.15);--shadow400:0 0 1px 0 rgba(23, 23, 23, 0.2),0 16px 40px 0 rgba(23, 23, 23, 0.15);--shadow500:0 0 1px 0 rgba(23, 23, 23, 0.2),0 20px 50px 0 rgba(23, 23, 23, 0.15);--shadow600:0 0 1px 0 rgba(23, 23, 23, 0.2),0 26px 80px 0 rgba(23, 23, 23, 0.2);--actionMenuShadow:0 0 2px 0 rgba(94, 94, 94, 0.3),0 4px 6px 0 rgba(94, 94, 94, 0.05),0 10px 26px 0 rgba(94, 94, 94, 0.15);--shadowPopup:0 0 2px 0 rgba(94, 94, 94, 0.3),0 4px 6px 0 rgba(94, 94, 94, 0.05),0 10px 26px 0 rgba(94, 94, 94, 0.15);--shadowSidebar:-3px 0 10px 0 rgba(120, 120, 120, 0.1);--highlightBgYellow:rgb(255, 236, 196);--highlightFgYellow:rgb(167, 125, 0);--highlightFgOnBgYellow:rgb(139, 104, 0);--highlightBgGreen:rgb(218, 246, 202);--highlightFgGreen:rgb(80, 147, 0);--highlightFgOnBgGreen:rgb(66, 123, 0);--highlightBgAquamarine:rgb(196, 249, 222);--highlightFgAquamarine:rgb(0, 149, 104);--highlightFgOnBgAquamarine:rgb(0, 123, 85);--highlightBgAqua:rgb(186, 249, 240);--highlightFgAqua:rgb(0, 147, 135);--highlightFgOnBgAqua:rgb(0, 121, 111);--highlightBgBlue:rgb(225, 238, 255);--highlightFgBlue:rgb(0, 130, 243);--highlightFgOnBgBlue:rgb(0, 106, 201);--highlightBgPurple:rgb(245, 233, 255);--highlightFgPurple:rgb(185, 76, 249);--highlightFgOnBgPurple:rgb(160, 44, 221);--highlightBgPink:rgb(255, 231, 243);--highlightFgPink:rgb(232, 38, 172);--highlightFgOnBgPink:rgb(196, 0, 142);--highlightBgRed:rgb(255, 232, 230);--highlightFgRed:rgb(250, 9, 44);--highlightFgOnBgRed:rgb(207, 0, 33);--highlightBgGrey:rgb(238, 238, 238);--highlightFgGrey:rgb(132, 132, 132);--highlightFgOnBgGrey:rgb(110, 110, 110);--colorPickerCssFilter:none;--colorAccentBgSubtle:rgba(73, 120, 212, 0.1);--colorAccentBgMild:rgba(73, 120, 212, 0.15);--colorAccentBgMedium:rgba(73, 120, 212, 0.2);--colorAccentBgStrong:rgba(73, 120, 212, 0.3);--colorAccentBgBold:rgba(73, 120, 212, 0.35);--colorAccentBgVivid:rgba(73, 120, 212, 0.6);--colorAccentStroke:rgba(73, 120, 212, 0.25);--colorAccentStrokeHover:rgba(73, 120, 212, 0.4);--colorAccentStrokeFocus:rgba(73, 120, 212, 0.5);--colorAccentSolid:rgba(73, 120, 212, 0.8);--colorAccent:#4978d4;--darkenPrimary:rgb(62, 96, 161);--whiteColor:rgb(255,255,255);--blackColor:rgb(0,0,0);--mainBg:rgb(245,245,245);--panelBg:rgb(255,255,255);--panelBorder:0 0 0 1px rgba(199, 199, 199, 0.2);--panelContentBg:rgb(247,247,247);--dbSettingsSidebarBg:rgb(247,247,247);--dbSettingsSidebarItemHover:rgb(237,237,237);--dbSettingsSidebarIconBg:rgb(255,255,255);--dbSettingsSidebarIconBorder:0 1px 4px 0 rgba(94, 94, 94, 0.1),0 0 0 0.5px rgba(232, 232, 232, 0.5);--dbSettingsCardBg:rgb(247,247,247);--dbSettingsCardBorder:0 0 0 1px rgba(227, 227, 227, 0.8);--colorBgRelationContainer:rgb(252,252,252);--colorAI:#9D63D4;--colorBgAI:rgba(157, 99, 212, 0.1);--colorBgAIFloatingLauncher:rgb(252,252,252);--colorBgAIFloatingPanelContent:rgb(252,252,252);--colorBgAISidebarContent:rgb(252,252,252);--gradientBgAIGeneration:radial-gradient(50% 50% at 50% 50%, rgb(255, 102, 235) 0%, transparent 100%);--gradientBgAIHighlight:radial-gradient(ellipse at top, #c6b0ff40, transparent),radial-gradient(ellipse at bottom right, #c7d6fe60, transparent);--gradientBgAILoader:linear-gradient(90deg, #8f36d2 0%, #e92eb4 50%, #c959dd 100%);--colorBgFloatingPanel:rgb(255,255,255);--shadowFloatingPanel:0 0 0 1px rgba(120, 120, 120, 0.15),0 3px 12px 0 rgba(94, 94, 94, 0.15);--pageContentBg:rgb(255,255,255);--colorBgPopup:rgb(255,255,255);--menuBg:rgb(245,245,245);--menuTextColor:rgb(23,23,23);--menuItemHoverColor:rgb(232,232,232);--menuSelectedTextColor:rgb(247,247,247);--menuIconColor:rgba(23, 23, 23, 0.7);--textColor:rgb(23,23,23);--textSelectionColor:rgba(73, 120, 212, 0.2);--accentTextColor:rgb(120,120,120);--disabledTextColor:rgb(158,158,158);--inversedTextColor:rgb(245,245,245);--colorTextSecondary:rgba(23, 23, 23, 0.7);--linkColor:#3869CC;--linkBorder:0.5px solid rgba(56, 105, 204, 0.4);--linkHoverColor:#3869CC;--linkBorderHover:0.5px solid rgba(56, 105, 204, 0.75);--codeColor:rgb(211,62,78);--codeBgColor:rgb(245,245,245);--codeBlockBgColor:rgb(245,245,245);--addedDiffTextColor:rgb(0,144,130);--removedDiffTextColor:rgb(175,36,56);--entityNodeColor:rgb(36,36,36);--entityNodeBorder:0.5px solid rgba(36, 36, 36, 0.3);--entityNodeHoverColor:rgb(61,61,61);--entityNodeBorderHover:0.5px solid rgba(94, 94, 94, 0.8);--entityNodeBgColor:rgb(247,247,247);--shortcutTextColor:rgb(158,158,158);--shortcutBorder:1px solid rgba(199, 199, 199, 0.5);--shortcutBorderColor:rgba(199, 199, 199, 0.5);--inputBgColor:rgb(255,255,255);--inputDisabledBgColor:rgba(227, 227, 227, 0.3);--inputDisabledBorderColor:0 0 0 1px rgba(227, 227, 227, 0.6);--inputCopyBgColor:rgb(245,245,245);--inputBorderColor:0 0 0 1px rgba(227, 227, 227, 0.8);--inputBorderHoverColor:0 0 0 1px rgb(219,219,219);--inputBorderFocusColor:0 0 0 1px rgb(199,199,199);--inputBorderColorThin:0 0 0 0.5px rgba(227, 227, 227, 0.8);--inputBorderHoverColorThin:0 0 0 0.5px rgb(219,219,219);--inputBorderFocusColorThin:0 0 0 0.5px rgb(199,199,199);--inputBorderBlendMode:multiply;--inputPlaceholderTextColor:rgb(158,158,158);--inputErrorBorderColor:0 0 0 1px rgb(175,36,56);--inputErrorBorderHoverColor:0 0 0 1px rgba(175, 36, 56, 0.4);--inputErrorBorderFocusColor:0 0 0 1px rgba(175, 36, 56, 0.25);--inputErrorBorderFocusShadow:0 0 0 3px rgba(175, 36, 56, 0.25);--inputBorderWarningColor:0 0 0 1px rgb(246,217,0);--buttonPrimaryColor:#4978d4;--buttonColor:rgb(120,120,120);--buttonPrimaryTextColor:rgb(247,247,247);--checkboxColor:rgba(23, 23, 23, 0.7);--colorBorderBlockQuote:rgb(94,94,94);--colorBgActionsMenu:rgb(255,255,255);--colorBgActionsMenuItemHover:rgb(237,237,237);--colorBgActionsMenuItemSelected:rgba(232, 239, 253, 0.8);--colorBgActionsMenuItemSelectedHover:rgba(219, 229, 250, 0.8);--colorBgActionsMenuItemDangerHover:rgba(211, 62, 78, 0.1);--colorBgActionsMenuItemDangerActive:rgba(211, 62, 78, 0.8);--actionMenuBg:rgb(255,255,255);--actionMenuInnerBg:rgb(255,255,255);--actionMenuHover:rgb(237,237,237);--actionMenuInnerHover:rgb(237,237,237);--actionMenuButtonColor:rgb(255,255,255);--actionMenuButtonHoverColor:rgb(252,252,252);--actionMenuButtonShadow:0 0 0 1px rgba(120, 120, 120, 0.1),0 2px 4px -4px rgba(120, 120, 120, 0.2);--actionMenuSeparatorColor:rgba(0, 0, 0, 0.1);--separatorColor:rgba(0, 0, 0, 0.1);--separatorColorDimmed:rgba(0, 0, 0, 0.05);--separatorBreadcrumbsColor:rgb(199,199,199);--borderSeparatorDimmed:0.5px solid rgba(0, 0, 0, 0.05);--borderSeparator:0.5px solid rgba(0, 0, 0, 0.1);--borderSeparatorMedium:0.5px solid rgba(0, 0, 0, 0.15);--borderSeparatorStrong:0.5px solid rgba(0, 0, 0, 0.25);--borderMedia:0.5px solid rgba(0,0,0,0.14);--borderSolidSeparator:1px solid rgba(0, 0, 0, 0.1);--borderSolidSeparatorDimmed:1px solid rgba(0, 0, 0, 0.05);--borderSolidFilterGroup:1px solid rgba(0,0,0,0.05);--borderSolidGrid:1px solid rgb(232,232,232);--borderSolidOutlineNeutral:1px solid rgb(199,199,199);--borderSolidMedia:1px solid rgba(0,0,0,0.14);--borderSolidCommentBubble:1px solid rgb(255,255,255);--borderBlockQuote:3px solid rgb(94,94,94);--shadowCardDefault:0 0 0 1px rgba(227, 227, 227, 0.8),0 1px 4px 0 rgba(23, 23, 23, 0.05);--shadowCardHover:0 0 0 1px rgba(227, 227, 227, 0.8),0 2px 6px 0 rgba(23, 23, 23, 0.05);--shadowCardInset:inset 0 0 0 1px rgba(227, 227, 227, 0.8);--iconColor:rgba(23, 23, 23, 0.7);--colorIconDestructive:rgb(175,36,56);--appIconColor:rgba(247, 247, 247, 0.9);--appIconBgColor:rgba(252, 252, 252, 0.9);--mentionBgColor:rgba(219, 219, 219, 0.3);--colorBgSelectMenu:rgb(252,252,252);--shadowSelectMenu:0 0 2px 0 rgba(94, 94, 94, 0.3),0 4px 6px 0 rgba(94, 94, 94, 0.05),0 10px 26px 0 rgba(94, 94, 94, 0.15);--colorBgListItemGeneral:rgba(255, 255, 255, 0);--colorBgListItemGeneralHover:rgb(245,245,245);--colorBgListItemGeneralFocus:rgb(237,237,237);--colorBgListItemGeneralSelected:#dbe5fa;--colorBgListItemGeneralSelectedHover:#cad9f6;--colorBgListItemGeneralSelectedFocus:#cad9f6;--colorBgListItemGeneralDisabled:rgba(255, 255, 255, 0);--colorTextListItemGeneralDisabled:rgb(158,158,158);--colorBgListItemGeneralSelectedDisabled:#dbe5fa;--opacityListItemGeneralDisabled:0.4;--colorSearchSubtitle:rgb(158,158,158);--colorBgSearchPanel:rgb(255,255,255);--colorBgSearchRowHover:rgb(237,237,237);--colorBgSearchRowCreateHover:#e8effd;--opacitySearchItemDone:0.4;--colorBgEntityBoxDefault:rgb(255,255,255);--shadowStrokeEntityBoxDefault:0 0 0 1px rgb(232,232,232);--shadowEntityBoxDefault:0 2px 4px 0 rgba(23, 23, 23, 0.05);--colorBgEntityBoxDefaultHover:rgb(255,255,255);--shadowEntityBoxDefaultHover:0 4px 8px 0 rgba(23, 23, 23, 0.1);--colorBgEntityBoxDefaultFocus:rgb(255,255,255);--colorOverlayEntityBoxDefaultFocus:#4978d4;--shadowStrokeEntityBoxDefaultFocus:0 0 0 2px rgba(73, 120, 212, 0.4);--colorBgEntityBoxDefaultFocusHover:rgb(255,255,255);--colorOverlayEntityBoxDefaultFocusHover:#4978d4;--shadowStrokeEntityBoxDefaultFocusHover:0 0 0 2px rgba(73, 120, 212, 0.6);--opacityEntityBoxDefaultDrag:0.4;--shadowEntityBoxDefaultDrag:0 8px 12px 0 rgba(23, 23, 23, 0.1);--colorBgEntityBoxSelected:#fafcff;--shadowStrokeEntityBoxSelected:0 0 0 1px rgba(73, 120, 212, 0.4),0 0 0 3px rgba(73, 120, 212, 0.4);--colorBgEntityBoxSelectedHover:#f1f5fe;--shadowStrokeEntityBoxSelectedHover:0 0 0 1px rgba(73, 120, 212, 0.6),0 0 0 3px rgba(73, 120, 212, 0.4);--colorBgEntityBoxSelectedDrag:#f1f5fe;--shadowStrokeEntityBoxSelectedDrag:0 0 0 1px rgba(73, 120, 212, 0.4),0 0 0 3px rgba(73, 120, 212, 0.4);--opacityEntityBoxDisabled:0.65;--opacityEntityBoxDisabledHover:0.75;--opacityEntityBoxDisabledFocus:0.75;--opacityEntityBoxDisabledDrag:0.4;--entityCardBgColor:rgb(255,255,255);--entityCardSelectedColor:rgba(247, 247, 247, 0.8);--entityCardHoverColor:rgba(247, 247, 247, 0.8);--entityCardDoneColor:rgba(237, 237, 237, 0.3);--entityCardShadow:0 0 0 1px rgba(120, 120, 120, 0.1),0 2px 4px -4px rgba(120, 120, 120, 0.2);--entityCardShadowHover:0 0 0 1px rgba(120, 120, 120, 0.1),0 2px 4px -4px rgba(120, 120, 120, 0.2);--colorBgSegmentedControl:rgba(232, 232, 232, 0.8);--colorBgMenuHeaderAvatar:rgb(255,255,255);--shadowMenuHeaderAvatar:0 1px 4px 0 rgba(94, 94, 94, 0.1),0 0 0 0.5px rgba(232, 232, 232, 0.5);--opacityMenuItemDragged:0.4;--colorBgMenuItemSelectedDragged:#cad9f6;--colorTextMenuItem:rgba(23, 23, 23, 0.9);--colorBgMenuItem:rgba(255, 255, 255, 0);--colorBgMenuItemHover:rgb(232,232,232);--colorBgMenuItemFocus:rgb(227,227,227);--colorBgMenuItemSelected:rgba(219, 229, 250, 0.8);--colorBgMenuItemSelectedHover:rgba(202, 217, 246, 0.7);--colorBgPinnedFieldsLabel:rgb(94,94,94);--colorBgObjectEditorSeparator:rgb(23,23,23);--colorBgMenuItemSelectedFocused:#cad9f6;--colorBgFieldEditorContainer:rgb(247,247,247);--colorBgFieldEditorLinkEqualSign:rgb(227,227,227);--allowedDropColor:rgb(237,237,237);--relationViewBgColor:rgb(247,247,247);--mySpaceIconColor:rgb(122, 132, 142);--mySpaceIconBg:rgba(106, 132, 155, 0.2);--privateIconColor:rgb(105, 172, 94);--privateIconBg:rgba(105, 172, 94, 0.2);--favoritesIconColor:rgb(238, 166, 74);--favoritesIconBg:rgba(251, 163, 47, 0.2);--swatchDefault:#2978FB;--unitBg:rgb(245,245,245);--unitBgHover:rgb(237,237,237);--colorBgBadgeNeutral:rgba(232, 232, 232, 0.7);--colorBgBadgeAccent:rgba(219, 229, 250, 0.7);--colorBgBadgeSuccess:rgb(214,234,230);--colorBgBadgeWarning:rgb(255,242,160);--colorBgBadgeError:rgb(253,220,219);--colorTextBadgeNeutral:rgb(94,94,94);--colorTextBadgeAccent:#345eb2;--colorTextBadgeSuccess:rgb(0,116,104);--colorTextBadgeWarning:rgb(129,113,0);--colorTextBadgeError:rgb(175,36,56);--badgeBgColor:rgba(120, 120, 120, 0.2);--tooltipBgColor:rgb(46,46,46);--todayMarkerColor:rgb(237,150,151);--viewBgOverlayColor:rgba(199, 199, 199, 0.2);--floatEditorMenuBg:rgb(252,252,252);--floatEditorActiveColor:#345eb2;--commentColor:rgba(247, 231, 135, 0.6);--cellBackgroundColor:rgb(247,247,247);--cellBackgroundHoverColor:rgba(227, 227, 227, 0.3);--cellBorderColor:rgba(199, 199, 199, 0.5);--cellPinnedBorderColor:rgba(199, 199, 199, 0.7);--tableRowWarningColor:rgba(247, 231, 135, 0.6);--errorBgColor:rgba(211, 62, 78, 0.2);--errorTextColor:rgb(175,36,56);--errorButtonColor:rgb(211,62,78);--warningBgColor:rgba(247, 231, 135, 0.6);--warningButtonColor:rgb(129,113,0);--infoBox:rgba(255, 248, 185, 0.5);--appCardBgColor:rgb(255,255,255);--appCardHoverColor:rgba(252, 252, 252, 0.95);--modalBg:rgba(94, 94, 94, 0.2);--modalContentBg:rgb(255,255,255);--progressIconBg:rgba(0,0,0,0.14);--progressIconFill:rgba(0,0,0,0.57);--formBg:rgb(247,247,247);--formHeaderShadow:0 0 6px 0 rgba(120, 120, 120, 0.1);--formEditorFieldBg:rgb(245,245,245);--filterGroup1Bg:rgb(247,247,247);--filterGroup2Bg:rgb(245,245,245);--filterGroupBorder:rgba(0,0,0,0.05);--colorBgNotificationHover:rgb(245,245,245);--colorBgNotificationSelected:#f1f5fe;--colorBgNotificationSelectedHover:#e8effd;--disabledInversedTextColor:rgba(0, 0, 0, 0.25);--success:rgb(0,144,130);--danger:rgb(211,62,78);--active:rgb(211,62,78);--warning:rgb(246,217,0);--cardBg:rgb(255,255,255);--selectedImageBorder:rgba(0,0,0,0.22);--transparent:rgba(255, 255, 255, 0);--progressBg:rgb(237,237,237);--progressText:rgb(94,94,94);--progressFillBg:rgb(94,94,94);--progressFillText:rgb(255,255,255);--progressBarFillNeutral:rgba(158, 158, 158, 0.2);--progressBarFill:#4978d4;--progressBarBg:rgba(73, 120, 212, 0.25);--colorPickerSwatchBorder:rgba(0,0,0,0.14);--colorBorderRichTextMedia:rgba(0,0,0,0.14);--richTextTableBorder:rgba(0,0,0,0.09);--colorBgDropLine:#96b1e9;--viewBg:rgb(252,252,252);--colorBgViewMetaItem:rgb(255,255,255);--collectionViewBg:rgb(252,252,252);--collectionViewBorder:0 0 0 1px rgba(227, 227, 227, 0.6);--viewSecondaryBg:rgb(247,247,247);--viewHighlightBg:#f1f5fe;--boardBg:rgb(252,252,252);--boardBgWithOpacity80:rgba(252, 252, 252, 0.8);--boardAxisBgHover:rgb(237,237,237);--gridHeaderBgColor:rgb(247,247,247);--gridHeaderHoverBgColor:rgb(245,245,245);--gridHeaderTextColor:rgb(120,120,120);--gridCellBgColor:rgb(255,255,255);--gridCellBorderColor:rgb(232,232,232);--gridDisabledCellBgColor:rgb(247,247,247);--gridSelectedCellBgColor:#f1f5fe;--gridHighlightedCellBgColor:#e8effd;--gridSelectedCellBorderColor:#cad9f6;--gridSelectedPinnedCellBorderColor:#b2c7f0;--gridDisabledSelectedCellBgColor:#e8effd;--gridActiveCellBorderColor:#96b1e9;--timelineEntityHandleColor:#b2c7f0;--timelineDependencyHoverBgColor:#96b1e9;--timelineDependencyOverlapBgColor:rgb(211,62,78);--timelineDependencyOverlapHoverBgColor:rgb(175,36,56);--timelineCellBgColor:rgb(252,252,252);--timelineCellWeekendBgColor:rgb(247,247,247);--timelineCellTodayBgColor:#e8effd;--timelineCreateEntityPlaceholderBgColor:rgba(94, 94, 94, 0.2);--colorBgButtonSolidAccentDefault:#4978d4;--colorBgButtonSolidAccentHover:#345eb2;--colorBgButtonSolidNeutralDefault:rgb(23,23,23);--colorBgButtonSolidNeutralHover:rgba(23, 23, 23, 0.85);--colorBgButtonSolidDestructiveDefault:rgb(211,62,78);--colorBgButtonSolidDestructiveHover:rgb(175,36,56);--colorTextButtonSolidAccent:rgb(255,255,255);--colorTextButtonSolidAccentActive:rgba(255, 255, 255, 0.8);--colorTextButtonSolidNeutral:rgb(255,255,255);--colorTextButtonSolidNeutralActive:rgb(255,255,255);--colorTextButtonSolidDestructive:rgb(255,255,255);--colorTextButtonSolidDestructiveActive:rgba(255, 255, 255, 0.8);--colorIconButtonSolidAccent:rgb(255,255,255);--colorIconButtonSolidNeutral:rgb(255,255,255);--colorIconButtonSolidDestructive:rgb(255,255,255);--colorBorderButtonOutlineAccentDefault:#96b1e9;--colorBorderButtonOutlineNeutralDefault:rgb(199,199,199);--colorBorderButtonOutlineDestructiveDefault:rgb(244,179,179);--colorBgButtonOutlineAccentDefault:rgb(255,255,255);--colorBgButtonOutlineAccentHover:#f1f5fe;--colorBgButtonOutlineNeutralDefault:rgb(255,255,255);--colorBgButtonOutlineNeutralHover:rgb(237,237,237);--colorBgButtonOutlineDestructiveDefault:rgb(255,255,255);--colorBgButtonOutlineDestructiveHover:rgb(255,232,232);--colorTextButtonOutlineAccent:#345eb2;--colorTextButtonOutlineAccentActive:rgba(52, 94, 178, 0.8);--colorTextButtonOutlineNeutral:rgb(94,94,94);--colorTextButtonOutlineNeutralActive:rgba(23, 23, 23, 0.8);--colorTextButtonOutlineDestructive:rgb(175,36,56);--colorTextButtonOutlineDestructiveActive:rgba(175, 36, 56, 0.8);--colorIconButtonOutlineAccent:#345eb2;--colorIconButtonOutlineNeutral:rgb(94,94,94);--colorIconButtonOutlineDestructive:rgb(175,36,56);--colorBgButtonSoftAccentDefault:#f1f5fe;--colorBgButtonSoftAccentHover:#dbe5fa;--colorBgButtonSoftNeutralDefault:rgb(245,245,245);--colorBgButtonSoftNeutralHover:rgb(219,219,219);--colorBgButtonSoftDestructiveDefault:rgb(255,232,232);--colorBgButtonSoftDestructiveHover:rgb(250,203,203);--colorTextButtonSoftAccent:#345eb2;--colorTextButtonSoftAccentActive:rgba(52, 94, 178, 0.8);--colorTextButtonSoftNeutral:rgb(94,94,94);--colorTextButtonSoftNeutralActive:rgba(94, 94, 94, 0.8);--colorTextButtonSoftDestructive:rgb(175,36,56);--colorTextButtonSoftDestructiveActive:rgba(175, 36, 56, 0.8);--colorIconButtonSoftAccent:#345eb2;--colorIconButtonSoftNeutral:rgb(94,94,94);--colorIconButtonSoftDestructive:rgb(175,36,56);--colorBgButtonGhostAccentDefault:rgba(255, 255, 255, 0);--colorBgButtonGhostAccentHover:rgba(232, 239, 253, 0.8);--colorBgButtonGhostNeutralDefault:rgba(255, 255, 255, 0);--colorBgButtonGhostNeutralHover:rgba(219, 219, 219, 0.5);--colorBgButtonGhostDestructiveDefault:rgba(255, 255, 255, 0);--colorBgButtonGhostDestructiveHover:rgb(255,232,232);--colorTextButtonGhostAccent:#345eb2;--colorTextButtonGhostAccentActive:rgba(52, 94, 178, 0.8);--colorTextButtonGhostNeutral:rgb(94,94,94);--colorTextButtonGhostNeutralActive:rgba(94, 94, 94, 0.8);--colorTextButtonGhostDestructive:rgb(175,36,56);--colorTextButtonGhostDestructiveActive:rgba(175, 36, 56, 0.8);--colorIconButtonGhostAccent:#345eb2;--colorIconButtonGhostNeutral:rgb(94,94,94);--colorIconButtonGhostDestructive:rgb(175,36,56);--colorBorderAccentFocusRing:rgba(73, 120, 212, 0.3);--colorBorderNeutralFocusRing:rgba(158, 158, 158, 0.3);--colorBorderDestructiveFocusRing:rgba(211, 62, 78, 0.3);--colorBgReactionsDefault:rgb(255,255,255);--colorBgReactionsHover:rgb(245,245,245);--colorBorderReactionsHover:rgb(199,199,199);--colorBgReactionsSelectedDefault:#f1f5fe;--colorBorderReactionsSelectedDefault:#96b1e9;--colorBgReactionsSelectedHover:#fafcff;--colorBorderReactionsSelectedHover:#4978d4;--colorTextReactionsSelected:#3869cc;--colorBgToggleButtonUnselectedNormal:rgb(255,255,255);--colorBgToggleButtonUnselectedHover:rgb(245,245,245);--colorBgToggleButtonSelectedNormal:#f1f5fe;--colorBgToggleButtonSelectedHover:#fafcff;--colorBorderToggleButtonUnselectedNormal:rgb(199,199,199);--colorBorderToggleButtonUnselectedHover:rgb(199,199,199);--colorBorderToggleButtonSelectedNormal:#96b1e9;--colorBorderToggleButtonSelectedHover:#4978d4;--colorTextToggleButtonUnselectedNormal:rgb(94,94,94);--colorTextToggleButtonUnselectedHover:rgb(94,94,94);--colorTextToggleButtonSelectedNormal:#3869cc;--colorTextToggleButtonSelectedHover:#3869cc;--colorIconToggleButtonUnselectedNormal:rgb(94,94,94);--colorIconToggleButtonUnselectedHover:rgb(94,94,94);--colorIconToggleButtonSelectedNormal:#345eb2;--colorIconToggleButtonSelectedHover:#345eb2;--colorBgRoundToggleButtonUnselectedNormal:rgb(255,255,255);--colorBgRoundToggleButtonUnselectedHover:rgb(245,245,245);--colorBgRoundToggleButtonSelectedNormal:#e8effd;--colorBgRoundToggleButtonSelectedHover:#f1f5fe;--colorBorderRoundToggleButtonUnselectedNormal:rgb(199,199,199);--colorBorderRoundToggleButtonUnselectedHover:rgb(199,199,199);--colorBorderRoundToggleButtonSelectedNormal:#96b1e9;--colorBorderRoundToggleButtonSelectedHover:#4978d4;--colorTextRoundToggleButtonUnselectedNormal:rgb(94,94,94);--colorTextRoundToggleButtonUnselectedHover:rgb(94,94,94);--colorTextRoundToggleButtonSelectedNormal:#3869cc;--colorTextRoundToggleButtonSelectedHover:#3869cc;--colorIconRoundToggleButtonUnselectedNormal:rgb(94,94,94);--colorIconRoundToggleButtonUnselectedHover:rgb(94,94,94);--colorIconRoundToggleButtonSelectedNormal:#345eb2;--colorIconRoundToggleButtonSelectedHover:#345eb2;--colorBgToastDefault:rgb(252,252,252);--colorBgDbTabHover:rgb(245,245,245);--colorBgDbTabFocus:rgb(227,227,227);--colorBgTabHover:rgba(94, 94, 94, 0.1);--colorBgMessageContainer:rgb(245,245,245);--colorBgMessageContainerHover:rgb(237,237,237);--colorBgEntityAvatarDefault:#fbfcfe;--colorBgEntityAvatarHover:#f1f5fe;--colorTextEntityAvatarDefault:#96b1e9;--colorTextEntityAvatarHover:#4978d4;--colorBgMessageHighlighted:rgb(255,255,255);--colorBgCommentHover:rgb(247,247,247);--colorBgCodeEditor:rgb(255,255,255);--colorBgEditorImageZoomed:rgb(245,245,245);--colorMermaidPrimaryColor:rgb(247,247,247);--colorMermaidPrimaryBorderColor:rgb(158,158,158);--colorMermaidLineColor:rgb(120,120,120);--colorBgWhiteboard:rgb(255,255,255);--colorGridDotWhiteboard:rgb(227,227,227);--colorSelectionWhiteboardBorderEnabled:#96b1e9;--colorHighlightWhiteboardSelection:#96b1e9;--colorHighlightWhiteboardSelectionLocked:rgba(158, 158, 158, 0.5);--colorHighlightWhiteboardHoverBg:rgba(94, 94, 94, 0.1);--colorCloneShadeWhiteboard:rgba(150, 177, 233, 0.1);--colorSelectionWhiteboardBorderDisabled:rgba(158, 158, 158, 0.5);--colorPlaceholderWhiteboardDefault:rgba(150, 177, 233, 0.2);--colorLinkPointWhiteboardDefault:#96b1e9;--colorLinkPointWhiteboardFillDefault:rgb(255,255,255);--colorMapWhiteboardPreviewDefault:rgba(150, 177, 233, 0.4);--colorCardWhiteboardShadowDefault:rgba(94, 94, 94, 0.05);--colorCardWhiteboardBgDefault:rgb(255,255,255);--colorCardWhiteboardBorderDefault:rgba(23, 23, 23, 0.2);--colorUnitHeaderWhiteboardDefault:rgba(23, 23, 23, 0.6);--colorUnitWhiteboardBgDefault:rgb(245,245,245);--colorUnitWhiteboardBorderDefault:rgba(23, 23, 23, 0.2);--colorSectionWhiteboardBgInactive:rgb(247,247,247);--colorSectionWhiteboardBorderInactive:rgb(227,227,227);--colorUploadPreviewBg:rgba(94, 94, 94, 0.65);--colorEmbedWhiteboardEditBorder:rgba(134, 191, 181, 0.9);--colorTextWhiteboardDefault:rgb(23,23,23);--colorTextWhiteboardDisabled:rgb(158,158,158);--colorTextWhiteboardAccent:rgba(23, 23, 23, 0.6);--colorTextWhiteboardInversedDefault:rgb(255,255,255);--instrumentsMenuBg:rgb(255,255,255);--instrumentsMenuShadow:0 0 1px 0 rgba(94, 94, 94, 0.2),0 4px 6px 0 rgba(94, 94, 94, 0.05),0 3px 12px 0 rgba(94, 94, 94, 0.1);--commentBubbleBg:rgb(255,255,255);--commentsPanelShadow:0 0 1px 0 rgba(94, 94, 94, 0.2),0 4px 6px 0 rgba(94, 94, 94, 0.05),0 3px 12px 0 rgba(94, 94, 94, 0.1);--searchFiltersBg:rgb(252,252,252);--selectedColorBorder:rgba(227, 227, 227, 0.25);--colorBgSegmentedControlDefault:rgb(245,245,245);--colorBgSegmentedControlActive:rgb(252,252,252);--colorBgSegmentedControlHover:rgb(232,232,232);--colorBorderSegmentedControlDefault:rgb(227,227,227);--colorBgBannerNeutral:rgb(245,245,245);--colorBgBannerAccent:#f1f5fe;--colorBgBannerWarning:rgb(255,251,207);--colorBgBannerError:rgb(255,241,241);--colorBgBannerSuccess:rgb(239,247,245);--colorIconBannerNeutral:rgb(94,94,94);--colorIconBannerAccent:#345eb2;--colorIconBannerWarning:rgb(129,113,0);--colorIconBannerError:rgb(175,36,56);--colorIconBannerSuccess:rgb(0,116,104);--colorTextBannerNeutral:rgb(23,23,23);--colorTextBannerAccent:#345eb2;--colorTextBannerWarning:rgb(129,113,0);--colorTextBannerError:rgb(175,36,56);--colorTextBannerSuccess:rgb(0,116,104);--colorBgChargebeeInfoBox:rgb(245,245,245);--newCommentHorizontalRulerColor:rgb(237,150,151);--colorBgErrorMessage:rgb(237,150,151);--colorBorderLogoGrid:rgb(237,237,237);--colorBorderLogoGridSubtle:rgba(237, 237, 237, 0.2);--colorBorderLogoGridMedium:rgba(237, 237, 237, 0.4);--colorStrokeLogoDashed:rgb(227,227,227);--colorBgLogoCardTransparent:rgb(255,255,255);--colorBgLogoCardDark:rgb(199,199,199);--colorBgLogoCardMedium:rgb(237,237,237);--colorBgSkeletonFrom:rgba(255, 255, 255, 0.05);--colorBgSkeletonTo:rgba(255, 255, 255, 0.1);--colorShadowInsetEdge:rgba(255, 255, 255, 0.05);--colorShadowBorder:rgba(255, 255, 255, 0.1);--colorShadowElevation:rgba(0, 0, 0, 0.1);--colorShadowOutline:rgba(0, 0, 0, 0.2);--colorPlaceholder:rgba(255, 255, 255, 0.4);--colorPlaceholderSubtle:rgba(255, 255, 255, 0.25);--colorBgSubtleLight:rgba(255, 255, 255, 0.05);--colorStrokeSurface:rgb(255,255,255);--colorTextMilestone:rgba(0, 0, 0, 0.5);--colorSpinnerIcon:rgba(0, 0, 0, 0.9);--colorSpinnerBg:rgba(0, 0, 0, 0.1);--colorBgLaneSubtle:rgba(0, 0, 0, 0.05);--opacity15:0.15;--opacity20:0.2;--opacity25:0.25;--opacity30:0.3;--opacity40:0.4;--opacity50:0.5;--opacity60:0.6;--opacity65:0.65;--opacity70:0.7;--opacity75:0.75;--opacity80:0.8;--opacity85:0.85;--opacity90:0.9;--whiteA10:rgba(255, 255, 255, 0.1);--whiteA40:rgba(255, 255, 255, 0.4);--whiteA100:rgb(255,255,255);--colorBgFileOverlay:rgba(0, 0, 0, 0.6);--colorBgScrollFade:rgba(255, 255, 255, 0.15);--colorStrokeSelectedOutline:rgba(0, 0, 0, 0.75);--scrollbar:rgba(158, 158, 158, 0.5);}
2
+ .d1i9n6bp-displayContents{display:contents;}
@@ -0,0 +1,21 @@
1
+ //#region src/layout-variables.d.ts
2
+ declare const defaultLayoutVariables: {
3
+ readonly "--safe-area-inset-left": "var(--app-safe-area-inset-left, env(safe-area-inset-left))";
4
+ readonly "--safe-area-inset-right": "var(--app-safe-area-inset-right, env(safe-area-inset-right))";
5
+ readonly "--safe-area-inset-top": "var(--app-safe-area-inset-top, env(safe-area-inset-top))";
6
+ readonly "--safe-area-inset-bottom": "var(--app-safe-area-inset-bottom, env(safe-area-inset-bottom))";
7
+ readonly "--keyboard-inset-bottom": "var(--app-current-keyboard-height, 0px)";
8
+ readonly "--fibery-on-screen-keyboard-height": "350px";
9
+ readonly "--fibery-layout-menuItemHeight": "32px";
10
+ readonly "--fibery-layout-sidebarMenuItemHeight": "28px";
11
+ readonly "--fibery-layout-sidebarMenuIconSize": "18px";
12
+ readonly "--fibery-layout-listRowSurfaceFontSize": "14px";
13
+ };
14
+ declare const mobileLayoutVariables: {
15
+ readonly "--fibery-layout-menuItemHeight": "44px";
16
+ readonly "--fibery-layout-sidebarMenuItemHeight": "44px";
17
+ readonly "--fibery-layout-sidebarMenuIconSize": "20px";
18
+ readonly "--fibery-layout-listRowSurfaceFontSize": "16px";
19
+ };
20
+ //#endregion
21
+ export { defaultLayoutVariables, mobileLayoutVariables };
@@ -0,0 +1,25 @@
1
+ import { listRowSurfaceFontSizeVar, menuItemHeightVar, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar } from "./theming.generated.js";
2
+ import { layout } from "./design-system/layout.js";
3
+ import { fontSize } from "./design-system/typography.js";
4
+ import { keyboardHeightVar, keyboardInsetBottomVar, safeAreaInsetBottomVar, safeAreaInsetLeftVar, safeAreaInsetRightVar, safeAreaInsetTopVar } from "./mobile-styles.js";
5
+ //#region src/layout-variables.ts
6
+ var defaultLayoutVariables = {
7
+ [safeAreaInsetLeftVar]: "var(--app-safe-area-inset-left, env(safe-area-inset-left))",
8
+ [safeAreaInsetRightVar]: "var(--app-safe-area-inset-right, env(safe-area-inset-right))",
9
+ [safeAreaInsetTopVar]: "var(--app-safe-area-inset-top, env(safe-area-inset-top))",
10
+ [safeAreaInsetBottomVar]: "var(--app-safe-area-inset-bottom, env(safe-area-inset-bottom))",
11
+ [keyboardInsetBottomVar]: "var(--app-current-keyboard-height, 0px)",
12
+ [keyboardHeightVar]: "350px",
13
+ [menuItemHeightVar]: `${layout.menuItemHeight}px`,
14
+ [sidebarMenuItemHeightVar]: `${layout.newMenuItemHeight}px`,
15
+ [sidebarMenuIconSizeVar]: `${layout.newMenuIconSize}px`,
16
+ [listRowSurfaceFontSizeVar]: `${fontSize.sm}px`
17
+ };
18
+ var mobileLayoutVariables = {
19
+ [menuItemHeightVar]: `${layout.mobileMenuItemHeight}px`,
20
+ [sidebarMenuItemHeightVar]: `${layout.mobileSidebarMenuItemHeight}px`,
21
+ [sidebarMenuIconSizeVar]: `${layout.mobileSidebarIconSize}px`,
22
+ [listRowSurfaceFontSizeVar]: `${fontSize.md}px`
23
+ };
24
+ //#endregion
25
+ export { defaultLayoutVariables, mobileLayoutVariables };
@@ -80,6 +80,7 @@ var NumberInputInlineWithAutosize = ({ value, numberFormat, numberPrecision, for
80
80
  }),
81
81
  onStep: handleStep,
82
82
  onClick: stopPropagation,
83
+ wheel: false,
83
84
  ...rest,
84
85
  className: cx(inputCss, pill && pillCss, invalid && invalidCss)
85
86
  })
@@ -58,6 +58,7 @@ var NumberInputInline = forwardRef(({ value, numberFormat, numberPrecision, form
58
58
  onKeyDown,
59
59
  onStep: handleStep,
60
60
  onClick: stopPropagation,
61
+ wheel: false,
61
62
  ...rest
62
63
  })
63
64
  });