@sia.soul/sia-react-ui 0.1.160 → 0.1.163
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/dist/{Select-DIdEbGwf.d.cts → Select-Dxevc0f6.d.cts} +1 -1
- package/dist/{Select-BCVUoK0I.d.ts → Select-tsENCXQI.d.ts} +1 -1
- package/dist/chart.cjs +10 -10
- package/dist/chart.js +5 -5
- package/dist/{chunk-EMBCJFJM.js → chunk-23FQ5ARA.js} +4 -4
- package/dist/{chunk-H6UTSSZM.js → chunk-2EC653G5.js} +5 -5
- package/dist/{chunk-SRWUDTCS.js → chunk-CUAXJCSH.js} +10 -10
- package/dist/{chunk-KDIJYXKW.js → chunk-DKQ5UCN6.js} +618 -273
- package/dist/{chunk-ZIH5VLPT.js → chunk-G5EJJFUI.js} +2 -2
- package/dist/{chunk-NRLIOMXY.js → chunk-J6BPKBEL.js} +2 -2
- package/dist/{chunk-6SSZVJO4.js → chunk-NHGCGOF2.js} +3 -3
- package/dist/{chunk-YO5OJQEH.js → chunk-OHAESA5R.js} +1 -1
- package/dist/{chunk-PU2V3VB5.js → chunk-PAWEP65C.js} +1 -1
- package/dist/{chunk-REAWVQH2.js → chunk-SX4LLT3H.js} +5 -5
- package/dist/{chunk-XXFYFLZA.js → chunk-V4I32DPL.js} +2 -2
- package/dist/{chunk-P5ZCOIKQ.js → chunk-WR5YBY2A.js} +6 -6
- package/dist/{core--AEiGVOU.d.ts → core-XtqUDbbD.d.ts} +3 -3
- package/dist/{core-DolUEUCo.d.cts → core-r-smfiNN.d.cts} +3 -3
- package/dist/core.cjs +10 -10
- package/dist/core.css +245 -29
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +8 -8
- package/dist/game.cjs +10 -10
- package/dist/game.js +3 -3
- package/dist/index.cjs +666 -320
- package/dist/index.css +245 -29
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +60 -59
- package/dist/markdown-editor.cjs +10 -10
- package/dist/markdown-editor.js +3 -3
- package/dist/rich-text-editor.cjs +10 -10
- package/dist/rich-text-editor.js +7 -7
- package/dist/{select-date-range-CIwE5nFu.d.cts → select-date-range-C9lTBQFX.d.cts} +10 -11
- package/dist/{select-date-range-DYrA87Tl.d.ts → select-date-range-CQCGGkkt.d.ts} +10 -11
- package/dist/select-date-range.cjs +618 -273
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +8 -8
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PAWEP65C.js";
|
|
4
4
|
import {
|
|
5
5
|
useOverlayMotion,
|
|
6
6
|
withTitleTooltip
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUAXJCSH.js";
|
|
8
8
|
|
|
9
9
|
// src/components/Icon.tsx
|
|
10
10
|
import { forwardRef } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFloatingPlaceholder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OHAESA5R.js";
|
|
4
4
|
import {
|
|
5
5
|
useControlSize,
|
|
6
6
|
withTitleTooltip
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUAXJCSH.js";
|
|
8
8
|
|
|
9
9
|
// src/components/TextArea.tsx
|
|
10
10
|
import { forwardRef, useId, useState } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J6BPKBEL.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PAWEP65C.js";
|
|
7
7
|
import {
|
|
8
8
|
initializeDefaultScrollbars,
|
|
9
9
|
withTitleTooltip
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CUAXJCSH.js";
|
|
11
11
|
|
|
12
12
|
// src/components/ChartWhirlingLoading.tsx
|
|
13
13
|
import { useEffect, useState } from "react";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dropdown,
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-23FQ5ARA.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon,
|
|
7
7
|
Modal,
|
|
8
8
|
isAnchorBehindOverlay,
|
|
9
9
|
subscribeOverlayLayers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G5EJJFUI.js";
|
|
11
11
|
import {
|
|
12
12
|
Button
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PAWEP65C.js";
|
|
14
14
|
import {
|
|
15
15
|
useFloatingPlaceholder
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OHAESA5R.js";
|
|
17
17
|
import {
|
|
18
18
|
ControlSizeContext,
|
|
19
19
|
FloatingScrollbarProvider,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useControllableState,
|
|
23
23
|
useOverlayMotion,
|
|
24
24
|
withTitleTooltip
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CUAXJCSH.js";
|
|
26
26
|
|
|
27
27
|
// src/components/usePressFeedback.ts
|
|
28
28
|
import { useEffect, useRef } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFloatingPlaceholder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OHAESA5R.js";
|
|
4
4
|
import {
|
|
5
5
|
withTitleTooltip
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CUAXJCSH.js";
|
|
7
7
|
|
|
8
8
|
// src/components/MarkdownEditor.tsx
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover,
|
|
3
3
|
Tooltip
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SX4LLT3H.js";
|
|
5
5
|
import {
|
|
6
6
|
Dropdown
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-23FQ5ARA.js";
|
|
8
8
|
import {
|
|
9
9
|
TextArea
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J6BPKBEL.js";
|
|
11
11
|
import {
|
|
12
12
|
Icon,
|
|
13
13
|
useOverlayLifecycle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G5EJJFUI.js";
|
|
15
15
|
import {
|
|
16
16
|
Button
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PAWEP65C.js";
|
|
18
18
|
import {
|
|
19
19
|
useControlSize,
|
|
20
20
|
useControllableState,
|
|
21
21
|
useOverlayMotion,
|
|
22
22
|
withTitleTooltip
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CUAXJCSH.js";
|
|
24
24
|
|
|
25
25
|
// src/components/Toolbar.tsx
|
|
26
26
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-B59TIes7.js';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-tsENCXQI.js';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -968,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
|
|
|
968
968
|
onClick?: ButtonProps["onClick"];
|
|
969
969
|
}
|
|
970
970
|
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
971
|
-
/** 下拉菜单组件;面板以 260ms
|
|
971
|
+
/** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
|
|
972
972
|
declare const Dropdown: typeof DropdownRoot & {
|
|
973
973
|
/** 组合主操作按钮与下拉菜单的按钮组件。 */
|
|
974
974
|
Button: typeof DropdownButton;
|
|
@@ -2411,7 +2411,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
|
|
|
2411
2411
|
* @defaultValue "top"
|
|
2412
2412
|
*/
|
|
2413
2413
|
placement?: "top" | "bottom" | "left" | "right";
|
|
2414
|
-
/** 是否打开;传入后由外部控制显示状态。菜单展开 260ms
|
|
2414
|
+
/** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、轻微弹大回收后归位表现柔和弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
|
|
2415
2415
|
open?: boolean;
|
|
2416
2416
|
/**
|
|
2417
2417
|
* 非受控模式下的初始打开状态。
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-xLR4Yt57.cjs';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-Dxevc0f6.cjs';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -968,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
|
|
|
968
968
|
onClick?: ButtonProps["onClick"];
|
|
969
969
|
}
|
|
970
970
|
declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
|
|
971
|
-
/** 下拉菜单组件;面板以 260ms
|
|
971
|
+
/** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
|
|
972
972
|
declare const Dropdown: typeof DropdownRoot & {
|
|
973
973
|
/** 组合主操作按钮与下拉菜单的按钮组件。 */
|
|
974
974
|
Button: typeof DropdownButton;
|
|
@@ -2411,7 +2411,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
|
|
|
2411
2411
|
* @defaultValue "top"
|
|
2412
2412
|
*/
|
|
2413
2413
|
placement?: "top" | "bottom" | "left" | "right";
|
|
2414
|
-
/** 是否打开;传入后由外部控制显示状态。菜单展开 260ms
|
|
2414
|
+
/** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、轻微弹大回收后归位表现柔和弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
|
|
2415
2415
|
open?: boolean;
|
|
2416
2416
|
/**
|
|
2417
2417
|
* 非受控模式下的初始打开状态。
|
package/dist/core.cjs
CHANGED
|
@@ -562,8 +562,8 @@ var import_react3 = require("react");
|
|
|
562
562
|
// src/components/popupFluidMotion.ts
|
|
563
563
|
var popupEnterDuration = 260;
|
|
564
564
|
var popupExitDuration = 140;
|
|
565
|
-
var popupInitialScale = 0.
|
|
566
|
-
var popupTravelOffset =
|
|
565
|
+
var popupInitialScale = 0.93;
|
|
566
|
+
var popupTravelOffset = 4;
|
|
567
567
|
function popupFluidFrames(placement, open = true) {
|
|
568
568
|
const side = placement.split("-")[0];
|
|
569
569
|
const axis = side === "left" || side === "right" ? "X" : "Y";
|
|
@@ -572,8 +572,8 @@ function popupFluidFrames(placement, open = true) {
|
|
|
572
572
|
const visible = { opacity: 1, transform: "none" };
|
|
573
573
|
return open ? [
|
|
574
574
|
{ ...hidden, offset: 0 },
|
|
575
|
-
{ opacity: 1, transform: "scale(1.
|
|
576
|
-
{ opacity: 1, transform: "scale(.
|
|
575
|
+
{ opacity: 1, transform: "scale(1.05, 1.04)", offset: 0.68 },
|
|
576
|
+
{ opacity: 1, transform: "scale(.977, .985)", offset: 0.86 },
|
|
577
577
|
{ ...visible, offset: 1 }
|
|
578
578
|
] : [{ ...visible, offset: 0 }, { ...hidden, offset: 1 }];
|
|
579
579
|
}
|
|
@@ -593,16 +593,16 @@ function motionFrames(kind, placement) {
|
|
|
593
593
|
const outside = `translate${axis}(${sign * 100}%)`;
|
|
594
594
|
return [
|
|
595
595
|
{ transform: outside, offset: 0 },
|
|
596
|
-
{ transform: `translate${axis}(0) scale${axis}(1.
|
|
597
|
-
{ transform: `translate${axis}(0) scale${axis}(.
|
|
596
|
+
{ transform: `translate${axis}(0) scale${axis}(1.03)`, offset: 0.68 },
|
|
597
|
+
{ transform: `translate${axis}(0) scale${axis}(.988)`, offset: 0.86 },
|
|
598
598
|
{ transform: "none", offset: 1 }
|
|
599
599
|
];
|
|
600
600
|
}
|
|
601
601
|
const modal = kind === "modal";
|
|
602
602
|
return [
|
|
603
|
-
{ opacity: 0, transform: `translateY(${modal ?
|
|
604
|
-
{ opacity: 1, transform: modal ? "scale(1.
|
|
605
|
-
{ opacity: 1, transform: modal ? "scale(.
|
|
603
|
+
{ opacity: 0, transform: `translateY(${modal ? 14 : -4}px) scale(${modal ? 0.95 : 0.93})`, offset: 0 },
|
|
604
|
+
{ opacity: 1, transform: modal ? "scale(1.035, 1.02)" : "scale(1.05, 1.04)", offset: 0.68 },
|
|
605
|
+
{ opacity: 1, transform: modal ? "scale(.984, .992)" : "scale(.977, .985)", offset: 0.86 },
|
|
606
606
|
{ opacity: 1, transform: "none", offset: 1 }
|
|
607
607
|
];
|
|
608
608
|
}
|
|
@@ -820,7 +820,7 @@ var PopupPortal = (0, import_react4.forwardRef)(function PopupPortal2({
|
|
|
820
820
|
cancelAnimationFrame(frame);
|
|
821
821
|
observer.disconnect();
|
|
822
822
|
};
|
|
823
|
-
}, [anchorRef, offset, motion.present, placement, viewportPadding]);
|
|
823
|
+
}, [anchorRef, offset, motion.present, placement, viewportPadding, position?.availableHeight, position?.placement]);
|
|
824
824
|
if (!motion.present || typeof document === "undefined") return null;
|
|
825
825
|
return (0, import_react_dom.createPortal)(
|
|
826
826
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/dist/core.css
CHANGED
|
@@ -7370,24 +7370,35 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7370
7370
|
box-shadow: var(--sia-shadow-popup);
|
|
7371
7371
|
scrollbar-width: thin;
|
|
7372
7372
|
}
|
|
7373
|
-
.sia-date-panel--with-time {
|
|
7374
|
-
width: max-content;
|
|
7375
|
-
}
|
|
7376
7373
|
.sia-date-panel--with-presets {
|
|
7377
7374
|
width: max-content;
|
|
7378
7375
|
}
|
|
7379
|
-
.sia-date-panel--with-presets.sia-date-panel--with-time {
|
|
7380
|
-
width: max-content;
|
|
7381
|
-
}
|
|
7382
7376
|
.sia-date-panel--range {
|
|
7383
7377
|
width: max-content;
|
|
7384
7378
|
}
|
|
7385
7379
|
.sia-date-panel--range.sia-date-panel--with-presets {
|
|
7386
7380
|
width: max-content;
|
|
7387
7381
|
}
|
|
7388
|
-
.sia-date-panel--
|
|
7382
|
+
.sia-date-panel--datetime {
|
|
7383
|
+
width: 282px;
|
|
7384
|
+
}
|
|
7385
|
+
.sia-date-panel--datetime.sia-date-panel--with-presets {
|
|
7389
7386
|
width: max-content;
|
|
7390
7387
|
}
|
|
7388
|
+
.sia-date-panel--datetime.sia-date-panel--with-presets {
|
|
7389
|
+
display: grid;
|
|
7390
|
+
grid-template-columns: 145px minmax(0, 1fr);
|
|
7391
|
+
grid-template-rows: auto auto;
|
|
7392
|
+
}
|
|
7393
|
+
.sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__body {
|
|
7394
|
+
display: contents;
|
|
7395
|
+
}
|
|
7396
|
+
.sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__presets {
|
|
7397
|
+
grid-row: 1 / span 2;
|
|
7398
|
+
}
|
|
7399
|
+
.sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__footer {
|
|
7400
|
+
grid-column: 2;
|
|
7401
|
+
}
|
|
7391
7402
|
.sia-date-panel__body {
|
|
7392
7403
|
display: flex;
|
|
7393
7404
|
min-width: 0;
|
|
@@ -7423,21 +7434,6 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7423
7434
|
.sia-date-panel__range-calendars > .sia-date-panel__calendar + .sia-date-panel__calendar {
|
|
7424
7435
|
border-inline-start: 1px solid var(--sia-color-border);
|
|
7425
7436
|
}
|
|
7426
|
-
.sia-date-panel__range-date-time {
|
|
7427
|
-
display: flex;
|
|
7428
|
-
min-width: 0;
|
|
7429
|
-
}
|
|
7430
|
-
.sia-date-panel__range-date-time-group {
|
|
7431
|
-
display: flex;
|
|
7432
|
-
min-width: 0;
|
|
7433
|
-
box-shadow: inset 0 2px transparent;
|
|
7434
|
-
}
|
|
7435
|
-
.sia-date-panel__range-date-time-group.is-active {
|
|
7436
|
-
box-shadow: inset 0 2px var(--sia-color-primary);
|
|
7437
|
-
}
|
|
7438
|
-
.sia-date-panel__range-date-time-group + .sia-date-panel__range-date-time-group {
|
|
7439
|
-
border-inline-start: 1px solid var(--sia-color-border);
|
|
7440
|
-
}
|
|
7441
7437
|
.sia-date-panel__header {
|
|
7442
7438
|
display: grid;
|
|
7443
7439
|
grid-template-columns: 56px 1fr 56px;
|
|
@@ -7463,6 +7459,35 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7463
7459
|
font-size: 12px;
|
|
7464
7460
|
font-weight: 600;
|
|
7465
7461
|
}
|
|
7462
|
+
.sia-date-panel__header > .sia-date-panel__title {
|
|
7463
|
+
display: flex;
|
|
7464
|
+
align-items: center;
|
|
7465
|
+
justify-content: center;
|
|
7466
|
+
gap: 7px;
|
|
7467
|
+
min-width: 0;
|
|
7468
|
+
padding: 5px 9px;
|
|
7469
|
+
color: var(--sia-color-text);
|
|
7470
|
+
font: inherit;
|
|
7471
|
+
font-weight: inherit;
|
|
7472
|
+
text-align: center;
|
|
7473
|
+
white-space: nowrap;
|
|
7474
|
+
cursor: pointer;
|
|
7475
|
+
background: transparent;
|
|
7476
|
+
border: 0;
|
|
7477
|
+
border-radius: 6px;
|
|
7478
|
+
}
|
|
7479
|
+
.sia-date-panel__header > .sia-date-panel__title small {
|
|
7480
|
+
padding: 2px 5px;
|
|
7481
|
+
color: var(--sia-color-primary-text);
|
|
7482
|
+
background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
|
|
7483
|
+
border-radius: 4px;
|
|
7484
|
+
font-size: 12px;
|
|
7485
|
+
font-weight: 600;
|
|
7486
|
+
}
|
|
7487
|
+
.sia-date-panel__header > .sia-date-panel__title:hover {
|
|
7488
|
+
color: var(--sia-color-primary-text);
|
|
7489
|
+
background: var(--sia-color-control-hover);
|
|
7490
|
+
}
|
|
7466
7491
|
.sia-date-panel__nav {
|
|
7467
7492
|
display: flex;
|
|
7468
7493
|
align-items: center;
|
|
@@ -7492,11 +7517,14 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7492
7517
|
}
|
|
7493
7518
|
.sia-date-panel__month {
|
|
7494
7519
|
padding: 12px 14px 14px;
|
|
7520
|
+
touch-action: pan-y;
|
|
7521
|
+
user-select: none;
|
|
7495
7522
|
}
|
|
7496
7523
|
.sia-date-panel__weekdays,
|
|
7497
7524
|
.sia-date-panel__days {
|
|
7498
7525
|
display: grid;
|
|
7499
7526
|
grid-template-columns: repeat(7, 1fr);
|
|
7527
|
+
gap: 4px;
|
|
7500
7528
|
}
|
|
7501
7529
|
.sia-date-panel__weekdays {
|
|
7502
7530
|
margin-bottom: 6px;
|
|
@@ -7517,14 +7545,25 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7517
7545
|
.sia-date-panel__cell.is-in-range {
|
|
7518
7546
|
background: var(--sia-color-primary);
|
|
7519
7547
|
}
|
|
7520
|
-
.sia-date-panel__cell.is-range-
|
|
7521
|
-
|
|
7522
|
-
|
|
7548
|
+
.sia-date-panel__cell.is-in-range:not(.is-range-segment-end)::after {
|
|
7549
|
+
position: absolute;
|
|
7550
|
+
inset-block: 0;
|
|
7551
|
+
inset-inline-end: -4px;
|
|
7552
|
+
width: 4px;
|
|
7553
|
+
content: "";
|
|
7554
|
+
pointer-events: none;
|
|
7555
|
+
background: var(--sia-color-primary);
|
|
7523
7556
|
}
|
|
7524
|
-
.sia-date-panel__cell.is-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7557
|
+
.sia-date-panel__cell.is-range-segment-start {
|
|
7558
|
+
border-start-start-radius: 12px;
|
|
7559
|
+
border-end-start-radius: 12px;
|
|
7560
|
+
}
|
|
7561
|
+
.sia-date-panel__cell.is-range-segment-end {
|
|
7562
|
+
border-start-end-radius: 12px;
|
|
7563
|
+
border-end-end-radius: 12px;
|
|
7564
|
+
}
|
|
7565
|
+
.sia-date-panel__cell.is-in-range button {
|
|
7566
|
+
border-radius: inherit;
|
|
7528
7567
|
}
|
|
7529
7568
|
.sia-date-panel__cell button {
|
|
7530
7569
|
position: relative;
|
|
@@ -7571,6 +7610,11 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7571
7610
|
background: var(--sia-color-control-hover);
|
|
7572
7611
|
border-color: transparent;
|
|
7573
7612
|
}
|
|
7613
|
+
.sia-date-panel__cell.is-in-range button:disabled {
|
|
7614
|
+
color: rgb(255 255 255 / 55%);
|
|
7615
|
+
background: transparent;
|
|
7616
|
+
border-color: transparent;
|
|
7617
|
+
}
|
|
7574
7618
|
.sia-date-panel__time {
|
|
7575
7619
|
display: grid;
|
|
7576
7620
|
grid-template-rows: 52px minmax(0, 1fr);
|
|
@@ -7583,6 +7627,9 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7583
7627
|
place-items: center;
|
|
7584
7628
|
border-bottom: 1px solid var(--sia-color-border);
|
|
7585
7629
|
}
|
|
7630
|
+
.sia-date-panel__time > .sia-date-panel__time-title {
|
|
7631
|
+
font-weight: 600;
|
|
7632
|
+
}
|
|
7586
7633
|
.sia-date-panel__time-columns {
|
|
7587
7634
|
display: grid;
|
|
7588
7635
|
grid-auto-flow: column;
|
|
@@ -7590,10 +7637,118 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7590
7637
|
height: 280px;
|
|
7591
7638
|
overflow: hidden;
|
|
7592
7639
|
}
|
|
7640
|
+
.sia-date-panel__views {
|
|
7641
|
+
position: relative;
|
|
7642
|
+
flex: 0 0 280px;
|
|
7643
|
+
min-width: 0;
|
|
7644
|
+
overflow: hidden;
|
|
7645
|
+
}
|
|
7646
|
+
.sia-date-panel__view {
|
|
7647
|
+
min-width: 0;
|
|
7648
|
+
pointer-events: none;
|
|
7649
|
+
transition: transform 220ms cubic-bezier(.2, .7, .2, 1), visibility 0s 220ms;
|
|
7650
|
+
}
|
|
7651
|
+
.sia-date-panel__view.is-active {
|
|
7652
|
+
pointer-events: auto;
|
|
7653
|
+
visibility: visible;
|
|
7654
|
+
transform: translateX(0);
|
|
7655
|
+
transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
|
|
7656
|
+
}
|
|
7657
|
+
.sia-date-panel__view--date:not(.is-active) {
|
|
7658
|
+
visibility: hidden;
|
|
7659
|
+
transform: translateX(-100%);
|
|
7660
|
+
}
|
|
7661
|
+
.sia-date-panel__view--time {
|
|
7662
|
+
position: absolute;
|
|
7663
|
+
inset: 0;
|
|
7664
|
+
}
|
|
7665
|
+
.sia-date-panel__view--time:not(.is-active) {
|
|
7666
|
+
visibility: hidden;
|
|
7667
|
+
transform: translateX(100%);
|
|
7668
|
+
}
|
|
7669
|
+
.sia-date-panel__view--time .sia-date-panel__time {
|
|
7670
|
+
height: 100%;
|
|
7671
|
+
flex: none;
|
|
7672
|
+
border-inline-start: 0;
|
|
7673
|
+
}
|
|
7674
|
+
.sia-date-panel__view--time .sia-date-panel__time-columns {
|
|
7675
|
+
grid-auto-columns: 1fr;
|
|
7676
|
+
height: auto;
|
|
7677
|
+
min-height: 0;
|
|
7678
|
+
}
|
|
7679
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7680
|
+
.sia-date-panel__view {
|
|
7681
|
+
transition: none;
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7684
|
+
.sia-date-panel--datetime-range {
|
|
7685
|
+
width: max-content;
|
|
7686
|
+
}
|
|
7687
|
+
.sia-date-panel__datetime-endpoints {
|
|
7688
|
+
display: grid;
|
|
7689
|
+
grid-template-columns: repeat(2, 280px);
|
|
7690
|
+
min-width: 0;
|
|
7691
|
+
}
|
|
7692
|
+
.sia-date-panel__endpoint {
|
|
7693
|
+
display: flex;
|
|
7694
|
+
flex-direction: column;
|
|
7695
|
+
min-width: 0;
|
|
7696
|
+
}
|
|
7697
|
+
.sia-date-panel__endpoint + .sia-date-panel__endpoint {
|
|
7698
|
+
border-inline-start: 1px solid var(--sia-color-border);
|
|
7699
|
+
}
|
|
7700
|
+
.sia-date-panel__endpoint > .sia-date-panel__views {
|
|
7701
|
+
flex: none;
|
|
7702
|
+
}
|
|
7703
|
+
.sia-date-panel__endpoint > .sia-date-panel__footer {
|
|
7704
|
+
position: static;
|
|
7705
|
+
}
|
|
7706
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets {
|
|
7707
|
+
display: grid;
|
|
7708
|
+
grid-template-columns: 145px minmax(0, 1fr);
|
|
7709
|
+
}
|
|
7710
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets > .sia-date-panel__body {
|
|
7711
|
+
display: contents;
|
|
7712
|
+
}
|
|
7713
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets .sia-date-panel__presets {
|
|
7714
|
+
grid-row: 1 / span 2;
|
|
7715
|
+
}
|
|
7716
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets > .sia-date-panel__footer {
|
|
7717
|
+
grid-column: 2;
|
|
7718
|
+
}
|
|
7719
|
+
@media (max-width: 600px) {
|
|
7720
|
+
.sia-date-panel--datetime-range,
|
|
7721
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets {
|
|
7722
|
+
width: 282px;
|
|
7723
|
+
}
|
|
7724
|
+
.sia-date-panel__datetime-endpoints {
|
|
7725
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7726
|
+
}
|
|
7727
|
+
.sia-date-panel__endpoint + .sia-date-panel__endpoint {
|
|
7728
|
+
border-inline-start: 0;
|
|
7729
|
+
border-top: 1px solid var(--sia-color-border);
|
|
7730
|
+
}
|
|
7731
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets {
|
|
7732
|
+
display: block;
|
|
7733
|
+
}
|
|
7734
|
+
.sia-date-panel--datetime-range.sia-date-panel--with-presets > .sia-date-panel__body {
|
|
7735
|
+
display: block;
|
|
7736
|
+
}
|
|
7737
|
+
.sia-date-panel--datetime-range .sia-date-panel__presets {
|
|
7738
|
+
border-inline-end: 0;
|
|
7739
|
+
border-bottom: 1px solid var(--sia-color-border);
|
|
7740
|
+
}
|
|
7741
|
+
}
|
|
7593
7742
|
.sia-date-panel__time-columns > div {
|
|
7594
7743
|
height: 100%;
|
|
7595
7744
|
overflow: auto;
|
|
7596
7745
|
padding: 4px;
|
|
7746
|
+
touch-action: none;
|
|
7747
|
+
user-select: none;
|
|
7748
|
+
cursor: grab;
|
|
7749
|
+
}
|
|
7750
|
+
.sia-date-panel__time-columns > div:active {
|
|
7751
|
+
cursor: grabbing;
|
|
7597
7752
|
}
|
|
7598
7753
|
.sia-date-panel__time-columns > div + div {
|
|
7599
7754
|
border-inline-start: 1px solid var(--sia-color-border);
|
|
@@ -7667,6 +7822,67 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
7667
7822
|
.sia-date-panel__range-error {
|
|
7668
7823
|
color: var(--sia-color-error);
|
|
7669
7824
|
}
|
|
7825
|
+
.sia-date-panel__footer button.sia-date-panel__chip {
|
|
7826
|
+
display: inline-flex;
|
|
7827
|
+
align-items: center;
|
|
7828
|
+
gap: 6px;
|
|
7829
|
+
min-width: 0;
|
|
7830
|
+
min-height: 30px;
|
|
7831
|
+
padding: 3px 9px;
|
|
7832
|
+
color: var(--sia-color-text);
|
|
7833
|
+
font-variant-numeric: tabular-nums;
|
|
7834
|
+
white-space: nowrap;
|
|
7835
|
+
cursor: pointer;
|
|
7836
|
+
background: transparent;
|
|
7837
|
+
border: 0;
|
|
7838
|
+
border-radius: 6px;
|
|
7839
|
+
transition: background-color 160ms ease, color 160ms ease;
|
|
7840
|
+
}
|
|
7841
|
+
.sia-date-panel__footer .sia-date-panel__chip .sia-icon {
|
|
7842
|
+
flex-shrink: 0;
|
|
7843
|
+
color: var(--sia-color-text-secondary);
|
|
7844
|
+
}
|
|
7845
|
+
.sia-date-panel__footer button.sia-date-panel__chip:hover {
|
|
7846
|
+
color: var(--sia-color-text);
|
|
7847
|
+
background: var(--sia-color-control-hover);
|
|
7848
|
+
}
|
|
7849
|
+
.sia-date-panel__footer button.sia-date-panel__chip[aria-pressed=true] {
|
|
7850
|
+
color: var(--sia-color-primary-text);
|
|
7851
|
+
background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
|
|
7852
|
+
}
|
|
7853
|
+
.sia-date-panel__footer button.sia-date-panel__chip[aria-pressed=true] .sia-icon {
|
|
7854
|
+
color: var(--sia-color-primary-text);
|
|
7855
|
+
}
|
|
7856
|
+
.sia-date-panel__footer button.sia-date-panel__chip:disabled {
|
|
7857
|
+
cursor: not-allowed;
|
|
7858
|
+
opacity: .45;
|
|
7859
|
+
}
|
|
7860
|
+
.sia-date-panel__footer button.sia-date-panel__chip:disabled:hover {
|
|
7861
|
+
color: var(--sia-color-text);
|
|
7862
|
+
background: transparent;
|
|
7863
|
+
}
|
|
7864
|
+
.sia-date-panel__footer button.sia-date-panel__chip--time.is-clearable {
|
|
7865
|
+
position: relative;
|
|
7866
|
+
padding-inline-end: 24px;
|
|
7867
|
+
}
|
|
7868
|
+
.sia-date-panel__chip-clear {
|
|
7869
|
+
position: absolute;
|
|
7870
|
+
inset-block: 0;
|
|
7871
|
+
inset-inline-end: 3px;
|
|
7872
|
+
display: none;
|
|
7873
|
+
place-items: center;
|
|
7874
|
+
padding: 2px;
|
|
7875
|
+
color: var(--sia-color-text-secondary);
|
|
7876
|
+
cursor: pointer;
|
|
7877
|
+
border-radius: 50%;
|
|
7878
|
+
}
|
|
7879
|
+
.sia-date-panel__chip--time:hover .sia-date-panel__chip-clear,
|
|
7880
|
+
.sia-date-panel__chip-clear:focus-visible {
|
|
7881
|
+
display: grid;
|
|
7882
|
+
}
|
|
7883
|
+
.sia-date-panel__chip-clear:hover {
|
|
7884
|
+
color: var(--sia-color-text);
|
|
7885
|
+
}
|
|
7670
7886
|
.sia-tree-select {
|
|
7671
7887
|
position: relative;
|
|
7672
7888
|
display: inline-block;
|
package/dist/core.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-r-smfiNN.cjs';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-xLR4Yt57.cjs';
|
|
3
|
-
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-
|
|
3
|
+
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-Dxevc0f6.cjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './shared-Bx4B28Wh.cjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core
|
|
1
|
+
export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-XtqUDbbD.js';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-B59TIes7.js';
|
|
3
|
-
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-
|
|
3
|
+
export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-tsENCXQI.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -11,29 +11,29 @@ import {
|
|
|
11
11
|
Typography,
|
|
12
12
|
Upload,
|
|
13
13
|
message
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WR5YBY2A.js";
|
|
15
15
|
import "./chunk-RX242MUO.js";
|
|
16
16
|
import {
|
|
17
17
|
Select
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SX4LLT3H.js";
|
|
19
19
|
import {
|
|
20
20
|
Input,
|
|
21
21
|
Segmented
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-23FQ5ARA.js";
|
|
23
|
+
import "./chunk-J6BPKBEL.js";
|
|
24
24
|
import {
|
|
25
25
|
Icon,
|
|
26
26
|
Modal,
|
|
27
27
|
Skeleton
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-G5EJJFUI.js";
|
|
29
29
|
import {
|
|
30
30
|
Button
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-PAWEP65C.js";
|
|
32
|
+
import "./chunk-OHAESA5R.js";
|
|
33
33
|
import {
|
|
34
34
|
FloatingScrollbarProvider,
|
|
35
35
|
initializeDefaultScrollbars
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CUAXJCSH.js";
|
|
37
37
|
|
|
38
38
|
// src/core.ts
|
|
39
39
|
initializeDefaultScrollbars();
|