@fibery/ui-kit 9.4.3 → 9.5.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.
Files changed (50) hide show
  1. package/lib/board-table-loader.d.ts +0 -1
  2. package/lib/board-table-loader.js +16 -22
  3. package/lib/color-picker/color-picker-or-loader.js +1 -1
  4. package/lib/delayed.d.ts +1 -2
  5. package/lib/delayed.js +1 -2
  6. package/lib/emoji-picker/app-icon-picker.js +5 -1
  7. package/lib/icons/ast/comment-bubble.js +1 -5
  8. package/lib/icons/ast/comments.js +1 -10
  9. package/lib/icons/ast/index.d.ts +6 -3
  10. package/lib/icons/ast/index.js +6 -3
  11. package/lib/icons/ast/layout-ai.d.ts +5 -0
  12. package/lib/icons/ast/layout-ai.js +21 -0
  13. package/lib/icons/ast/message-plus.js +1 -6
  14. package/lib/icons/ast/suggest-accept.d.ts +5 -0
  15. package/lib/icons/ast/suggest-accept.js +21 -0
  16. package/lib/icons/ast/suggest-comments.d.ts +5 -0
  17. package/lib/icons/ast/suggest-comments.js +21 -0
  18. package/lib/icons/ast/suggest-edit.d.ts +5 -0
  19. package/lib/icons/ast/suggest-edit.js +21 -0
  20. package/lib/icons/ast/suggest-reject.d.ts +5 -0
  21. package/lib/icons/ast/suggest-reject.js +21 -0
  22. package/lib/icons/react/index.d.ts +6 -3
  23. package/lib/icons/react/index.js +6 -3
  24. package/lib/icons/react/{suggestions-comments.d.ts → layout-ai.d.ts} +4 -4
  25. package/lib/icons/react/{suggestions.js → layout-ai.js} +6 -6
  26. package/lib/icons/react/suggest-accept.d.ts +15 -0
  27. package/lib/icons/react/{suggestions-comments.js → suggest-accept.js} +6 -6
  28. package/lib/icons/react/suggest-comments.d.ts +15 -0
  29. package/lib/icons/react/suggest-comments.js +21 -0
  30. package/lib/icons/react/{suggestions.d.ts → suggest-edit.d.ts} +4 -4
  31. package/lib/icons/react/suggest-edit.js +21 -0
  32. package/lib/icons/react/suggest-reject.d.ts +15 -0
  33. package/lib/icons/react/suggest-reject.js +21 -0
  34. package/lib/loader-gate.d.ts +4 -0
  35. package/lib/loader-gate.js +6 -0
  36. package/lib/loader-gate.wyw-in-js.css +1 -0
  37. package/lib/loaders.js +2 -8
  38. package/lib/rich-input-loader.d.ts +1 -3
  39. package/lib/rich-input-loader.js +7 -32
  40. package/lib/select/select-loader.js +1 -4
  41. package/lib/skeleton.d.ts +27 -12
  42. package/lib/skeleton.js +44 -22
  43. package/lib/skeleton.wyw-in-js.css +4 -5
  44. package/lib/spinner-box.js +5 -1
  45. package/lib/unit/loading-unit-value.d.ts +2 -2
  46. package/package.json +3 -3
  47. package/lib/icons/ast/suggestions-comments.d.ts +0 -5
  48. package/lib/icons/ast/suggestions-comments.js +0 -39
  49. package/lib/icons/ast/suggestions.d.ts +0 -5
  50. package/lib/icons/ast/suggestions.js +0 -30
@@ -1,21 +1,21 @@
1
1
  import { Icon } from "../icon.js";
2
- import SuggestionsComments$1 from "../ast/suggestions-comments.js";
2
+ import SuggestAccept$1 from "../ast/suggest-accept.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { forwardRef } from "react";
5
- //#region src/icons/react/suggestions-comments.tsx
5
+ //#region src/icons/react/suggest-accept.tsx
6
6
  /**
7
7
  * This file was automatically generated. Do not edit manually.
8
8
  *
9
- * @see import("../svg/suggestions-comments.svg")
9
+ * @see import("../svg/suggest-accept.svg")
10
10
  * @see import("../../scripts/generate-icons.ts")
11
11
  */
