@fibery/ui-kit 9.2.1 → 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 (152) 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/antd/styles.wyw-in-js.css +1 -1
  14. package/lib/avatar.js +1 -1
  15. package/lib/badge.js +1 -1
  16. package/lib/banner/banner.js +1 -1
  17. package/lib/board-table-loader.js +1 -1
  18. package/lib/breadcrumb.js +1 -1
  19. package/lib/button/base-button.js +1 -1
  20. package/lib/button/button-group.js +1 -1
  21. package/lib/button/button.js +1 -1
  22. package/lib/button/icon-button.js +1 -1
  23. package/lib/card-hidden-link.js +1 -1
  24. package/lib/collapsible-section.js +1 -1
  25. package/lib/color-filter.js +2 -2
  26. package/lib/color-picker/swatch.js +1 -1
  27. package/lib/command-menu/index.js +1 -1
  28. package/lib/command-menu/nested-command-menu.js +4 -4
  29. package/lib/comment.js +12 -16
  30. package/lib/comment.wyw-in-js.css +2 -1
  31. package/lib/context-menu/index.js +1 -1
  32. package/lib/date-picker/date-range-picker-popup-content.js +1 -1
  33. package/lib/date-picker/relative-date-picker.js +1 -1
  34. package/lib/date-picker/single-date-picker.js +1 -1
  35. package/lib/design-system/colors-js.d.ts +1 -1
  36. package/lib/design-system/colors.d.ts +2 -2
  37. package/lib/design-system/colors.js +2 -2
  38. package/lib/design-system/theme.d.ts +1 -1
  39. package/lib/dnd.js +1 -1
  40. package/lib/dot.js +1 -1
  41. package/lib/dropdown-menu/index.js +1 -1
  42. package/lib/embed.d.ts +1 -1
  43. package/lib/emoji-picker/primitives/category-label.js +1 -1
  44. package/lib/emoji-picker/primitives/emoji.js +1 -3
  45. package/lib/emoji-picker/primitives/grid.js +1 -1
  46. package/lib/emoji-picker/primitives/search.js +1 -1
  47. package/lib/emoji-picker/primitives/skin-tone.js +1 -1
  48. package/lib/empty-state/empty-state.js +1 -1
  49. package/lib/empty-value.js +1 -1
  50. package/lib/fibermoji-placeholder.js +1 -1
  51. package/lib/field-container.js +1 -1
  52. package/lib/file-item/file-icon.d.ts +3 -2
  53. package/lib/file-item/file-icon.js +2 -2
  54. package/lib/file-item/file-title.js +1 -1
  55. package/lib/file-item.js +1 -1
  56. package/lib/header-layout.js +1 -1
  57. package/lib/hint.js +26 -20
  58. package/lib/hint.wyw-in-js.css +3 -1
  59. package/lib/hotkey-scope.js +1 -1
  60. package/lib/html-styles.wyw-in-js.css +4 -4
  61. package/lib/icons/ast/index.d.ts +3 -1
  62. package/lib/icons/ast/index.js +3 -1
  63. package/lib/icons/ast/suggestions-comments.d.ts +5 -0
  64. package/lib/icons/ast/suggestions-comments.js +39 -0
  65. package/lib/icons/ast/suggestions.d.ts +5 -0
  66. package/lib/icons/ast/suggestions.js +30 -0
  67. package/lib/icons/icon.js +1 -1
  68. package/lib/icons/react/index.d.ts +3 -1
  69. package/lib/icons/react/index.js +3 -1
  70. package/lib/icons/react/suggestions-comments.d.ts +15 -0
  71. package/lib/icons/react/suggestions-comments.js +21 -0
  72. package/lib/icons/react/suggestions.d.ts +15 -0
  73. package/lib/icons/react/suggestions.js +21 -0
  74. package/lib/images-gallery/images-gallery.d.ts +1 -1
  75. package/lib/images-gallery/slide-buttons.d.ts +1 -1
  76. package/lib/indicator.js +1 -1
  77. package/lib/integration-compact-info-button.js +1 -1
  78. package/lib/kbd.js +1 -1
  79. package/lib/lists/list-row-surface.js +1 -1
  80. package/lib/loaders.js +1 -1
  81. package/lib/mobile-drawer.js +31 -34
  82. package/lib/mobile-keyboard-aware-popup.js +1 -1
  83. package/lib/modal-menu/modal-menu-checkbox-item.js +1 -1
  84. package/lib/modal-menu/modal-menu-item.js +1 -1
  85. package/lib/modal-menu/modal-menu-label.js +1 -1
  86. package/lib/modal-menu/modal-menu-trigger.js +1 -1
  87. package/lib/modal-menu/modal-submenu-trigger.js +1 -1
  88. package/lib/new-badge.js +1 -1
  89. package/lib/number-input/number-input-inline-with-autosize.js +1 -1
  90. package/lib/number-input/stack.js +1 -1
  91. package/lib/number-input/step-button.js +1 -1
  92. package/lib/number-input/text-area-auto-sized.js +1 -1
  93. package/lib/number-input/text-input-auto-sized.js +1 -1
  94. package/lib/online-users.js +1 -1
  95. package/lib/palettes/warm.js +14 -0
  96. package/lib/phone-media-query.d.ts +9 -0
  97. package/lib/phone-media-query.js +10 -0
  98. package/lib/phone.d.ts +3 -5
  99. package/lib/phone.js +5 -8
  100. package/lib/progress.d.ts +45 -7
  101. package/lib/progress.js +91 -14
  102. package/lib/progress.wyw-in-js.css +7 -0
  103. package/lib/reactions/tootltip.js +1 -1
  104. package/lib/rich-input-loader.js +1 -1
  105. package/lib/rich-text-embed-error.js +1 -1
  106. package/lib/root-theme-provider.d.ts +1 -1
  107. package/lib/root-theme-provider.wyw-in-js.css +1 -1
  108. package/lib/scroll-fade.js +1 -1
  109. package/lib/select/components/menu.js +1 -1
  110. package/lib/select/components/no-option-message.js +1 -1
  111. package/lib/select/index.js +1 -1
  112. package/lib/select/select-in-popover.js +1 -1
  113. package/lib/sidebar/sidebar-handle.d.ts +1 -0
  114. package/lib/sidebar/sidebar-handle.js +3 -3
  115. package/lib/sidebar/sidebar.js +1 -1
  116. package/lib/spinner-box.js +1 -1
  117. package/lib/spinner.js +1 -1
  118. package/lib/spinner.wyw-in-js.css +1 -1
  119. package/lib/tab-nav/tab-nav.js +1 -1
  120. package/lib/table.js +1 -1
  121. package/lib/thematic-constants.d.ts +1 -1
  122. package/lib/thematic-state.d.ts +1 -1
  123. package/lib/thematic-state.js +2 -1
  124. package/lib/theme-bootstrap.d.ts +12 -0
  125. package/lib/theme-bootstrap.js +37 -0
  126. package/lib/theme-provider.d.ts +1 -1
  127. package/lib/theme-settings-core.d.ts +2 -5
  128. package/lib/theme-settings-core.js +3 -26
  129. package/lib/theme-settings.d.ts +3 -2
  130. package/lib/theme-settings.js +2 -1
  131. package/lib/theme-styles.d.ts +1 -1
  132. package/lib/theming.generated.d.ts +10 -10
  133. package/lib/theming.generated.js +10 -10
  134. package/lib/toast/primitives.js +1 -1
  135. package/lib/toast/toast.js +1 -1
  136. package/lib/toast/utils/toastify-item-name.d.ts +1 -1
  137. package/lib/toggle-button/round-toggle-button.js +1 -1
  138. package/lib/toggle-button/toggle-button-group.js +1 -1
  139. package/lib/toggle-button/toggle-button.js +1 -1
  140. package/lib/toggle.js +1 -1
  141. package/lib/tooltip.js +1 -1
  142. package/lib/type-badge-box.js +1 -1
  143. package/lib/unit/labeled-unit.js +1 -1
  144. package/lib/unit/unit-content.js +8 -12
  145. package/lib/unit/unit-content.wyw-in-js.css +4 -5
  146. package/lib/use-is-phone.d.ts +2 -1
  147. package/lib/use-is-phone.js +2 -1
  148. package/lib/workflow-progress-icon.js +12 -20
  149. package/package.json +6 -9
  150. package/lib/item.d.ts +0 -30
  151. package/lib/item.js +0 -69
  152. package/lib/item.wyw-in-js.css +0 -1
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,4 +1,4 @@
1
- import { ThemeMode, ThemePreference } from "./theme-settings-core.js";
1
+ import { ThemeMode, ThemePreference } from "./theme-bootstrap.js";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/root-theme-provider.d.ts
4
4
  declare function RootThemeProvider({ initialThemeMode, initialPreference, isArchitect, children }: {