@fibery/ui-kit 9.1.0 → 9.1.2

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 (38) hide show
  1. package/lib/actions-menu/actions-menu-item.js +3 -3
  2. package/lib/button/base-button.js +5 -5
  3. package/lib/checkbox.d.ts +1 -1
  4. package/lib/checkbox.js +3 -3
  5. package/lib/comment.d.ts +1 -1
  6. package/lib/comment.js +25 -17
  7. package/lib/comment.wyw-in-js.css +11 -10
  8. package/lib/design-system/alpha-coefficients.d.ts +1 -0
  9. package/lib/design-system/alpha-coefficients.js +1 -0
  10. package/lib/design-system/colors.d.ts +2 -4
  11. package/lib/design-system/colors.js +1 -2
  12. package/lib/design-system/theme.d.ts +5 -10
  13. package/lib/design-system/theme.js +1 -1
  14. package/lib/loading-sausage.d.ts +1 -1
  15. package/lib/loading-sausage.js +8 -11
  16. package/lib/loading-sausage.wyw-in-js.css +4 -6
  17. package/lib/popover/styles.wyw-in-js.css +1 -1
  18. package/lib/root-theme-provider.js +2 -1
  19. package/lib/root-theme-provider.wyw-in-js.css +1 -1
  20. package/lib/select/select-in-popover.js +5 -3
  21. package/lib/select/select.js +11 -4
  22. package/lib/sidebar/sidebar-handle.d.ts +14 -0
  23. package/lib/sidebar/sidebar-handle.js +51 -0
  24. package/lib/sidebar/sidebar-handle.wyw-in-js.css +7 -0
  25. package/lib/sidebar/sidebar.d.ts +25 -0
  26. package/lib/sidebar/sidebar.js +60 -0
  27. package/lib/sidebar/sidebar.wyw-in-js.css +3 -0
  28. package/lib/sidebar/use-resize-drag.d.ts +22 -0
  29. package/lib/sidebar/use-resize-drag.js +71 -0
  30. package/lib/theme-provider.d.ts +1 -2
  31. package/lib/theme-styles.js +5 -2
  32. package/lib/theming.generated.d.ts +5 -10
  33. package/lib/theming.generated.js +5 -10
  34. package/lib/toast/toast-provider.d.ts +1 -0
  35. package/lib/toast/toast-queue.d.ts +2 -0
  36. package/lib/toast/toast-queue.js +6 -0
  37. package/lib/tooltip.js +1 -1
  38. package/package.json +5 -5
@@ -11,7 +11,7 @@ import Checked from "../icons/react/checked.js";
11
11
  /* empty css */
12
12
  import { noop } from "@fibery/helpers/src/_";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
- import { memo, useId } from "react";
14
+ import { useId } from "react";
15
15
  import { cx } from "@linaria/core";
16
16
  import { stopPropagation } from "@fibery/react/src/stop-propagation";
17
17
  import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
@@ -58,7 +58,7 @@ var LeftCorner = ({ Icon, iconColor }) => {
58
58
  })
59
59
  }) : null;
60
60
  };
61
- var ActionsMenuItemComponent = memo(function ActionsMenuItemComponent({ id, testId, title, onSelect, description, Icon, iconColor, shortcut, disabled, dangerous, showWarning, loading, checked, children, className }) {
61
+ var ActionsMenuItemComponent = function ActionsMenuItemComponent({ id, testId, title, onSelect, description, Icon, iconColor, shortcut, disabled, dangerous, showWarning, loading, checked, children, className }) {
62
62
  const { MenuPrimitive } = useActionsMenuContext();
63
63
  const setActiveDangerousRow = useSetActiveDangerousRow();
64
64
  const handleSelect = async (e) => {
@@ -115,7 +115,7 @@ var ActionsMenuItemComponent = memo(function ActionsMenuItemComponent({ id, test
115
115
  })
116
116
  ]
117
117
  });
118
- });
118
+ };
119
119
  var ActionsMenuItem = ({ className, ...props }) => {
120
120
  const id = useId();
121
121
  const activeDangerousRow = useActiveDangerousRow();
@@ -2,7 +2,7 @@ import "./base-button.wyw-in-js.css";
2
2
  import { themeVars } from "../theming.generated.js";
3
3
  /* empty css */
4
4
  import { jsx } from "react/jsx-runtime";
5
- import { forwardRef } from "react";
5
+ import { forwardRef, useMemo } from "react";
6
6
  import { cx } from "@linaria/core";
7
7
  import { Slot } from "@radix-ui/react-slot";
8
8
  //#region src/button/base-button.tsx
@@ -34,13 +34,13 @@ var getColors = (variant, color) => {
34
34
  ...borderColors
35
35
  };
36
36
  };