12
- var SuggestionsComments = forwardRef(function SuggestionsComments(props, ref) {
12
+ var SuggestAccept = forwardRef(function SuggestAccept(props, ref) {
13
13
  return /* @__PURE__ */ jsx(Icon, {
14
14
  ...props,
15
15
  className: props.className,
16
16
  ref,
17
- icon: SuggestionsComments$1
17
+ icon: SuggestAccept$1
18
18
  });
19
19
  });
20
20
  //#endregion
21
- export { SuggestionsComments as default };
21
+ export { SuggestAccept as default };
@@ -0,0 +1,15 @@
1
+ //#region src/icons/react/suggest-comments.d.ts
2
+ /**
3
+ * This file was automatically generated. Do not edit manually.
4
+ *
5
+ * @see import("../svg/suggest-comments.svg")
6
+ * @see import("../../scripts/generate-icons.ts")
7
+ */
8
+ declare const SuggestComments: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
9
+ containerSize?: number;
10
+ iconSize?: number;
11
+ color?: string | null | undefined;
12
+ colorProcessed?: boolean;
13
+ } & import("react").RefAttributes<SVGSVGElement>>;
14
+ //#endregion
15
+ export { SuggestComments as default };
@@ -0,0 +1,21 @@
1
+ import { Icon } from "../icon.js";
2
+ import SuggestComments$1 from "../ast/suggest-comments.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { forwardRef } from "react";
5
+ //#region src/icons/react/suggest-comments.tsx
6
+ /**
7
+ * This file was automatically generated. Do not edit manually.
8
+ *
9
+ * @see import("../svg/suggest-comments.svg")
10
+ * @see import("../../scripts/generate-icons.ts")
11
+ */
12
+ var SuggestComments = forwardRef(function SuggestComments(props, ref) {
13
+ return /* @__PURE__ */ jsx(Icon, {
14
+ ...props,
15
+ className: props.className,
16
+ ref,
17
+ icon: SuggestComments$1
18
+ });
19
+ });
20
+ //#endregion
21
+ export { SuggestComments as default };
@@ -1,15 +1,15 @@
1
- //#region src/icons/react/suggestions.d.ts
1
+ //#region src/icons/react/suggest-edit.d.ts
2
2
  /**
3
3
  * This file was automatically generated. Do not edit manually.
4
4
  *
5
- * @see import("../svg/suggestions.svg")
5
+ * @see import("../svg/suggest-edit.svg")
6
6
  * @see import("../../scripts/generate-icons.ts")
7
7
  */
8
- declare const Suggestions: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
8
+ declare const SuggestEdit: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
9
9
  containerSize?: number;
10
10
  iconSize?: number;
11
11
  color?: string | null | undefined;
12
12
  colorProcessed?: boolean;
13
13
  } & import("react").RefAttributes<SVGSVGElement>>;
14
14
  //#endregion
