@fibery/ui-kit 9.1.1 → 9.1.3
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/lib/actions-menu/actions-menu-item.js +3 -3
- package/lib/actions-menu/actions-menu-sub-command-menu.js +2 -2
- package/lib/actions-menu/contexts/actions-menu-context.js +2 -2
- package/lib/actions-menu/contexts/actions-menu-dangerous-rows.js +3 -3
- package/lib/antd/input.d.ts +1 -1
- package/lib/automation-avatar.d.ts +8 -0
- package/lib/automation-avatar.js +43 -0
- package/lib/board-table-loader.js +6 -6
- package/lib/button/base-button.js +5 -5
- package/lib/checkbox.d.ts +1 -1
- package/lib/checkbox.js +3 -3
- package/lib/comment.js +3 -3
- package/lib/design-system/alpha-coefficients.d.ts +1 -0
- package/lib/design-system/alpha-coefficients.js +1 -0
- package/lib/design-system/colors.d.ts +6 -8
- package/lib/design-system/colors.js +7 -8
- package/lib/design-system/theme.d.ts +5 -10
- package/lib/design-system/theme.js +1 -1
- package/lib/emoji-picker/primitives/content.js +2 -2
- package/lib/emoji-picker/primitives/preview-provider.js +3 -3
- package/lib/emoji-picker/primitives/root.js +3 -3
- package/lib/emoji-picker/primitives/search-provider.js +3 -3
- package/lib/emoji-picker/primitives/skin-provider.js +3 -3
- package/lib/emoji-picker/stores/emoji-data-store.js +2 -2
- package/lib/file-item/file-preview-actions.js +1 -1
- package/lib/icons/ast/index.d.ts +4 -1
- package/lib/icons/ast/index.js +4 -1
- package/lib/icons/ast/integration-claude.d.ts +5 -0
- package/lib/icons/ast/integration-claude.js +25 -0
- package/lib/icons/ast/integration-gemini.d.ts +5 -0
- package/lib/icons/ast/integration-gemini.js +25 -0
- package/lib/icons/ast/integration-openai.d.ts +5 -0
- package/lib/icons/ast/integration-openai.js +25 -0
- package/lib/icons/react/index.d.ts +4 -1
- package/lib/icons/react/index.js +4 -1
- package/lib/icons/react/integration-claude.d.ts +15 -0
- package/lib/icons/react/integration-claude.js +21 -0
- package/lib/icons/react/integration-gemini.d.ts +15 -0
- package/lib/icons/react/integration-gemini.js +21 -0
- package/lib/icons/react/integration-openai.d.ts +15 -0
- package/lib/icons/react/integration-openai.js +21 -0
- package/lib/images-gallery/images-gallery.js +4 -4
- package/lib/loaders.js +4 -4
- package/lib/open-popover-tracker.js +2 -2
- package/lib/popover/index.js +2 -2
- package/lib/popover/mobile-popover-context.js +2 -2
- package/lib/popover/popup-stack-context.js +2 -2
- package/lib/popover/styles.wyw-in-js.css +1 -1
- package/lib/random.d.ts +4 -0
- package/lib/random.js +11 -0
- package/lib/rich-input-loader.js +3 -3
- package/lib/root-theme-provider.js +2 -1
- package/lib/root-theme-provider.wyw-in-js.css +1 -1
- package/lib/select/select-in-popover.js +5 -3
- package/lib/select/select-loader.js +2 -2
- package/lib/select/select.js +11 -4
- package/lib/sidebar/sidebar-handle.d.ts +14 -0
- package/lib/sidebar/sidebar-handle.js +51 -0
- package/lib/sidebar/sidebar-handle.wyw-in-js.css +7 -0
- package/lib/sidebar/sidebar.d.ts +25 -0
- package/lib/sidebar/sidebar.js +60 -0
- package/lib/sidebar/sidebar.wyw-in-js.css +3 -0
- package/lib/sidebar/use-resize-drag.d.ts +22 -0
- package/lib/sidebar/use-resize-drag.js +71 -0
- package/lib/skeleton.d.ts +23 -0
- package/lib/skeleton.js +47 -0
- package/lib/skeleton.wyw-in-js.css +4 -0
- package/lib/tab-nav/tab-nav.js +2 -2
- package/lib/theme-provider.d.ts +1 -2
- package/lib/theme-styles.js +5 -2
- package/lib/theming.generated.d.ts +13 -18
- package/lib/theming.generated.js +13 -18
- package/lib/toast/toast-provider.d.ts +1 -0
- package/lib/toast/toast-provider.js +2 -2
- package/lib/toast/toast-queue.d.ts +2 -0
- package/lib/toast/toast-queue.js +6 -0
- package/lib/tooltip.js +1 -1
- package/lib/unit/loading-unit-value.d.ts +2 -2
- package/lib/unit/loading-unit-value.js +2 -2
- package/lib/use-is-phone.js +2 -2
- package/lib/use-on-screen-keyboard-data.js +3 -3
- package/package.json +3 -6
- package/lib/ai/model.d.ts +0 -8
- package/lib/ai/model.js +0 -55
- package/lib/ai/model.wyw-in-js.css +0 -1
- package/lib/antd/auto-width-transparent-textarea.d.ts +0 -8
- package/lib/antd/auto-width-transparent-textarea.js +0 -34
- package/lib/antd/auto-width-transparent-textarea.wyw-in-js.css +0 -2
- package/lib/get-trigger-node-popup-container.d.ts +0 -4
- package/lib/get-trigger-node-popup-container.js +0 -8
- package/lib/lists/actions-menu-row-surface.d.ts +0 -12
- package/lib/lists/actions-menu-row-surface.js +0 -65
- package/lib/lists/actions-menu-row-surface.wyw-in-js.css +0 -4
- package/lib/loading-sausage.d.ts +0 -24
- package/lib/loading-sausage.js +0 -57
- package/lib/loading-sausage.wyw-in-js.css +0 -6
- package/lib/nested-menu-item.d.ts +0 -1
- package/lib/nested-menu-item.js +0 -0
- package/lib/not-empty.d.ts +0 -4
- package/lib/not-empty.js +0 -6
- package/lib/use-why-did-you-update.d.ts +0 -4
- package/lib/use-why-did-you-update.js +0 -25
- package/lib/with-data.d.ts +0 -77
- package/lib/with-data.js +0 -55
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
.hh2b9bk-handleBase{height:100%;z-index:1;width:10px;position:absolute;top:0;bottom:0;opacity:0;border-left:4px solid transparent;border-right:4px solid transparent;cursor:col-resize;box-sizing:border-box;background-clip:padding-box;touch-action:none;transition:opacity 120ms ease-in-out;}.hh2b9bk-handleBase:hover{opacity:1;background-color:var(--colorBgDropLine);}
|
|
2
|
+
.h1qhbasl-handleRight{right:-5px;}
|
|
3
|
+
.hb0knw2-handleLeft{left:-5px;}
|
|
4
|
+
.h1jf2w7j-handleDragging{opacity:1;background-color:var(--colorBgDropLine);}
|
|
5
|
+
.tbrnpc3-tooltip{display:flex;flex-direction:column;gap:2px;}
|
|
6
|
+
.tw6ycid-tooltipRow{display:flex;align-items:center;gap:6px;}
|
|
7
|
+
.t1fwtuky-tooltipHotkey{display:flex;align-items:center;gap:4px;}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode, Ref } from "react";
|
|
2
|
+
//#region src/sidebar/sidebar.d.ts
|
|
3
|
+
declare const sidebarWidthVar = "--sidebar-width";
|
|
4
|
+
declare const sidebarTransitionDuration = 300;
|
|
5
|
+
declare const sidebarTransition = "300ms cubic-bezier(0.16, 0.84, 0.44, 1)";
|
|
6
|
+
declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | "onResize"> & {
|
|
7
|
+
side: "left" | "right";
|
|
8
|
+
/** Number in px, or a css length when not resizable */
|
|
9
|
+
width: number | string;
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
maxWidth: number;
|
|
13
|
+
resizable?: boolean;
|
|
14
|
+
onResizeStart?: () => void;
|
|
15
|
+
/** Live width is written straight to the DOM; this only reports it */
|
|
16
|
+
onResize?: (width: number, rawWidth: number) => void;
|
|
17
|
+
onResizeEnd?: (width: number) => void;
|
|
18
|
+
onHandleClick?: () => void;
|
|
19
|
+
handleHotkeyNode?: ReactNode;
|
|
20
|
+
panelClassName?: string;
|
|
21
|
+
panelRef?: Ref<HTMLDivElement>;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { Sidebar, sidebarTransition, sidebarTransitionDuration, sidebarWidthVar };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "./sidebar.wyw-in-js.css";
|
|
2
|
+
import { useResizeDrag } from "./use-resize-drag.js";
|
|
3
|
+
import { SidebarHandle } from "./sidebar-handle.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { forwardRef, useRef } from "react";
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
8
|
+
import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
|
|
9
|
+
//#region src/sidebar/sidebar.tsx
|
|
10
|
+
var sidebarWidthVar = "--sidebar-width";
|
|
11
|
+
var sidebarTransitionDuration = 300;
|
|
12
|
+
var sidebarTransition = `300ms cubic-bezier(0.16, 0.84, 0.44, 1)`;
|
|
13
|
+
var rootCss = "rotdw5d-root";
|
|
14
|
+
var gapCss = "g15gx138-gap";
|
|
15
|
+
var panelCss = "p1yy31y7-panel";
|
|
16
|
+
var Sidebar = forwardRef(function Sidebar({ side, width, collapsed = false, minWidth, maxWidth, resizable = true, onResizeStart, onResize, onResizeEnd, onHandleClick, handleHotkeyNode, panelClassName, panelRef, className, style, children, ...rest }, forwardedRef) {
|
|
17
|
+
const rootRef = useRef(null);
|
|
18
|
+
const setRootRef = useComposedRefs(forwardedRef, rootRef);
|
|
19
|
+
const isNumericWidth = typeof width === "number";
|
|
20
|
+
const { isResizing, handleProps } = useResizeDrag({
|
|
21
|
+
side,
|
|
22
|
+
size: isNumericWidth ? width : 0,
|
|
23
|
+
minSize: minWidth,
|
|
24
|
+
maxSize: maxWidth,
|
|
25
|
+
disabled: !resizable || !isNumericWidth,
|
|
26
|
+
onResizeStart,
|
|
27
|
+
onResize: (size, rawSize) => {
|
|
28
|
+
rootRef.current?.style.setProperty(sidebarWidthVar, `${size}px`);
|
|
29
|
+
onResize?.(size, rawSize);
|
|
30
|
+
},
|
|
31
|
+
onResizeEnd,
|
|
32
|
+
onClick: onHandleClick
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
ref: setRootRef,
|
|
36
|
+
"data-side": side,
|
|
37
|
+
"data-state": collapsed ? "collapsed" : "expanded",
|
|
38
|
+
"data-resizing": isResizing,
|
|
39
|
+
className: cx(rootCss, className),
|
|
40
|
+
style: {
|
|
41
|
+
...style,
|
|
42
|
+
[sidebarWidthVar]: isNumericWidth ? `${width}px` : width
|
|
43
|
+
},
|
|
44
|
+
...rest,
|
|
45
|
+
children: [/* @__PURE__ */ jsx("div", { className: gapCss }), /* @__PURE__ */ jsxs("div", {
|
|
46
|
+
ref: panelRef,
|
|
47
|
+
className: cx(panelCss, panelClassName),
|
|
48
|
+
children: [children, resizable ? /* @__PURE__ */ jsx(SidebarHandle, {
|
|
49
|
+
edge: side === "left" ? "right" : "left",
|
|
50
|
+
dragging: isResizing,
|
|
51
|
+
collapseOnClick: Boolean(onHandleClick),
|
|
52
|
+
hotkeyNode: handleHotkeyNode,
|
|
53
|
+
hidden: collapsed && !isResizing,
|
|
54
|
+
...handleProps
|
|
55
|
+
}) : null]
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { Sidebar, sidebarTransition, sidebarTransitionDuration, sidebarWidthVar };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.rotdw5d-root{position:relative;flex:none;height:100%;}
|
|
2
|
+
.g15gx138-gap{width:var(--sidebar-width);height:100%;transition:width 300ms cubic-bezier(0.16, 0.84, 0.44, 1);}:where([data-state="collapsed"])>.g15gx138-gap{width:0;}:where([data-resizing="true"])>.g15gx138-gap{transition:none;}
|
|
3
|
+
.p1yy31y7-panel{position:absolute;top:0;bottom:0;display:flex;width:var(--sidebar-width);transition:left 300ms cubic-bezier(0.16, 0.84, 0.44, 1),right 300ms cubic-bezier(0.16, 0.84, 0.44, 1),width 300ms cubic-bezier(0.16, 0.84, 0.44, 1);}:where([data-side="left"])>.p1yy31y7-panel{left:0;}:where([data-side="right"])>.p1yy31y7-panel{right:0;}:where([data-side="left"][data-state="collapsed"])>.p1yy31y7-panel{left:calc(-1 * var(--sidebar-width));}:where([data-side="right"][data-state="collapsed"])>.p1yy31y7-panel{right:calc(-1 * var(--sidebar-width));}:where([data-resizing="true"])>.p1yy31y7-panel{transition:none;}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PointerEvent } from "react";
|
|
2
|
+
//#region src/sidebar/use-resize-drag.d.ts
|
|
3
|
+
type ResizeDragOptions = {
|
|
4
|
+
/** Side of the layout the resizable element sits on */
|
|
5
|
+
side: "left" | "right";
|
|
6
|
+
size: number;
|
|
7
|
+
minSize: number;
|
|
8
|
+
maxSize: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onResizeStart?: () => void;
|
|
11
|
+
onResize?: (size: number, rawSize: number) => void;
|
|
12
|
+
onResizeEnd?: (size: number) => void;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
};
|
|
15
|
+
declare function useResizeDrag(options: ResizeDragOptions): {
|
|
16
|
+
isResizing: boolean;
|
|
17
|
+
handleProps: {
|
|
18
|
+
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ResizeDragOptions, useResizeDrag };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
//#region src/sidebar/use-resize-drag.ts
|
|
3
|
+
var dragThreshold = 3;
|
|
4
|
+
function setBodyDragStyles(active) {
|
|
5
|
+
const style = document.body.style;
|
|
6
|
+
style.cursor = active ? "col-resize" : "";
|
|
7
|
+
style.userSelect = active ? "none" : "";
|
|
8
|
+
style.webkitUserSelect = active ? "none" : "";
|
|
9
|
+
}
|
|
10
|
+
function useResizeDrag(options) {
|
|
11
|
+
const optionsRef = useRef(options);
|
|
12
|
+
optionsRef.current = options;
|
|
13
|
+
const dragRef = useRef(null);
|
|
14
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
15
|
+
const onPointerDown = useCallback((event) => {
|
|
16
|
+
const { disabled, size } = optionsRef.current;
|
|
17
|
+
if (disabled || event.button !== 0 || dragRef.current) return;
|
|
18
|
+
const element = event.currentTarget;
|
|
19
|
+
const drag = {
|
|
20
|
+
pointerId: event.pointerId,
|
|
21
|
+
startX: event.clientX,
|
|
22
|
+
startSize: size,
|
|
23
|
+
size,
|
|
24
|
+
moved: false
|
|
25
|
+
};
|
|
26
|
+
dragRef.current = drag;
|
|
27
|
+
element.setPointerCapture(event.pointerId);
|
|
28
|
+
const onPointerMove = (e) => {
|
|
29
|
+
if (e.pointerId !== drag.pointerId) return;
|
|
30
|
+
const delta = e.clientX - drag.startX;
|
|
31
|
+
if (!drag.moved) {
|
|
32
|
+
if (Math.abs(delta) < dragThreshold) return;
|
|
33
|
+
drag.moved = true;
|
|
34
|
+
setBodyDragStyles(true);
|
|
35
|
+
setIsResizing(true);
|
|
36
|
+
optionsRef.current.onResizeStart?.();
|
|
37
|
+
}
|
|
38
|
+
const { side, minSize, maxSize, onResize } = optionsRef.current;
|
|
39
|
+
const rawSize = drag.startSize + (side === "left" ? delta : -delta);
|
|
40
|
+
drag.size = Math.min(maxSize, Math.max(minSize, rawSize));
|
|
41
|
+
onResize?.(drag.size, rawSize);
|
|
42
|
+
};
|
|
43
|
+
const finish = (e) => {
|
|
44
|
+
if (e.pointerId !== drag.pointerId) return;
|
|
45
|
+
element.removeEventListener("pointermove", onPointerMove);
|
|
46
|
+
element.removeEventListener("pointerup", finish);
|
|
47
|
+
element.removeEventListener("pointercancel", finish);
|
|
48
|
+
dragRef.current = null;
|
|
49
|
+
const { onResizeEnd, onClick } = optionsRef.current;
|
|
50
|
+
if (drag.moved) {
|
|
51
|
+
setBodyDragStyles(false);
|
|
52
|
+
setIsResizing(false);
|
|
53
|
+
onResizeEnd?.(drag.size);
|
|
54
|
+
} else onClick?.();
|
|
55
|
+
};
|
|
56
|
+
element.addEventListener("pointermove", onPointerMove);
|
|
57
|
+
element.addEventListener("pointerup", finish);
|
|
58
|
+
element.addEventListener("pointercancel", finish);
|
|
59
|
+
}, []);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
return () => {
|
|
62
|
+
if (dragRef.current?.moved) setBodyDragStyles(false);
|
|
63
|
+
};
|
|
64
|
+
}, []);
|
|
65
|
+
return {
|
|
66
|
+
isResizing,
|
|
67
|
+
handleProps: { onPointerDown }
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { useResizeDrag };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from "react";
|
|
2
|
+
//#region src/skeleton.d.ts
|
|
3
|
+
type SkeletonProps = {
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
inverted?: boolean;
|
|
8
|
+
animateAppearance?: boolean;
|
|
9
|
+
margins?: boolean;
|
|
10
|
+
index?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Skeleton: import("react").MemoExoticComponent<({ minWidth, maxWidth, index, height, margins, animateAppearance }: SkeletonProps) => JSX.Element>;
|
|
13
|
+
type SkeletonListProps = {
|
|
14
|
+
amount?: number;
|
|
15
|
+
minAmount?: number;
|
|
16
|
+
maxAmount?: number;
|
|
17
|
+
WrapperComponent?: ComponentType<{
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}> | null;
|
|
20
|
+
} & Omit<SkeletonProps, "index">;
|
|
21
|
+
declare const SkeletonList: import("react").NamedExoticComponent<SkeletonListProps>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Skeleton, SkeletonList, SkeletonProps };
|
package/lib/skeleton.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./skeleton.wyw-in-js.css";
|
|
2
|
+
import { getRandomInt } from "./random.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
+
import { memo, useState } from "react";
|
|
6
|
+
import cx from "classnames";
|
|
7
|
+
import { styled } from "@linaria/react";
|
|
8
|
+
//#region src/skeleton.tsx
|
|
9
|
+
var skeletonStyle = "slo3ayz-skeleton";
|
|
10
|
+
var marginStyle = "mzl91bk-margin";
|
|
11
|
+
var skeletonAppearanceStyle = "siugmrr-skeletonAppearance";
|
|
12
|
+
var _exp4 = () => ((props) => `${props.height / 2}px`);
|
|
13
|
+
var Container = /*#__PURE__*/ styled("div")({
|
|
14
|
+
name: "Container",
|
|
15
|
+
class: "cjtjcsl-Container",
|
|
16
|
+
propsAsIs: false,
|
|
17
|
+
vars: { "cjtjcsl-0": [_exp4()] }
|
|
18
|
+
});
|
|
19
|
+
var Skeleton = memo(function Skeleton({ minWidth = 80, maxWidth = 120, index, height = 12, margins = true, animateAppearance = false }) {
|
|
20
|
+
const [width] = useState(() => getRandomInt(minWidth, maxWidth, index));
|
|
21
|
+
return /* @__PURE__ */ jsx(Container, {
|
|
22
|
+
height,
|
|
23
|
+
style: {
|
|
24
|
+
width,
|
|
25
|
+
height
|
|
26
|
+
},
|
|
27
|
+
className: cx(skeletonStyle, margins && marginStyle, animateAppearance && skeletonAppearanceStyle)
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
var SkeletonList = memo(function SkeletonList({ amount, minAmount = 1, maxAmount = 1, WrapperComponent, ...restProps }) {
|
|
31
|
+
const calculatedAmount = amount || getRandomInt(minAmount, maxAmount);
|
|
32
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: calculatedAmount }, (_, index) => {
|
|
33
|
+
const style = { opacity: (calculatedAmount - index) / calculatedAmount };
|
|
34
|
+
return /* @__PURE__ */ jsx("div", {
|
|
35
|
+
style,
|
|
36
|
+
children: WrapperComponent ? /* @__PURE__ */ jsx(WrapperComponent, { children: /* @__PURE__ */ jsx(Skeleton, {
|
|
37
|
+
index: index + 1,
|
|
38
|
+
...restProps
|
|
39
|
+
}) }) : /* @__PURE__ */ jsx(Skeleton, {
|
|
40
|
+
index: index + 1,
|
|
41
|
+
...restProps
|
|
42
|
+
})
|
|
43
|
+
}, index);
|
|
44
|
+
}) });
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Skeleton, SkeletonList };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.slo3ayz-skeleton{vertical-align:middle;position:relative;background:none;}.slo3ayz-skeleton::before,.slo3ayz-skeleton::after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;}@keyframes OpacityAnim-slo3ayz-skeleton{0%{opacity:1;}100%{opacity:0;}}.slo3ayz-skeleton::before{background-image:linear-gradient(90deg, transparent 0%, var(--colorBgSkeleton) 100%);animation:OpacityAnim-slo3ayz-skeleton 2s ease-in-out 0s infinite alternate;}.slo3ayz-skeleton::after{background-image:linear-gradient(90deg, var(--colorBgSkeleton) 0%, transparent 100%);animation:OpacityAnim-slo3ayz-skeleton 2s ease-in-out -2s infinite alternate;}
|
|
2
|
+
.mzl91bk-margin{margin-top:4px;margin-bottom:4px;}
|
|
3
|
+
.siugmrr-skeletonAppearance{animation:OpacityAnim-siugmrr-skeletonAppearance 1s cubic-bezier(0.95, 0.05, 0.795, 0.035) 1;}@keyframes OpacityAnim-siugmrr-skeletonAppearance{0%{opacity:0;}100%{opacity:1;}}
|
|
4
|
+
.cjtjcsl-Container::before,.cjtjcsl-Container::after{border-radius:var(--cjtjcsl-0);}
|
package/lib/tab-nav/tab-nav.js
CHANGED
|
@@ -3,8 +3,8 @@ import { TooltipIfOverflown } from "../tooltip-if-overflown.js";
|
|
|
3
3
|
import { ellipsis } from "../styles-utils.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { createContext } from "@fibery/react/src/create-context";
|
|
6
7
|
import { forwardRef, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
-
import { createContext as createContext$1 } from "@fibery/react/src/create-context";
|
|
8
8
|
import { cx } from "@linaria/core";
|
|
9
9
|
import { useResizeObserver } from "@fibery/react/src/use-resize-observer";
|
|
10
10
|
import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
|
|
@@ -24,7 +24,7 @@ var positionIndicator = (indicator, activeItem) => {
|
|
|
24
24
|
indicator.style.transform = `translateX(${activeItem.offsetLeft}px) scaleX(${activeItem.offsetWidth / tabNavIndicatorWidth})`;
|
|
25
25
|
indicator.classList.add(tabNavIndicatorMounted);
|
|
26
26
|
};
|
|
27
|
-
var [TabNavContextProvider, useTabNavCtx] = createContext
|
|
27
|
+
var [TabNavContextProvider, useTabNavCtx] = createContext("TabNavContext");
|
|
28
28
|
var TabNavRoot = ({ className, trackClassName, children, orientation = "horizontal", ...props }) => {
|
|
29
29
|
const indicatorRef = useRef(null);
|
|
30
30
|
const activeItemRef = useRef(null);
|
package/lib/theme-provider.d.ts
CHANGED
|
@@ -500,8 +500,7 @@ declare const ThemeContext: import("react").Context<{
|
|
|
500
500
|
readonly colorBgLogoCardTransparent: string;
|
|
501
501
|
readonly colorBgLogoCardDark: string;
|
|
502
502
|
readonly colorBgLogoCardMedium: string;
|
|
503
|
-
readonly
|
|
504
|
-
readonly colorBgSkeletonTo: string;
|
|
503
|
+
readonly colorBgSkeleton: string;
|
|
505
504
|
readonly colorShadowInsetEdge: string;
|
|
506
505
|
readonly colorShadowBorder: string;
|
|
507
506
|
readonly colorShadowElevation: string;
|
package/lib/theme-styles.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { neutralUserPalette } from "./palettes/neutral-user.js";
|
|
2
2
|
import { warmUserPalette } from "./palettes/warm-user.js";
|
|
3
3
|
import { defsFromPalette } from "./design-system/colors.js";
|
|
4
|
-
import { themeFromDefs } from "./design-system/theme.js";
|
|
4
|
+
import { themeFromDefs, themeFromPalette } from "./design-system/theme.js";
|
|
5
5
|
//#region src/theme-styles.ts
|
|
6
6
|
function make(palette) {
|
|
7
7
|
const defs = defsFromPalette(palette);
|
|
8
|
+
const themes = [themeFromDefs(defs, "light"), themeFromDefs(defs, "dark")];
|
|
9
|
+
themeFromPalette.cache.set(`${palette.key}-light`, themes[0]);
|
|
10
|
+
themeFromPalette.cache.set(`${palette.key}-dark`, themes[1]);
|
|
8
11
|
return {
|
|
9
12
|
defs,
|
|
10
13
|
palette,
|
|
11
|
-
themes
|
|
14
|
+
themes
|
|
12
15
|
};
|
|
13
16
|
}
|
|
14
17
|
var neutral = make(neutralUserPalette);
|
|
@@ -514,8 +514,7 @@ declare const themeVars: {
|
|
|
514
514
|
readonly colorBgLogoCardTransparent: "var(--colorBgLogoCardTransparent)";
|
|
515
515
|
readonly colorBgLogoCardDark: "var(--colorBgLogoCardDark)";
|
|
516
516
|
readonly colorBgLogoCardMedium: "var(--colorBgLogoCardMedium)";
|
|
517
|
-
readonly
|
|
518
|
-
readonly colorBgSkeletonTo: "var(--colorBgSkeletonTo)";
|
|
517
|
+
readonly colorBgSkeleton: "var(--colorBgSkeleton)";
|
|
519
518
|
readonly colorShadowInsetEdge: "var(--colorShadowInsetEdge)";
|
|
520
519
|
readonly colorShadowBorder: "var(--colorShadowBorder)";
|
|
521
520
|
readonly colorShadowElevation: "var(--colorShadowElevation)";
|
|
@@ -1075,8 +1074,7 @@ declare const neutralStyles: {
|
|
|
1075
1074
|
readonly "--colorBgLogoCardTransparent": "rgb(255,255,255)";
|
|
1076
1075
|
readonly "--colorBgLogoCardDark": "rgb(199,199,199)";
|
|
1077
1076
|
readonly "--colorBgLogoCardMedium": "rgb(237,237,237)";
|
|
1078
|
-
readonly "--
|
|
1079
|
-
readonly "--colorBgSkeletonTo": "rgba(255, 255, 255, 0.1)";
|
|
1077
|
+
readonly "--colorBgSkeleton": "rgba(0, 0, 0, 0.1)";
|
|
1080
1078
|
readonly "--colorShadowInsetEdge": "rgba(255, 255, 255, 0.05)";
|
|
1081
1079
|
readonly "--colorShadowBorder": "rgba(255, 255, 255, 0.1)";
|
|
1082
1080
|
readonly "--colorShadowElevation": "rgba(0, 0, 0, 0.1)";
|
|
@@ -1401,10 +1399,10 @@ declare const neutralStyles: {
|
|
|
1401
1399
|
readonly "--cardBg": "rgb(51,51,51)";
|
|
1402
1400
|
readonly "--selectedImageBorder": "rgba(255,255,255,0.59)";
|
|
1403
1401
|
readonly "--transparent": "rgba(255, 255, 255, 0)";
|
|
1404
|
-
readonly "--progressBg": "rgb(
|
|
1405
|
-
readonly "--progressText": "rgb(
|
|
1406
|
-
readonly "--progressFillBg": "rgb(
|
|
1407
|
-
readonly "--progressFillText": "rgb(
|
|
1402
|
+
readonly "--progressBg": "rgb(41,41,41)";
|
|
1403
|
+
readonly "--progressText": "rgb(161,161,161)";
|
|
1404
|
+
readonly "--progressFillBg": "rgb(161,161,161)";
|
|
1405
|
+
readonly "--progressFillText": "rgb(28,28,28)";
|
|
1408
1406
|
readonly "--progressBarFillNeutral": "rgba(112, 112, 112, 0.2)";
|
|
1409
1407
|
readonly "--progressBarFill": "#5f85dd";
|
|
1410
1408
|
readonly "--progressBarBg": "rgba(95, 133, 221, 0.25)";
|
|
@@ -1625,8 +1623,7 @@ declare const neutralStyles: {
|
|
|
1625
1623
|
readonly "--colorBgLogoCardTransparent": "rgb(28,28,28)";
|
|
1626
1624
|
readonly "--colorBgLogoCardDark": "rgb(82,82,82)";
|
|
1627
1625
|
readonly "--colorBgLogoCardMedium": "rgb(41,41,41)";
|
|
1628
|
-
readonly "--
|
|
1629
|
-
readonly "--colorBgSkeletonTo": "rgba(0, 0, 0, 0.1)";
|
|
1626
|
+
readonly "--colorBgSkeleton": "rgba(255, 255, 255, 0.1)";
|
|
1630
1627
|
readonly "--colorShadowInsetEdge": "rgba(0, 0, 0, 0.05)";
|
|
1631
1628
|
readonly "--colorShadowBorder": "rgba(0, 0, 0, 0.1)";
|
|
1632
1629
|
readonly "--colorShadowElevation": "rgba(255, 255, 255, 0.1)";
|
|
@@ -2177,8 +2174,7 @@ declare const warmStyles: {
|
|
|
2177
2174
|
readonly "--colorBgLogoCardTransparent": "rgb(255,253,250)";
|
|
2178
2175
|
readonly "--colorBgLogoCardDark": "rgb(204,198,191)";
|
|
2179
2176
|
readonly "--colorBgLogoCardMedium": "rgb(243,236,229)";
|
|
2180
|
-
readonly "--
|
|
2181
|
-
readonly "--colorBgSkeletonTo": "rgba(255, 253, 250, 0.1)";
|
|
2177
|
+
readonly "--colorBgSkeleton": "rgba(31, 26, 24, 0.1)";
|
|
2182
2178
|
readonly "--colorShadowInsetEdge": "rgba(255, 253, 250, 0.05)";
|
|
2183
2179
|
readonly "--colorShadowBorder": "rgba(255, 253, 250, 0.1)";
|
|
2184
2180
|
readonly "--colorShadowElevation": "rgba(31, 26, 24, 0.1)";
|
|
@@ -2503,10 +2499,10 @@ declare const warmStyles: {
|
|
|
2503
2499
|
readonly "--cardBg": "rgb(55,50,48)";
|
|
2504
2500
|
readonly "--selectedImageBorder": "rgba(255,255,254,0.59)";
|
|
2505
2501
|
readonly "--transparent": "rgba(255, 255, 255, 0)";
|
|
2506
|
-
readonly "--progressBg": "rgb(
|
|
2507
|
-
readonly "--progressText": "rgb(
|
|
2508
|
-
readonly "--progressFillBg": "rgb(
|
|
2509
|
-
readonly "--progressFillText": "rgb(
|
|
2502
|
+
readonly "--progressBg": "rgb(45,40,38)";
|
|
2503
|
+
readonly "--progressText": "rgb(166,159,157)";
|
|
2504
|
+
readonly "--progressFillBg": "rgb(166,159,157)";
|
|
2505
|
+
readonly "--progressFillText": "rgb(32,27,25)";
|
|
2510
2506
|
readonly "--progressBarFillNeutral": "rgba(117, 111, 109, 0.2)";
|
|
2511
2507
|
readonly "--progressBarFill": "rgb(22,152,183)";
|
|
2512
2508
|
readonly "--progressBarBg": "rgba(22, 152, 183, 0.25)";
|
|
@@ -2727,8 +2723,7 @@ declare const warmStyles: {
|
|
|
2727
2723
|
readonly "--colorBgLogoCardTransparent": "rgb(32,27,25)";
|
|
2728
2724
|
readonly "--colorBgLogoCardDark": "rgb(86,80,78)";
|
|
2729
2725
|
readonly "--colorBgLogoCardMedium": "rgb(45,40,38)";
|
|
2730
|
-
readonly "--
|
|
2731
|
-
readonly "--colorBgSkeletonTo": "rgba(31, 26, 24, 0.1)";
|
|
2726
|
+
readonly "--colorBgSkeleton": "rgba(255, 253, 250, 0.1)";
|
|
2732
2727
|
readonly "--colorShadowInsetEdge": "rgba(31, 26, 24, 0.05)";
|
|
2733
2728
|
readonly "--colorShadowBorder": "rgba(31, 26, 24, 0.1)";
|
|
2734
2729
|
readonly "--colorShadowElevation": "rgba(255, 253, 250, 0.1)";
|
package/lib/theming.generated.js
CHANGED
|
@@ -514,8 +514,7 @@ var themeVars = {
|
|
|
514
514
|
colorBgLogoCardTransparent: "var(--colorBgLogoCardTransparent)",
|
|
515
515
|
colorBgLogoCardDark: "var(--colorBgLogoCardDark)",
|
|
516
516
|
colorBgLogoCardMedium: "var(--colorBgLogoCardMedium)",
|
|
517
|
-
|
|
518
|
-
colorBgSkeletonTo: "var(--colorBgSkeletonTo)",
|
|
517
|
+
colorBgSkeleton: "var(--colorBgSkeleton)",
|
|
519
518
|
colorShadowInsetEdge: "var(--colorShadowInsetEdge)",
|
|
520
519
|
colorShadowBorder: "var(--colorShadowBorder)",
|
|
521
520
|
colorShadowElevation: "var(--colorShadowElevation)",
|
|
@@ -1075,8 +1074,7 @@ var neutralStyles = {
|
|
|
1075
1074
|
"--colorBgLogoCardTransparent": "rgb(255,255,255)",
|
|
1076
1075
|
"--colorBgLogoCardDark": "rgb(199,199,199)",
|
|
1077
1076
|
"--colorBgLogoCardMedium": "rgb(237,237,237)",
|
|
1078
|
-
"--
|
|
1079
|
-
"--colorBgSkeletonTo": "rgba(255, 255, 255, 0.1)",
|
|
1077
|
+
"--colorBgSkeleton": "rgba(0, 0, 0, 0.1)",
|
|
1080
1078
|
"--colorShadowInsetEdge": "rgba(255, 255, 255, 0.05)",
|
|
1081
1079
|
"--colorShadowBorder": "rgba(255, 255, 255, 0.1)",
|
|
1082
1080
|
"--colorShadowElevation": "rgba(0, 0, 0, 0.1)",
|
|
@@ -1401,10 +1399,10 @@ var neutralStyles = {
|
|
|
1401
1399
|
"--cardBg": "rgb(51,51,51)",
|
|
1402
1400
|
"--selectedImageBorder": "rgba(255,255,255,0.59)",
|
|
1403
1401
|
"--transparent": "rgba(255, 255, 255, 0)",
|
|
1404
|
-
"--progressBg": "rgb(
|
|
1405
|
-
"--progressText": "rgb(
|
|
1406
|
-
"--progressFillBg": "rgb(
|
|
1407
|
-
"--progressFillText": "rgb(
|
|
1402
|
+
"--progressBg": "rgb(41,41,41)",
|
|
1403
|
+
"--progressText": "rgb(161,161,161)",
|
|
1404
|
+
"--progressFillBg": "rgb(161,161,161)",
|
|
1405
|
+
"--progressFillText": "rgb(28,28,28)",
|
|
1408
1406
|
"--progressBarFillNeutral": "rgba(112, 112, 112, 0.2)",
|
|
1409
1407
|
"--progressBarFill": "#5f85dd",
|
|
1410
1408
|
"--progressBarBg": "rgba(95, 133, 221, 0.25)",
|
|
@@ -1625,8 +1623,7 @@ var neutralStyles = {
|
|
|
1625
1623
|
"--colorBgLogoCardTransparent": "rgb(28,28,28)",
|
|
1626
1624
|
"--colorBgLogoCardDark": "rgb(82,82,82)",
|
|
1627
1625
|
"--colorBgLogoCardMedium": "rgb(41,41,41)",
|
|
1628
|
-
"--
|
|
1629
|
-
"--colorBgSkeletonTo": "rgba(0, 0, 0, 0.1)",
|
|
1626
|
+
"--colorBgSkeleton": "rgba(255, 255, 255, 0.1)",
|
|
1630
1627
|
"--colorShadowInsetEdge": "rgba(0, 0, 0, 0.05)",
|
|
1631
1628
|
"--colorShadowBorder": "rgba(0, 0, 0, 0.1)",
|
|
1632
1629
|
"--colorShadowElevation": "rgba(255, 255, 255, 0.1)",
|
|
@@ -2177,8 +2174,7 @@ var warmStyles = {
|
|
|
2177
2174
|
"--colorBgLogoCardTransparent": "rgb(255,253,250)",
|
|
2178
2175
|
"--colorBgLogoCardDark": "rgb(204,198,191)",
|
|
2179
2176
|
"--colorBgLogoCardMedium": "rgb(243,236,229)",
|
|
2180
|
-
"--
|
|
2181
|
-
"--colorBgSkeletonTo": "rgba(255, 253, 250, 0.1)",
|
|
2177
|
+
"--colorBgSkeleton": "rgba(31, 26, 24, 0.1)",
|
|
2182
2178
|
"--colorShadowInsetEdge": "rgba(255, 253, 250, 0.05)",
|
|
2183
2179
|
"--colorShadowBorder": "rgba(255, 253, 250, 0.1)",
|
|
2184
2180
|
"--colorShadowElevation": "rgba(31, 26, 24, 0.1)",
|
|
@@ -2503,10 +2499,10 @@ var warmStyles = {
|
|
|
2503
2499
|
"--cardBg": "rgb(55,50,48)",
|
|
2504
2500
|
"--selectedImageBorder": "rgba(255,255,254,0.59)",
|
|
2505
2501
|
"--transparent": "rgba(255, 255, 255, 0)",
|
|
2506
|
-
"--progressBg": "rgb(
|
|
2507
|
-
"--progressText": "rgb(
|
|
2508
|
-
"--progressFillBg": "rgb(
|
|
2509
|
-
"--progressFillText": "rgb(
|
|
2502
|
+
"--progressBg": "rgb(45,40,38)",
|
|
2503
|
+
"--progressText": "rgb(166,159,157)",
|
|
2504
|
+
"--progressFillBg": "rgb(166,159,157)",
|
|
2505
|
+
"--progressFillText": "rgb(32,27,25)",
|
|
2510
2506
|
"--progressBarFillNeutral": "rgba(117, 111, 109, 0.2)",
|
|
2511
2507
|
"--progressBarFill": "rgb(22,152,183)",
|
|
2512
2508
|
"--progressBarBg": "rgba(22, 152, 183, 0.25)",
|
|
@@ -2727,8 +2723,7 @@ var warmStyles = {
|
|
|
2727
2723
|
"--colorBgLogoCardTransparent": "rgb(32,27,25)",
|
|
2728
2724
|
"--colorBgLogoCardDark": "rgb(86,80,78)",
|
|
2729
2725
|
"--colorBgLogoCardMedium": "rgb(45,40,38)",
|
|
2730
|
-
"--
|
|
2731
|
-
"--colorBgSkeletonTo": "rgba(31, 26, 24, 0.1)",
|
|
2726
|
+
"--colorBgSkeleton": "rgba(255, 253, 250, 0.1)",
|
|
2732
2727
|
"--colorShadowInsetEdge": "rgba(31, 26, 24, 0.05)",
|
|
2733
2728
|
"--colorShadowBorder": "rgba(31, 26, 24, 0.1)",
|
|
2734
2729
|
"--colorShadowElevation": "rgba(255, 253, 250, 0.1)",
|
|
@@ -10,6 +10,7 @@ declare const useToast: () => {
|
|
|
10
10
|
add: ({ id, ...toast }: AddToastProps) => string;
|
|
11
11
|
close(id: string): void;
|
|
12
12
|
remove(id: string): void;
|
|
13
|
+
removeFromQueue(id: string): void;
|
|
13
14
|
getActiveToasts(): (Pick<ToastProps, "action" | "dismissable" | "duration" | "icon" | "onOpenChange" | "open" | "subTitle" | "title" | "type" | "variant"> & {
|
|
14
15
|
id?: string;
|
|
15
16
|
} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from "@fibery/react/src/create-context";
|
|
2
3
|
import "react";
|
|
3
|
-
import { createContext as createContext$1 } from "@fibery/react/src/create-context";
|
|
4
4
|
import { ToastProvider as ToastProvider$1 } from "@radix-ui/react-toast";
|
|
5
5
|
//#region src/toast/toast-provider.tsx
|
|
6
|
-
var [Provider, useCtx] = createContext
|
|
6
|
+
var [Provider, useCtx] = createContext("ToastQueue");
|
|
7
7
|
var ToastProvider = ({ toastQueue, children }) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Provider, {
|
|
9
9
|
value: toastQueue,
|
|
@@ -22,6 +22,8 @@ declare const makeToastQueue: ({ maxActiveToasts, onToastAdd, transformToast }?:
|
|
|
22
22
|
close(id: string): void;
|
|
23
23
|
/** remove toast from active ones, should be called after exit animation */
|
|
24
24
|
remove(id: string): void;
|
|
25
|
+
/** sometimes backend answers faster than active toast changes to one which needed to be removed */
|
|
26
|
+
removeFromQueue(id: string): void;
|
|
25
27
|
getActiveToasts(): QueuedToast[];
|
|
26
28
|
addBottomOffset: (bottomOffset: number) => () => void;
|
|
27
29
|
getBottomOffset(): number;
|
package/lib/toast/toast-queue.js
CHANGED
|
@@ -48,6 +48,12 @@ var makeToastQueue = ({ maxActiveToasts = 1, onToastAdd, transformToast } = {})
|
|
|
48
48
|
activeToasts = activeToasts.filter((t) => t.id !== id);
|
|
49
49
|
updateActiveToasts();
|
|
50
50
|
},
|
|
51
|
+
/** sometimes backend answers faster than active toast changes to one which needed to be removed */
|
|
52
|
+
removeFromQueue(id) {
|
|
53
|
+
activeToasts = activeToasts.filter((t) => t.id !== id);
|
|
54
|
+
queue = queue.filter((x) => x.id !== id);
|
|
55
|
+
updateActiveToasts();
|
|
56
|
+
},
|
|
51
57
|
getActiveToasts() {
|
|
52
58
|
return activeToasts;
|
|
53
59
|
},
|
package/lib/tooltip.js
CHANGED
|
@@ -47,7 +47,7 @@ var TooltipProvider = (props) => /* @__PURE__ */ jsx(TooltipPrimitive.Provider,
|
|
|
47
47
|
*
|
|
48
48
|
* Ref: https://github.com/radix-ui/primitives/issues/602
|
|
49
49
|
*/
|
|
50
|
-
var Tooltip = forwardRef(({ title, description, content = (title || description) && /* @__PURE__ */ jsxs(Fragment, { children: [title && /* @__PURE__ */ jsx(TooltipTitle, { children: title }), description && /* @__PURE__ */ jsx(TooltipDescription, { children: description })] }), side, sideOffset = space.s4, align, alignOffset, instant, children, whiteBg, visible, onVisibleChange, keepOnClick, openOnFocus = true, disabled, setContentElement, container, tooltipContentStyle, disableHoverableContent, ...triggerProps }, ref)
|
|
50
|
+
var Tooltip = forwardRef(function UiKitTooltip({ title, description, content = (title || description) && /* @__PURE__ */ jsxs(Fragment, { children: [title && /* @__PURE__ */ jsx(TooltipTitle, { children: title }), description && /* @__PURE__ */ jsx(TooltipDescription, { children: description })] }), side, sideOffset = space.s4, align, alignOffset, instant, children, whiteBg, visible, onVisibleChange, keepOnClick, openOnFocus = true, disabled, setContentElement, container, tooltipContentStyle, disableHoverableContent, ...triggerProps }, ref) {
|
|
51
51
|
const [open, setOpen] = useControllableState({
|
|
52
52
|
value: visible,
|
|
53
53
|
defaultValue: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SkeletonProps } from "../skeleton.js";
|
|
2
2
|
//#region src/unit/loading-unit-value.d.ts
|
|
3
3
|
declare const unitTextHeight = 8;
|
|
4
|
-
declare const LoadingUnitValue: (props:
|
|
4
|
+
declare const LoadingUnitValue: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { LoadingUnitValue, unitTextHeight };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./loading-unit-value.wyw-in-js.css";
|
|
2
|
-
import {
|
|
2
|
+
import { Skeleton } from "../skeleton.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/unit/loading-unit-value.tsx
|
|
6
6
|
var unitTextHeight = 8;
|
|
7
7
|
var LoadingUnitValue = (props) => /* @__PURE__ */ jsx("div", {
|
|
8
8
|
className: "cl6zvo6",
|
|
9
|
-
children: jsx(
|
|
9
|
+
children: jsx(Skeleton, {
|
|
10
10
|
...props,
|
|
11
11
|
height: 8
|
|
12
12
|
})
|
package/lib/use-is-phone.js
CHANGED
|
@@ -2,10 +2,10 @@ import { mobileRootClassName } from "./mobile-styles.js";
|
|
|
2
2
|
import { isPhoneApp, isPhoneMode, phoneMediaQuery, phoneMediaQueryDynamic } from "./phone.js";
|
|
3
3
|
import { useIsMediaQueryMatched } from "./use-is-media-query-matched.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { createContext } from "@fibery/react/src/create-context";
|
|
5
6
|
import { useLayoutEffect } from "react";
|
|
6
|
-
import { createContext as createContext$1 } from "@fibery/react/src/create-context";
|
|
7
7
|
//#region src/use-is-phone.tsx
|
|
8
|
-
var [Provider, useIsPhone] = createContext
|
|
8
|
+
var [Provider, useIsPhone] = createContext("PhoneContext", false);
|
|
9
9
|
function IsPhoneProvider({ children }) {
|
|
10
10
|
const isPhone = useIsMediaQueryMatched(phoneMediaQueryDynamic);
|
|
11
11
|
useLayoutEffect(() => {
|
|
@@ -2,12 +2,12 @@ import { keyboardHeightVar, mobileKeyboardOpenClassName } from "./mobile-styles.
|
|
|
2
2
|
import { isPhoneApp } from "./phone.js";
|
|
3
3
|
import { noop } from "@fibery/helpers/src/_";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { createContext } from "@fibery/react/src/create-context";
|
|
5
6
|
import { useEffect, useState } from "react";
|
|
6
|
-
import { createContext as createContext$1 } from "@fibery/react/src/create-context";
|
|
7
7
|
//#region src/use-on-screen-keyboard-data.tsx
|
|
8
8
|
var defaultKeyboardHeight = 350;
|
|
9
|
-
var [OnScreenKeyboardHeightValueProvider, useOnScreenKeyboardHeight] = createContext
|
|
10
|
-
var [IsOnScreenKeyboardOpenedValueProvider, useIsOnScreenKeyboardOpened] = createContext
|
|
9
|
+
var [OnScreenKeyboardHeightValueProvider, useOnScreenKeyboardHeight] = createContext("OnScreenKeyboardHeightProvider", defaultKeyboardHeight);
|
|
10
|
+
var [IsOnScreenKeyboardOpenedValueProvider, useIsOnScreenKeyboardOpened] = createContext("IsOnScreenKeyboardOpenedValueProvider", false);
|
|
11
11
|
function OnScreenKeyboardContextProvider({ children }) {
|
|
12
12
|
const [keyboardHeight, setKeyboardHeight] = useState(defaultKeyboardHeight);
|
|
13
13
|
const [keyboardVisible, setKeyboardVisible] = useState(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -113,8 +113,6 @@
|
|
|
113
113
|
"@types/apca-w3": "0.1.3",
|
|
114
114
|
"@types/d3-shape": "3.1.7",
|
|
115
115
|
"@types/history": "4.7.11",
|
|
116
|
-
"@types/react-select-country-list": "2.2.3",
|
|
117
|
-
"@types/setimmediate": "1.0.4",
|
|
118
116
|
"apca-w3": "0.1.9",
|
|
119
117
|
"chrono-node": "2.9.0",
|
|
120
118
|
"classnames": "2.3.1",
|
|
@@ -140,15 +138,14 @@
|
|
|
140
138
|
"react-day-picker": "8.10.1",
|
|
141
139
|
"react-popper": "2.3.0",
|
|
142
140
|
"react-select": "5.3.2",
|
|
143
|
-
"react-select-country-list": "2.2.1",
|
|
144
141
|
"react-virtuoso": "4.18.1",
|
|
145
142
|
"screenfull": "6.0.2",
|
|
146
143
|
"tabbable": "5.2.1",
|
|
147
144
|
"vaul": "1.1.2",
|
|
148
145
|
"virtua": "0.50.4",
|
|
149
146
|
"@fibery/emoji-data": "3.0.0",
|
|
150
|
-
"@fibery/helpers": "3.
|
|
151
|
-
"@fibery/react": "2.0.
|
|
147
|
+
"@fibery/helpers": "3.4.0",
|
|
148
|
+
"@fibery/react": "2.0.4"
|
|
152
149
|
},
|
|
153
150
|
"peerDependencies": {
|
|
154
151
|
"react": "18.3.1",
|