37
- var BaseButton = forwardRef(({ variant = "solid", color = "accent", type = "button", className, children, style, pressed, asChild, ...buttonProps }, ref) => {
38
- const colors = getColors(variant, color);
37
+ var BaseButton = forwardRef(function BaseButton({ variant = "solid", color = "accent", type = "button", className, children, style, pressed, asChild, ...buttonProps }, ref) {
38
+ const colors = useMemo(() => getColors(variant, color), [variant, color]);
39
39
  return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
40
- style: {
40
+ style: style ? {
41
41
  ...colors,
42
42
  ...style
43
- },
43
+ } : colors,
44
44
  "aria-pressed": pressed || buttonProps["aria-pressed"],
45
45
  "data-variant": variant,
46
46
  className: cx(reset, baseButton, className),
package/lib/checkbox.d.ts CHANGED
@@ -8,7 +8,7 @@ type CheckboxComponentProps = ComponentProps<"input"> & {
8
8
  color?: string;
9
9
  theme: Theme;
10
10
  };
11
- declare const CheckboxComponent: import("react").MemoExoticComponent<({ color, disabled, theme, checked, defaultChecked, className, ...rest }: CheckboxComponentProps) => import("react/jsx-runtime").JSX.Element>;
11
+ declare const CheckboxComponent: ({ color, disabled, theme, checked, defaultChecked, className, ...rest }: CheckboxComponentProps) => import("react/jsx-runtime").JSX.Element;
12
12
  declare const Checkbox: FC<Omit<ComponentPropsWithoutRef<typeof CheckboxComponent>, "theme">>;
13
13
  interface CheckboxWithTextProps {
14
14
  checked?: boolean;
package/lib/checkbox.js CHANGED
@@ -7,7 +7,7 @@ import { textClasses } from "./design-system/typography.js";
7
7
  import { useTheme } from "./theme-provider.js";
8
8
  /* empty css */
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
- import { memo, useEffect, useRef } from "react";
10
+ import { useEffect, useRef } from "react";
11
11
  import cx from "classnames";
12
12
  //#region src/checkbox.tsx
13
13
  var checkboxColor = `--fibery-checkbox-color`;
@@ -21,7 +21,7 @@ var disabledCheckboxStyle = "d1m3prw4-disabledCheckbox";
21
21
  var inputStyle = "i1n3occ1-input";
22
22
  var disabledInputStyle = "d15ntl1g-disabledInput";
23
23
  var checkmarkStyle = "c1a0urkz-checkmark";
24
- var CheckboxComponent = memo(({ color, disabled, theme, checked, defaultChecked, className, ...rest }) => {
24
+ var CheckboxComponent = ({ color, disabled, theme, checked, defaultChecked, className, ...rest }) => {
25
25
  const ref = useRef(null);
26
26
  const indeterminate = checked === null;
27
27
  const defaultIndeterminate = defaultChecked === null;
@@ -71,7 +71,7 @@ var CheckboxComponent = memo(({ color, disabled, theme, checked, defaultChecked,
71
71
  })
72
72
  ]
73
73
  });
74
- });
74
+ };
75
75
  var Checkbox = (props) => {
76
76
  const theme = useTheme();
77
77
  return /* @__PURE__ */ jsx(CheckboxComponent, {
package/lib/comment.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const commentContentStyle: import("@linaria/core").LinariaClassName;
4
4
  declare const commentStyle: import("@linaria/core").LinariaClassName;
5
5
  declare const defaultCommentStyle: import("@linaria/core").LinariaClassName;
6
6
  interface CommentProps {
7
- author?: string;
7
+ author?: ReactNode;
8
8
  authorTitle?: string;
9
9
  authorStyleClassName?: string;
10
10
  avatarUrl?: string | null;
package/lib/comment.js CHANGED
@@ -14,13 +14,14 @@ import { cx } from "@linaria/core";
14
14
  var commentContentStyle = "c4bd082-commentContent";
15
15
  var commentStyle = "c99co57-comment";
16
16
  var avatarContainerStyle = "alj6rui-avatarContainer";
17
- var infoContainerStyle = "i1jz7n7h-infoContainer";
18
- var infoRowStyle = "i1ftwecl-infoRow";
19
- var authorStyle = "a1uq6781-author";
20
- var dateStyle = "d1fgzzhc-date";
21
- var badgeStyle = "b6fpn3e-badge";
22
- var defaultCommentStyle = "d1j9f4o5-defaultComment";
23
- var actionsClassName = "a1slvpm7-actions";
17
+ var avatarSlotStyle = "a1jz7n7h-avatarSlot";
18
+ var infoContainerStyle = "i1ftwecl-infoContainer";
19
+ var infoRowStyle = "i1uq6781-infoRow";
20
+ var authorStyle = "a1fgzzhc-author";
21
+ var dateStyle = "d6fpn3e-date";
22
+ var badgeStyle = "b1j9f4o5-badge";
23
+ var defaultCommentStyle = "d1slvpm7-defaultComment";
24
+ var actionsClassName = "ajnlt45-actions";
24
25
  var Comment = memo(forwardRef((props, ref) => {
25
26
  const { author, authorTitle, authorStyleClassName, commentContentStyleClassName = commentContentStyle, date, avatarUrl, hasAccessToAuthor = true, actions, children, customItemStyle, dateTimeFormat, icon, avatarSize = 24, actionsShowed = false, badge } = props;
26
27
  const { formatted, relative } = formatDateFromNow(date, { format: dateTimeFormat });
@@ -28,16 +29,23 @@ var Comment = memo(forwardRef((props, ref) => {
28
29
  const isPhone = useIsPhone();
29
30
  return /* @__PURE__ */ jsxs("div", {
30
31
  ref,
31
- className: cx("cjnlt45", defaultCommentStyle, customItemStyle ?? "c99co57-comment"),
32
+ className: cx("c1gf494l", defaultCommentStyle, customItemStyle ?? "c99co57-comment"),
32
33
  children: [
33
- /* @__PURE__ */ jsx("div", { children: IconComponent ? IconComponent : /* @__PURE__ */ jsx(AvatarImage, {
34
- avatarUrl,
35
- title: authorTitle,
36
- size: avatarSize,
37
- hasAccess: hasAccessToAuthor
38
- }) }),
34
+ /* @__PURE__ */ jsx("div", {
35
+ className: avatarSlotStyle,
36
+ style: {
37
+ width: avatarSize,
38
+ height: avatarSize
39
+ },
40
+ children: IconComponent ? IconComponent : /* @__PURE__ */ jsx(AvatarImage, {
41
+ avatarUrl,
42
+ title: authorTitle,
43
+ size: avatarSize,
44
+ hasAccess: hasAccessToAuthor
45
+ })
46
+ }),
39
47
  /* @__PURE__ */ jsxs("div", {
40
- className: "c1gf494l",
48
+ className: "c14sd9dn",
41
49
  children: [/* @__PURE__ */ jsxs("div", {
42
50
  className: infoRowStyle,
43
51
  children: [
@@ -59,7 +67,7 @@ var Comment = memo(forwardRef((props, ref) => {
59
67
  })
60
68
  ]
61
69
  }), actions ? /* @__PURE__ */ jsx("div", {
62
- className: cx(actionsClassName, (actionsShowed || isPhone) && "c14sd9dn"),
70
+ className: cx(actionsClassName, (actionsShowed || isPhone) && "c1fgpr5b"),
63
71
  children: actions
64
72
  }) : null]
65
73
  }),
@@ -93,7 +101,7 @@ var CommentPlaceholder = () => {
93
101
  };
94
102
  var ErrorComment = ({ error }) => {
95
103
  return /* @__PURE__ */ jsx("div", { children: jsx(Item, {
96
- itemClassName: cx(commentStyle, "i1fgpr5b-item"),
104
+ itemClassName: cx(commentStyle, "i1x2fdjy-item"),
97
105
  multiline: true,
98
106
  leftContainer: /* @__PURE__ */ jsx("div", {
99
107
  className: avatarContainerStyle,
@@ -1,14 +1,15 @@
1
1
  .c4bd082-commentContent{word-break:break-word;padding-top:6px;white-space:pre-line;}
2
2
  .c99co57-comment{border-radius:6px;padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:6px;margin-bottom:1px;background-color:var(--actionMenuBg);transition:box-shadow 120ms ease-in-out;overflow-x:auto;}
3
3
  .alj6rui-avatarContainer{margin-right:8px;}
4
- .i1jz7n7h-infoContainer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
5
- .i1ftwecl-infoRow{display:flex;align-items:center;min-width:0;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
6
- .a1uq6781-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline;margin-right:8px;min-width:0;}
7
- .d1fgzzhc-date{display:inline;white-space:no-wrap;padding-right:8px;flex-shrink:0;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:12px;line-height:1.5;font-weight:410;color:var(--accentTextColor);text-transform:none;}
8
- .b6fpn3e-badge{display:flex;flex-shrink:0;}
4
+ .a1jz7n7h-avatarSlot{display:flex;align-items:center;justify-content:center;flex-shrink:0;}
5
+ .i1ftwecl-infoContainer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
6
+ .i1uq6781-infoRow{display:flex;align-items:center;min-width:0;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
7
+ .a1fgzzhc-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline;margin-right:8px;min-width:0;}
8
+ .d6fpn3e-date{display:inline;white-space:no-wrap;padding-right:8px;flex-shrink:0;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:12px;line-height:1.5;font-weight:410;color:var(--accentTextColor);text-transform:none;}
9
+ .b1j9f4o5-badge{display:flex;flex-shrink:0;}
9
10
 
10
- .a1slvpm7-actions{display:none;position:absolute;top:0;right:0;z-index:1;padding:3px;background-color:var(--colorBgFloatingPanel);border-radius:8px;box-shadow:var(--shadowFloatingPanel);gap:2px;}.d1j9f4o5-defaultComment:hover .a1slvpm7-actions{display:flex;}.fibery-mobile .a1slvpm7-actions{top:-6px;}
11
- .cjnlt45{display:grid;grid-template-columns:auto minmax(150px, 1fr);align-items:center;column-gap:12px;}
12
- .c1gf494l{display:grid;position:relative;grid-template-columns:1fr auto;align-items:center;min-height:24px;}.fibery-mobile .c1gf494l{min-height:36px;}
13
- .c14sd9dn{display:flex;}
14
- .i1fgpr5b-item{background-color:var(--warningBgColor);}
11
+ .ajnlt45-actions{display:none;position:absolute;top:0;right:0;z-index:1;padding:3px;background-color:var(--colorBgFloatingPanel);border-radius:8px;box-shadow:var(--shadowFloatingPanel);gap:2px;}.d1slvpm7-defaultComment:hover .ajnlt45-actions{display:flex;}.fibery-mobile .ajnlt45-actions{top:-6px;}
12
+ .c1gf494l{display:grid;grid-template-columns:auto minmax(150px, 1fr);align-items:center;column-gap:12px;}
13
+ .c14sd9dn{display:grid;position:relative;grid-template-columns:1fr auto;align-items:center;min-height:24px;}.fibery-mobile .c14sd9dn{min-height:36px;}
14
+ .c1fgpr5b{display:flex;}
15
+ .i1x2fdjy-item{background-color:var(--warningBgColor);}
@@ -196,6 +196,7 @@ declare const alphaCoefficients: {
196
196
  readonly logoGridMedium: readonly [AlphaCoefficient, AlphaCoefficient];
197
197
  readonly shadowOutline: readonly [AlphaCoefficient, AlphaCoefficient];
198
198
  readonly scrollFade: readonly [AlphaCoefficient, AlphaCoefficient];
199
+ readonly skeleton: readonly [AlphaCoefficient, AlphaCoefficient];
199
200
  readonly selectedOutline: readonly [AlphaCoefficient, AlphaCoefficient];
200
201
  readonly scrollbar: readonly [AlphaCoefficient, AlphaCoefficient];
201
202
  readonly aiBg: readonly [AlphaCoefficient, AlphaCoefficient];
@@ -192,6 +192,7 @@ var alphaCoefficients = {
192
192
  logoGridMedium: mode(.4, 1),
193
193
  shadowOutline: same(.2),
194
194
  scrollFade: same(.15),
195
+ skeleton: same(.1),
195
196
  selectedOutline: same(.75),
196
197
  scrollbar: same(.5),
197
198
  aiBg: same(.1),
@@ -493,8 +493,7 @@ declare function defsFromPalette({ key, whiteA, white, blackA, blackish, black,
493
493
  readonly colorBgLogoCardTransparent: [string, string];
494
494
  readonly colorBgLogoCardDark: readonly [string, string];
495
495
  readonly colorBgLogoCardMedium: [string, string];
496
- readonly colorBgSkeletonFrom: Def;
497
- readonly colorBgSkeletonTo: Def;
496
+ readonly colorBgSkeleton: Def;
498
497
  readonly colorShadowInsetEdge: Def;
499
498
  readonly colorShadowBorder: Def;
500
499
  readonly colorShadowElevation: Def;
@@ -1101,8 +1100,7 @@ declare function sideFromDefs(defs: ThemeDefs, mode: ThemeMode): {
1101
1100
  readonly colorBgLogoCardTransparent: string;
1102
1101
  readonly colorBgLogoCardDark: string;
1103
1102
  readonly colorBgLogoCardMedium: string;
1104
- readonly colorBgSkeletonFrom: string;
1105
- readonly colorBgSkeletonTo: string;
1103
+ readonly colorBgSkeleton: string;
1106
1104
  readonly colorShadowInsetEdge: string;
1107
1105
  readonly colorShadowBorder: string;
1108
1106
  readonly colorShadowElevation: string;
@@ -754,8 +754,7 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
754
754
  colorBgLogoCardTransparent: surface.level0elevated,
755
755
  colorBgLogoCardDark: base8,
756
756
  colorBgLogoCardMedium: surface.level4,
757
- colorBgSkeletonFrom: whiteA5,
758
- colorBgSkeletonTo: whiteA10,
757
+ colorBgSkeleton: alphaPair(black, white, alphaCoefficients.utility.skeleton),
759
758
  colorShadowInsetEdge: whiteA5,
760
759
  colorShadowBorder: whiteA10,
761
760
  colorShadowElevation: blackA10,
@@ -497,8 +497,7 @@ declare function themeFromDefs(defs: ThemeDefs, mode: ThemeMode): {
497
497
  readonly colorBgLogoCardTransparent: string;
498
498
  readonly colorBgLogoCardDark: string;
499
499
  readonly colorBgLogoCardMedium: string;
500
- readonly colorBgSkeletonFrom: string;
501
- readonly colorBgSkeletonTo: string;
500
+ readonly colorBgSkeleton: string;
502
501
  readonly colorShadowInsetEdge: string;
503
502
  readonly colorShadowBorder: string;
504
503
  readonly colorShadowElevation: string;
@@ -1108,8 +1107,7 @@ declare function themeFromPaletteImpl(palette: ThemePalette, mode: ThemeMode): {
1108
1107
  readonly colorBgLogoCardTransparent: string;
1109
1108
  readonly colorBgLogoCardDark: string;
1110
1109
  readonly colorBgLogoCardMedium: string;
1111
- readonly colorBgSkeletonFrom: string;
1112
- readonly colorBgSkeletonTo: string;
1110
+ readonly colorBgSkeleton: string;
1113
1111
  readonly colorShadowInsetEdge: string;
1114
1112
  readonly colorShadowBorder: string;
1115
1113
  readonly colorShadowElevation: string;
@@ -1718,8 +1716,7 @@ declare const themeFromPalette: typeof themeFromPaletteImpl & import("@fibery/he
1718
1716
  readonly colorBgLogoCardTransparent: string;
1719
1717
  readonly colorBgLogoCardDark: string;
1720
1718
  readonly colorBgLogoCardMedium: string;
1721
- readonly colorBgSkeletonFrom: string;
1722
- readonly colorBgSkeletonTo: string;
1719
+ readonly colorBgSkeleton: string;
1723
1720
  readonly colorShadowInsetEdge: string;
1724
1721
  readonly colorShadowBorder: string;
1725
1722
  readonly colorShadowElevation: string;
@@ -2329,8 +2326,7 @@ declare const stylesFromTheme: ((arg: Pick<{
2329
2326
  readonly colorBgLogoCardTransparent: string;
2330
2327
  readonly colorBgLogoCardDark: string;
2331
2328
  readonly colorBgLogoCardMedium: string;
2332
- readonly colorBgSkeletonFrom: string;
2333
- readonly colorBgSkeletonTo: string;
2329
+ readonly colorBgSkeleton: string;
2334
2330
  readonly colorShadowInsetEdge: string;
2335
2331
  readonly colorShadowBorder: string;
2336
2332
  readonly colorShadowElevation: string;
@@ -2938,8 +2934,7 @@ declare const stylesFromTheme: ((arg: Pick<{
2938
2934
  readonly colorBgLogoCardTransparent: string;
2939
2935
  readonly colorBgLogoCardDark: string;
2940
2936
  readonly colorBgLogoCardMedium: string;
2941
- readonly colorBgSkeletonFrom: string;
2942
- readonly colorBgSkeletonTo: string;
2937
+ readonly colorBgSkeleton: string;
2943
2938
  readonly colorShadowInsetEdge: string;
2944
2939
  readonly colorShadowBorder: string;
2945
2940
  readonly colorShadowElevation: string;
@@ -19,7 +19,7 @@ function themeFromPaletteImpl(palette, mode) {
19
19
  return themeFromDefs(defsFromPalette(palette), mode);
20
20
  }
21
21
  var themeFromPalette = memoizeLeak(themeFromPaletteImpl, (palette, mode) => `${palette.key}-${mode}`);
22
- themeFromPalette.cache = new LRUCache({ max: 4 });
22
+ themeFromPalette.cache = new LRUCache({ max: 8 });
23
23
  function stylesFromThemeImpl(theme) {
24
24
  return Object.entries(theme.colors).reduce((inlineTheme, [key, value]) => {
25
25
  inlineTheme[theme.varname(key)] = value;
@@ -10,7 +10,7 @@ type LoadingSausageProps = {
10
10
  margins?: boolean;
11
11
  index?: number;
12
12
  };
13
- declare const LoadingSausage: import("react").MemoExoticComponent<({ minWidth, maxWidth, index, height, inverted, margins, animateAppearance }: LoadingSausageProps) => JSX.Element>;
13
+ declare const LoadingSausage: import("react").MemoExoticComponent<({ minWidth, maxWidth, index, height, margins, animateAppearance }: LoadingSausageProps) => JSX.Element>;
14
14
  type SausageListProps = {
15
15
  amount?: number;
16
16
  minAmount?: number;
@@ -14,18 +14,16 @@ var getRandomInt = (min, max, seed) => {
14
14
  return Math.floor(random * (max - min + 1)) + min;
15
15
  };
16
16
  var loadingSausageStyle = "l16t34ge-loadingSausage";
17
- var light = "l9y52vn-light";
18
- var dark = "d13a41xq-dark";
19
- var marginStyle = "m1pjyqzf-margin";
20
- var loadingSausageWithAnimatedAppearanceStyle = "l62e96j-loadingSausageWithAnimatedAppearance";
21
- var _exp6 = () => ((props) => `${props.height / 2}px`);
17
+ var marginStyle = "m9y52vn-margin";
18
+ var loadingSausageWithAnimatedAppearanceStyle = "l13a41xq-loadingSausageWithAnimatedAppearance";
19
+ var _exp4 = () => ((props) => `${props.height / 2}px`);
22
20
  var Container = /*#__PURE__*/ styled("div")({
23
21
  name: "Container",
24
- class: "c1ybuoqn-Container",
22
+ class: "c1pjyqzf-Container",
25
23
  propsAsIs: false,
26
- vars: { "c1ybuoqn-0": [_exp6()] }
24
+ vars: { "c1pjyqzf-0": [_exp4()] }
27
25
  });
28
- var LoadingSausage = memo(function LoadingSausage({ minWidth = 80, maxWidth = 120, index, height = 12, inverted = false, margins = true, animateAppearance = false }) {
26
+ var LoadingSausage = memo(function LoadingSausage({ minWidth = 80, maxWidth = 120, index, height = 12, margins = true, animateAppearance = false }) {
29
27
  const [width] = useState(() => getRandomInt(minWidth, maxWidth, index));
30
28
  return /* @__PURE__ */ jsx(Container, {
31
29
  height,
@@ -33,13 +31,12 @@ var LoadingSausage = memo(function LoadingSausage({ minWidth = 80, maxWidth = 12
33
31
  width,
34
32
  height
35
33
  },
36
- className: cx(loadingSausageStyle, inverted ? light : dark, margins && marginStyle, animateAppearance && loadingSausageWithAnimatedAppearanceStyle)
34
+ className: cx(loadingSausageStyle, margins && marginStyle, animateAppearance && loadingSausageWithAnimatedAppearanceStyle)
37
35
  });
38
36
  });
39
37
  var LoadingSausageList = memo(function LoadingSausageList({ amount, minAmount = 1, maxAmount = 1, WrapperComponent, ...restProps }) {
40
38
  const calculatedAmount = amount || getRandomInt(minAmount, maxAmount);
41
- const list = new Array(calculatedAmount).fill(null);
42
- return /* @__PURE__ */ jsx(Fragment, { children: list.map((_, index) => {
39
+ return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: calculatedAmount }, (_, index) => {
43
40
  const style = { opacity: (calculatedAmount - index) / calculatedAmount };
44
41
  return /* @__PURE__ */ jsx("div", {
45
42
  style,
@@ -1,6 +1,4 @@
1
- .l16t34ge-loadingSausage{vertical-align:middle;position:relative;background:none;}.l16t34ge-loadingSausage::before,.l16t34ge-loadingSausage::after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;}@keyframes OpacityAnim-l16t34ge-loadingSausage{0%{opacity:1;}100%{opacity:0;}}.l16t34ge-loadingSausage::before{animation:OpacityAnim-l16t34ge-loadingSausage 2s ease-in-out 0s infinite alternate;}.l16t34ge-loadingSausage::after{animation:OpacityAnim-l16t34ge-loadingSausage 2s ease-in-out -2s infinite alternate;}
2
- .l9y52vn-light::before{background-image:linear-gradient(90deg, var(--colorBgSkeletonFrom) 0%, var(--colorBgSkeletonTo) 100%);}.l9y52vn-light::after{background-image:linear-gradient(90deg, var(--colorBgSkeletonTo) 0%, var(--colorBgSkeletonFrom) 100%);}
3
- .d13a41xq-dark::before{background-image:linear-gradient(90deg, var(--separatorColorDimmed) 0%, var(--separatorColor) 100%);}.d13a41xq-dark::after{background-image:linear-gradient(90deg, var(--separatorColor) 0%, var(--separatorColorDimmed) 100%);}
4
- .m1pjyqzf-margin{margin-top:4px;margin-bottom:4px;}
5
- .l62e96j-loadingSausageWithAnimatedAppearance{animation:OpacityAnim-l62e96j-loadingSausageWithAnimatedAppearance 1s cubic-bezier(0.95, 0.05, 0.795, 0.035) 1;}@keyframes OpacityAnim-l62e96j-loadingSausageWithAnimatedAppearance{0%{opacity:0;}100%{opacity:1;}}
6
- .c1ybuoqn-Container::before,.c1ybuoqn-Container::after{border-radius:var(--c1ybuoqn-0);}
1
+ .l16t34ge-loadingSausage{vertical-align:middle;position:relative;background:none;}.l16t34ge-loadingSausage::before,.l16t34ge-loadingSausage::after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;}@keyframes OpacityAnim-l16t34ge-loadingSausage{0%{opacity:1;}100%{opacity:0;}}.l16t34ge-loadingSausage::before{background-image:linear-gradient(90deg, transparent 0%, var(--colorBgSkeleton) 100%);animation:OpacityAnim-l16t34ge-loadingSausage 2s ease-in-out 0s infinite alternate;}.l16t34ge-loadingSausage::after{background-image:linear-gradient(90deg, var(--colorBgSkeleton) 0%, transparent 100%);animation:OpacityAnim-l16t34ge-loadingSausage 2s ease-in-out -2s infinite alternate;}
2
+ .m9y52vn-margin{margin-top:4px;margin-bottom:4px;}
3
+ .l13a41xq-loadingSausageWithAnimatedAppearance{animation:OpacityAnim-l13a41xq-loadingSausageWithAnimatedAppearance 1s cubic-bezier(0.95, 0.05, 0.795, 0.035) 1;}@keyframes OpacityAnim-l13a41xq-loadingSausageWithAnimatedAppearance{0%{opacity:0;}100%{opacity:1;}}
4
+ .c1pjyqzf-Container::before,.c1pjyqzf-Container::after{border-radius:var(--c1pjyqzf-0);}
@@ -1,3 +1,3 @@
1
1
  .b1im33qq-basicPopup{box-shadow:var(--shadowPopup);border-radius:8px;background-color:var(--colorBgPopup);max-height:inherit;max-width:inherit;}
2
- @keyframes slide-b15ujjn8-basicPopupContainer{from{opacity:0;transform:translate(var(--fibery-popup-slide-offset-x, 0), var(--fibery-popup-slide-offset-y, 0));}to{opacity:1;transform:translate(0);}}@media (prefers-reduced-motion: no-preference){.b15ujjn8-basicPopupContainer .b1im33qq-basicPopup{animation-duration:400ms;animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);animation-fill-mode:forwards;will-change:transform,opacity;animation-name:slide-b15ujjn8-basicPopupContainer;}.b15ujjn8-basicPopupContainer .b1im33qq-basicPopup[data-fix-stacking-context]{animation-name:none;will-change:unset;}.b15ujjn8-basicPopupContainer[data-popper-placement^="top"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-y:2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="bottom"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-y:-2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="left"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-x:2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="right"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-x:-2px;}}
2
+ .b15ujjn8-basicPopupContainer{width:max-content;}@keyframes slide-b15ujjn8-basicPopupContainer{from{opacity:0;transform:translate(var(--fibery-popup-slide-offset-x, 0), var(--fibery-popup-slide-offset-y, 0));}to{opacity:1;transform:translate(0);}}@media (prefers-reduced-motion: no-preference){.b15ujjn8-basicPopupContainer .b1im33qq-basicPopup{animation-duration:400ms;animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);animation-fill-mode:forwards;will-change:transform,opacity;animation-name:slide-b15ujjn8-basicPopupContainer;}.b15ujjn8-basicPopupContainer .b1im33qq-basicPopup[data-fix-stacking-context]{animation-name:none;will-change:unset;}.b15ujjn8-basicPopupContainer[data-popper-placement^="top"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-y:2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="bottom"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-y:-2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="left"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-x:2px;}.b15ujjn8-basicPopupContainer[data-popper-placement^="right"] .b1im33qq-basicPopup{--fibery-popup-slide-offset-x:-2px;}}
3
3
  .htbxrvo-hidePopupWhenTriggerIsHidden[data-popper-reference-hidden="true"]{visibility:hidden;pointer-events:none;}.htbxrvo-hidePopupWhenTriggerIsHidden[data-popper-reference-hidden="true"] *{visibility:hidden;}
@@ -50,8 +50,9 @@ function RootThemeProvider({ initialThemeMode, initialPreference, isArchitect =
50
50
  isArchitect
51
51
  }), [warm, isArchitect]);
52
52
  const palette = useMemo(() => paletteOverride ?? truePalette, [paletteOverride, truePalette]);
53
+ const theme = themeFromPalette(palette, mode);
53
54
  let res = /* @__PURE__ */ jsx(ThemeProvider, {
54
- theme: themeFromPalette(palette, mode),
55
+ theme,
55
56
  children
56
57
  });
57
58
  const { themes: [lightThemeColors, darkThemeColors] } = locateThemeBundle(warm);