@fibery/ui-kit 9.3.0 → 9.3.1

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 (101) hide show
  1. package/lib/action-badge.js +1 -1
  2. package/lib/actions-menu/actions-menu-checkbox-item.js +1 -1
  3. package/lib/actions-menu/actions-menu-item.js +1 -1
  4. package/lib/actions-menu/actions-menu-sub-command-menu.js +1 -1
  5. package/lib/actions-menu/actions-menu-toggle-item.js +1 -1
  6. package/lib/actions-menu/actions-menu.js +1 -1
  7. package/lib/animations.js +1 -1
  8. package/lib/antd/ant-modal.js +1 -1
  9. package/lib/antd/ant-upload.js +1 -1
  10. package/lib/antd/auto-complete.js +1 -1
  11. package/lib/antd/get-wrapper.js +1 -1
  12. package/lib/antd/input.js +1 -1
  13. package/lib/avatar.js +1 -1
  14. package/lib/badge.js +1 -1
  15. package/lib/banner/banner.js +1 -1
  16. package/lib/board-table-loader.js +1 -1
  17. package/lib/breadcrumb.js +1 -1
  18. package/lib/button/base-button.js +1 -1
  19. package/lib/button/button-group.js +1 -1
  20. package/lib/button/button.js +1 -1
  21. package/lib/button/icon-button.js +1 -1
  22. package/lib/card-hidden-link.js +1 -1
  23. package/lib/collapsible-section.js +1 -1
  24. package/lib/color-picker/swatch.js +1 -1
  25. package/lib/command-menu/index.js +1 -1
  26. package/lib/command-menu/nested-command-menu.js +4 -4
  27. package/lib/comment.js +12 -16
  28. package/lib/comment.wyw-in-js.css +2 -1
  29. package/lib/context-menu/index.js +1 -1
  30. package/lib/date-picker/date-range-picker-popup-content.js +1 -1
  31. package/lib/date-picker/relative-date-picker.js +1 -1
  32. package/lib/date-picker/single-date-picker.js +1 -1
  33. package/lib/dnd.js +1 -1
  34. package/lib/dot.js +1 -1
  35. package/lib/dropdown-menu/index.js +1 -1
  36. package/lib/emoji-picker/primitives/category-label.js +1 -1
  37. package/lib/emoji-picker/primitives/emoji.js +1 -3
  38. package/lib/emoji-picker/primitives/grid.js +1 -1
  39. package/lib/emoji-picker/primitives/search.js +1 -1
  40. package/lib/emoji-picker/primitives/skin-tone.js +1 -1
  41. package/lib/empty-state/empty-state.js +1 -1
  42. package/lib/empty-value.js +1 -1
  43. package/lib/fibermoji-placeholder.js +1 -1
  44. package/lib/field-container.js +1 -1
  45. package/lib/file-item/file-title.js +1 -1
  46. package/lib/file-item.js +1 -1
  47. package/lib/header-layout.js +1 -1
  48. package/lib/hint.js +26 -20
  49. package/lib/hint.wyw-in-js.css +3 -1
  50. package/lib/hotkey-scope.js +1 -1
  51. package/lib/icons/icon.js +1 -1
  52. package/lib/indicator.js +1 -1
  53. package/lib/integration-compact-info-button.js +1 -1
  54. package/lib/kbd.js +1 -1
  55. package/lib/lists/list-row-surface.js +1 -1
  56. package/lib/loaders.js +1 -1
  57. package/lib/mobile-keyboard-aware-popup.js +1 -1
  58. package/lib/modal-menu/modal-menu-checkbox-item.js +1 -1
  59. package/lib/modal-menu/modal-menu-item.js +1 -1
  60. package/lib/modal-menu/modal-menu-label.js +1 -1
  61. package/lib/modal-menu/modal-menu-trigger.js +1 -1
  62. package/lib/modal-menu/modal-submenu-trigger.js +1 -1
  63. package/lib/new-badge.js +1 -1
  64. package/lib/number-input/number-input-inline-with-autosize.js +1 -1
  65. package/lib/number-input/stack.js +1 -1
  66. package/lib/number-input/step-button.js +1 -1
  67. package/lib/number-input/text-area-auto-sized.js +1 -1
  68. package/lib/number-input/text-input-auto-sized.js +1 -1
  69. package/lib/online-users.js +1 -1
  70. package/lib/progress.d.ts +45 -7
  71. package/lib/progress.js +91 -14
  72. package/lib/progress.wyw-in-js.css +7 -0
  73. package/lib/reactions/tootltip.js +1 -1
  74. package/lib/rich-input-loader.js +1 -1
  75. package/lib/rich-text-embed-error.js +1 -1
  76. package/lib/scroll-fade.js +1 -1
  77. package/lib/select/components/menu.js +1 -1
  78. package/lib/select/components/no-option-message.js +1 -1
  79. package/lib/select/index.js +1 -1
  80. package/lib/select/select-in-popover.js +1 -1
  81. package/lib/sidebar/sidebar-handle.js +1 -1
  82. package/lib/sidebar/sidebar.js +1 -1
  83. package/lib/spinner-box.js +1 -1
  84. package/lib/spinner.js +1 -1
  85. package/lib/tab-nav/tab-nav.js +1 -1
  86. package/lib/table.js +1 -1
  87. package/lib/toast/primitives.js +1 -1
  88. package/lib/toast/toast.js +1 -1
  89. package/lib/toggle-button/round-toggle-button.js +1 -1
  90. package/lib/toggle-button/toggle-button-group.js +1 -1
  91. package/lib/toggle-button/toggle-button.js +1 -1
  92. package/lib/toggle.js +1 -1
  93. package/lib/tooltip.js +1 -1
  94. package/lib/type-badge-box.js +1 -1
  95. package/lib/unit/labeled-unit.js +1 -1
  96. package/lib/unit/unit-content.js +1 -1
  97. package/lib/workflow-progress-icon.js +12 -20
  98. package/package.json +1 -4
  99. package/lib/item.d.ts +0 -30
  100. package/lib/item.js +0 -69
  101. package/lib/item.wyw-in-js.css +0 -1
