@fibery/ui-kit 9.1.3 → 9.2.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 (41) hide show
  1. package/lib/actions-menu/actions-menu-item.js +1 -1
  2. package/lib/board-table-loader.js +1 -1
  3. package/lib/card-container.js +1 -1
  4. package/lib/design-system/skeleton.d.ts +7 -0
  5. package/lib/design-system/skeleton.js +18 -0
  6. package/lib/design-system.d.ts +2 -1
  7. package/lib/design-system.js +2 -1
  8. package/lib/file-item.js +14 -14
  9. package/lib/file-item.wyw-in-js.css +10 -11
  10. package/lib/icons/react/integration-claude.js +1 -1
  11. package/lib/icons/react/integration-gemini.js +1 -1
  12. package/lib/icons/react/integration-openai.js +1 -1
  13. package/lib/loaders.js +4 -8
  14. package/lib/number-input/number-input.js +13 -5
  15. package/lib/rich-input-loader.js +5 -11
  16. package/lib/rich-input-loader.wyw-in-js.css +2 -3
  17. package/lib/scroll-fade.d.ts +6 -0
  18. package/lib/scroll-fade.js +16 -0
  19. package/lib/scroll-fade.wyw-in-js.css +13 -0
  20. package/lib/select/index.js +4 -3
  21. package/lib/select/index.wyw-in-js.css +3 -3
  22. package/lib/select/select-control-settings-context.d.ts +3 -1
  23. package/lib/select/select-control-settings-context.js +5 -3
  24. package/lib/select/select-in-popover.js +2 -0
  25. package/lib/skeleton-card.d.ts +7 -0
  26. package/lib/skeleton-card.js +16 -0
  27. package/lib/skeleton-card.wyw-in-js.css +2 -0
  28. package/lib/skeleton.d.ts +29 -7
  29. package/lib/skeleton.js +17 -6
  30. package/lib/skeleton.wyw-in-js.css +2 -0
  31. package/lib/spinner-box.d.ts +12 -0
  32. package/lib/spinner-box.js +23 -0
  33. package/lib/spinner-box.wyw-in-js.css +2 -0
  34. package/lib/tab-nav/tab-nav.js +1 -1
  35. package/lib/tree-utils.d.ts +11 -19
  36. package/lib/unit/loading-unit-value.d.ts +1 -2
  37. package/lib/unit/loading-unit-value.js +1 -2
  38. package/lib/unit/maybe-unit-value.js +1 -4
  39. package/lib/unit/nav-button.d.ts +1 -0
  40. package/lib/unit/nav-button.js +8 -5
  41. package/package.json +3 -3
@@ -13,8 +13,8 @@ import { noop } from "@fibery/helpers/src/_";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
14
  import { useId } from "react";
15
15
  import { cx } from "@linaria/core";
16
- import { stopPropagation } from "@fibery/react/src/stop-propagation";
17
16
  import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
17
+ import { stopPropagation } from "@fibery/react/src/stop-propagation";
18
18
  //#region src/actions-menu/actions-menu-item.tsx
19
19
  var hiddenTextCss = "hq9y0ce-hiddenText";
20
20
  var visibleTextCss = "v10chqgc-visibleText";
@@ -1,7 +1,7 @@
1
1
  import "./board-table-loader.wyw-in-js.css";
2
2
  import { Skeleton, SkeletonList } from "./skeleton.js";
3
- import { Delayed, defaultLoaderDelay } from "./delayed.js";
4
3
  import { Box } from "./box.js";
4
+ import { Delayed, defaultLoaderDelay } from "./delayed.js";
5
5
  import { AxisHeader } from "./axis-header.js";
6
6
  /* empty css */
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import "./card-container.wyw-in-js.css";
2
2
  import { visuallyHidden } from "./styles-utils.js";
3
- import { CardHiddenLink } from "./card-hidden-link.js";
4
3
  import { getBg } from "./box.js";
4
+ import { CardHiddenLink } from "./card-hidden-link.js";
5
5
  /* empty css */
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import cx from "classnames";
@@ -0,0 +1,7 @@
1
+ //#region src/design-system/skeleton.d.ts
2
+ declare const skeletonHeights: readonly [8, 12, 16, 20];
3
+ declare const skeletonWidths: readonly [24, 40, 80, 120, 200, 300, 420];
4
+ type SkeletonHeight = (typeof skeletonHeights)[number];
5
+ type SkeletonWidth = (typeof skeletonWidths)[number];
6
+ //#endregion
7
+ export { SkeletonHeight, SkeletonWidth, skeletonHeights, skeletonWidths };
@@ -0,0 +1,18 @@
1
+ //#region src/design-system/skeleton.ts
2
+ var skeletonHeights = [
3
+ 8,
4
+ 12,
5
+ 16,
6
+ 20
7
+ ];
8
+ var skeletonWidths = [
9
+ 24,
10
+ 40,
11
+ 80,
12
+ 120,
13
+ 200,
14
+ 300,
15
+ 420
16
+ ];
17
+ //#endregion
18
+ export { skeletonHeights, skeletonWidths };
@@ -9,7 +9,8 @@ import { getDarkenColor, getObjectColor } from "./design-system/colors-js.js";
9
9
  import { palette } from "./design-system/colors-charts.js";
10
10
  import { dateFormat, dateTimeFormat, timeFormat } from "./design-system/date.js";
11
11
  import { border, iconSize, layout, minPanelWidth, space, spaceNestedTreeInterval, spaceNestedTreeLevel, viewBoxSize } from "./design-system/layout.js";
