@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.
- package/lib/action-badge.js +1 -1
- package/lib/actions-menu/actions-menu-checkbox-item.js +1 -1
- package/lib/actions-menu/actions-menu-item.js +1 -1
- package/lib/actions-menu/actions-menu-sub-command-menu.js +1 -1
- package/lib/actions-menu/actions-menu-toggle-item.js +1 -1
- package/lib/actions-menu/actions-menu.js +1 -1
- package/lib/animations.js +1 -1
- package/lib/antd/ant-modal.js +1 -1
- package/lib/antd/ant-upload.js +1 -1
- package/lib/antd/auto-complete.js +1 -1
- package/lib/antd/get-wrapper.js +1 -1
- package/lib/antd/input.js +1 -1
- package/lib/antd/styles.wyw-in-js.css +1 -1
- package/lib/avatar.js +1 -1
- package/lib/badge.js +1 -1
- package/lib/banner/banner.js +1 -1
- package/lib/board-table-loader.js +1 -1
- package/lib/breadcrumb.js +1 -1
- package/lib/button/base-button.js +1 -1
- package/lib/button/button-group.js +1 -1
- package/lib/button/button.js +1 -1
- package/lib/button/icon-button.js +1 -1
- package/lib/card-hidden-link.js +1 -1
- package/lib/collapsible-section.js +1 -1
- package/lib/color-filter.js +2 -2
- package/lib/color-picker/swatch.js +1 -1
- package/lib/command-menu/index.js +1 -1
- package/lib/command-menu/nested-command-menu.js +4 -4
- package/lib/comment.js +12 -16
- package/lib/comment.wyw-in-js.css +2 -1
- package/lib/context-menu/index.js +1 -1
- package/lib/date-picker/date-range-picker-popup-content.js +1 -1
- package/lib/date-picker/relative-date-picker.js +1 -1
- package/lib/date-picker/single-date-picker.js +1 -1
- package/lib/design-system/colors-js.d.ts +1 -1
- package/lib/design-system/colors.d.ts +2 -2
- package/lib/design-system/colors.js +2 -2
- package/lib/design-system/theme.d.ts +1 -1
- package/lib/dnd.js +1 -1
- package/lib/dot.js +1 -1
- package/lib/dropdown-menu/index.js +1 -1
- package/lib/embed.d.ts +1 -1
- package/lib/emoji-picker/primitives/category-label.js +1 -1
- package/lib/emoji-picker/primitives/emoji.js +1 -3
- package/lib/emoji-picker/primitives/grid.js +1 -1
- package/lib/emoji-picker/primitives/search.js +1 -1
- package/lib/emoji-picker/primitives/skin-tone.js +1 -1
- package/lib/empty-state/empty-state.js +1 -1
- package/lib/empty-value.js +1 -1
- package/lib/fibermoji-placeholder.js +1 -1
- package/lib/field-container.js +1 -1
- package/lib/file-item/file-icon.d.ts +3 -2
- package/lib/file-item/file-icon.js +2 -2
- package/lib/file-item/file-title.js +1 -1
- package/lib/file-item.js +1 -1
- package/lib/header-layout.js +1 -1
- package/lib/hint.js +26 -20
- package/lib/hint.wyw-in-js.css +3 -1
- package/lib/hotkey-scope.js +1 -1
- package/lib/html-styles.wyw-in-js.css +4 -4
- package/lib/icons/ast/index.d.ts +3 -1
- package/lib/icons/ast/index.js +3 -1
- package/lib/icons/ast/suggestions-comments.d.ts +5 -0
- package/lib/icons/ast/suggestions-comments.js +39 -0
- package/lib/icons/ast/suggestions.d.ts +5 -0
- package/lib/icons/ast/suggestions.js +30 -0
- package/lib/icons/icon.js +1 -1
- package/lib/icons/react/index.d.ts +3 -1
- package/lib/icons/react/index.js +3 -1
- package/lib/icons/react/suggestions-comments.d.ts +15 -0
- package/lib/icons/react/suggestions-comments.js +21 -0
- package/lib/icons/react/suggestions.d.ts +15 -0
- package/lib/icons/react/suggestions.js +21 -0
- package/lib/images-gallery/images-gallery.d.ts +1 -1
- package/lib/images-gallery/slide-buttons.d.ts +1 -1
- package/lib/indicator.js +1 -1
- package/lib/integration-compact-info-button.js +1 -1
- package/lib/kbd.js +1 -1
- package/lib/lists/list-row-surface.js +1 -1
- package/lib/loaders.js +1 -1
- package/lib/mobile-drawer.js +31 -34
- package/lib/mobile-keyboard-aware-popup.js +1 -1
- package/lib/modal-menu/modal-menu-checkbox-item.js +1 -1
- package/lib/modal-menu/modal-menu-item.js +1 -1
- package/lib/modal-menu/modal-menu-label.js +1 -1
- package/lib/modal-menu/modal-menu-trigger.js +1 -1
- package/lib/modal-menu/modal-submenu-trigger.js +1 -1
- package/lib/new-badge.js +1 -1
- package/lib/number-input/number-input-inline-with-autosize.js +1 -1
- package/lib/number-input/stack.js +1 -1
- package/lib/number-input/step-button.js +1 -1
- package/lib/number-input/text-area-auto-sized.js +1 -1
- package/lib/number-input/text-input-auto-sized.js +1 -1
- package/lib/online-users.js +1 -1
- package/lib/palettes/warm.js +14 -0
- package/lib/phone-media-query.d.ts +9 -0
- package/lib/phone-media-query.js +10 -0
- package/lib/phone.d.ts +3 -5
- package/lib/phone.js +5 -8
- package/lib/progress.d.ts +45 -7
- package/lib/progress.js +91 -14
- package/lib/progress.wyw-in-js.css +7 -0
- package/lib/reactions/tootltip.js +1 -1
- package/lib/rich-input-loader.js +1 -1
- package/lib/rich-text-embed-error.js +1 -1
- package/lib/root-theme-provider.d.ts +1 -1
- package/lib/root-theme-provider.wyw-in-js.css +1 -1
- package/lib/scroll-fade.js +1 -1
- package/lib/select/components/menu.js +1 -1
- package/lib/select/components/no-option-message.js +1 -1
- package/lib/select/index.js +1 -1
- package/lib/select/select-in-popover.js +1 -1
- package/lib/sidebar/sidebar-handle.d.ts +1 -0
- package/lib/sidebar/sidebar-handle.js +3 -3
- package/lib/sidebar/sidebar.js +1 -1
- package/lib/spinner-box.js +1 -1
- package/lib/spinner.js +1 -1
- package/lib/spinner.wyw-in-js.css +1 -1
- package/lib/tab-nav/tab-nav.js +1 -1
- package/lib/table.js +1 -1
- package/lib/thematic-constants.d.ts +1 -1
- package/lib/thematic-state.d.ts +1 -1
- package/lib/thematic-state.js +2 -1
- package/lib/theme-bootstrap.d.ts +12 -0
- package/lib/theme-bootstrap.js +37 -0
- package/lib/theme-provider.d.ts +1 -1
- package/lib/theme-settings-core.d.ts +2 -5
- package/lib/theme-settings-core.js +3 -26
- package/lib/theme-settings.d.ts +3 -2
- package/lib/theme-settings.js +2 -1
- package/lib/theme-styles.d.ts +1 -1
- package/lib/theming.generated.d.ts +10 -10
- package/lib/theming.generated.js +10 -10
- package/lib/toast/primitives.js +1 -1
- package/lib/toast/toast.js +1 -1
- package/lib/toast/utils/toastify-item-name.d.ts +1 -1
- package/lib/toggle-button/round-toggle-button.js +1 -1
- package/lib/toggle-button/toggle-button-group.js +1 -1
- package/lib/toggle-button/toggle-button.js +1 -1
- package/lib/toggle.js +1 -1
- package/lib/tooltip.js +1 -1
- package/lib/type-badge-box.js +1 -1
- package/lib/unit/labeled-unit.js +1 -1
- package/lib/unit/unit-content.js +8 -12
- package/lib/unit/unit-content.wyw-in-js.css +4 -5
- package/lib/use-is-phone.d.ts +2 -1
- package/lib/use-is-phone.js +2 -1
- package/lib/workflow-progress-icon.js +12 -20
- package/package.json +6 -9
- package/lib/item.d.ts +0 -30
- package/lib/item.js +0 -69
- package/lib/item.wyw-in-js.css +0 -1
package/lib/tab-nav/tab-nav.js
CHANGED
|
@@ -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";
|
package/lib/table.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./table.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 { PureComponent } from "react";
|
|
5
|
-
import { cx } from "@linaria/core";
|
|
6
6
|
//#region src/table.tsx
|
|
7
7
|
var tableStyle = "t1sunmzy-table";
|
|
8
8
|
var Table = class extends PureComponent {
|
package/lib/thematic-state.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdjustSpec } from "./color-adjuster.js";
|
|
2
2
|
import { ColorFilterSpec } from "./color-filter.js";
|
|
3
3
|
import { ColorScale, EnumDefs, HighlightDefs, ModeDef, ThemePalette } from "./design-system/types.js";
|
|
4
|
-
import { ThemePreference } from "./theme-
|
|
4
|
+
import { ThemePreference } from "./theme-bootstrap.js";
|
|
5
5
|
import "./design-system.js";
|
|
6
6
|
import { ScaleCurves } from "./scale-generator.js";
|
|
7
7
|
import { ThematicPrefs } from "./palette-generator.js";
|
package/lib/thematic-state.js
CHANGED
|
@@ -4,7 +4,8 @@ import { DEFAULT_DARK_CURVES, DEFAULT_LIGHT_CURVES, generateColorScale } from ".
|
|
|
4
4
|
import { makeThematicPalette } from "./palette-generator.js";
|
|
5
5
|
import { extendDef } from "./design-system/def.js";
|
|
6
6
|
import { useThematic, useThemeMode } from "./theme-provider.js";
|
|
7
|
-
import { getThemePreference
|
|
7
|
+
import { getThemePreference } from "./theme-bootstrap.js";
|
|
8
|
+
import { setThemePreference } from "./theme-settings-core.js";
|
|
8
9
|
import { defaultPrefs, nextThemePref } from "./thematic-constants.js";
|
|
9
10
|
import { StaticPalettes } from "./static-palettes.js";
|
|
10
11
|
import { useToast } from "./toast/toast-provider.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/theme-bootstrap.d.ts
|
|
2
|
+
declare const themePreferenceStorageKey = "theme-preference";
|
|
3
|
+
declare const darkThemeClassName = "dark-theme";
|
|
4
|
+
declare const warmThemeClassName = "warm-palette";
|
|
5
|
+
declare const warmThemeStickyClassName = "warm-palette-sticky";
|
|
6
|
+
type ThemePreference = "dark" | "light" | "auto";
|
|
7
|
+
type ThemeMode = "dark" | "light";
|
|
8
|
+
declare function getThemePreference(): ThemePreference;
|
|
9
|
+
declare function getThemeMode(): ThemeMode;
|
|
10
|
+
declare function applyThemeModeToDocument(themeMode: ThemeMode): void;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ThemeMode, ThemePreference, applyThemeModeToDocument, darkThemeClassName, getThemeMode, getThemePreference, themePreferenceStorageKey, warmThemeClassName, warmThemeStickyClassName };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/theme-bootstrap.ts
|
|
2
|
+
var themePreferenceStorageKey = "theme-preference";
|
|
3
|
+
var darkModeQuery = "(prefers-color-scheme: dark)";
|
|
4
|
+
var allowedThemePreferences = /* @__PURE__ */ new Set([
|
|
5
|
+
"dark",
|
|
6
|
+
"light",
|
|
7
|
+
"auto"
|
|
8
|
+
]);
|
|
9
|
+
var isThemePreference = (value) => allowedThemePreferences.has(value);
|
|
10
|
+
var darkThemeClassName = "dark-theme";
|
|
11
|
+
var warmThemeClassName = "warm-palette";
|
|
12
|
+
var warmThemeStickyClassName = "warm-palette-sticky";
|
|
13
|
+
function getThemePreference() {
|
|
14
|
+
try {
|
|
15
|
+
const itemInUrl = new URLSearchParams(window.location.search).get("force-theme");
|
|
16
|
+
if (itemInUrl && isThemePreference(itemInUrl)) return itemInUrl;
|
|
17
|
+
const itemInStorage = localStorage.getItem(themePreferenceStorageKey);
|
|
18
|
+
if (itemInStorage && isThemePreference(itemInStorage)) return itemInStorage;
|
|
19
|
+
} catch {}
|
|
20
|
+
return "light";
|
|
21
|
+
}
|
|
22
|
+
function getThemeMode() {
|
|
23
|
+
const preference = getThemePreference();
|
|
24
|
+
if (preference === "dark") return "dark";
|
|
25
|
+
if (preference === "auto") try {
|
|
26
|
+
return window.matchMedia(darkModeQuery).matches ? "dark" : "light";
|
|
27
|
+
} catch {}
|
|
28
|
+
return "light";
|
|
29
|
+
}
|
|
30
|
+
function applyThemeModeToDocument(themeMode) {
|
|
31
|
+
const htmlElement = document.documentElement;
|
|
32
|
+
htmlElement.classList.toggle(darkThemeClassName, themeMode === "dark");
|
|
33
|
+
htmlElement.style.colorScheme = themeMode;
|
|
34
|
+
document.querySelector("meta[name=\"color-scheme\"]")?.setAttribute("content", themeMode);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { applyThemeModeToDocument, darkThemeClassName, getThemeMode, getThemePreference, themePreferenceStorageKey, warmThemeClassName, warmThemeStickyClassName };
|
package/lib/theme-provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemePalette } from "./design-system/types.js";
|
|
2
|
-
import { ThemeMode, ThemePreference } from "./theme-
|
|
2
|
+
import { ThemeMode, ThemePreference } from "./theme-bootstrap.js";
|
|
3
3
|
import { Styles, Theme } from "./design-system/theme.js";
|
|
4
4
|
import { ComponentType, PropsWithChildren } from "react";
|
|
5
5
|
//#region src/theme-provider.d.ts
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { ThemeMode, ThemePreference, getThemeMode, getThemePreference } from "./theme-bootstrap.js";
|
|
1
2
|
//#region src/theme-settings-core.d.ts
|
|
2
|
-
type ThemePreference = "dark" | "light" | "auto";
|
|
3
3
|
declare const themeModes: readonly ["dark", "light"];
|
|
4
|
-
type ThemeMode = "dark" | "light";
|
|
5
4
|
type ArchitectModeState = {
|
|
6
5
|
enabled: boolean;
|
|
7
6
|
};
|
|
@@ -10,8 +9,6 @@ type ThemeSettings = {
|
|
|
10
9
|
warm: boolean;
|
|
11
10
|
arch: boolean;
|
|
12
11
|
};
|
|
13
|
-
declare function getThemePreference(): ThemePreference;
|
|
14
|
-
declare function getThemeMode(): ThemeMode;
|
|
15
12
|
declare function setThemePreference(preference: ThemePreference): void;
|
|
16
13
|
declare function subscribeOnThemePreferenceChange(cb: (themePreference: ThemePreference) => void): () => void;
|
|
17
14
|
declare function subscribeOnThemeModeChange(cb: (themeMode: ThemeMode) => void): () => void;
|
|
@@ -21,4 +18,4 @@ declare function getArchitectModeStateFromLocalStorageOrInit(): ArchitectModeSta
|
|
|
21
18
|
declare function loadThemeSettings(): ThemeSettings;
|
|
22
19
|
declare function subscribeOnThemeSettingsChange(callback: (state: ThemeSettings) => void): () => void;
|
|
23
20
|
//#endregion
|
|
24
|
-
export { ArchitectModeState, ThemeMode, ThemePreference, ThemeSettings, getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, getThemeMode, getThemePreference, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes };
|
|
21
|
+
export { ArchitectModeState, type ThemeMode, type ThemePreference, ThemeSettings, getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, getThemeMode, getThemePreference, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes };
|
|
@@ -1,41 +1,18 @@
|
|
|
1
1
|
import { getMediaQueryList, subscribeOnChange } from "./media-query-utils.js";
|
|
2
2
|
import { isPhoneMode } from "./phone.js";
|
|
3
3
|
import { createPreferenceSetting } from "./preference-setting.js";
|
|
4
|
+
import { getThemeMode, getThemePreference, themePreferenceStorageKey } from "./theme-bootstrap.js";
|
|
4
5
|
//#region src/theme-settings-core.ts
|
|
5
6
|
var listenersThemeMode = /* @__PURE__ */ new Map();
|
|
6
7
|
var listenersThemePreference = /* @__PURE__ */ new Map();
|
|
7
|
-
var themePreferenceKey = "theme-preference";
|
|
8
8
|
var themeModes = ["dark", "light"];
|
|
9
|
-
function getThemePreference() {
|
|
10
|
-
const allowedValues = [
|
|
11
|
-
"dark",
|
|
12
|
-
"light",
|
|
13
|
-
"auto"
|
|
14
|
-
];
|
|
15
|
-
try {
|
|
16
|
-
const itemInUrl = new URLSearchParams(window.location.search).get("force-theme");
|
|
17
|
-
if (itemInUrl && allowedValues.includes(itemInUrl)) return itemInUrl;
|
|
18
|
-
const itemInStorage = localStorage.getItem(themePreferenceKey);
|
|
19
|
-
if (itemInStorage && allowedValues.includes(itemInStorage)) return itemInStorage;
|
|
20
|
-
} catch (e) {}
|
|
21
|
-
return "light";
|
|
22
|
-
}
|
|
23
|
-
var darkModeQuery = "(prefers-color-scheme: dark)";
|
|
24
9
|
function getDarkMediaQuery() {
|
|
25
|
-
return getMediaQueryList(
|
|
26
|
-
}
|
|
27
|
-
function getThemeMode() {
|
|
28
|
-
const item = getThemePreference();
|
|
29
|
-
if (item === "auto") {
|
|
30
|
-
if (getDarkMediaQuery().matches) return "dark";
|
|
31
|
-
return "light";
|
|
32
|
-
} else if (item === "dark") return "dark";
|
|
33
|
-
return "light";
|
|
10
|
+
return getMediaQueryList("(prefers-color-scheme: dark)");
|
|
34
11
|
}
|
|
35
12
|
function setThemePreference(preference) {
|
|
36
13
|
try {
|
|
37
14
|
if (getThemePreference() !== preference) {
|
|
38
|
-
localStorage.setItem(
|
|
15
|
+
localStorage.setItem(themePreferenceStorageKey, preference);
|
|
39
16
|
listenersThemeMode.forEach((cb) => {
|
|
40
17
|
cb(getThemeMode());
|
|
41
18
|
});
|
package/lib/theme-settings.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeMode, ThemePreference, getThemeMode, getThemePreference } from "./theme-bootstrap.js";
|
|
2
|
+
import { ArchitectModeState, ThemeSettings, getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes } from "./theme-settings-core.js";
|
|
2
3
|
//#region src/theme-settings.d.ts
|
|
3
4
|
declare function useWarmPreference(): readonly [boolean, (warm: boolean) => void];
|
|
4
5
|
declare function useThemeSettings(): ThemeSettings;
|
|
5
6
|
//#endregion
|
|
6
|
-
export { ArchitectModeState, ThemeMode, ThemePreference, ThemeSettings, getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, getThemeMode, getThemePreference, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes, useThemeSettings, useWarmPreference };
|
|
7
|
+
export { ArchitectModeState, type ThemeMode, type ThemePreference, ThemeSettings, getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, getThemeMode, getThemePreference, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes, useThemeSettings, useWarmPreference };
|
package/lib/theme-settings.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getThemeMode, getThemePreference } from "./theme-bootstrap.js";
|
|
2
|
+
import { getArchitectModeStateFromLocalStorage, getArchitectModeStateFromLocalStorageOrInit, hasArchitectModeStateInLocalStorage, hasWarmPreference, loadThemeSettings, loadWarmPreference, setArchitectModeState, setThemePreference, storeWarmPreference, subscribeOnArchitectModeChange, subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, subscribeOnThemeSettingsChange, subscribeOnWarmPreferenceChange, themeModes } from "./theme-settings-core.js";
|
|
2
3
|
import { useEffect, useState } from "react";
|
|
3
4
|
//#region src/theme-settings.ts
|
|
4
5
|
function useWarmPreference() {
|
package/lib/theme-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModeDef, ThemePalette } from "./design-system/types.js";
|
|
2
|
-
import { ThemeMode } from "./theme-
|
|
2
|
+
import { ThemeMode } from "./theme-bootstrap.js";
|
|
3
3
|
import { ThemeDefs } from "./design-system/colors.js";
|
|
4
4
|
import { Theme } from "./design-system/theme.js";
|
|
5
5
|
//#region src/theme-styles.d.ts
|
|
@@ -620,8 +620,8 @@ declare const neutralStyles: {
|
|
|
620
620
|
readonly "--mainBg": "rgb(245,245,245)";
|
|
621
621
|
readonly "--panelBg": "rgb(255,255,255)";
|
|
622
622
|
readonly "--panelBorder": "0 0 0 1px rgba(199, 199, 199, 0.2)";
|
|
623
|
-
readonly "--panelShadowFocused": "0 0 0 1px rgba(199, 199, 199, 0.45), 0 8px
|
|
624
|
-
readonly "--panelShadowUnfocused": "0 0 0 1px rgba(199, 199, 199, 0.2)
|
|
623
|
+
readonly "--panelShadowFocused": "0 0 0 1px rgba(199, 199, 199, 0.45), 0 4px 8px 0 rgba(0,0,0,0.09)";
|
|
624
|
+
readonly "--panelShadowUnfocused": "0 0 0 1px rgba(199, 199, 199, 0.2)";
|
|
625
625
|
readonly "--panelContentBg": "rgb(247,247,247)";
|
|
626
626
|
readonly "--dbSettingsSidebarBg": "rgb(247,247,247)";
|
|
627
627
|
readonly "--dbSettingsSidebarItemHover": "rgb(237,237,237)";
|
|
@@ -1703,9 +1703,9 @@ declare const warmStyles: {
|
|
|
1703
1703
|
readonly "--highlightBgRed": "rgb(254, 230, 227)";
|
|
1704
1704
|
readonly "--highlightFgRed": "rgb(227, 70, 74)";
|
|
1705
1705
|
readonly "--highlightFgOnBgRed": "rgb(191, 50, 55)";
|
|
1706
|
-
readonly "--highlightBgGrey": "rgb(
|
|
1707
|
-
readonly "--highlightFgGrey": "rgb(
|
|
1708
|
-
readonly "--highlightFgOnBgGrey": "rgb(
|
|
1706
|
+
readonly "--highlightBgGrey": "rgb(250, 244, 236)";
|
|
1707
|
+
readonly "--highlightFgGrey": "rgb(132, 129, 125)";
|
|
1708
|
+
readonly "--highlightFgOnBgGrey": "rgb(122, 119, 114)";
|
|
1709
1709
|
readonly "--colorPickerCssFilter": "none";
|
|
1710
1710
|
readonly "--colorAccentBgSubtle": "rgba(0, 138, 169, 0.1)";
|
|
1711
1711
|
readonly "--colorAccentBgMild": "rgba(0, 138, 169, 0.15)";
|
|
@@ -1724,8 +1724,8 @@ declare const warmStyles: {
|
|
|
1724
1724
|
readonly "--mainBg": "rgb(250,244,236)";
|
|
1725
1725
|
readonly "--panelBg": "rgb(255,253,250)";
|
|
1726
1726
|
readonly "--panelBorder": "0 0 0 1px rgba(204, 198, 191, 0.2)";
|
|
1727
|
-
readonly "--panelShadowFocused": "0 0 0 1px rgba(204, 198, 191, 0.45), 0 8px
|
|
1728
|
-
readonly "--panelShadowUnfocused": "0 0 0 1px rgba(204, 198, 191, 0.2)
|
|
1727
|
+
readonly "--panelShadowFocused": "0 0 0 1px rgba(204, 198, 191, 0.45), 0 4px 8px 0 rgba(0,0,0,0.09)";
|
|
1728
|
+
readonly "--panelShadowUnfocused": "0 0 0 1px rgba(204, 198, 191, 0.2)";
|
|
1729
1729
|
readonly "--panelContentBg": "rgb(253,246,239)";
|
|
1730
1730
|
readonly "--dbSettingsSidebarBg": "rgb(253,246,239)";
|
|
1731
1731
|
readonly "--dbSettingsSidebarItemHover": "rgb(243,236,229)";
|
|
@@ -2254,9 +2254,9 @@ declare const warmStyles: {
|
|
|
2254
2254
|
readonly "--highlightBgRed": "rgb(93, 55, 53)";
|
|
2255
2255
|
readonly "--highlightFgRed": "rgb(240, 170, 164)";
|
|
2256
2256
|
readonly "--highlightFgOnBgRed": "rgb(246, 190, 185)";
|
|
2257
|
-
readonly "--highlightBgGrey": "rgb(
|
|
2258
|
-
readonly "--highlightFgGrey": "rgb(
|
|
2259
|
-
readonly "--highlightFgOnBgGrey": "rgb(
|
|
2257
|
+
readonly "--highlightBgGrey": "rgb(68, 66, 64)";
|
|
2258
|
+
readonly "--highlightFgGrey": "rgb(190, 188, 185)";
|
|
2259
|
+
readonly "--highlightFgOnBgGrey": "rgb(206, 203, 200)";
|
|
2260
2260
|
readonly "--colorPickerCssFilter": "none";
|
|
2261
2261
|
readonly "--colorAccentBgSubtle": "rgba(0, 138, 169, 0.1)";
|
|
2262
2262
|
readonly "--colorAccentBgMild": "rgba(0, 138, 169, 0.15)";
|
package/lib/theming.generated.js
CHANGED
|
@@ -620,8 +620,8 @@ var neutralStyles = {
|
|
|
620
620
|
"--mainBg": "rgb(245,245,245)",
|
|
621
621
|
"--panelBg": "rgb(255,255,255)",
|
|
622
622
|
"--panelBorder": "0 0 0 1px rgba(199, 199, 199, 0.2)",
|
|
623
|
-
"--panelShadowFocused": "0 0 0 1px rgba(199, 199, 199, 0.45), 0 8px
|
|
624
|
-
"--panelShadowUnfocused": "0 0 0 1px rgba(199, 199, 199, 0.2)
|
|
623
|
+
"--panelShadowFocused": "0 0 0 1px rgba(199, 199, 199, 0.45), 0 4px 8px 0 rgba(0,0,0,0.09)",
|
|
624
|
+
"--panelShadowUnfocused": "0 0 0 1px rgba(199, 199, 199, 0.2)",
|
|
625
625
|
"--panelContentBg": "rgb(247,247,247)",
|
|
626
626
|
"--dbSettingsSidebarBg": "rgb(247,247,247)",
|
|
627
627
|
"--dbSettingsSidebarItemHover": "rgb(237,237,237)",
|
|
@@ -1703,9 +1703,9 @@ var warmStyles = {
|
|
|
1703
1703
|
"--highlightBgRed": "rgb(254, 230, 227)",
|
|
1704
1704
|
"--highlightFgRed": "rgb(227, 70, 74)",
|
|
1705
1705
|
"--highlightFgOnBgRed": "rgb(191, 50, 55)",
|
|
1706
|
-
"--highlightBgGrey": "rgb(
|
|
1707
|
-
"--highlightFgGrey": "rgb(
|
|
1708
|
-
"--highlightFgOnBgGrey": "rgb(
|
|
1706
|
+
"--highlightBgGrey": "rgb(250, 244, 236)",
|
|
1707
|
+
"--highlightFgGrey": "rgb(132, 129, 125)",
|
|
1708
|
+
"--highlightFgOnBgGrey": "rgb(122, 119, 114)",
|
|
1709
1709
|
"--colorPickerCssFilter": "none",
|
|
1710
1710
|
"--colorAccentBgSubtle": "rgba(0, 138, 169, 0.1)",
|
|
1711
1711
|
"--colorAccentBgMild": "rgba(0, 138, 169, 0.15)",
|
|
@@ -1724,8 +1724,8 @@ var warmStyles = {
|
|
|
1724
1724
|
"--mainBg": "rgb(250,244,236)",
|
|
1725
1725
|
"--panelBg": "rgb(255,253,250)",
|
|
1726
1726
|
"--panelBorder": "0 0 0 1px rgba(204, 198, 191, 0.2)",
|
|
1727
|
-
"--panelShadowFocused": "0 0 0 1px rgba(204, 198, 191, 0.45), 0 8px
|
|
1728
|
-
"--panelShadowUnfocused": "0 0 0 1px rgba(204, 198, 191, 0.2)
|
|
1727
|
+
"--panelShadowFocused": "0 0 0 1px rgba(204, 198, 191, 0.45), 0 4px 8px 0 rgba(0,0,0,0.09)",
|
|
1728
|
+
"--panelShadowUnfocused": "0 0 0 1px rgba(204, 198, 191, 0.2)",
|
|
1729
1729
|
"--panelContentBg": "rgb(253,246,239)",
|
|
1730
1730
|
"--dbSettingsSidebarBg": "rgb(253,246,239)",
|
|
1731
1731
|
"--dbSettingsSidebarItemHover": "rgb(243,236,229)",
|
|
@@ -2254,9 +2254,9 @@ var warmStyles = {
|
|
|
2254
2254
|
"--highlightBgRed": "rgb(93, 55, 53)",
|
|
2255
2255
|
"--highlightFgRed": "rgb(240, 170, 164)",
|
|
2256
2256
|
"--highlightFgOnBgRed": "rgb(246, 190, 185)",
|
|
2257
|
-
"--highlightBgGrey": "rgb(
|
|
2258
|
-
"--highlightFgGrey": "rgb(
|
|
2259
|
-
"--highlightFgOnBgGrey": "rgb(
|
|
2257
|
+
"--highlightBgGrey": "rgb(68, 66, 64)",
|
|
2258
|
+
"--highlightFgGrey": "rgb(190, 188, 185)",
|
|
2259
|
+
"--highlightFgOnBgGrey": "rgb(206, 203, 200)",
|
|
2260
2260
|
"--colorPickerCssFilter": "none",
|
|
2261
2261
|
"--colorAccentBgSubtle": "rgba(0, 138, 169, 0.1)",
|
|
2262
2262
|
"--colorAccentBgMild": "rgba(0, 138, 169, 0.15)",
|
package/lib/toast/primitives.js
CHANGED
|
@@ -3,9 +3,9 @@ import { textClasses } from "../design-system/typography.js";
|
|
|
3
3
|
import { IconButton } from "../button/icon-button.js";
|
|
4
4
|
import Close from "../icons/react/close.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
import { cx } from "@linaria/core";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import { forwardRef } from "react";
|
|
8
|
-
import { cx } from "@linaria/core";
|
|
9
9
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
10
10
|
import { preventDefault } from "@fibery/react/src/prevent-default";
|
|
11
11
|
//#region src/toast/primitives.tsx
|
package/lib/toast/toast.js
CHANGED
|
@@ -5,10 +5,10 @@ import { ToastClose, ToastRoot, ToastSubtitle, ToastTitle } from "./primitives.j
|
|
|
5
5
|
import CircleCheckFilled from "../icons/react/circle-check-filled.js";
|
|
6
6
|
import WarningTriangleFilled from "../icons/react/warning-triangle-filled.js";
|
|
7
7
|
/* empty css */
|
|
8
|
+
import { cx } from "@linaria/core";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { useCallback, useEffect, useRef } from "react";
|
|
10
11
|
import { useControllableState } from "@fibery/react/src/use-controllable-state";
|
|
11
|
-
import { cx } from "@linaria/core";
|
|
12
12
|
import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
|
|
13
13
|
//#region src/toast/toast.tsx
|
|
14
14
|
var defaultPropsPerType = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare const trimDynamicToastText: (str: string, charLimit: number) => string;
|
|
3
3
|
declare const toastifyItemName: ({ prefix, name, postfix, charLimit }: {
|
|
4
4
|
prefix?: string;
|
|
5
|
-
name?: string;
|
|
5
|
+
name?: string | null;
|
|
6
6
|
postfix?: string;
|
|
7
7
|
charLimit?: number;
|
|
8
8
|
}) => string;
|
|
@@ -2,9 +2,9 @@ import "./round-toggle-button.wyw-in-js.css";
|
|
|
2
2
|
import { themeVars } from "../theming.generated.js";
|
|
3
3
|
import { ToggleButton, toggleButtonColorVars } from "./toggle-button.js";
|
|
4
4
|
/* empty css */
|
|
5
|
+
import { cx } from "@linaria/core";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { forwardRef } from "react";
|
|
7
|
-
import { cx } from "@linaria/core";
|
|
8
8
|
//#region src/toggle-button/round-toggle-button.tsx
|
|
9
9
|
var roundToggleButtonCss = "r15nmt6y-roundToggleButton";
|
|
10
10
|
var roundToggleButtonColors = toggleButtonColorVars({
|
|
@@ -2,9 +2,9 @@ import "./toggle-button-group.wyw-in-js.css";
|
|
|
2
2
|
import { space } from "../design-system/layout.js";
|
|
3
3
|
import { ToggleButton } from "./toggle-button.js";
|
|
4
4
|
/* empty css */
|
|
5
|
+
import { cx } from "@linaria/core";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { forwardRef } from "react";
|
|
7
|
-
import { cx } from "@linaria/core";
|
|
8
8
|
import { ToggleGroup, ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
9
9
|
//#region src/toggle-button/toggle-button-group.tsx
|
|
10
10
|
var toggleButtonGroupCss = "t11nnkce-toggleButtonGroup";
|
|
@@ -2,9 +2,9 @@ import "./toggle-button.wyw-in-js.css";
|
|
|
2
2
|
import { themeVars } from "../theming.generated.js";
|
|
3
3
|
import { useIsPhone } from "../use-is-phone.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
|
import { Toggle } from "@radix-ui/react-toggle";
|
|
9
9
|
//#region src/toggle-button/toggle-button.tsx
|
|
10
10
|
var toggleButtonCss = "tkovvez-toggleButton";
|
package/lib/toggle.js
CHANGED
|
@@ -5,8 +5,8 @@ import { space } from "./design-system/layout.js";
|
|
|
5
5
|
import { textClasses } from "./design-system/typography.js";
|
|
6
6
|
import { Spinner } from "./spinner.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
import { cx } from "@linaria/core";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { styled } from "@linaria/react";
|
|
11
11
|
//#region src/toggle.tsx
|
|
12
12
|
var toggleIconHeightVar = "--fibery-toggle-icon-height";
|
package/lib/tooltip.js
CHANGED
|
@@ -4,11 +4,11 @@ import { space } from "./design-system/layout.js";
|
|
|
4
4
|
import { RadixPortalThemeProvider } from "./theme-provider.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { isFlagPresent } from "@fibery/helpers/src/flags";
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { forwardRef, useRef } from "react";
|
|
9
10
|
import { composeEventHandlers } from "@fibery/react/src/compose-event-handlers";
|
|
10
11
|
import { useControllableState } from "@fibery/react/src/use-controllable-state";
|
|
11
|
-
import { cx } from "@linaria/core";
|
|
12
12
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
13
13
|
//#region src/tooltip.tsx
|
|
14
14
|
var preventDefaultAndStopPropagation = (e) => {
|
package/lib/type-badge-box.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./type-badge-box.wyw-in-js.css";
|
|
2
2
|
import { makeAbbreviation } from "./type-badge.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/type-badge-box.tsx
|
|
7
7
|
var TypeBadgeBox = ({ width, height, typeObject, children, className }) => {
|
|
8
8
|
const abbr = makeAbbreviation(typeObject.title);
|
package/lib/unit/labeled-unit.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./labeled-unit.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/unit/labeled-unit.tsx
|
|
7
7
|
var labelCss = "lfktfg3-label";
|
|
8
8
|
var labeledUnitCss = "l3ngueb-labeledUnit";
|
package/lib/unit/unit-content.js
CHANGED
|
@@ -9,9 +9,9 @@ import "./styles.js";
|
|
|
9
9
|
import { UnitContainer } from "./container.js";
|
|
10
10
|
import { UnitContentLayout } from "./unit-content-layout.js";
|
|
11
11
|
/* empty css */
|
|
12
|
+
import { cx } from "@linaria/core";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { forwardRef } from "react";
|
|
14
|
-
import { cx } from "@linaria/core";
|
|
15
15
|
//#region src/unit/unit-content.tsx
|
|
16
16
|
var resetButtonStylesCss = "r96bd8z-resetButtonStyles";
|
|
17
17
|
var ButtonComponent = forwardRef((props, ref) => {
|
|
@@ -26,11 +26,10 @@ var DivComponent = forwardRef((props, ref) => /* @__PURE__ */ jsx("div", {
|
|
|
26
26
|
ref,
|
|
27
27
|
...props
|
|
28
28
|
}));
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var tooltipTitleCss = "tum1nu9-tooltipTitle";
|
|
29
|
+
var contentCss = "ccx18o4-content";
|
|
30
|
+
var unitDescriptionCss = "u1l394rk-unitDescription";
|
|
31
|
+
var fullUnitPreviewCss = "f1he4b8w-fullUnitPreview";
|
|
32
|
+
var tooltipTitleCss = "tcmj1jm-tooltipTitle";
|
|
34
33
|
var UnitContent = ({ button = false, icon, shrinkable, truncate, onClick, onKeyDown, children }) => {
|
|
35
34
|
const { size, chipProps, tooltip } = useUnitContext();
|
|
36
35
|
const { truncated, setNode } = useTruncated();
|
|
@@ -46,12 +45,9 @@ var UnitContent = ({ button = false, icon, shrinkable, truncate, onClick, onKeyD
|
|
|
46
45
|
className: "a60xcpq-alignCenter",
|
|
47
46
|
children: icon
|
|
48
47
|
}), children && /* @__PURE__ */ jsx("div", {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
className: cx(contentCss, truncate && "e190sqpi-ellipsis"),
|
|
53
|
-
children
|
|
54
|
-
})
|
|
48
|
+
ref: tooltip ? setNode : void 0,
|
|
49
|
+
className: cx(contentCss, truncate && "e190sqpi-ellipsis"),
|
|
50
|
+
children
|
|
55
51
|
})]
|
|
56
52
|
})
|
|
57
53
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.r96bd8z-resetButtonStyles{all:unset;background-color:var(--transparent);--input-focus-border:0 0 0 1px var(--colorAccentStrokeFocus) inset;--input-focus-shadow:0 0 0 2px var(--colorAccentStroke);border-radius:6px;}.r96bd8z-resetButtonStyles:focus{outline:none;box-shadow:var(--input-focus-border, 0 0 0 1px var(--colorAccentStroke)),var(--input-focus-shadow)!important;transition:box-shadow 120ms ease-in-out;}.r96bd8z-resetButtonStyles:focus:not(:focus-visible){outline:none;box-shadow:none!important;}.r96bd8z-resetButtonStyles:focus-visible{outline:none;box-shadow:var(--input-focus-border, 0 0 0 1px var(--colorAccentStroke)),var(--input-focus-shadow)!important;transition:box-shadow 120ms ease-in-out;}
|
|
2
|
-
.ccx18o4-
|
|
3
|
-
.
|
|
4
|
-
.
|
|
5
|
-
.
|
|
6
|
-
.tum1nu9-tooltipTitle{display:flex;align-items:center;gap:4px;}
|
|
2
|
+
.ccx18o4-content{overflow:hidden;padding-left:4px;padding-right:4px;}
|
|
3
|
+
.u1l394rk-unitDescription{margin-bottom:1px;}
|
|
4
|
+
.f1he4b8w-fullUnitPreview{display:flex;align-items:center;padding:6px;border-radius:6px;background-color:var(--cardBg);margin-top:4px;margin-bottom:4px;}
|
|
5
|
+
.tcmj1jm-tooltipTitle{display:flex;align-items:center;gap:4px;}
|
package/lib/use-is-phone.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { phoneMediaQuery } from "./phone-media-query.js";
|
|
2
|
+
import { isPhoneApp, isPhoneMode, phoneMediaQueryDynamic } from "./phone.js";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
4
|
//#region src/use-is-phone.d.ts
|
|
4
5
|
declare const useIsPhone: () => boolean;
|
package/lib/use-is-phone.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mobileRootClassName } from "./mobile-styles.js";
|
|
2
|
-
import {
|
|
2
|
+
import { phoneMediaQuery } from "./phone-media-query.js";
|
|
3
|
+
import { isPhoneApp, isPhoneMode, phoneMediaQueryDynamic } from "./phone.js";
|
|
3
4
|
import { useIsMediaQueryMatched } from "./use-is-media-query-matched.js";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { createContext } from "@fibery/react/src/create-context";
|
|
@@ -1,39 +1,31 @@
|
|
|
1
1
|
import "./workflow-progress-icon.wyw-in-js.css";
|
|
2
2
|
import { themeVars } from "./theming.generated.js";
|
|
3
|
+
import { ProgressRing } from "./progress.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import {
|
|
5
|
-
import { arc } from "d3-shape";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
//#region src/workflow-progress-icon.tsx
|
|
8
7
|
var WorkflowProgressIcon = ({ size, index, total, fillProgress = themeVars.progressIconFill, fillBackground = themeVars.progressIconBg, isDone, doneStrokeColor = themeVars.pageContentBg, doneFillColor = themeVars.progressIconFill }) => {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
+
if (!isDone) return /* @__PURE__ */ jsx(ProgressRing, {
|
|
9
|
+
size,
|
|
10
|
+
value: index / total * 100,
|
|
11
|
+
color: fillProgress,
|
|
12
|
+
trackColor: fillBackground
|
|
13
|
+
});
|
|
14
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
10
15
|
width: size,
|
|
11
16
|
height: size,
|
|
12
17
|
viewBox: `0 0 16 16`,
|
|
13
18
|
className: "cdumlmi",
|
|
14
|
-
children:
|
|
19
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
15
20
|
cx: "8",
|
|
16
21
|
cy: "8",
|
|
17
22
|
r: "8",
|
|
18
|
-
fill: doneFillColor
|
|
19
|
-
fillOpacity: "0.8"
|
|
23
|
+
fill: doneFillColor
|
|
20
24
|
}), /* @__PURE__ */ jsx("path", {
|
|
21
25
|
d: "M6.93229 11.98C7.25645 11.98 7.5091 11.8562 7.68071 11.5941L12.1236 4.80535C12.2476 4.61478 12.3 4.43852 12.3 4.27178C12.3 3.82395 11.9663 3.5 11.5086 3.5C11.1941 3.5 10.9986 3.61434 10.8079 3.91447L6.90845 10.0601L4.93012 7.60661C4.75374 7.39699 4.56306 7.30171 4.2961 7.30171C3.8337 7.30171 3.5 7.63042 3.5 8.07824C3.5 8.27832 3.56197 8.45464 3.73358 8.64992L6.19339 11.6274C6.39838 11.8704 6.62719 11.98 6.93229 11.98Z",
|
|
22
26
|
fill: doneStrokeColor
|
|
23
|
-
})]
|
|
24
|
-
transform: `translate(8, 8)`,
|
|
25
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
26
|
-
d: getPath(total, total, 16),
|
|
27
|
-
fill: fillBackground
|
|
28
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
29
|
-
d: getPath(index, total, 16),
|
|
30
|
-
fill: fillProgress
|
|
31
|
-
})]
|
|
32
|
-
})
|
|
27
|
+
})]
|
|
33
28
|
});
|
|
34
29
|
};
|
|
35
|
-
var getPath = memoizeLeak((index, total, size) => {
|
|
36
|
-
return arc().innerRadius(size / 2.75).outerRadius(size / 2).startAngle(0).endAngle(2 * (index / total) * Math.PI).cornerRadius(1)();
|
|
37
|
-
}, (...args) => args.join("/"));
|
|
38
30
|
//#endregion
|
|
39
31
|
export { WorkflowProgressIcon };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
"@tanstack/hotkeys": "0.7.1",
|
|
112
112
|
"@tanstack/react-hotkeys": "0.9.1",
|
|
113
113
|
"@types/apca-w3": "0.1.3",
|
|
114
|
-
"@types/d3-shape": "3.1.7",
|
|
115
114
|
"@types/history": "4.7.11",
|
|
116
115
|
"apca-w3": "0.1.9",
|
|
117
116
|
"chrono-node": "2.9.0",
|
|
@@ -119,17 +118,15 @@
|
|
|
119
118
|
"cmdk": "1.0.0",
|
|
120
119
|
"color-hash": "1.0.3",
|
|
121
120
|
"culori": "4.0.2",
|
|
122
|
-
"d3-shape": "1.3.7",
|
|
123
121
|
"date-fns": "2.29.2",
|
|
124
122
|
"invariant": "2.2.4",
|
|
125
|
-
"lru-cache": "11.
|
|
126
|
-
"moment": "2.
|
|
123
|
+
"lru-cache": "11.5.3",
|
|
124
|
+
"moment": "2.31.0",
|
|
127
125
|
"photoswipe": "5.4.4",
|
|
128
126
|
"popper-max-size-modifier": "0.2.0",
|
|
129
127
|
"rc-dialog": "9.0.4",
|
|
130
128
|
"rc-input": "1.3.11",
|
|
131
129
|
"rc-input-number": "8.5.0",
|
|
132
|
-
"rc-progress": "4.0.0",
|
|
133
130
|
"rc-select": "14.1.18",
|
|
134
131
|
"rc-tabs": "12.5.10",
|
|
135
132
|
"rc-textarea": "0.4.7",
|
|
@@ -138,14 +135,14 @@
|
|
|
138
135
|
"react-day-picker": "8.10.1",
|
|
139
136
|
"react-popper": "2.3.0",
|
|
140
137
|
"react-select": "5.3.2",
|
|
141
|
-
"react-virtuoso": "4.18.
|
|
138
|
+
"react-virtuoso": "4.18.13",
|
|
142
139
|
"screenfull": "6.0.2",
|
|
143
140
|
"tabbable": "5.2.1",
|
|
144
141
|
"vaul": "1.1.2",
|
|
145
142
|
"virtua": "0.50.4",
|
|
146
143
|
"@fibery/emoji-data": "3.0.0",
|
|
147
|
-
"@fibery/helpers": "4.
|
|
148
|
-
"@fibery/react": "2.0.
|
|
144
|
+
"@fibery/helpers": "4.1.0",
|
|
145
|
+
"@fibery/react": "2.0.6"
|
|
149
146
|
},
|
|
150
147
|
"peerDependencies": {
|
|
151
148
|
"react": "18.3.1",
|