@@ -1,8 +1,8 @@
1
1
  import "./header-layout.wyw-in-js.css";
2
2
  import { textClasses } from "./design-system/typography.js";
3
3
  /* empty css */
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { cx } from "@linaria/core";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/header-layout.tsx
7
7
  var containerStyle = "cd7jwpf-container";
8
8
  var containerWithDescriptionStyle = "c1du1b60-containerWithDescription";
package/lib/hint.js CHANGED
@@ -1,30 +1,36 @@
1
1
  import "./hint.wyw-in-js.css";
2
2
  import { themeVars } from "./theming.generated.js";
3
3
  import { Tooltip } from "./tooltip.js";
4
- import { Item } from "./item.js";
4
+ import { ellipsis } from "./styles-utils.js";
5
5
  import Hint$1 from "./icons/react/hint.js";
6
6
  /* empty css */
7
- import { jsx } from "react/jsx-runtime";
7
+ import { cx } from "@linaria/core";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
8
9
  //#region src/hint.tsx
9
- var hintContainerStyle = "ha054d0-hintContainer";
10
+ var hintCss = "ha054d0-hint";
11
+ var hintMultilineCss = "hbc1txc-hintMultiline";
12
+ var hintContainerStyle = "h1mzusbd-hintContainer";
10
13
  var Hint = ({ children, text, containerSize = 20, iconSize = 18, title, description, multiline, tooltipSide = "top", tooltipAlign = "center" }) => {
11
- return /* @__PURE__ */ jsx(Item, {
12
- inline: true,
13
- multiline,
14
- containerClassName: hintContainerStyle,
15
- rightContainer: jsx(Tooltip, {
16
- title: text || title,
17
- description,
18
- side: tooltipSide,
19
- align: tooltipAlign,
20
- children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Hint$1, {
21
- viewBox: "0 0 20 20",
22
- color: themeVars.iconColor,
23
- containerSize,
24
- iconSize
25
- }) })
26
- }),
27
- children
14
+ return /* @__PURE__ */ jsxs("div", {
15
+ className: cx(hintCss, multiline && hintMultilineCss),
16
+ children: [/* @__PURE__ */ jsx("div", {
17
+ className: multiline ? void 0 : ellipsis,
18
+ children
19
+ }), /* @__PURE__ */ jsx("div", {
20
+ className: hintContainerStyle,
21
+ children: /* @__PURE__ */ jsx(Tooltip, {
22
+ title: text || title,
23
+ description,
24
+ side: tooltipSide,
25
+ align: tooltipAlign,
26
+ children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Hint$1, {
27
+ viewBox: "0 0 20 20",
28
+ color: themeVars.iconColor,
29
+ containerSize,
30
+ iconSize
31
+ }) })
32
+ })
33
+ })]
28
34
  });
29
35
  };
30
36
  //#endregion