15
- export { Suggestions as default };
15
+ export { SuggestEdit as default };
@@ -0,0 +1,21 @@
1
+ import { Icon } from "../icon.js";
2
+ import SuggestEdit$1 from "../ast/suggest-edit.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { forwardRef } from "react";
5
+ //#region src/icons/react/suggest-edit.tsx
6
+ /**
7
+ * This file was automatically generated. Do not edit manually.
8
+ *
9
+ * @see import("../svg/suggest-edit.svg")
10
+ * @see import("../../scripts/generate-icons.ts")
11
+ */
12
+ var SuggestEdit = forwardRef(function SuggestEdit(props, ref) {
13
+ return /* @__PURE__ */ jsx(Icon, {
14
+ ...props,
15
+ className: props.className,
16
+ ref,
17
+ icon: SuggestEdit$1
18
+ });
19
+ });
20
+ //#endregion
21
+ export { SuggestEdit as default };
@@ -0,0 +1,15 @@
1
+ //#region src/icons/react/suggest-reject.d.ts
2
+ /**
3
+ * This file was automatically generated. Do not edit manually.
4
+ *
5
+ * @see import("../svg/suggest-reject.svg")
6
+ * @see import("../../scripts/generate-icons.ts")
7
+ */
8
+ declare const SuggestReject: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
9
+ containerSize?: number;
10
+ iconSize?: number;
11
+ color?: string | null | undefined;
12
+ colorProcessed?: boolean;
13
+ } & import("react").RefAttributes<SVGSVGElement>>;
14
+ //#endregion
15
+ export { SuggestReject as default };
@@ -0,0 +1,21 @@
1
+ import { Icon } from "../icon.js";
2
+ import SuggestReject$1 from "../ast/suggest-reject.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { forwardRef } from "react";
5
+ //#region src/icons/react/suggest-reject.tsx
6
+ /**
7
+ * This file was automatically generated. Do not edit manually.
8
+ *
9
+ * @see import("../svg/suggest-reject.svg")
10
+ * @see import("../../scripts/generate-icons.ts")
11
+ */
12
+ var SuggestReject = forwardRef(function SuggestReject(props, ref) {
13
+ return /* @__PURE__ */ jsx(Icon, {
14
+ ...props,
15
+ className: props.className,
16
+ ref,
17
+ icon: SuggestReject$1
18
+ });
19
+ });
20
+ //#endregion
21
+ export { SuggestReject as default };
@@ -0,0 +1,4 @@
1
+ //#region src/loader-gate.d.ts
2
+ declare const loaderGate: import("@linaria/core").LinariaClassName;
3
+ //#endregion
4
+ export { loaderGate };
@@ -0,0 +1,6 @@
1
+ import "./loader-gate.wyw-in-js.css";
2
+ /* empty css */
3
+ //#region src/loader-gate.ts
4
+ var loaderGate = "l11e8bzk-loaderGate";
5
+ //#endregion
6
+ export { loaderGate };
@@ -0,0 +1 @@
1
+ .l11e8bzk-loaderGate{visibility:hidden;animation:LoaderGateOpen-l11e8bzk-loaderGate 0s 350ms forwards;}@keyframes LoaderGateOpen-l11e8bzk-loaderGate{to{visibility:visible;}}
package/lib/loaders.js CHANGED
@@ -2,7 +2,6 @@ import "./loaders.wyw-in-js.css";
2
2
  import { themeVars } from "./theming.generated.js";
3
3
  import { layout } from "./design-system/layout.js";
4
4
  import { textClasses } from "./design-system/typography.js";
5
- import { useTheme } from "./theme-provider.js";
6
5
  import { Skeleton } from "./skeleton.js";
7
6
  /* empty css */
8
7
  import { cx } from "@linaria/core";
@@ -33,8 +32,7 @@ var LoadingPage = ({ absolute = true, contentLoader = true }) => /* @__PURE__ */
33
32
  absolute,
34
33
  children: /* @__PURE__ */ jsx(Skeleton, {
35
34
  height: 20,
36
- width: 300,
37
- animateAppearance: true
35
+ width: 300
38
36
  })
39
37
  }), contentLoader && /* @__PURE__ */ jsx(LoadingView, { absolute })] });
40
38
  var SidebarLoadingPage = () => /* @__PURE__ */ jsx("div", {
@@ -52,17 +50,13 @@ var LoadingApp = ({ backgroundColor = "transparent", appName }) => /* @__PURE__
52
50
  }), /* @__PURE__ */ jsx(Skeleton, { width: 80 })]
53
51
  });
54
52
  var LoadingTreeMenuItem = ({ color, Icon, level, children }) => {
55
- const theme = useTheme();
56
53
  return /* @__PURE__ */ jsxs("div", {
57
54
  className: cx("c1h2eo35", level === 0 && "co2bhfe"),
58
55
  children: [/* @__PURE__ */ jsx(Icon, {
59
56
  color,
60
57
  containerSize: layout.newMenuItemHeight,
61
58
  iconSize: 18
62
- }), children || /* @__PURE__ */ jsx(Skeleton, {
63
- height: 8,
64
- inverted: theme.mode === "dark"
65
- })]
59
+ }), children || /* @__PURE__ */ jsx(Skeleton, { height: 8 })]
66
60
  });
67
61
  };
68
62
  //#endregion
@@ -1,10 +1,8 @@
1
1
  //#region src/rich-input-loader.d.ts
2
2
  interface LoaderProps {
3
3
  className?: string;
4
- animateAppearance?: boolean;
5
4
  }
6
5
  declare const RichInputLoader: import("react").NamedExoticComponent<LoaderProps>;
7
- declare const RichFieldLoaderProvider: React.FC<React.PropsWithChildren>;
8
6
  declare function RichFieldLoader(): import("react/jsx-runtime").JSX.Element;
