@fibery/ui-kit 9.3.0 → 9.4.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.
- 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/animations.wyw-in-js.css +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/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-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.d.ts +4 -2
- package/lib/design-system/colors.js +4 -3
- package/lib/design-system/theme.d.ts +10 -5
- package/lib/dnd.js +1 -1
- package/lib/dot.js +1 -1
- package/lib/dropdown-menu/index.js +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-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 +3 -3
- package/lib/icons/icon.js +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-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/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.wyw-in-js.css +1 -1
- package/lib/scroll-fade.js +1 -1
- package/lib/select/components/menu.d.ts +5 -1
- package/lib/select/components/menu.js +13 -4
- 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/select/select.js +2 -2
- package/lib/sidebar/sidebar-handle.js +1 -1
- package/lib/sidebar/sidebar.js +1 -1
- package/lib/sidebar/sidebar.wyw-in-js.css +1 -1
- package/lib/skeleton.wyw-in-js.css +2 -2
- 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/theme-provider.d.ts +2 -1
- package/lib/theming.generated.d.ts +16 -11
- package/lib/theming.generated.js +16 -11
- package/lib/toast/primitives.js +1 -1
- package/lib/toast/toast.js +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 +1 -1
- package/lib/workflow-progress-icon.js +12 -20
- package/package.json +3 -6
- package/lib/item.d.ts +0 -30
- package/lib/item.js +0 -69
- package/lib/item.wyw-in-js.css +0 -1
package/lib/action-badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./action-badge.wyw-in-js.css";
|
|
2
2
|
import { BaseButton } from "./button/base-button.js";
|
|
3
3
|
/* empty css */
|
|
4
|
+
import { cx } from "@linaria/core";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
|
-
import { cx } from "@linaria/core";
|
|
7
7
|
//#region src/action-badge.tsx
|
|
8
8
|
var containerStyle = "cyju7d0-container";
|
|
9
9
|
var smallStyle = "sgsty1r-small";
|
|
@@ -4,9 +4,9 @@ import { useIsPhone } from "../use-is-phone.js";
|
|
|
4
4
|
import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
|
|
5
5
|
import Checked from "../icons/react/checked.js";
|
|
6
6
|
/* empty css */
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { memo } from "react";
|
|
9
|
-
import { cx } from "@linaria/core";
|
|
10
10
|
import { stopPropagation } from "@fibery/react/src/stop-propagation";
|
|
11
11
|
//#region src/actions-menu/actions-menu-checkbox-item.tsx
|
|
12
12
|
var rowCss = "r1tvwp0c-row";
|
|
@@ -10,9 +10,9 @@ import { useActiveDangerousRow, useSetActiveDangerousRow } from "./contexts/acti
|
|
|
10
10
|
import Checked from "../icons/react/checked.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { noop } from "@fibery/helpers/src/_";
|
|
13
|
+
import { cx } from "@linaria/core";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
import { useId } from "react";
|
|
15
|
-
import { cx } from "@linaria/core";
|
|
16
16
|
import { useCallbackRef } from "@fibery/react/src/use-callback-ref";
|
|
17
17
|
import { stopPropagation } from "@fibery/react/src/stop-propagation";
|
|
18
18
|
//#region src/actions-menu/actions-menu-item.tsx
|
|
@@ -4,11 +4,11 @@ import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
|
|
|
4
4
|
import { ActionsMenuSubMenu } from "./actions-menu-sub-menu.js";
|
|
5
5
|
import { CommandMenuEmpty, CommandMenuGroup, CommandMenuInput, CommandMenuItem, CommandMenuList, CommandMenuRoot, CommandMenuSeparator } from "../command-menu/index.js";
|
|
6
6
|
/* empty css */
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
import { createContext } from "@fibery/react/src/create-context";
|
|
9
10
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
10
11
|
import { composeEventHandlers } from "@fibery/react/src/compose-event-handlers";
|
|
11
|
-
import { cx } from "@linaria/core";
|
|
12
12
|
import { stopPropagation } from "@fibery/react/src/stop-propagation";
|
|
13
13
|
//#region src/actions-menu/actions-menu-sub-command-menu.tsx
|
|
14
14
|
var [ActionsMenuSubCommandMenuProvider, useActionsMenuSubCommandMenuCtx] = createContext("ActionsMenuSubCommandMenu");
|
|
@@ -5,9 +5,9 @@ import { ToggleOnOff } from "../toggle-on-off.js";
|
|
|
5
5
|
import { useActionsMenuContext } from "./contexts/actions-menu-context.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { noop } from "@fibery/helpers/src/_";
|
|
8
|
+
import { cx } from "@linaria/core";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { memo } from "react";
|
|
10
|
-
import { cx } from "@linaria/core";
|
|
11
11
|
import { stopPropagation } from "@fibery/react/src/stop-propagation";
|
|
12
12
|
import { preventDefault } from "@fibery/react/src/prevent-default";
|
|
13
13
|
//#region src/actions-menu/actions-menu-toggle-item.tsx
|
|
@@ -7,10 +7,10 @@ import { modal_menu_exports } from "../modal-menu/index.js";
|
|
|
7
7
|
import { ActionsMenuConfirmation } from "./actions-menu-confirmation.js";
|
|
8
8
|
import { ActionsMenuDangerousRowsProvider } from "./contexts/actions-menu-dangerous-rows.js";
|
|
9
9
|
/* empty css */
|
|
10
|
+
import { cx } from "@linaria/core";
|
|
10
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { useEffect, useState } from "react";
|
|
12
13
|
import { useControllableState } from "@fibery/react/src/use-controllable-state";
|
|
13
|
-
import { cx } from "@linaria/core";
|
|
14
14
|
import { preventDefault } from "@fibery/react/src/prevent-default";
|
|
15
15
|
//#region src/actions-menu/actions-menu.tsx
|
|
16
16
|
var preventDefaultAndStopPropagation = (event) => {
|
package/lib/animations.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./animations.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 { useLayoutEffect, useRef, useState } from "react";
|
|
5
|
-
import { cx } from "@linaria/core";
|
|
6
6
|
//#region src/animations.tsx
|
|
7
7
|
var pulseStyle = "p1hq8iit-pulse";
|
|
8
8
|
var Pulse = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
@keyframes pulse-p1hq8iit-pulse{0%{transform:scale(0.8);}5%{transform:scale(1);}10%{transform:scale(0.8);}15%{transform:scale(1.2);}50%{transform:scale(0.8);}100%{transform:scale(1);}}@media (prefers-reduced-motion: no-preference){.p1hq8iit-pulse{animation:pulse-p1hq8iit-pulse 1.4s infinite;}}
|
|
2
2
|
.p1pc8bzk-popup{transform:translateY(50px) scale(0);opacity:0;animation:pop-up-p1pc8bzk-popup 0.6s cubic-bezier(0.27, 0.53, 0.28, 1.58) forwards;}@keyframes pop-up-p1pc8bzk-popup{0%{transform:translateY(50px) scale(0);opacity:0;}100%{transform:translateY(0px) scale(1);opacity:1;}}
|
package/lib/antd/ant-modal.js
CHANGED
|
@@ -3,9 +3,9 @@ import { ThemeProvider } from "../theme-provider.js";
|
|
|
3
3
|
import Close from "../icons/react/close.js";
|
|
4
4
|
import { usePopupStackContext } from "../popover/popup-stack-context.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
import { cx } from "@linaria/core";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import { useEffect, useId, useRef } from "react";
|
|
8
|
-
import { cx } from "@linaria/core";
|
|
9
9
|
import Dialog from "rc-dialog";
|
|
10
10
|
//#region src/antd/ant-modal.tsx
|
|
11
11
|
var defaultCloseIcon = /* @__PURE__ */ jsx(Close, {});
|
package/lib/antd/ant-upload.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./ant-upload.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, useCallback, useRef, useState } from "react";
|
|
5
|
-
import { cx } from "@linaria/core";
|
|
6
6
|
import RcUpload from "rc-upload";
|
|
7
7
|
//#region src/antd/ant-upload.tsx
|
|
8
8
|
function file2Obj(file) {
|
|
@@ -3,9 +3,9 @@ import { ThemeProvider } from "../theme-provider.js";
|
|
|
3
3
|
import { getWrapper } from "./get-wrapper.js";
|
|
4
4
|
import { wrapWithPopupContainer } from "./utils.js";
|
|
5
5
|
/* empty css */
|
|
6
|
+
import { cx } from "@linaria/core";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import { forwardRef, useCallback } from "react";
|
|
8
|
-
import { cx } from "@linaria/core";
|
|
9
9
|
import Select from "rc-select";
|
|
10
10
|
//#region src/antd/auto-complete.tsx
|
|
11
11
|
var autoCompleteStyles = "a4bxarr-autoComplete";
|
package/lib/antd/get-wrapper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cx } from "@linaria/core";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { forwardRef } from "react";
|
|
3
|
-
import { cx } from "@linaria/core";
|
|
4
4
|
//#region src/antd/get-wrapper.tsx
|
|
5
5
|
function getWrapper(wrapperClassName) {
|
|
6
6
|
return forwardRef(function InputWrapper({ className, ...props }, ref) {
|
package/lib/antd/input.js
CHANGED
|
@@ -4,9 +4,9 @@ import { getWrapper } from "./get-wrapper.js";
|
|
|
4
4
|
import { wrapWith } from "./utils.js";
|
|
5
5
|
import CircleCross from "../icons/react/circle-cross.js";
|
|
6
6
|
/* empty css */
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
9
|
-
import { cx } from "@linaria/core";
|
|
10
10
|
import RcInput from "rc-input";
|
|
11
11
|
import RcTextArea from "rc-textarea";
|
|
12
12
|
//#region src/antd/input.tsx
|
package/lib/avatar.js
CHANGED
|
@@ -4,9 +4,9 @@ import { FibermojiPlaceholder } from "./fibermoji-placeholder.js";
|
|
|
4
4
|
import { getShiftStyle } from "./icons/get-shift-style.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { memoizeLeak } from "@fibery/helpers/src/_";
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { memo, useCallback, useState } from "react";
|
|
9
|
-
import { cx } from "@linaria/core";
|
|
10
10
|
//#region src/avatar.tsx
|
|
11
11
|
var statusIconPositionByIndex = [
|
|
12
12
|
{
|
package/lib/badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./badge.wyw-in-js.css";
|
|
2
2
|
import { textClasses } from "./design-system/typography.js";
|
|
3
3
|
/* empty css */
|
|
4
|
+
import { cx } from "@linaria/core";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
|
-
import { cx } from "@linaria/core";
|
|
7
7
|
//#region src/badge.tsx
|
|
8
8
|
var Badge = forwardRef(({ children, kind, ...otherProps }, ref) => {
|
|
9
9
|
return /* @__PURE__ */ jsx("span", {
|
package/lib/banner/banner.js
CHANGED
|
@@ -4,9 +4,9 @@ import { IconButton } from "../button/icon-button.js";
|
|
|
4
4
|
import Close from "../icons/react/close.js";
|
|
5
5
|
import { BannerContextProvider } from "./banner-context.js";
|
|
6
6
|
/* empty css */
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { forwardRef } from "react";
|
|
9
|
-
import { cx } from "@linaria/core";
|
|
10
10
|
//#region src/banner/banner.tsx
|
|
11
11
|
var bannerVariants = {
|
|
12
12
|
neutral: "nmuyx8-neutral",
|
|
@@ -4,8 +4,8 @@ import { Box } from "./box.js";
|
|
|
4
4
|
import { Delayed, defaultLoaderDelay } from "./delayed.js";
|
|
5
5
|
import { AxisHeader } from "./axis-header.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import { cx } from "@linaria/core";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/board-table-loader.tsx
|
|
10
10
|
var style = "s1xtbszq";
|
|
11
11
|
var loaderStyle = "l13lkxpw-loader";
|
package/lib/breadcrumb.js
CHANGED
|
@@ -3,9 +3,9 @@ import { themeVars } from "./theming.generated.js";
|
|
|
3
3
|
import ArrowRight from "./icons/react/arrow-right.js";
|
|
4
4
|
import More from "./icons/react/more.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
|
//#region src/breadcrumb.tsx
|
|
10
10
|
var Breadcrumb = ({ className, ...rest }) => {
|
|
11
11
|
return /* @__PURE__ */ jsx("nav", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./base-button.wyw-in-js.css";
|
|
2
2
|
import { themeVars } from "../theming.generated.js";
|
|
3
3
|
/* empty css */
|
|
4
|
+
import { cx } from "@linaria/core";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { forwardRef, useMemo } from "react";
|
|
6
|
-
import { cx } from "@linaria/core";
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
8
|
//#region src/button/base-button.tsx
|
|
9
9
|
var xLargeButtonHeight = 40;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./button-group.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/button/button-group.tsx
|
|
7
7
|
var buttonGroupDirection = {
|
|
8
8
|
row: "r18ll2wb-row",
|
package/lib/button/button.js
CHANGED
|
@@ -4,9 +4,9 @@ import { useIsSupportHardwareKeyboard } from "../use-is-support-hardware-keyboar
|
|
|
4
4
|
import { Spinner } from "../spinner.js";
|
|
5
5
|
import { BaseButton } from "./base-button.js";
|
|
6
6
|
/* empty css */
|
|
7
|
+
import { cx } from "@linaria/core";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
import { forwardRef } from "react";
|
|
9
|
-
import { cx } from "@linaria/core";
|
|
10
10
|
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
11
11
|
//#region src/button/button.tsx
|
|
12
12
|
var withIconStart = "wmamuht-withIconStart";
|
|
@@ -3,9 +3,9 @@ import { useIsPhone } from "../use-is-phone.js";
|
|
|
3
3
|
import { Spinner } from "../spinner.js";
|
|
4
4
|
import { BaseButton } from "./base-button.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
|
//#region src/button/icon-button.tsx
|
|
10
10
|
var iconButton = "it8gg33-iconButton";
|
|
11
11
|
var iconButtonSizes = {
|
package/lib/card-hidden-link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./card-hidden-link.wyw-in-js.css";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { cx } from "@linaria/core";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { preventDefault } from "@fibery/react/src/prevent-default";
|
|
6
6
|
//#region src/card-hidden-link.tsx
|
|
7
7
|
var CardHiddenLink = ({ href, coverArea, children }) => {
|
|
@@ -2,10 +2,10 @@ import "./collapsible-section.wyw-in-js.css";
|
|
|
2
2
|
import ArrowDown from "./icons/react/arrow-down.js";
|
|
3
3
|
import ArrowUp from "./icons/react/arrow-up.js";
|
|
4
4
|
/* empty css */
|
|
5
|
+
import { cx } from "@linaria/core";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { useCallback, useEffect, useRef } from "react";
|
|
7
8
|
import { useControllableState } from "@fibery/react/src/use-controllable-state";
|
|
8
|
-
import { cx } from "@linaria/core";
|
|
9
9
|
//#region src/collapsible-section.tsx
|
|
10
10
|
var headerCss = "h1wv3fu2-header";
|
|
11
11
|
var arrowCss = "afwxddc-arrow";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./swatch.wyw-in-js.css";
|
|
2
2
|
import { IconButton } from "../button/icon-button.js";
|
|
3
3
|
/* empty css */
|
|
4
|
+
import { cx } from "@linaria/core";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
|
-
import { cx } from "@linaria/core";
|
|
7
7
|
//#region src/color-picker/swatch.tsx
|
|
8
8
|
var swatchColorVar = "--fibery-swatch-color";
|
|
9
9
|
var swatchHoverColorVar = "--fibery-swatch-hover-color";
|
|
@@ -2,10 +2,10 @@ import "./index.wyw-in-js.css";
|
|
|
2
2
|
import Search from "../icons/react/search.js";
|
|
3
3
|
import ClearInputFilled from "../icons/react/clear-input-filled.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, useState } from "react";
|
|
7
8
|
import { useControllableState } from "@fibery/react/src/use-controllable-state";
|
|
8
|
-
import { cx } from "@linaria/core";
|
|
9
9
|
import { styled } from "@linaria/react";
|
|
10
10
|
import { useComposedRefs } from "@fibery/react/src/use-composed-refs";
|
|
11
11
|
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandRoot, CommandSeparator } from "cmdk";
|
|
@@ -6,10 +6,10 @@ import ArrowRight from "../icons/react/arrow-right.js";
|
|
|
6
6
|
import ArrowBack from "../icons/react/arrow-back.js";
|
|
7
7
|
import { CommandMenuEmpty, CommandMenuGroup, CommandMenuInput, CommandMenuItem, CommandMenuList, CommandMenuRoot, CommandMenuSeparator, commandItemCss } from "./index.js";
|
|
8
8
|
/* empty css */
|
|
9
|
+
import { cx } from "@linaria/core";
|
|
9
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
|
-
import cx from "classnames";
|
|
12
|
-
import { cx as cx$1 } from "@linaria/core";
|
|
12
|
+
import cx$1 from "classnames";
|
|
13
13
|
import { CommandItem } from "cmdk";
|
|
14
14
|
//#region src/command-menu/nested-command-menu.tsx
|
|
15
15
|
var selectedItemClassName = "s1ukl7zd-selectedItem";
|
|
@@ -17,7 +17,7 @@ var arrowWrapperClassName = "a1dts7wr-arrowWrapper";
|
|
|
17
17
|
var NestedCommandMenuItem = forwardRef(function CommandMenuItem({ className, children, ...props }, ref) {
|
|
18
18
|
return /* @__PURE__ */ jsx(CommandItem, {
|
|
19
19
|
ref,
|
|
20
|
-
className: cx
|
|
20
|
+
className: cx(commandItemCss, className),
|
|
21
21
|
...props,
|
|
22
22
|
children
|
|
23
23
|
});
|
|
@@ -148,7 +148,7 @@ function renderLevel({ options, defaultValue, stack, maxDepthLevel, onCmdkItemSe
|
|
|
148
148
|
else onCmdkItemSelect(item);
|
|
149
149
|
},
|
|
150
150
|
asChild: true,
|
|
151
|
-
className: cx("c369um3", isSelected ? selectedItemClassName : void 0),
|
|
151
|
+
className: cx$1("c369um3", isSelected ? selectedItemClassName : void 0),
|
|
152
152
|
children: jsxs("div", {
|
|
153
153
|
className: "cqg3vgn",
|
|
154
154
|
children: [
|
package/lib/comment.js
CHANGED
|
@@ -4,12 +4,11 @@ import { Tooltip } from "./tooltip.js";
|
|
|
4
4
|
import { Skeleton, SkeletonList } from "./skeleton.js";
|
|
5
5
|
import { FibermojiPlaceholder } from "./fibermoji-placeholder.js";
|
|
6
6
|
import { AvatarImage } from "./avatar.js";
|
|
7
|
-
import { Item } from "./item.js";
|
|
8
7
|
import { formatDateFromNow } from "./format-date-from-now.js";
|
|
9
8
|
/* empty css */
|
|
9
|
+
import { cx } from "@linaria/core";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { forwardRef, memo } from "react";
|
|
12
|
-
import { cx } from "@linaria/core";
|
|
13
12
|
//#region src/comment.tsx
|
|
14
13
|
var commentContentStyle = "c4bd082-commentContent";
|
|
15
14
|
var commentStyle = "c99co57-comment";
|
|
@@ -79,16 +78,15 @@ var Comment = memo(forwardRef((props, ref) => {
|
|
|
79
78
|
]
|
|
80
79
|
});
|
|
81
80
|
}));
|
|
81
|
+
var plainCommentLayoutCss = "p1x2fdjy-plainCommentLayout";
|
|
82
82
|
var CommentPlaceholder = () => {
|
|
83
|
-
return /* @__PURE__ */ jsxs(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
leftContainer: jsx("div", {
|
|
83
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
84
|
+
className: cx(commentStyle, plainCommentLayoutCss),
|
|
85
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
87
86
|
className: avatarContainerStyle,
|
|
88
87
|
children: /* @__PURE__ */ jsx(FibermojiPlaceholder, { size: 24 })
|
|
89
|
-
}),
|
|
90
|
-
|
|
91
|
-
itemClassName: infoContainerStyle,
|
|
88
|
+
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: infoContainerStyle,
|
|
92
90
|
children: /* @__PURE__ */ jsx("div", {
|
|
93
91
|
className: authorStyle,
|
|
94
92
|
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
@@ -96,18 +94,16 @@ var CommentPlaceholder = () => {
|
|
|
96
94
|
}), /* @__PURE__ */ jsx("div", {
|
|
97
95
|
className: commentContentStyle,
|
|
98
96
|
children: /* @__PURE__ */ jsx(SkeletonList, { amount: 3 })
|
|
99
|
-
})]
|
|
97
|
+
})] })]
|
|
100
98
|
});
|
|
101
99
|
};
|
|
102
100
|
var ErrorComment = ({ error }) => {
|
|
103
|
-
return /* @__PURE__ */ jsx("div", { children:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
leftContainer: /* @__PURE__ */ jsx("div", {
|
|
101
|
+
return /* @__PURE__ */ jsx("div", { children: jsxs("div", {
|
|
102
|
+
className: cx(commentStyle, plainCommentLayoutCss, "c12f5mp3"),
|
|
103
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
107
104
|
className: avatarContainerStyle,
|
|
108
105
|
children: /* @__PURE__ */ jsx(FibermojiPlaceholder, { size: 24 })
|
|
109
|
-
}),
|
|
110
|
-
children: /* @__PURE__ */ jsx("div", { children: error })
|
|
106
|
+
}), /* @__PURE__ */ jsx("div", { children: error })]
|
|
111
107
|
}) });
|
|
112
108
|
};
|
|
113
109
|
//#endregion
|
|
@@ -12,4 +12,5 @@
|
|
|
12
12
|
.c1gf494l{display:grid;grid-template-columns:auto minmax(150px, 1fr);align-items:center;column-gap:12px;}
|
|
13
13
|
.c14sd9dn{display:grid;position:relative;grid-template-columns:1fr auto;align-items:center;min-height:24px;}.fibery-mobile .c14sd9dn{min-height:36px;}
|
|
14
14
|
.c1fgpr5b{display:flex;}
|
|
15
|
-
.
|
|
15
|
+
.p1x2fdjy-plainCommentLayout{display:grid;grid-template-columns:auto 1fr;align-items:start;}
|
|
16
|
+
.c12f5mp3{background-color:var(--warningBgColor);}
|
|
@@ -6,9 +6,9 @@ import { textStyles } from "../design-system/typography.js";
|
|
|
6
6
|
import { mobileRootSelector } from "../mobile-styles.js";
|
|
7
7
|
import { RadixPortalThemeProvider } from "../theme-provider.js";
|
|
8
8
|
/* empty css */
|
|
9
|
+
import { cx } from "@linaria/core";
|
|
9
10
|
import { jsx } from "react/jsx-runtime";
|
|
10
11
|
import { forwardRef } from "react";
|
|
11
|
-
import { cx } from "@linaria/core";
|
|
12
12
|
import { styled } from "@linaria/react";
|
|
13
13
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
14
14
|
//#region src/context-menu/index.tsx
|
|
@@ -7,9 +7,9 @@ import { DayWithStartEndButtons, copyTime } from "./day-with-start-end-buttons.j
|
|
|
7
7
|
import { getWeekendsForMonth } from "./get-weekends-for-month.js";
|
|
8
8
|
import { DateRangeInput } from "./date-range-input.js";
|
|
9
9
|
/* empty css */
|
|
10
|
+
import { cx } from "@linaria/core";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { forwardRef, useCallback, useMemo, useRef, useState } from "react";
|
|
12
|
-
import { cx } from "@linaria/core";
|
|
13
13
|
import enGB from "date-fns/locale/en-GB";
|
|
14
14
|
import { DayPicker } from "react-day-picker";
|
|
15
15
|
import { formatDuration, intervalToDuration, roundToNearestMinutes } from "date-fns";
|
|
@@ -5,9 +5,9 @@ import { AlwaysVisibleDropdownIndicator } from "../select/components/drop-down-i
|
|
|
5
5
|
import { SingleRowSelect } from "../select/index.js";
|
|
6
6
|
import { AntInputNumber } from "../antd/input-number.js";
|
|
7
7
|
/* empty css */
|
|
8
|
+
import { cx } from "@linaria/core";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { useCallback, useMemo, useState } from "react";
|
|
10
|
-
import { cx } from "@linaria/core";
|
|
11
11
|
//#region src/date-picker/relative-date-picker.tsx
|
|
12
12
|
var unitOptions = [
|
|
13
13
|
{
|
|
@@ -11,9 +11,9 @@ import { FakeDateInputWrapper } from "./fake-date-input.js";
|
|
|
11
11
|
import { RelativeDatePicker } from "./relative-date-picker.js";
|
|
12
12
|
import { SingleDatePickerPopupContent } from "./single-date-picker-popup-content.js";
|
|
13
13
|
/* empty css */
|
|
14
|
+
import { cx } from "@linaria/core";
|
|
14
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
16
|
import { forwardRef, useCallback, useRef, useState } from "react";
|
|
16
|
-
import { cx } from "@linaria/core";
|
|
17
17
|
import { stopPropagation } from "@fibery/react/src/stop-propagation";
|
|
18
18
|
import moment from "moment";
|
|
19
19
|
import "react-day-picker/dist/style.css";
|
|
@@ -7,7 +7,6 @@ declare function defsFromPalette({ key, whiteA, white, blackA, blackish, black,
|
|
|
7
7
|
readonly key: string;
|
|
8
8
|
readonly colors: {
|
|
9
9
|
readonly surfaceElevationS: readonly [string, string];
|
|
10
|
-
readonly surfaceElevationM: readonly [string, string];
|
|
11
10
|
readonly surfaceElevationL: readonly [string, string];
|
|
12
11
|
readonly shadow50: readonly [string, string];
|
|
13
12
|
readonly shadow100: readonly [string, string];
|
|
@@ -59,6 +58,7 @@ declare function defsFromPalette({ key, whiteA, white, blackA, blackish, black,
|
|
|
59
58
|
readonly shadowFloatingPanel: [string, string];
|
|
60
59
|
readonly pageContentBg: [string, string];
|
|
61
60
|
readonly colorBgPopup: readonly [string, string];
|
|
61
|
+
readonly colorBorderPopup: readonly [string, string];
|
|
62
62
|
readonly menuBg: [string, string];
|
|
63
63
|
readonly menuTextColor: readonly [string, string];
|
|
64
64
|
readonly menuItemHoverColor: readonly [string, string];
|
|
@@ -252,6 +252,7 @@ declare function defsFromPalette({ key, whiteA, white, blackA, blackish, black,
|
|
|
252
252
|
readonly appCardHoverColor: readonly [string, string];
|
|
253
253
|
readonly modalBg: Def;
|
|
254
254
|
readonly modalContentBg: [string, string];
|
|
255
|
+
readonly colorBorderModal: readonly [string, string];
|
|
255
256
|
readonly progressIconBg: readonly [string, string];
|
|
256
257
|
readonly progressIconFill: readonly [string, string];
|
|
257
258
|
readonly formBg: [string, string];
|
|
@@ -616,7 +617,6 @@ type ThemeDefs = ReturnType<typeof defsFromPalette>;
|
|
|
616
617
|
declare function sideFromDefs(defs: ThemeDefs, mode: ThemeMode): {
|
|
617
618
|
colors: {
|
|
618
619
|
readonly surfaceElevationS: string;
|
|
619
|
-
readonly surfaceElevationM: string;
|
|
620
620
|
readonly surfaceElevationL: string;
|
|
621
621
|
readonly shadow50: string;
|
|
622
622
|
readonly shadow100: string;
|
|
@@ -668,6 +668,7 @@ declare function sideFromDefs(defs: ThemeDefs, mode: ThemeMode): {
|
|
|
668
668
|
readonly shadowFloatingPanel: string;
|
|
669
669
|
readonly pageContentBg: string;
|
|
670
670
|
readonly colorBgPopup: string;
|
|
671
|
+
readonly colorBorderPopup: string;
|
|
671
672
|
readonly menuBg: string;
|
|
672
673
|
readonly menuTextColor: string;
|
|
673
674
|
readonly menuItemHoverColor: string;
|
|
@@ -861,6 +862,7 @@ declare function sideFromDefs(defs: ThemeDefs, mode: ThemeMode): {
|
|
|
861
862
|
readonly appCardHoverColor: string;
|
|
862
863
|
readonly modalBg: string;
|
|
863
864
|
readonly modalContentBg: string;
|
|
865
|
+
readonly colorBorderModal: string;
|
|
864
866
|
readonly progressIconBg: string;
|
|
865
867
|
readonly progressIconFill: string;
|
|
866
868
|
readonly formBg: string;
|
|
@@ -150,8 +150,7 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
|
|
|
150
150
|
const formHeaderShadow = [glow6(alpha(base[10], alphaCoefficients.shadow.formHeader[0])), glow6(alpha(baseDark[1], alphaCoefficients.shadow.formHeader[1]))];
|
|
151
151
|
const shadows = {
|
|
152
152
|
surfaceElevationS: [elevationS(blackA[3]), elevationS(alpha(baseDark[1], alphaCoefficients.shadow.hairline[1]))],
|
|
153
|
-
|
|
154
|
-
surfaceElevationL: [elevationL(blackA[5]), elevationL(whiteA[5])],
|
|
153
|
+
surfaceElevationL: [elevationL(blackA[3]), elevationL(blackA[5])],
|
|
155
154
|
shadow50: [stroke1(alpha(base[12], alphaCoefficients.shadow.hairline[0])), stroke1(alpha(baseDark[12], alphaCoefficients.shadow.low[1]))],
|
|
156
155
|
shadow100: [elevation100(alpha(base[12], alphaCoefficients.shadow.hairline[0])), elevation100(alpha(base[12], alphaCoefficients.shadow.low[1]))],
|
|
157
156
|
shadow200: [elevation200(alpha(base[12], alphaCoefficients.shadow.hairline[0])), elevation200(alpha(base[12], alphaCoefficients.shadow.low[1]))],
|
|
@@ -298,7 +297,7 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
|
|
|
298
297
|
mainBg: surface.level3,
|
|
299
298
|
panelBg: surface.level0,
|
|
300
299
|
panelBorder: both(stroke1)(alphaPair(base[8], baseDark[8], alphaCoefficients.border.panel)),
|
|
301
|
-
panelShadowFocused: [steps([stroke1(alpha(base[8], alphaCoefficients.border.panelFocused[0])), elevationM(blackA[5])]), stroke1(alpha(baseDark[8], alphaCoefficients.border.panelFocused[1]))],
|
|
300
|
+
panelShadowFocused: [steps([stroke1(alpha(base[8], alphaCoefficients.border.panelFocused[0])), elevationM(blackA[5])]), steps([stroke1(alpha(baseDark[8], alphaCoefficients.border.panelFocused[1])), elevationM(blackA[7])])],
|
|
302
301
|
panelShadowUnfocused: both(stroke1)(alphaPair(base[8], baseDark[8], alphaCoefficients.border.panelUnfocused)),
|
|
303
302
|
panelContentBg: surface.level2_1,
|
|
304
303
|
dbSettingsSidebarBg: surface.level2,
|
|
@@ -320,6 +319,7 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
|
|
|
320
319
|
shadowFloatingPanel: floatingPanel.shadow,
|
|
321
320
|
pageContentBg: surface.level0elevated,
|
|
322
321
|
colorBgPopup: [white, baseDark[3]],
|
|
322
|
+
colorBorderPopup: [alpha(base[8], alphaCoefficients.border.panelFocused[0]), blackA10[1]],
|
|
323
323
|
menuBg: surface.level3,
|
|
324
324
|
menuTextColor: fgMenuEtc,
|
|
325
325
|
menuItemHoverColor: base5_6,
|
|
@@ -513,6 +513,7 @@ function defsFromPalette({ key, whiteA, white, blackA, blackish, black, base, ba
|
|
|
513
513
|
appCardHoverColor: [alpha(base[1], alphaCoefficients.statusFill.appCardHover[0]), baseDark[2]],
|
|
514
514
|
modalBg: alphaPair(base[11], baseDark[2], alphaCoefficients.overlay.modal),
|
|
515
515
|
modalContentBg: bgActionsMenu,
|
|
516
|
+
colorBorderModal: [alpha(base[8], alphaCoefficients.border.panelUnfocused[0]), blackA10[1]],
|
|
516
517
|
progressIconBg: [blackA[7], whiteA[7]],
|
|
517
518
|
progressIconFill: [blackA[11], whiteA[11]],
|
|
518
519
|
formBg: surface.level2,
|