@@ -1 +1,3 @@
1
- .ha054d0-hintContainer{margin-left:2px;}
1
+ .ha054d0-hint{display:inline-grid;grid-template-columns:1fr auto;align-items:center;}
2
+ .hbc1txc-hintMultiline{align-items:start;}
3
+ .h1mzusbd-hintContainer{margin-left:2px;}
@@ -2,9 +2,9 @@ import "./hotkey-scope.wyw-in-js.css";
2
2
  import { isMac } from "./platform.js";
3
3
  import "./platform-symbols.js";
4
4
  /* empty css */
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  import { forwardRef, useRef } from "react";
7
- import { cx } from "@linaria/core";
8
8
  import { KEY_DISPLAY_SYMBOLS, formatForDisplay } from "@tanstack/hotkeys";
9
9
  import { useHotkey } from "@tanstack/react-hotkeys";
10
10
  //#region src/hotkey-scope.tsx
package/lib/icons/icon.js CHANGED
@@ -9,9 +9,9 @@ import ObjParent from "./ast/obj-parent.js";
9
9
  import ObjSelf from "./ast/obj-self.js";
10
10
  import { generateIconFromAst } from "./generate-icon-from-ast.js";
11
11
  /* empty css */
12
+ import { cx } from "@linaria/core";
12
13
  import { jsx } from "react/jsx-runtime";
13
14
  import { forwardRef } from "react";
14
- import { cx } from "@linaria/core";
15
15
  //#region src/icons/icon.tsx
16
16
  var iconColorVar = "--fibery-icon-color";
17
17
  var iconContainerSizeVar = "--fibery-icon-container-size";
package/lib/indicator.js CHANGED
@@ -3,8 +3,8 @@ import { themeVars } from "./theming.generated.js";
3
3
  import { space } from "./design-system/layout.js";
4
4
  import { visuallyHidden } from "./styles-utils.js";
5
5
  /* empty css */
6
- import { jsx } from "react/jsx-runtime";
7
6
  import { cx } from "@linaria/core";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  //#region src/indicator.tsx
9
9
  /** Establishes the positioning context Indicator anchors to; apply to the host unless it is already positioned */
10
10
  var indicatorHost = "i4a0x1x-indicatorHost";
@@ -6,8 +6,8 @@ import { Spinner } from "./spinner.js";
6
6
  import { BaseButton } from "./button/base-button.js";
7
7
  import WarningTriangle from "./icons/react/warning-triangle.js";
8
8
  /* empty css */
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import { cx } from "@linaria/core";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region src/integration-compact-info-button.tsx
12
12
  var buttonCss = "b1uvjf1e-button";
13
13
  var loadingCss = "l1wbp8zv-loading";
package/lib/kbd.js CHANGED
@@ -2,8 +2,8 @@ import "./kbd.wyw-in-js.css";
2
2
  import { tabularNumsClasses, textClasses } from "./design-system/typography.js";
3
3
  import { useIsSupportHardwareKeyboard } from "./use-is-support-hardware-keyboard.js";
4
4
  /* empty css */
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/kbd.tsx
8
8
  var kbdCss = cx(textClasses.small, tabularNumsClasses.on, "k1ipbe9y-kbd");