9
7
  //#endregion
10
- export { RichFieldLoader, RichFieldLoaderProvider, RichInputLoader };
8
+ export { RichFieldLoader, RichInputLoader };
@@ -2,58 +2,33 @@ import "./rich-input-loader.wyw-in-js.css";
2
2
  import { SkeletonList, SkeletonTextLine } from "./skeleton.js";
3
3
  import { regularRichEditorHTMLStyles } from "./html-styles.js";
4
4
  /* empty css */
5
- import { noop } from "@fibery/helpers/src/_";
6
5
  import { cx } from "@linaria/core";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import { createContext, memo, useContext, useEffect, useMemo, useState } from "react";
7
+ import { memo } from "react";
9
8
  //#region src/rich-input-loader.tsx
10
- var loaderContext = createContext({
11
- showLoader: true,
12
- setShowLoader: noop
13
- });
14
- var RichInputLoader = memo(function RichInputLoaderComponent({ className = "", animateAppearance = true }) {
15
- const { showLoader } = useContext(loaderContext);
9
+ var RichInputLoader = memo(function RichInputLoaderComponent({ className = "" }) {
16
10
  return /* @__PURE__ */ jsx("div", {
17
11
  className,
18
- children: showLoader && /* @__PURE__ */ jsx(SkeletonList, {
12
+ children: jsx(SkeletonList, {
19
13
  amount: 3,
20
- WrapperComponent: SkeletonTextLine,
21
- animateAppearance
14
+ WrapperComponent: SkeletonTextLine
22
15
  })
23
16
  });
24
17
  });
25
- var RichFieldLoaderProvider = ({ children }) => {
26
- const [showLoader, setShowLoader] = useState(false);
27
- useEffect(() => {
28
- const timeoutId = window.setTimeout(() => setShowLoader(true), 300);
29
- return () => {
30
- window.clearTimeout(timeoutId);
31
- };
32
- }, []);
33
- const value = useMemo(() => ({
34
- showLoader,
35
- setShowLoader
36
- }), [showLoader, setShowLoader]);
37
- return /* @__PURE__ */ jsx(loaderContext.Provider, {
38
- value,
39
- children
40
- });
41
- };
42
18
  function RichFieldLoader() {
43
- const { showLoader } = useContext(loaderContext);
44
19
  return /* @__PURE__ */ jsxs("div", {
45
20
  className: cx("ProseMirror", regularRichEditorHTMLStyles, "cgnhmrn"),
46
21
  children: [/* @__PURE__ */ jsx("p", {
47
22
  className: "empty-node",
48
23
  children: /* @__PURE__ */ jsx("br", { className: "ProseMirror-trailingBreak" })
49
- }), showLoader ? /* @__PURE__ */ jsx("div", {
24
+ }), /* @__PURE__ */ jsx("div", {
50
25
  className: "czwej5w",
51
26
  children: /* @__PURE__ */ jsx(SkeletonList, {
52
27
  amount: 1,
53
28
  WrapperComponent: SkeletonTextLine
54
29
  })
55
- }) : null]
30
+ })]
56
31
  });
57
32
  }
58
33
  //#endregion
59
- export { RichFieldLoader, RichFieldLoaderProvider, RichInputLoader };
34
+ export { RichFieldLoader, RichInputLoader };
@@ -2,9 +2,6 @@ import { SkeletonList } from "../skeleton.js";
2
2
  import { FormFieldLoader } from "../form-field-loader.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/select/select-loader.tsx
5
- var SelectLoader = () => /* @__PURE__ */ jsx(FormFieldLoader, { children: /* @__PURE__ */ jsx(SkeletonList, {
6
- amount: 1,
7
- animateAppearance: true
8
- }) });
5
+ var SelectLoader = () => /* @__PURE__ */ jsx(FormFieldLoader, { children: /* @__PURE__ */ jsx(SkeletonList, { amount: 1 }) });
9
6
  //#endregion
10
7
  export { SelectLoader };
package/lib/skeleton.d.ts CHANGED
@@ -2,14 +2,6 @@ import { SkeletonHeight, SkeletonWidth } from "./design-system/skeleton.js";
2
2
  import "./design-system.js";
3
3
  import { ComponentType, ReactNode } from "react";
4
4
  //#region src/skeleton.d.ts
5
- type SkeletonBaseProps = {
6
- height?: SkeletonHeight;
7
- size?: number;
8
- inverted?: boolean;
9
- animateAppearance?: boolean;
10
- margins?: boolean;
11
- index?: number;
12
- };
13
5
  type SkeletonWidthProps = {
14
6
  width?: SkeletonWidth;
15
7
  minWidth?: never;
@@ -19,17 +11,40 @@ type SkeletonWidthProps = {
19
11
  minWidth: SkeletonWidth;
20
12
  maxWidth: SkeletonWidth;
21
13
  };
22
- type SkeletonProps = SkeletonBaseProps & SkeletonWidthProps;
23
- declare const Skeleton: import("react").MemoExoticComponent<({ height, width, minWidth, maxWidth, size, index, margins, animateAppearance }: SkeletonProps) => JSX.Element>;
14
+ type SkeletonBarProps = {
15
+ shape?: "bar";
16
+ height?: SkeletonHeight;
17
+ index?: number;
18
+ } & SkeletonWidthProps;
19
+ type SkeletonSquareProps = {
20
+ shape: "square";
21
+ size: number;
22
+ radius: number;
23
+ };
24
+ type SkeletonEllipseProps = {
25
+ shape: "ellipse";
26
+ size: number;
27
+ };
28
+ type SkeletonShapeProps = SkeletonBarProps | SkeletonSquareProps | SkeletonEllipseProps;
29
+ type SkeletonProps = SkeletonShapeProps & {
30
+ margins?: boolean;
31
+ };
32
+ declare const Skeleton: import("react").MemoExoticComponent<({ margins, ...shape }: SkeletonProps) => JSX.Element>;
24
33
  type SkeletonListProps = {
25
34
  amount?: number;
26
35
  WrapperComponent?: ComponentType<{
27
36
  children: ReactNode;
28
37
  index: number;
29
38
  }> | null;
30
- } & Omit<SkeletonBaseProps, "index"> & SkeletonWidthProps;
39
+ height?: SkeletonHeight;
40
+ margins?: boolean;
41
+ } & SkeletonWidthProps;
31
42
  declare const SkeletonList: import("react").NamedExoticComponent<SkeletonListProps>;
43
+ declare const SkeletonPulseLine: ({ index, children }: {
44
+ index: number;
45
+ children: ReactNode;
46
+ }) => import("react/jsx-runtime").JSX.Element;
32
47
  declare const SkeletonTextLine: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
33
48
  declare const PageContentSkeleton: () => import("react/jsx-runtime").JSX.Element;
34
49
  //#endregion
35
- export { PageContentSkeleton, Skeleton, SkeletonList, SkeletonProps, SkeletonTextLine };
50
+ export { PageContentSkeleton, Skeleton, SkeletonBarProps, SkeletonList, SkeletonProps, SkeletonPulseLine, SkeletonTextLine };
package/lib/skeleton.js CHANGED
@@ -1,21 +1,16 @@
1
1
  import "./skeleton.wyw-in-js.css";
2
2
  import { skeletonWidths } from "./design-system/skeleton.js";
3
+ import { loaderGate } from "./loader-gate.js";
3
4
  /* empty css */
4
5
  import { Fragment, jsx } from "react/jsx-runtime";
5
6
  import { memo } from "react";
6
7
  import cx from "classnames";
7
8
  import { styled } from "@linaria/react";
8
9
  //#region src/skeleton.tsx
10
+ var pulseLinesPerCycle = 8;
11
+ var pulseLineProperty = "--skeleton-pulse-line";
9
12
  var skeletonStyle = "slo3ayz-skeleton";
10
13
  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
14
  var stepsInRange = (minWidth = 80, maxWidth = 120) => skeletonWidths.filter((step) => step >= minWidth && step <= maxWidth);
20
15
  var widthAt = (steps, index) => steps[steps.length - 1 - index % steps.length];
21
16
  var lineWidth = (steps, line, amount) => {
@@ -23,22 +18,43 @@ var lineWidth = (steps, line, amount) => {
23
18
  if (amount > 1 && line === amount - 1 || longer.length === 0) return shortest;
24
19
  return widthAt(longer, line);
25
20
  };
26
- var Skeleton = memo(function Skeleton({ height = 12, width, minWidth, maxWidth, size, index = 0, margins = true, animateAppearance = false }) {
27
- const barHeight = size ?? height;
28
- const barWidth = size ?? width ?? widthAt(stepsInRange(minWidth, maxWidth), index);
29
- return /* @__PURE__ */ jsx(Container, {
30
- height: barHeight,
31
- style: {
32
- width: barWidth,
33
- height: barHeight
34
- },
35
- className: cx(skeletonStyle, margins && marginStyle, animateAppearance && skeletonAppearanceStyle)
21
+ var pulseLineStyle = (line) => line === void 0 ? {} : { [pulseLineProperty]: line % pulseLinesPerCycle };
22
+ var shapeStyle = (shape) => {
23
+ switch (shape.shape) {
24
+ case "square": return {
25
+ width: shape.size,
26
+ height: shape.size,
27
+ borderRadius: shape.radius
28
+ };
29
+ case "ellipse": return {
30
+ width: shape.size,
31
+ height: shape.size,
32
+ borderRadius: "50%"
33
+ };
34
+ default: {
35
+ const { height = 12, width, minWidth, maxWidth, index } = shape;
36
+ return {
37
+ width: width ?? widthAt(stepsInRange(minWidth, maxWidth), index ?? 0),
38
+ height,
39
+ borderRadius: height / 2,
40
+ ...pulseLineStyle(index)
41
+ };
42
+ }
43
+ }
44
+ };
45
+ var Skeleton = memo(function Skeleton({ margins = true, ...shape }) {
46
+ return /* @__PURE__ */ jsx("div", {
47
+ style: shapeStyle(shape),
48
+ className: cx(skeletonStyle, loaderGate, margins && marginStyle)
36
49
  });
37
50
  });
38
51
  var SkeletonList = memo(function SkeletonList({ amount = 1, WrapperComponent, width, minWidth, maxWidth, ...restProps }) {
39
52
  const steps = width ? [width] : stepsInRange(minWidth, maxWidth);
40
53
  return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: amount }, (_, index) => {
41
- const style = { opacity: (amount - index) / amount };
54
+ const style = {
55
+ opacity: (amount - index) / amount,
56
+ ...pulseLineStyle(index)
57
+ };
42
58
  const skeleton = /* @__PURE__ */ jsx(Skeleton, {
43
59
  ...restProps,
44
60
  width: lineWidth(steps, index, amount)
@@ -52,15 +68,21 @@ var SkeletonList = memo(function SkeletonList({ amount = 1, WrapperComponent, wi
52
68
  }, index);
53
69
  }) });
54
70
  });
71
+ var pulseLineContentsStyle = "piugmrr-pulseLineContents";
72
+ var SkeletonPulseLine = ({ index, children }) => /* @__PURE__ */ jsx("div", {
73
+ className: pulseLineContentsStyle,
74
+ style: pulseLineStyle(index),
75
+ children
76
+ });
55
77
  var SkeletonTextLine = /*#__PURE__*/ styled("div")({
56
78
  name: "SkeletonTextLine",
57
- class: "s1uzetk8-SkeletonTextLine",
79
+ class: "sjtjcsl-SkeletonTextLine",
58
80
  propsAsIs: false
59
81
  });
60
- var pageContentStyle = "p13qksqz-pageContent";
82
+ var pageContentStyle = "p1uzetk8-pageContent";
61
83
  var PageContentSkeleton = () => /* @__PURE__ */ jsx("div", {
62
84
  className: pageContentStyle,
63
85
  children: jsx(SkeletonList, { amount: 3 })
64
86
  });
65
87
  //#endregion
66
- export { PageContentSkeleton, Skeleton, SkeletonList, SkeletonTextLine };
88
+ export { PageContentSkeleton, Skeleton, SkeletonList, SkeletonPulseLine, SkeletonTextLine };
@@ -1,6 +1,5 @@
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%);}.slo3ayz-skeleton::after{background-image:linear-gradient(90deg, var(--colorBgSkeleton) 0%, transparent 100%);}@media (prefers-reduced-motion: no-preference){.slo3ayz-skeleton::before{animation:OpacityAnim-slo3ayz-skeleton 2s ease-in-out 0s infinite alternate;}.slo3ayz-skeleton::after{animation:OpacityAnim-slo3ayz-skeleton 2s ease-in-out -2s infinite alternate;}}
1
+ .slo3ayz-skeleton{vertical-align:middle;position:relative;background:none;}.slo3ayz-skeleton::before{content:"";display:block;position:absolute;inset:0;border-radius:inherit;background-color:var(--colorBgSkeleton);}@keyframes skeleton-pulse-slo3ayz-skeleton{from{opacity:0.2;}}@media (prefers-reduced-motion: no-preference){.slo3ayz-skeleton::before{animation:skeleton-pulse-slo3ayz-skeleton 1000ms ease-in-out infinite alternate backwards;animation-delay:calc(var(--skeleton-pulse-line, 0) * 250ms);}}
2
2
  .mzl91bk-margin{margin-top:4px;margin-bottom:4px;}
3
- @keyframes OpacityAnim-siugmrr-skeletonAppearance{0%{opacity:0;}100%{opacity:1;}}@media (prefers-reduced-motion: no-preference){.siugmrr-skeletonAppearance{animation:OpacityAnim-siugmrr-skeletonAppearance 1s cubic-bezier(0.95, 0.05, 0.795, 0.035) 1;}}
4
- .cjtjcsl-Container::before,.cjtjcsl-Container::after{border-radius:var(--cjtjcsl-0);}
5
- .s1uzetk8-SkeletonTextLine{padding-top:1px;}
6
- .p13qksqz-pageContent{padding:12px;}
3
+ .piugmrr-pulseLineContents{display:contents;}
4
+ .sjtjcsl-SkeletonTextLine{padding-top:1px;}
5
+ .p1uzetk8-pageContent{padding:12px;}
@@ -1,5 +1,6 @@
1
1
  import "./spinner-box.wyw-in-js.css";
2
2
  import { Spinner } from "./spinner.js";
3
+ import { loaderGate } from "./loader-gate.js";
3
4
  /* empty css */
4
5
  import { cx } from "@linaria/core";
5
6
  import { jsx } from "react/jsx-runtime";
@@ -16,7 +17,10 @@ var SpinnerBox = memo(function SpinnerBox({ minHeight, height, width, overlay =
16
17
  height: fillable(height),
17
18
  width: fillable(width)
18
19
  },
19
- children: jsx(Spinner, { ...spinnerProps })
20
+ children: jsx("span", {
21
+ className: loaderGate,
22
+ children: /* @__PURE__ */ jsx(Spinner, { ...spinnerProps })
23
+ })
20
24
  });
21
25
  });
22
26
  //#endregion
@@ -1,5 +1,5 @@
1
- import { SkeletonProps } from "../skeleton.js";
1
+ import { SkeletonBarProps } from "../skeleton.js";
2
2
  //#region src/unit/loading-unit-value.d.ts
3
- declare const LoadingUnitValue: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const LoadingUnitValue: (props: SkeletonBarProps) => import("react/jsx-runtime").JSX.Element;
4
4
  //#endregion
5
5
  export { LoadingUnitValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "lib"
@@ -140,9 +140,9 @@
140
140
  "tabbable": "5.2.1",
141
141
  "vaul": "1.1.2",
142
142
  "virtua": "0.50.4",
143
- "@fibery/helpers": "4.2.1",
143
+ "@fibery/emoji-data": "3.0.0",
144
144
  "@fibery/react": "2.0.10",
145
- "@fibery/emoji-data": "3.0.0"
145
+ "@fibery/helpers": "4.2.1"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "react": "18.3.1",
@@ -1,5 +0,0 @@
1
- import { IconDefinition } from "../types.js";
2
- //#region src/icons/ast/suggestions-comments.d.ts
3
- declare const SuggestionsComments: IconDefinition;
4
- //#endregion
5
- export { SuggestionsComments as default };
@@ -1,39 +0,0 @@
1
- //#region src/icons/ast/suggestions-comments.ts
2
- var SuggestionsComments = {
3
- "icon": {
4
- "type": "root",
5
- "children": [{
6
- "type": "element",
7
- "tagName": "svg",
8
- "properties": { "viewBox": "0 0 20 20" },
9
- "children": [
10
- {
11
- "type": "element",
12
- "tagName": "path",
13
- "properties": { "d": "M13.885 13.432a.55.55 0 0 1 0 1.1h-2.121a.55.55 0 0 1 0-1.1zM16.237 11.714a.55.55 0 0 1 0 1.1h-4.473a.55.55 0 0 1 0-1.1z" },
14
- "children": []
15
- },
16
- {
17
- "type": "element",
18
- "tagName": "path",
19
- "properties": {
20
- "fillRule": "evenodd",
21
- "d": "M16.708 9.342a2.367 2.367 0 0 1 2.367 2.367v2.916a2.367 2.367 0 0 1-2.367 2.367h-.133v1.383a.7.7 0 0 1-1.148.538l-2.306-1.92h-1.829a2.367 2.367 0 0 1-2.367-2.368v-2.916a2.367 2.367 0 0 1 2.367-2.367zm-5.416 1.4a.966.966 0 0 0-.967.967v2.916c0 .534.433.967.967.967h2.083a.7.7 0 0 1 .448.162l1.352 1.126v-.588a.7.7 0 0 1 .7-.7h.833a.967.967 0 0 0 .967-.967v-2.916a.966.966 0 0 0-.967-.967z",
22
- "clipRule": "evenodd"
23
- },
24
- "children": []
25
- },
26
- {
27
- "type": "element",
28
- "tagName": "path",
29
- "properties": { "d": "M15.25 2.5A2.75 2.75 0 0 1 18 5.25v1.947a.75.75 0 0 1-1.5 0V5.25c0-.69-.56-1.25-1.25-1.25H4.75c-.69 0-1.25.56-1.25 1.25v7c0 .69.56 1.25 1.25 1.25h.75a.75.75 0 0 1 .75.75v1.44l.593-.427a.75.75 0 0 1 .936 1.172l-1.81 1.4a.75.75 0 0 1-1.219-.585V15A2.75 2.75 0 0 1 2 12.25v-7A2.75 2.75 0 0 1 4.75 2.5z" },
30
- "children": []
31
- }
32
- ],
33
- "metadata": ""
34
- }]
35
- },
36
- "name": "suggestions-comments"
37
- };
38
- //#endregion
39
- export { SuggestionsComments as default };
@@ -1,5 +0,0 @@
1
- import { IconDefinition } from "../types.js";
2
- //#region src/icons/ast/suggestions.d.ts
3
- declare const Suggestions: IconDefinition;
4
- //#endregion
5
- export { Suggestions as default };
@@ -1,30 +0,0 @@
1
- //#region src/icons/ast/suggestions.ts
2
- var Suggestions = {
3
- "icon": {
4
- "type": "root",
5
- "children": [{
6
- "type": "element",
7
- "tagName": "svg",
8
- "properties": { "viewBox": "0 0 20 20" },
9
- "children": [{
10
- "type": "element",
11
- "tagName": "path",
12
- "properties": { "d": "M15.25 2.5A2.75 2.75 0 0 1 18 5.25v1.947a.75.75 0 0 1-1.5 0V5.25c0-.69-.56-1.25-1.25-1.25H4.75c-.69 0-1.25.56-1.25 1.25v7c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 .75.75v1.44l.593-.427a.75.75 0 0 1 .936 1.172l-1.81 1.4A.75.75 0 0 1 6 17.25V15H4.75A2.75 2.75 0 0 1 2 12.25v-7A2.75 2.75 0 0 1 4.75 2.5z" },
13
- "children": []
14
- }, {
15
- "type": "element",
16
- "tagName": "path",
17
- "properties": {
18
- "fillRule": "evenodd",
19
- "d": "M14.44 9.791a1.75 1.75 0 0 1 2.475 0l.586.586a1.75 1.75 0 0 1 0 2.475l-3.161 3.16a.75.75 0 0 1-.325.192L11.219 17a.751.751 0 0 1-.927-.927l.796-2.796.032-.09a.8.8 0 0 1 .16-.235zm1.415 1.06a.25.25 0 0 0-.354 0l-3.024 3.023-.373 1.313 1.313-.373 3.023-3.023a.25.25 0 0 0 0-.354z",
20
- "clipRule": "evenodd"
21
- },
22
- "children": []
23
- }],
24
- "metadata": ""
25
- }]
26
- },
27
- "name": "suggestions"
28
- };
29
- //#endregion
30
- export { Suggestions as default };