12
+ import { SkeletonHeight, SkeletonWidth, skeletonHeights, skeletonWidths } from "./design-system/skeleton.js";
12
13
  import { Styles, Theme, stylesFromTheme, themeFromPalette } from "./design-system/theme.js";
13
14
  import { fontFamily, fontFamilyCode, fontSize, fontWeight, lineHeight, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles } from "./design-system/typography.js";
14
15
  import { layoutVars, listRowSurfaceFontSizeVar, menuItemHeightVar, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, themeVars } from "./theming.generated.js";
15
- export { type ColorScale, type Def, type DefMapper, type Defs, type EnumDefs, type HighlightDefs, type HighlightHueName, type HighlightHueNameCap, type ModeDef, type OneBasedScale, type Styles, Swatch, type Theme, type ThemeDefs, type ThemePalette, type ThemePaletteBase, type ThemePaletteCore, type ZeroBasedScale, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
16
+ export { type ColorScale, type Def, type DefMapper, type Defs, type EnumDefs, type HighlightDefs, type HighlightHueName, type HighlightHueNameCap, type ModeDef, type OneBasedScale, type SkeletonHeight, type SkeletonWidth, type Styles, Swatch, type Theme, type ThemeDefs, type ThemePalette, type ThemePaletteBase, type ThemePaletteCore, type ZeroBasedScale, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, skeletonHeights, skeletonWidths, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
@@ -9,6 +9,7 @@ import { dropCursorColor, getBgSwatchBorderColor, getBgSwatchFillColor, getEnumT
9
9
  import { palette } from "./design-system/colors-charts.js";
10
10
  import { dateFormat, dateTimeFormat, timeFormat } from "./design-system/date.js";
11
11
  import { border, iconSize, layout, minPanelWidth, space, spaceNestedTreeInterval, spaceNestedTreeLevel, viewBoxSize } from "./design-system/layout.js";
12
+ import { skeletonHeights, skeletonWidths } from "./design-system/skeleton.js";
12
13
  import { stylesFromTheme, themeFromPalette } from "./design-system/theme.js";
13
14
  import { fontFamily, fontFamilyCode, fontSize, fontWeight, lineHeight, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles } from "./design-system/typography.js";
14
- export { Swatch, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
15
+ export { Swatch, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, skeletonHeights, skeletonWidths, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
package/lib/file-item.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./file-item.wyw-in-js.css";
2
2
  import { Icon } from "./icons/icon.js";
3
- import { Spinner } from "./spinner.js";
3
+ import { SpinnerBox } from "./spinner-box.js";
4
4
  import { ActionsMenu } from "./actions-menu/actions-menu.js";
5
5
  import { ActionsButtonCompact } from "./button/actions-button-compact.js";
6
6
  import { FileIcon } from "./file-item/file-icon.js";
@@ -34,23 +34,23 @@ function FileItem(props) {
34
34
  onClick,
35
35
  className: cx("c1pvbaru", fileItemStyle, showFileIcon ? iconOnlyStyle : thumbnailStyle, isPending && "c5okxkg"),
36
36
  children: [
37
- isPending && /* @__PURE__ */ jsx("div", {
38
- className: "cc83qat",
39
- children: /* @__PURE__ */ jsx(Spinner, {})
37
+ isPending && /* @__PURE__ */ jsx(SpinnerBox, {
38
+ height: "fill",
39
+ width: "fill"
40
40
  }),
41
41
  showFileIcon && /* @__PURE__ */ jsxs("div", {
42
- className: cx(overlayStyle, fileOverlayStyle, "cx9zid2"),
42
+ className: cx(overlayStyle, fileOverlayStyle, "cc83qat"),
43
43
  children: [/* @__PURE__ */ jsxs("div", {
44
- className: "c9w3df3",
44
+ className: "cx9zid2",
45
45
  children: [/* @__PURE__ */ jsx(Icon, {
46
46
  containerSize: 40,
47
47
  iconSize: 40,
48
48
  children: /* @__PURE__ */ jsx(FileIcon, { contentType })
49
49
  }), /* @__PURE__ */ jsx("div", {
50
- className: "c1y52bj6",
50
+ className: "c9w3df3",
51
51
  children: /* @__PURE__ */ jsx(FileTitle, {
52
52
  title: name,
53
- className: "c1ba9arf"
53
+ className: "c1y52bj6"
54
54
  })
55
55
  })]
56
56
  }), /* @__PURE__ */ jsx("div", {
@@ -68,9 +68,9 @@ function FileItem(props) {
68
68
  !isPending && !showFileIcon && /* @__PURE__ */ jsx("div", {
69
69
  className: cx(overlayStyle, isBackgroundReady ? imageOverlayStyle : fileOverlayStyle),
70
70
  children: /* @__PURE__ */ jsxs("div", {
71
- className: "ch3czly",
71
+ className: "c1ba9arf",
72
72
  children: [/* @__PURE__ */ jsx("div", {
73
- className: "c1mipo1r",
73
+ className: "ch3czly",
74
74
  children: /* @__PURE__ */ jsx(FileActionsMenu, {
75
75
  setIsActionsOpened,
76
76
  data: props.data,
@@ -80,7 +80,7 @@ function FileItem(props) {
80
80
  onRenameClick: props.onRenameClick
81
81
  })
82
82
  }), /* @__PURE__ */ jsx("div", {
83
- className: "c1fc45k7",
83
+ className: "c1mipo1r",
84
84
  children: /* @__PURE__ */ jsx(FileTitle, { title: name })
85
85
  })]
86
86
  })
@@ -99,7 +99,7 @@ function FileActionsMenu({ data, disabled, setIsActionsOpened, onDownloadClick,
99
99
  onOpenChange: setIsActionsOpened,
100
100
  supportsMobile: true,
101
101
  mobileTitle: data.name,
102
- trigger: jsx(ActionsButtonCompact, { className: "c1oq0oxn" }),
102
+ trigger: jsx(ActionsButtonCompact, { className: "c1fc45k7" }),
103
103
  children: jsx(FileMenuItems, {
104
104
  file: data,
105
105
  disabled,
@@ -111,10 +111,10 @@ function FileActionsMenu({ data, disabled, setIsActionsOpened, onDownloadClick,
111
111
  }
112
112
  function FileTitle({ title, className }) {
113
113
  return /* @__PURE__ */ jsx("div", {
114
- className: cx("cowg3oy", className),
114
+ className: cx("c1oq0oxn", className),
115
115
  children: jsx(FileTitle$1, {
116
116
  title,
117
- containerCss: "c1end6bx-container"
117
+ containerCss: "cowg3oy-container"
118
118
  })
119
119
  });
120
120
  }
@@ -12,14 +12,13 @@
12
12
  .c18cm2yq .o1kzue6u-overlay{background-color:var(--colorBgMenuItemHover);}.c18cm2yq .a5now68-actionsButton{opacity:1;}
13
13
  .c1pvbaru{flex-shrink:0;}
14
14
  .c5okxkg{background-color:var(--entityCardSelectedColor);}
15
- .cc83qat{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;}
16
- .cx9zid2{position:relative;}
17
- .c9w3df3{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;padding-top:1px;gap:2px;}
18
- .c1y52bj6{display:flex;width:100%;justify-content:center;gap:10px;flex-shrink:0;color:var(--colorTextMenuItem);text-overflow:ellipsis;overflow:hidden;}
19
- .c1ba9arf{overflow:hidden;text-overflow:ellipsis;}
20
- .ch3czly{position:relative;display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%;overflow:hidden;box-sizing:border-box;gap:8px;}
21
- .c1mipo1r{align-self:flex-end;}
22
- .c1fc45k7{display:flex;width:100%;align-self:flex-start;align-items:flex-end;text-overflow:ellipsis;box-sizing:border-box;}
23
- .c1oq0oxn{z-index:1;}
24
- .cowg3oy{border-radius:4px;background:var(--badgeBgColor);padding:2px 5px;height:100%;vertical-align:top;text-align:center;justify-content:center;overflow:hidden;font-size:10px;font-weight:500;line-height:1.3;text-transform:none;text-overflow:ellipsis;}.cowg3oy:hover{text-decoration:none;color:inherit;}
25
- .c1end6bx-container{max-width:180px;}
15
+ .cc83qat{position:relative;}
16
+ .cx9zid2{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;padding-top:1px;gap:2px;}
17
+ .c9w3df3{display:flex;width:100%;justify-content:center;gap:10px;flex-shrink:0;color:var(--colorTextMenuItem);text-overflow:ellipsis;overflow:hidden;}
18
+ .c1y52bj6{overflow:hidden;text-overflow:ellipsis;}
19
+ .c1ba9arf{position:relative;display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%;overflow:hidden;box-sizing:border-box;gap:8px;}
20
+ .ch3czly{align-self:flex-end;}
21
+ .c1mipo1r{display:flex;width:100%;align-self:flex-start;align-items:flex-end;text-overflow:ellipsis;box-sizing:border-box;}
22
+ .c1fc45k7{z-index:1;}
23
+ .c1oq0oxn{border-radius:4px;background:var(--badgeBgColor);padding:2px 5px;height:100%;vertical-align:top;text-align:center;justify-content:center;overflow:hidden;font-size:10px;font-weight:500;line-height:1.3;text-transform:none;text-overflow:ellipsis;}.c1oq0oxn:hover{text-decoration:none;color:inherit;}
24
+ .cowg3oy-container{max-width:180px;}
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
5
5
  //#region src/icons/react/integration-claude.tsx
6
6
  /**
7
7
  * This file was automatically generated. Do not edit manually.
8
- *
8
+ *
9
9
  * @see import("../svg/integration-claude.svg")
10
10
  * @see import("../../scripts/generate-icons.ts")
11
11
  */
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
5
5
  //#region src/icons/react/integration-gemini.tsx
6
6
  /**
7
7
  * This file was automatically generated. Do not edit manually.
8
- *
8
+ *
9
9
  * @see import("../svg/integration-gemini.svg")
10
10
  * @see import("../../scripts/generate-icons.ts")
11
11
  */
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
5
5
  //#region src/icons/react/integration-openai.tsx
6
6
  /**
7
7
  * This file was automatically generated. Do not edit manually.
8
- *
8
+ *
9
9
  * @see import("../svg/integration-openai.svg")
10
10
  * @see import("../../scripts/generate-icons.ts")
11
11
  */
package/lib/loaders.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./loaders.wyw-in-js.css";
2
2
  import { themeVars } from "./theming.generated.js";
3
- import { layout, space } from "./design-system/layout.js";
3
+ import { layout } from "./design-system/layout.js";
4
4
  import { textClasses } from "./design-system/typography.js";
5
5
  import { useTheme } from "./theme-provider.js";
6
6
  import { Skeleton } from "./skeleton.js";
@@ -33,8 +33,7 @@ var LoadingPage = ({ absolute = true, contentLoader = true }) => /* @__PURE__ */
33
33
  absolute,
34
34
  children: /* @__PURE__ */ jsx(Skeleton, {
35
35
  height: 20,
36
- minWidth: 300,
37
- maxWidth: 300,
36
+ width: 300,
38
37
  animateAppearance: true
39
38
  })
40
39
  }), contentLoader && /* @__PURE__ */ jsx(LoadingView, { absolute })] });
@@ -50,10 +49,7 @@ var LoadingApp = ({ backgroundColor = "transparent", appName }) => /* @__PURE__
50
49
  children: [/* @__PURE__ */ jsx("div", {
51
50
  className: cx(textClasses.regular, loaderStyle),
52
51
  children: `Loading ${appName} app…`
53
- }), /* @__PURE__ */ jsx(Skeleton, {
54
- minWidth: 100,
55
- maxWidth: 100
56
- })]
52
+ }), /* @__PURE__ */ jsx(Skeleton, { width: 80 })]
57
53
  });
58
54
  var LoadingTreeMenuItem = ({ color, Icon, level, children }) => {
59
55
  const theme = useTheme();
@@ -64,7 +60,7 @@ var LoadingTreeMenuItem = ({ color, Icon, level, children }) => {
64
60
  containerSize: layout.newMenuItemHeight,
65
61
  iconSize: 18
66
62
  }), children || /* @__PURE__ */ jsx(Skeleton, {
67
- height: space.s6,
63
+ height: 8,
68
64
  inverted: theme.mode === "dark"
69
65
  })]
70
66
  });
@@ -24,17 +24,25 @@ var NumberInput = ({ className, value, numberFormat, numberPrecision, format, on
24
24
  numberFormat,
25
25
  onChange
26
26
  ]);
27
- const formattedValue = useMemo(() => {
28
- return formatValue(value, isEditing, numberFormat, format);
27
+ const numericValue = useMemo(() => {
28
+ return formatValue(value, isEditing, numberFormat);
29
29
  }, [
30
30
  value,
31
31
  isEditing,
32
- numberFormat,
33
- format
32
+ numberFormat
33
+ ]);
34
+ const formatter = useMemo(() => {
35
+ if (!format || isEditing || isEmpty(value)) return;
36
+ return () => format(value);
37
+ }, [
38
+ format,
39
+ isEditing,
40
+ value
34
41
  ]);
35
42
  return /* @__PURE__ */ jsx(AntInputNumber, {
36
43
  className,
37
- value: formattedValue,
44
+ value: numericValue,
45
+ formatter,
38
46
  onFocus: handleFocus,
39
47
  onBlur: handleBlur,
40
48
  onChange: handleChange,
@@ -1,18 +1,12 @@
1
1
  import "./rich-input-loader.wyw-in-js.css";
2
- import { SkeletonList } from "./skeleton.js";
2
+ import { SkeletonList, SkeletonTextLine } from "./skeleton.js";
3
3
  import { regularRichEditorHTMLStyles } from "./html-styles.js";
4
4
  /* empty css */
5
5
  import { noop } from "@fibery/helpers/src/_";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createContext, memo, useContext, useEffect, useMemo, useState } from "react";
8
8
  import { cx } from "@linaria/core";
9
- import { styled } from "@linaria/react";
10
9
  //#region src/rich-input-loader.tsx
11
- var LoaderWrapper = /*#__PURE__*/ styled("div")({
12
- name: "LoaderWrapper",
13
- class: "lgnhmrn-LoaderWrapper",
14
- propsAsIs: false
15
- });
16
10
  var loaderContext = createContext({
17
11
  showLoader: true,
18
12
  setShowLoader: noop
@@ -23,7 +17,7 @@ var RichInputLoader = memo(function RichInputLoaderComponent({ className = "", a
23
17
  className,
24
18
  children: showLoader && /* @__PURE__ */ jsx(SkeletonList, {
25
19
  amount: 3,
26
- WrapperComponent: LoaderWrapper,
20
+ WrapperComponent: SkeletonTextLine,
27
21
  animateAppearance
28
22
  })
29
23
  });
@@ -48,15 +42,15 @@ var RichFieldLoaderProvider = ({ children }) => {
48
42
  function RichFieldLoader() {
49
43
  const { showLoader } = useContext(loaderContext);
50
44
  return /* @__PURE__ */ jsxs("div", {
51
- className: cx("ProseMirror", regularRichEditorHTMLStyles, "czwej5w"),
45
+ className: cx("ProseMirror", regularRichEditorHTMLStyles, "cgnhmrn"),
52
46
  children: [/* @__PURE__ */ jsx("p", {
53
47
  className: "empty-node",
54
48
  children: /* @__PURE__ */ jsx("br", { className: "ProseMirror-trailingBreak" })
55
49
  }), showLoader ? /* @__PURE__ */ jsx("div", {
56
- className: "c1otohfa",
50
+ className: "czwej5w",
57
51
  children: /* @__PURE__ */ jsx(SkeletonList, {
58
52
  amount: 1,
59
- WrapperComponent: LoaderWrapper
53
+ WrapperComponent: SkeletonTextLine
60
54
  })
61
55
  }) : null]
62
56
  });
@@ -1,3 +1,2 @@
1
- .lgnhmrn-LoaderWrapper{padding-top:1px;}
2
- .czwej5w{position:relative;}
3
- .c1otohfa{position:absolute;inset:0;display:grid;align-content:center;}
1
+ .cgnhmrn{position:relative;}
2
+ .czwej5w{position:absolute;inset:0;display:grid;align-content:center;}
@@ -0,0 +1,6 @@
1
+ //#region src/scroll-fade.d.ts
2
+ declare const ScrollFade: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ orientation: "horizontal" | "vertical";
4
+ } & import("react").RefAttributes<HTMLDivElement>>;
5
+ //#endregion
6
+ export { ScrollFade };
@@ -0,0 +1,16 @@
1
+ import "./scroll-fade.wyw-in-js.css";
2
+ /* empty css */
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { forwardRef } from "react";
5
+ import { cx } from "@linaria/core";
6
+ //#region src/scroll-fade.tsx
7
+ var scrollFadeCss = "s1iyhl5x-scrollFade";
8
+ var horizontalCss = "h1xelgn4-horizontal";
9
+ var verticalCss = "vyme2c-vertical";
10
+ var ScrollFade = forwardRef(({ orientation, className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
11
+ ref,
12
+ className: cx(scrollFadeCss, orientation === "horizontal" ? horizontalCss : verticalCss, className),
13
+ ...props
14
+ }));
15
+ //#endregion
16
+ export { ScrollFade };
@@ -0,0 +1,13 @@
1
+ .s1iyhl5x-scrollFade{scrollbar-width:none;animation:scroll-fade-s1iyhl5x-scrollFade;}.s1iyhl5x-scrollFade::-webkit-scrollbar{display:none;}@property --scroll-fade-start{syntax:"<length>";inherits:false;initial-value:0;}@property --scroll-fade-end{syntax:"<length>";inherits:false;initial-value:0;}@keyframes scroll-fade-s1iyhl5x-scrollFade{0%{--scroll-fade-start:0;}10%,100%{--scroll-fade-start:24px;}0%,90%{--scroll-fade-end:24px;}100%{--scroll-fade-end:0;}}
2
+ .h1xelgn4-horizontal{overflow-x:auto;min-width:0;mask-image:linear-gradient(
3
+ to right,
4
+ transparent,
5
+ #000 var(--scroll-fade-start) calc(100% - var(--scroll-fade-end)),
6
+ transparent
7
+ );animation-timeline:scroll(self inline);}
8
+ .vyme2c-vertical{overflow-y:auto;min-height:0;mask-image:linear-gradient(
9
+ to bottom,
10
+ transparent,
11
+ #000 var(--scroll-fade-start) calc(100% - var(--scroll-fade-end)),
12
+ transparent
13
+ );animation-timeline:scroll(self block);}
@@ -11,6 +11,7 @@ import { forwardRef } from "react";
11
11
  import { cx } from "@linaria/core";
12
12
  //#region src/select/index.tsx
13
13
  var emptyComponents = { Menu: () => null };
14
+ var mobileTriggerPreviewClassName = "m18d77nw-mobileTriggerPreview";
14
15
  var Select = forwardRef(function SelectInner({ maxMenuHeight, options = [], formatOptionLabel, isOptionDisabled, styles, isClearable, placeholder, title, isSearchable, inline, menuPortalTarget, mobileContainerClassName, ...restProps }, forwardedRef) {
15
16
  if (useIsPhone() && !inline) return /* @__PURE__ */ jsx(SelectInPopover, {
16
17
  ...restProps,
@@ -21,9 +22,9 @@ var Select = forwardRef(function SelectInner({ maxMenuHeight, options = [], form
21
22
  formatOptionLabel,
22
23
  isOptionDisabled,
23
24
  trigger: jsxs("div", {
24
- className: cx("c18d77nw", mobileContainerClassName),
25
- children: [/* @__PURE__ */ jsx("div", { className: "ce32lk9" }), /* @__PURE__ */ jsx("div", {
26
- className: "cltml3w",
25
+ className: cx("ce32lk9", mobileContainerClassName),
26
+ children: [/* @__PURE__ */ jsx("div", { className: "cltml3w" }), /* @__PURE__ */ jsx("div", {
27
+ className: mobileTriggerPreviewClassName,
27
28
  children: /* @__PURE__ */ jsx(SelectComponent, {
28
29
  ...restProps,
29
30
  isSearchable: false,
@@ -1,3 +1,3 @@
1
- .c18d77nw{display:block;position:relative;}
2
- .ce32lk9{position:absolute;inset:0;z-index:1;}
3
- .cltml3w{pointer-events:none;}
1
+ .m18d77nw-mobileTriggerPreview{pointer-events:none;}.m18d77nw-mobileTriggerPreview [data-unit-nav-button]{pointer-events:auto;position:relative;z-index:2;}
2
+ .ce32lk9{display:block;position:relative;}
3
+ .cltml3w{position:absolute;inset:0;z-index:1;}
@@ -1,15 +1,17 @@
1
1
  import { ReactNode } from "react";
2
2
  //#region src/select/select-control-settings-context.d.ts
3
- declare function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover }: {
3
+ declare function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover, onRequestClose }: {
4
4
  children: ReactNode;
5
5
  getPopupContainerElement?: () => HTMLElement | null;
6
6
  zIndex?: number;
7
7
  inPopover?: boolean;
8
+ onRequestClose?: () => void;
8
9
  }): import("react/jsx-runtime").JSX.Element;
9
10
  declare const useSelectControlSettings: () => {
10
11
  getPopupContainerElement?: () => HTMLElement | null;
11
12
  zIndex?: number;
12
13
  inPopover?: boolean;
14
+ onRequestClose?: () => void;
13
15
  };
14
16
  //#endregion
15
17
  export { SelectControlSettingsProvider, useSelectControlSettings };
@@ -2,15 +2,17 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { createContext, useContext, useMemo } from "react";
3
3
  //#region src/select/select-control-settings-context.tsx
4
4
  var SelectControlSettings = createContext({});
5
- function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover = false }) {
5
+ function SelectControlSettingsProvider({ children, getPopupContainerElement, zIndex, inPopover = false, onRequestClose }) {
6
6
  const settings = useMemo(() => ({
7
7
  getPopupContainerElement,
8
8
  zIndex,
9
- inPopover
9
+ inPopover,
10
+ onRequestClose
10
11
  }), [
11
12
  getPopupContainerElement,
12
13
  zIndex,
13
- inPopover
14
+ inPopover,
15
+ onRequestClose
14
16
  ]);
15
17
  return /* @__PURE__ */ jsx(SelectControlSettings.Provider, {
16
18
  value: settings,
@@ -59,6 +59,7 @@ function SelectInPopoverInner(props, forwardedRef) {
59
59
  onMenuClose
60
60
  ]);
61
61
  const composedStyles = useMemo(() => composeStyles([makeSelectInPopoverStyles(isPhone), selectStyles]), [selectStyles, isPhone]);
62
+ const handleRequestClose = useCallback(() => onOpenChange(false), [onOpenChange]);
62
63
  const handleChange = useCallback((newValue, actionMeta) => {
63
64
  if (typeof hideOnChange === "function") {
64
65
  if (hideOnChange(newValue, actionMeta)) onOpenChange(false);
@@ -80,6 +81,7 @@ function SelectInPopoverInner(props, forwardedRef) {
80
81
  const select = /* @__PURE__ */ jsx(SelectControlSettingsProvider, {
81
82
  inPopover: true,
82
83
  getPopupContainerElement: void 0,
84
+ onRequestClose: handleRequestClose,
83
85
  children: jsx(SelectComponent, {
84
86
  ...rest,
85
87
  autoFocus: isPhone ? false : rest.autoFocus,
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ //#region src/skeleton-card.d.ts
3
+ declare const SkeletonCard: ({ children }: {
4
+ children: ReactNode;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //#endregion
7
+ export { SkeletonCard };
@@ -0,0 +1,16 @@
1
+ import "./skeleton-card.wyw-in-js.css";
2
+ import { Box } from "./box.js";
3
+ /* empty css */
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/skeleton-card.tsx
6
+ var cardStyle = "cp0t8zc-card";
7
+ var cardContentStyle = "c770980-cardContent";
8
+ var SkeletonCard = ({ children }) => /* @__PURE__ */ jsx("div", {
9
+ className: cardStyle,
10
+ children: jsx(Box, { children: /* @__PURE__ */ jsx("div", {
11
+ className: cardContentStyle,
12
+ children
13
+ }) })
14
+ });
15
+ //#endregion
16
+ export { SkeletonCard };
@@ -0,0 +1,2 @@
1
+ .cp0t8zc-card{margin-bottom:6px;}
2
+ .c770980-cardContent{padding-left:6px;padding-top:2px;padding-bottom:2px;}
package/lib/skeleton.d.ts CHANGED
@@ -1,15 +1,35 @@
1
+ import { SkeletonHeight, SkeletonWidth } from "./design-system/skeleton.js";
2
+ import "./design-system.js";
1
3
  import { ComponentType, ReactNode } from "react";
2
4
  //#region src/skeleton.d.ts
3
- type SkeletonProps = {
4
- minWidth?: number;
5
- maxWidth?: number;
6
- height?: number;
5
+ type SkeletonBaseProps = {
6
+ /** Bar height, one step of the scale — the type scale it stands in for picks the step. */
7
+ height?: SkeletonHeight;
8
+ /**
9
+ * 1:1 plate sized to the element it replaces — an icon, a checkbox, an avatar — rather than to a
10
+ * step of the bar scale. Overrides height and width. dt#1620 replaces it with the Square shape.
11
+ */
12
+ size?: number;
7
13
  inverted?: boolean;
8
14
  animateAppearance?: boolean;
9
15
  margins?: boolean;
10
16
  index?: number;
11
17
  };
12
- declare const Skeleton: import("react").MemoExoticComponent<({ minWidth, maxWidth, index, height, margins, animateAppearance }: SkeletonProps) => JSX.Element>;
18
+ /**
19
+ * A bar is either one known width, or a range to generate one within when the width is not
20
+ * known. Both ends are required for a range, so a fixed width has exactly one spelling.
21
+ */
22
+ type SkeletonWidthProps = {
23
+ width?: SkeletonWidth;
24
+ minWidth?: never;
25
+ maxWidth?: never;
26
+ } | {
27
+ width?: never;
28
+ minWidth: SkeletonWidth;
29
+ maxWidth: SkeletonWidth;
30
+ };
31
+ type SkeletonProps = SkeletonBaseProps & SkeletonWidthProps;
32
+ declare const Skeleton: import("react").MemoExoticComponent<({ height, width, minWidth, maxWidth, size, index, margins, animateAppearance }: SkeletonProps) => JSX.Element>;
13
33
  type SkeletonListProps = {
14
34
  amount?: number;
15
35
  minAmount?: number;
@@ -17,7 +37,9 @@ type SkeletonListProps = {
17
37
  WrapperComponent?: ComponentType<{
18
38
  children: ReactNode;
19
39
  }> | null;
20
- } & Omit<SkeletonProps, "index">;
40
+ } & Omit<SkeletonBaseProps, "index"> & SkeletonWidthProps;
21
41
  declare const SkeletonList: import("react").NamedExoticComponent<SkeletonListProps>;
42
+ declare const SkeletonTextLine: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
43
+ declare const PageContentSkeleton: () => import("react/jsx-runtime").JSX.Element;
22
44
  //#endregion
23
- export { Skeleton, SkeletonList, SkeletonProps };
45
+ export { PageContentSkeleton, Skeleton, SkeletonList, SkeletonProps, SkeletonTextLine };
package/lib/skeleton.js CHANGED
@@ -16,13 +16,14 @@ var Container = /*#__PURE__*/ styled("div")({
16
16
  propsAsIs: false,
17
17
  vars: { "cjtjcsl-0": [_exp4()] }
18
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));
19
+ var Skeleton = memo(function Skeleton({ height = 12, width, minWidth, maxWidth, size, index, margins = true, animateAppearance = false }) {
20
+ const [generatedWidth] = useState(() => getRandomInt(minWidth ?? width ?? 80, maxWidth ?? width ?? 120, index));
21
+ const barHeight = size ?? height;
21
22
  return /* @__PURE__ */ jsx(Container, {
22
- height,
23
+ height: barHeight,
23
24
  style: {
24
- width,
25
- height
25
+ width: size ?? generatedWidth,
26
+ height: barHeight
26
27
  },
27
28
  className: cx(skeletonStyle, margins && marginStyle, animateAppearance && skeletonAppearanceStyle)
28
29
  });
@@ -43,5 +44,15 @@ var SkeletonList = memo(function SkeletonList({ amount, minAmount = 1, maxAmount
43
44
  }, index);
44
45
  }) });
45
46
  });
47
+ var SkeletonTextLine = /*#__PURE__*/ styled("div")({
48
+ name: "SkeletonTextLine",
49
+ class: "s1uzetk8-SkeletonTextLine",
50
+ propsAsIs: false
51
+ });
52
+ var pageContentStyle = "p13qksqz-pageContent";
53
+ var PageContentSkeleton = () => /* @__PURE__ */ jsx("div", {
54
+ className: pageContentStyle,
55
+ children: jsx(SkeletonList, { amount: 3 })
56
+ });
46
57
  //#endregion
47
- export { Skeleton, SkeletonList };
58
+ export { PageContentSkeleton, Skeleton, SkeletonList, SkeletonTextLine };
@@ -2,3 +2,5 @@
2
2
  .mzl91bk-margin{margin-top:4px;margin-bottom:4px;}
3
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
4
  .cjtjcsl-Container::before,.cjtjcsl-Container::after{border-radius:var(--cjtjcsl-0);}
5
+ .s1uzetk8-SkeletonTextLine{padding-top:1px;}
6
+ .p13qksqz-pageContent{padding:12px;}
@@ -0,0 +1,12 @@
1
+ import { IconBaseProps } from "./icons/types.js";
2
+ //#region src/spinner-box.d.ts
3
+ type SpinnerBoxProps = {
4
+ minHeight?: number;
5
+ height?: number | "fill";
6
+ width?: number | "fill";
7
+ overlay?: boolean;
8
+ className?: string;
9
+ } & IconBaseProps;
10
+ declare const SpinnerBox: import("react").NamedExoticComponent<SpinnerBoxProps>;
11
+ //#endregion
12
+ export { SpinnerBox, SpinnerBoxProps };
@@ -0,0 +1,23 @@
1
+ import "./spinner-box.wyw-in-js.css";
2
+ import { Spinner } from "./spinner.js";
3
+ /* empty css */
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { memo } from "react";
6
+ import { cx } from "@linaria/core";
7
+ //#region src/spinner-box.tsx
8
+ var boxStyle = "ban45ip-box";
9
+ var overlayStyle = "om0do2z-overlay";
10
+ var fillable = (value) => value === "fill" ? "100%" : value;
11
+ var SpinnerBox = memo(function SpinnerBox({ minHeight, height, width, overlay = false, className, ...spinnerProps }) {
12
+ return /* @__PURE__ */ jsx("div", {
13
+ className: cx(boxStyle, overlay && overlayStyle, className),
14
+ style: {
15
+ minHeight,
16
+ height: fillable(height),
17
+ width: fillable(width)
18
+ },
19
+ children: jsx(Spinner, { ...spinnerProps })
20
+ });
21
+ });
22
+ //#endregion
23
+ export { SpinnerBox };
@@ -0,0 +1,2 @@
1
+ .ban45ip-box{display:grid;place-content:center;}
2
+ .om0do2z-overlay{position:absolute;inset:0;}
@@ -7,8 +7,8 @@ import { createContext } from "@fibery/react/src/create-context";
7
7
  import { forwardRef, useEffect, useLayoutEffect, useRef, useState } from "react";
8
8
  import { cx } from "@linaria/core";
9
9
  import { useResizeObserver } from "@fibery/react/src/use-resize-observer";
10
- import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
11
10
  import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
11
+ import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
12
12
  import { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuList } from "@radix-ui/react-navigation-menu";
13
13
  //#region src/tab-nav/tab-nav.tsx
14
14
  var tabNavIndicatorWidth = 100;
@@ -1,23 +1,22 @@
1
- import { $TSFixMe } from "./tsfixme.js";
2
1
  //#region src/tree-utils.d.ts
3
2
  type ItemId = string | number;
4
- interface TreeData {
3
+ interface TreeData<Item extends TreeItem = TreeItem> {
5
4
  rootId: ItemId;
6
- items: Record<ItemId, TreeItem>;
5
+ items: Record<ItemId, Item>;
7
6
  }
8
- type TreeItemData = $TSFixMe;
9
- type TreeItem = {
7
+ type TreeItemData = object;
8
+ type TreeItem<Data extends TreeItemData = TreeItemData> = {
10
9
  id: ItemId;
11
10
  children: ItemId[];
12
11
  hasChildren?: boolean;
13
12
  isExpanded?: boolean;
14
13
  isChildrenLoading?: boolean;
15
- data?: TreeItemData;
14
+ data?: Data;
16
15
  };
17
- type FlattenedTree = FlattenedItem[];
16
+ type FlattenedTree<Item extends TreeItem = TreeItem> = FlattenedItem<Item>[];
18
17
  type Path = number[];
19
- type FlattenedItem = {
20
- item: TreeItem;
18
+ type FlattenedItem<Item extends TreeItem = TreeItem> = {
19
+ item: Item;
21
20
  path: Path;
22
21
  };
23
22
  type TreeSourcePosition = {
@@ -28,15 +27,8 @@ type TreeDestinationPosition = {
28
27
  parentId: ItemId;
29
28
  index?: number;
30
29
  };
31
- type TreeItemMutation = {
32
- id?: ItemId;
33
- children?: ItemId[];
34
- hasChildren?: boolean;
35
- isExpanded?: boolean;
36
- isChildrenLoading?: boolean;
37
- data?: TreeItemData;
38
- };
39
- declare const flattenTree: (tree: TreeData, path?: Path) => FlattenedTree;
40
- declare const mutateTree: (tree: TreeData, itemId: ItemId, mutation: TreeItemMutation) => TreeData;
30
+ type TreeItemMutation<Item extends TreeItem = TreeItem> = Partial<Item>;
31
+ declare const flattenTree: <Item extends TreeItem>(tree: TreeData<Item>, path?: Path) => FlattenedTree<Item>;
32
+ declare const mutateTree: <Item extends TreeItem>(tree: TreeData<Item>, itemId: ItemId, mutation: TreeItemMutation<Item>) => TreeData<Item>;
41
33
  //#endregion
42
34
  export { FlattenedItem, FlattenedTree, ItemId, Path, TreeData, TreeDestinationPosition, TreeItem, TreeItemData, TreeItemMutation, TreeSourcePosition, flattenTree, mutateTree };
@@ -1,6 +1,5 @@
1
1
  import { SkeletonProps } from "../skeleton.js";
2
2
  //#region src/unit/loading-unit-value.d.ts
3
- declare const unitTextHeight = 8;
4
3
  declare const LoadingUnitValue: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
5
4
  //#endregion
6
- export { LoadingUnitValue, unitTextHeight };
5
+ export { LoadingUnitValue };
@@ -3,7 +3,6 @@ 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
- var unitTextHeight = 8;
7
6
  var LoadingUnitValue = (props) => /* @__PURE__ */ jsx("div", {
8
7
  className: "cl6zvo6",
9
8
  children: jsx(Skeleton, {
@@ -12,4 +11,4 @@ var LoadingUnitValue = (props) => /* @__PURE__ */ jsx("div", {
12
11
  })
13
12
  });
14
13
  //#endregion
15
- export { LoadingUnitValue, unitTextHeight };
14
+ export { LoadingUnitValue };
@@ -2,10 +2,7 @@ import { LoadingUnitValue } from "./loading-unit-value.js";
2
2
  import { Fragment, jsx } from "react/jsx-runtime";
3
3
  //#region src/unit/maybe-unit-value.tsx
4
4
  var MaybeUnitValue = ({ value }) => {
5
- return value === void 0 ? /* @__PURE__ */ jsx(LoadingUnitValue, {
6
- minWidth: 18,
7
- maxWidth: 18
8
- }) : /* @__PURE__ */ jsx(Fragment, { children: value });
5
+ return value === void 0 ? /* @__PURE__ */ jsx(LoadingUnitValue, { width: 24 }) : /* @__PURE__ */ jsx(Fragment, { children: value });
9
6
  };
10
7
  //#endregion
11
8
  export { MaybeUnitValue };
@@ -7,6 +7,7 @@ type UnitNavButtonProps = {
7
7
  declare const getNavButtonSize: (size: UnitSize) => number;
8
8
  declare const UnitNavButton: ({ children }: UnitNavButtonProps) => ReactElement<{
9
9
  style?: React.CSSProperties;
10
+ "data-unit-nav-button"?: string;
10
11
  }, string | import("react").JSXElementConstructor<any>>;
11
12
  //#endregion
12
13
  export { UnitNavButton, UnitNavButtonProps, getNavButtonSize };
@@ -8,11 +8,14 @@ var UnitNavButton = ({ children }) => {
8
8
  const { size } = useUnitContext();
9
9
  const element = Children.only(children);
10
10
  const slotSize = getNavButtonSize(size);
11
- return cloneElement(element, { style: {
12
- ...element.props.style,
13
- width: slotSize,
14
- height: slotSize
15
- } });
11
+ return cloneElement(element, {
12
+ style: {
13
+ ...element.props.style,
14
+ width: slotSize,
15
+ height: slotSize
16
+ },
17
+ "data-unit-nav-button": ""
18
+ });
16
19
  };
17
20
  //#endregion
18
21
  export { UnitNavButton, getNavButtonSize };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "9.1.3",
3
+ "version": "9.2.0",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "lib"
@@ -144,8 +144,8 @@
144
144
  "vaul": "1.1.2",
145
145
  "virtua": "0.50.4",
146
146
  "@fibery/emoji-data": "3.0.0",
147
- "@fibery/helpers": "3.4.0",
148
- "@fibery/react": "2.0.4"
147
+ "@fibery/helpers": "4.0.0",
148
+ "@fibery/react": "2.0.5"
149
149
  },
150
150
  "peerDependencies": {
151
151
  "react": "18.3.1",