9
9
  var Kbd = ({ className, ...props }) => {
@@ -2,9 +2,9 @@ import "./list-row-surface.wyw-in-js.css";
2
2
  import { textClasses } from "../design-system/typography.js";
3
3
  import { useIsSupportHover } from "../use-is-support-hover.js";
4
4
  /* empty css */
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { forwardRef } from "react";
7
- import { cx } from "@linaria/core";
8
8
  //#region src/lists/list-row-surface.tsx
9
9
  var NATURAL_HOVER_CLASS = "natural-hover";
10
10
  var NATURAL_FOCUS_CLASS = "natural-focus";
package/lib/loaders.js CHANGED
@@ -5,8 +5,8 @@ import { textClasses } from "./design-system/typography.js";
5
5
  import { useTheme } from "./theme-provider.js";
6
6
  import { Skeleton } from "./skeleton.js";
7
7
  /* empty css */
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
8
  import { cx } from "@linaria/core";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { styled } from "@linaria/react";
11
11
  //#region src/loaders.tsx
12
12
  var _exp = () => ((props) => props.absolute ? "absolute" : "static");
@@ -2,9 +2,9 @@ import "./mobile-keyboard-aware-popup.wyw-in-js.css";
2
2
  import { ThemeProvider } from "./theme-provider.js";
3
3
  /* empty css */
4
4
  import { noop } from "@fibery/helpers/src/_";
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  import { useEffect, useRef } from "react";
7
- import { cx } from "@linaria/core";
8
8
  import { createPortal } from "react-dom";
9
9
  //#region src/mobile-keyboard-aware-popup.tsx
10
10
  var mobileKeyboardAwarePopupZIndex = 1001;
@@ -2,8 +2,8 @@ import "./modal-menu-checkbox-item.wyw-in-js.css";
2
2
  import { textClasses } from "../design-system/typography.js";
3
3
  import { useModalMenu } from "./contexts/modal-menu-context.js";
4
4
  /* empty css */
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/modal-menu/modal-menu-checkbox-item.tsx
8
8
  var ModalMenuCheckboxItem = ({ children, checked, onCheckedChange, disabled, ...otherProps }) => {
9
9
  const { onOpenChange } = useModalMenu();
@@ -2,8 +2,8 @@ import "./modal-menu-item.wyw-in-js.css";
2
2
  import { textClasses } from "../design-system/typography.js";
3
3
  import { useModalMenu } from "./contexts/modal-menu-context.js";
4
4
  /* empty css */
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/modal-menu/modal-menu-item.tsx
8
8
  var ModalMenuItem = ({ children, disabled, onSelect, ...otherProps }) => {
9
9
  const { onOpenChange } = useModalMenu();
@@ -1,8 +1,8 @@
1
1
  import "./modal-menu-label.wyw-in-js.css";
2
2
  import { textClasses } from "../design-system/typography.js";
3
3
  /* empty css */
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { cx } from "@linaria/core";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/modal-menu/modal-menu-label.tsx
7
7
  var ModalMenuLabel = ({ children }) => {
8
8
  return /* @__PURE__ */ jsx("div", {
@@ -1,7 +1,7 @@
1
1
  import { useModalMenu } from "./contexts/modal-menu-context.js";
2
+ import { cx } from "@linaria/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cloneElement } from "react";
4
- import { cx } from "@linaria/core";
5
5
  //#region src/modal-menu/modal-menu-trigger.tsx
6
6
  var ModalMenuTrigger = ({ asChild, triggerEvent, children, onClick, onContextMenu, ...otherProps }) => {
7
7
  const { open, onOpenChange } = useModalMenu();
@@ -3,8 +3,8 @@ import { textClasses } from "../design-system/typography.js";
3
3
  import { useModalMenu } from "./contexts/modal-menu-context.js";
4
4
  import { useModalSubmenu } from "./contexts/modal-submenu-context.js";
5
5
  /* empty css */
6
- import { jsx } from "react/jsx-runtime";
7
6
  import { cx } from "@linaria/core";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  //#region src/modal-menu/modal-submenu-trigger.tsx
9
9
  var ModalSubmenuTrigger = ({ children, ...otherProps }) => {
10
10
  const { onOpenSubmenu } = useModalMenu();
package/lib/new-badge.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./new-badge.wyw-in-js.css";
2
2
  import { textClasses } from "./design-system/typography.js";
3
3
  /* empty css */
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { cx } from "@linaria/core";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/new-badge.tsx
7
7
  var newBadgeStyle = "nwilzfg-newBadge";
8
8
  var NewBadge = ({ children }) => /* @__PURE__ */ jsx("span", {
@@ -8,9 +8,9 @@ import { hiddenCss } from "./styles.js";
8
8
  import { StepButton, ValueWithStepperWrapper } from "./step-button.js";
9
9
  /* empty css */
10
10
  import { identity } from "@fibery/helpers/src/_";
11
+ import { cx } from "@linaria/core";
11
12
  import { jsx } from "react/jsx-runtime";
12
13
  import { useCallback, useMemo, useRef, useState } from "react";
13
- import { cx } from "@linaria/core";
14
14
  import { stopPropagation } from "@fibery/react/src/stop-propagation";
15
15
  import InputNumber from "rc-input-number";
16
16
  //#region src/number-input/number-input-inline-with-autosize.tsx
@@ -1,7 +1,7 @@
1
1
  import "./stack.wyw-in-js.css";
2
2
  /* empty css */
3
- import { jsxs } from "react/jsx-runtime";
4
3
  import { cx } from "@linaria/core";
4
+ import { jsxs } from "react/jsx-runtime";
5
5
  //#region src/number-input/stack.tsx
6
6
  var wrapperCss = "w17tm6bz-wrapper";
7
7
  var Stack = ({ className, bottom, top }) => {
@@ -1,8 +1,8 @@
1
1
  import "./step-button.wyw-in-js.css";
2
2
  import { border } from "../design-system/layout.js";
3
3
  /* empty css */
4
- import { jsx } from "react/jsx-runtime";
5
4
  import { cx } from "@linaria/core";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  import { stopPropagation } from "@fibery/react/src/stop-propagation";
7
7
  //#region src/number-input/step-button.tsx
8
8
  var stepButtonWidth = 16;
@@ -3,9 +3,9 @@ import "./edit-unit-styles.js";
3
3
  import { Stack } from "./stack.js";
4
4
  import { hiddenCss, inputCss, textAreaCss } from "./styles.js";
5
5
  /* empty css */
6
+ import { cx } from "@linaria/core";
6
7
  import { jsx } from "react/jsx-runtime";
7
8
  import { useEffect, useMemo, useRef } from "react";
8
- import { cx } from "@linaria/core";
9
9
  import { stopPropagation } from "@fibery/react/src/stop-propagation";
10
10
  //#region src/number-input/text-area-auto-sized.tsx
11
11
  var TextAreaAutoSized = ({ value, placeholder, invalid, autoSelect, ...rest }) => {
@@ -1,9 +1,9 @@
1
1
  import "./edit-unit-styles.js";
2
2
  import { Stack } from "./stack.js";
3
3
  import { hiddenCss, inputCss, textInlineCss } from "./styles.js";
4
+ import { cx } from "@linaria/core";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  import { useEffect, useMemo, useRef } from "react";
6
- import { cx } from "@linaria/core";
7
7
  import { stopPropagation } from "@fibery/react/src/stop-propagation";
8
8
  //#region src/number-input/text-input-auto-sized.tsx
9
9
  var TextInputAutoSized = ({ value, placeholder, invalid, autoSelect, ...rest }) => {
@@ -8,9 +8,9 @@ import { Tooltip } from "./tooltip.js";
8
8
  import { AvatarImage } from "./avatar.js";
9
9
  import { Popover } from "./popover/index.js";
10
10
  /* empty css */
11
+ import { cx } from "@linaria/core";
11
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
13
  import { useEffect, useRef, useState } from "react";
13
- import { cx } from "@linaria/core";
14
14
  //#region src/online-users.tsx
15
15
  var offset = [0, space.s6];
16
16
  var avatarClassName = "afb4yyq-avatar";
package/lib/progress.d.ts CHANGED
@@ -1,9 +1,47 @@
1
- import { FC } from "react";
2
- import { ProgressProps } from "rc-progress";
1
+ import { ReactNode } from "react";
3
2
  //#region src/progress.d.ts
4
- type CircleProgressProps = ProgressProps;
5
- declare const CircleProgress: FC<CircleProgressProps>;
6
- type ProgressBarProps = ProgressProps;
7
- declare const ProgressBar: FC<ProgressBarProps>;
3
+ type Orientation = "horizontal" | "vertical";
4
+ type ProgressTrackProps = {
5
+ value: number;
6
+ color?: string;
7
+ className?: string;
8
+ "aria-label"?: string;
9
+ children: ReactNode;
10
+ };
11
+ declare const ProgressTrack: ({ value, color, className, "aria-label": ariaLabel, children }: ProgressTrackProps) => import("react/jsx-runtime").JSX.Element;
12
+ type ProgressFillProps = {
13
+ value: number;
14
+ offset?: number;
15
+ orientation?: Orientation;
16
+ color?: string;
17
+ className?: string;
18
+ children?: ReactNode;
19
+ };
20
+ declare const ProgressFill: ({ value, offset, orientation, color, className, children }: ProgressFillProps) => import("react/jsx-runtime").JSX.Element;
21
+ type ProgressBarProps = {
22
+ value: number;
23
+ color?: string;
24
+ trackColor?: string;
25
+ className?: string;
26
+ "aria-label"?: string;
27
+ };
28
+ declare const ProgressBar: ({ value, color, trackColor, className, "aria-label": ariaLabel }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
29
+ type ProgressChipProps = {
30
+ value: number;
31
+ label: ReactNode;
32
+ orientation?: Orientation;
33
+ className?: string;
34
+ "aria-label"?: string;
35
+ };
36
+ declare const ProgressChip: ({ value, label, orientation, className, "aria-label": ariaLabel }: ProgressChipProps) => import("react/jsx-runtime").JSX.Element;
37
+ type ProgressRingProps = {
38
+ value: number;
39
+ size: number;
40
+ color?: string;
41
+ trackColor?: string;
42
+ className?: string;
43
+ "aria-label"?: string;
44
+ };
45
+ declare const ProgressRing: ({ value, size, color, trackColor, className, "aria-label": ariaLabel }: ProgressRingProps) => import("react/jsx-runtime").JSX.Element;
8
46
  //#endregion
9
- export { CircleProgress, ProgressBar };
47
+ export { ProgressBar, ProgressChip, ProgressFill, ProgressRing, ProgressTrack };
package/lib/progress.js CHANGED
@@ -1,20 +1,97 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Circle, Line } from "rc-progress";
1
+ import "./progress.wyw-in-js.css";
2
+ import { themeVars } from "./theming.generated.js";
3
+ /* empty css */
4
+ import { cx } from "@linaria/core";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
3
6
  //#region src/progress.tsx
4
- var CircleProgress = (props) => {
5
- return /* @__PURE__ */ jsx(Circle, {
6
- trailWidth: 12,
7
- strokeWidth: 12,
8
- ...props
7
+ var clampPercent = (value) => Math.min(100, Math.max(0, value));
8
+ var trackCss = "tbl7nli-track";
9
+ var ProgressTrack = ({ value, color, className, "aria-label": ariaLabel, children }) => /* @__PURE__ */ jsx("div", {
10
+ role: "progressbar",
11
+ "aria-label": ariaLabel,
12
+ "aria-valuemin": 0,
13
+ "aria-valuemax": 100,
14
+ "aria-valuenow": Math.round(clampPercent(value)),
15
+ className: cx(trackCss, className),
16
+ style: { background: color },
17
+ children
18
+ });
19
+ var fillCss = "fbjiygh-fill";
20
+ var ProgressFill = ({ value, offset = 0, orientation = "horizontal", color, className, children }) => {
21
+ const start = clampPercent(offset);
22
+ const end = clampPercent(offset + value);
23
+ const clipPath = orientation === "horizontal" ? `inset(0 ${100 - end}% 0 ${start}%)` : `inset(${100 - end}% 0 ${start}% 0)`;
24
+ return /* @__PURE__ */ jsx("div", {
25
+ "aria-hidden": true,
26
+ className: cx(fillCss, className),
27
+ style: {
28
+ clipPath,
29
+ background: color
30
+ },
31
+ children
9
32
  });
10
33
  };
11
- var ProgressBar = (props) => {
12
- return /* @__PURE__ */ jsx(Line, {
13
- className: props.className,
14
- trailWidth: 8,
15
- strokeWidth: 8,
16
- ...props
34
+ var barCss = "b1jtk9ee-bar";
35
+ var ProgressBar = ({ value, color = themeVars.progressBarFill, trackColor = themeVars.progressBarBg, className, "aria-label": ariaLabel }) => /* @__PURE__ */ jsx(ProgressTrack, {
36
+ value,
37
+ color: trackColor,
38
+ className: cx(barCss, className),
39
+ "aria-label": ariaLabel,
40
+ children: jsx(ProgressFill, {
41
+ value,
42
+ color
43
+ })
44
+ });
45
+ var chipCss = "c1x9yg1k-chip";
46
+ var chipFillCss = "csderd2-chipFill";
47
+ var ProgressChip = ({ value, label, orientation, className, "aria-label": ariaLabel }) => /* @__PURE__ */ jsxs(ProgressTrack, {
48
+ value,
49
+ className: cx(chipCss, className),
50
+ "aria-label": ariaLabel,
51
+ children: [label, /* @__PURE__ */ jsx(ProgressFill, {
52
+ value,
53
+ orientation,
54
+ className: chipFillCss,
55
+ children: label
56
+ })]
57
+ });
58
+ var ringViewBox = 16;
59
+ var ringStroke = 2;
60
+ var ringRadius = 7;
61
+ var ringCenter = ringViewBox / 2;
62
+ var ringCircumference = 2 * Math.PI * ringRadius;
63
+ var ringCss = "r1e5dk10-ring";
64
+ var ringArcCss = "r14tbdci-ringArc";
65
+ var ProgressRing = ({ value, size, color = themeVars.progressIconFill, trackColor = themeVars.progressIconBg, className, "aria-label": ariaLabel }) => {
66
+ const percent = clampPercent(value);
67
+ return /* @__PURE__ */ jsxs("svg", {
68
+ role: "progressbar",
69
+ "aria-label": ariaLabel,
70
+ "aria-valuemin": 0,
71
+ "aria-valuemax": 100,
72
+ "aria-valuenow": Math.round(percent),
73
+ width: size,
74
+ height: size,
75
+ viewBox: `0 0 ${ringViewBox} ${ringViewBox}`,
76
+ fill: "none",
77
+ strokeWidth: ringStroke,
78
+ className: cx(ringCss, className),
79
+ children: [/* @__PURE__ */ jsx("circle", {
80
+ cx: ringCenter,
81
+ cy: ringCenter,
82
+ r: ringRadius,
83
+ stroke: trackColor
84
+ }), percent > 0 && /* @__PURE__ */ jsx("circle", {
85
+ cx: ringCenter,
86
+ cy: ringCenter,
87
+ r: ringRadius,
88
+ stroke: color,
89
+ strokeLinecap: "round",
90
+ strokeDasharray: `${percent / 100 * ringCircumference} ${ringCircumference}`,
91
+ transform: `rotate(-90 ${ringCenter} ${ringCenter})`,
92
+ className: ringArcCss
93
+ })]
17
94
  });
18
95
  };
19
96
  //#endregion
20
- export { CircleProgress, ProgressBar };
97
+ export { ProgressBar, ProgressChip, ProgressFill, ProgressRing, ProgressTrack };
@@ -0,0 +1,7 @@
1
+ .tbl7nli-track{position:relative;overflow:hidden;}
2
+ .fbjiygh-fill{position:absolute;inset:0;transition:clip-path 300ms ease-in-out;}
3
+ .b1jtk9ee-bar{height:6px;border-radius:9999px;}
4
+ .c1x9yg1k-chip{display:inline-flex;align-items:center;justify-content:center;background:var(--progressBg);color:var(--progressText);font-variant-numeric:tabular-nums;}
5
+ .csderd2-chipFill{display:flex;align-items:center;justify-content:center;background:var(--progressFillBg);color:var(--progressFillText);}
6
+ .r1e5dk10-ring{display:block;flex-shrink:0;}
7
+ .r14tbdci-ringArc{transition:stroke-dasharray 300ms ease-in-out;}
@@ -2,8 +2,8 @@ import "./tootltip.wyw-in-js.css";
2
2
  import { useIsPhone } from "../use-is-phone.js";
3
3
  import { Emoji } from "../emoji-picker/emoji.js";
4
4
  /* empty css */
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/reactions/tootltip.tsx
8
8
  var EmojiTooltipTitle = ({ emoji }) => {
9
9
  return /* @__PURE__ */ jsx("div", {
@@ -3,9 +3,9 @@ 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
+ import { cx } from "@linaria/core";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
8
  import { createContext, memo, useContext, useEffect, useMemo, useState } from "react";
8
- import { cx } from "@linaria/core";
9
9
  //#region src/rich-input-loader.tsx
10
10
  var loaderContext = createContext({
11
11
  showLoader: true,
@@ -2,8 +2,8 @@ import "./rich-text-embed-error.wyw-in-js.css";
2
2
  import { themeVars } from "./theming.generated.js";
3
3
  import ImageError from "./icons/react/image-error.js";
4
4
  /* empty css */
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/rich-text-embed-error.tsx
8
8
  var richTextEmbedErrorStyle = "r75z511-richTextEmbedError";
9
9
  var selectedStyle = "s1gear53-selected";
@@ -1,8 +1,8 @@
1
1
  import "./scroll-fade.wyw-in-js.css";
2
2
  /* empty css */
3
+ import { cx } from "@linaria/core";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  import { forwardRef } from "react";
5
- import { cx } from "@linaria/core";
6
6
  //#region src/scroll-fade.tsx
7
7
  var scrollFadeCss = "s1iyhl5x-scrollFade";
8
8
  var horizontalCss = "h1xelgn4-horizontal";
@@ -2,8 +2,8 @@ import "./menu.wyw-in-js.css";
2
2
  import { border, space } from "../../design-system/layout.js";
3
3
  import { ThemeProvider } from "../../theme-provider.js";
4
4
  /* empty css */
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { cx } from "@linaria/core";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  import { components } from "react-select";
8
8
  //#region src/select/components/menu.tsx
9
9
  var MenuListNulledStyles = {
@@ -2,9 +2,9 @@ import "./no-option-message.wyw-in-js.css";
2
2
  import { textClasses } from "../../design-system/typography.js";
3
3
  import { ListRowContent } from "../../lists/list-row-surface.js";
4
4
  /* empty css */
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  import "react";
7
- import { cx } from "@linaria/core";
8
8
  //#region src/select/components/no-option-message.tsx
9
9
  var noOptionMessageClass = "not0xb8-noOptionMessage";
10
10
  var noOptionMessageContentClass = "nvatrww-noOptionMessageContent";
@@ -6,9 +6,9 @@ import { MenuListVirtua } from "./components/menu-list-virtua.js";
6
6
  import { CreatableSelect, SelectComponent, components as reactSelectComponents, composeStyles, createFilter } from "./select.js";
7
7
  import { SelectInPopover } from "./select-in-popover.js";
8
8
  /* empty css */
9
+ import { cx } from "@linaria/core";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { forwardRef } from "react";
11
- import { cx } from "@linaria/core";
12
12
  //#region src/select/index.tsx
13
13
  var emptyComponents = { Menu: () => null };
14
14
  var mobileTriggerPreviewClassName = "m18d77nw-mobileTriggerPreview";
@@ -10,10 +10,10 @@ import { makeSelectInPopoverStyles } from "./styles.js";
10
10
  import { SelectControlSettingsProvider } from "./select-control-settings-context.js";
11
11
  import { SelectComponent, composeStyles } from "./select.js";
12
12
  /* empty css */
13
+ import { cx } from "@linaria/core";
13
14
  import { jsx, jsxs } from "react/jsx-runtime";
14
15
  import { forwardRef, isValidElement, useCallback, useImperativeHandle, useMemo, useRef, useState } from "react";
15
16
  import { useControllableState } from "@fibery/react/src/use-controllable-state";
16
- import { cx } from "@linaria/core";
17
17
  import { Wrap } from "@fibery/react/src/wrap";
18
18
  //#region src/select/select-in-popover.tsx
19
19
  var emptyStyles = {};
@@ -1,9 +1,9 @@
1
1
  import "./sidebar-handle.wyw-in-js.css";
2
2
  import { Tooltip, TooltipDescription, TooltipTitle } from "../tooltip.js";
3
3
  /* empty css */
4
+ import { cx } from "@linaria/core";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { forwardRef, useCallback, useState } from "react";
6
- import { cx } from "@linaria/core";
7
7
  //#region src/sidebar/sidebar-handle.tsx
8
8
  var handleBaseCss = "hh2b9bk-handleBase";
9
9
  var handleRightCss = "h1qhbasl-handleRight";
@@ -2,9 +2,9 @@ import "./sidebar.wyw-in-js.css";
2
2
  import { useResizeDrag } from "./use-resize-drag.js";
3
3
  import { SidebarHandle } from "./sidebar-handle.js";
4
4
  /* empty css */
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { forwardRef, useRef } from "react";
7
- import { cx } from "@linaria/core";
8
8
  import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
9
9
  //#region src/sidebar/sidebar.tsx
10
10
  var sidebarWidthVar = "--sidebar-width";
@@ -1,9 +1,9 @@
1
1
  import "./spinner-box.wyw-in-js.css";
2
2
  import { Spinner } from "./spinner.js";
3
3
  /* empty css */
4
+ import { cx } from "@linaria/core";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  import { memo } from "react";
6
- import { cx } from "@linaria/core";
7
7
  //#region src/spinner-box.tsx
8
8
  var boxStyle = "ban45ip-box";
9
9
  var overlayStyle = "om0do2z-overlay";
package/lib/spinner.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./spinner.wyw-in-js.css";
2
2
  import Spinner$1 from "./icons/react/spinner.js";
3
3
  /* empty css */
4
+ import { cx } from "@linaria/core";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  import { memo } from "react";
6
- import { cx } from "@linaria/core";
7
7
  //#region src/spinner.tsx
8
8
  var spinningCss = "s1puy9zd-spinning";
9
9
  var Spinner = memo(function Spinner({ className, ...props }) {
@@ -2,10 +2,10 @@ import "./tab-nav.wyw-in-js.css";
2
2
  import { TooltipIfOverflown } from "../tooltip-if-overflown.js";
3
3
  import { ellipsis } from "../styles-utils.js";
4
4
  /* empty css */
5
+ import { cx } from "@linaria/core";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { createContext } from "@fibery/react/src/create-context";
7
8
  import { forwardRef, useEffect, useLayoutEffect, useRef, useState } from "react";
8
- import { cx } from "@linaria/core";
9
9
  import { useResizeObserver } from "@fibery/react/src/use-resize-observer";
10
10
  import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
11
11
  import { useComposedRefs } from "@fibery/react/src/use-composed-refs";