@sia.soul/sia-react-ui 0.1.15 → 0.1.18
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/{chunk-MUTJVDM6.js → chunk-I3EF5SF2.js} +1 -1
- package/dist/{chunk-E7F47Z2C.js → chunk-JX53ZBIW.js} +2 -2
- package/dist/{chunk-R3TYVU53.js → chunk-LPRFOSRZ.js} +385 -7
- package/dist/{chunk-ALWHRV4L.js → chunk-SUMXP2SF.js} +10 -5
- package/dist/{chunk-25BU7YTB.js → chunk-UCQZZ2YC.js} +2 -2
- package/dist/core.cjs +442 -61
- package/dist/core.css +38 -6
- package/dist/core.js +3 -3
- package/dist/index.cjs +3274 -2461
- package/dist/index.css +38 -6
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1170 -736
- package/dist/rich-text-editor.cjs +10 -5
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.cjs +400 -24
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -484,27 +484,47 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
484
484
|
position: absolute;
|
|
485
485
|
box-sizing: border-box;
|
|
486
486
|
cursor: default;
|
|
487
|
+
touch-action: none;
|
|
488
|
+
}
|
|
489
|
+
.sia-floating-scrollbar__thumb::before {
|
|
490
|
+
content: none;
|
|
491
|
+
}
|
|
492
|
+
.sia-floating-scrollbar__thumb::after {
|
|
493
|
+
content: "";
|
|
494
|
+
position: absolute;
|
|
495
|
+
right: 0;
|
|
496
|
+
bottom: 0;
|
|
497
|
+
box-sizing: border-box;
|
|
498
|
+
pointer-events: none;
|
|
487
499
|
background: var(--sia-scrollbar-thumb);
|
|
488
500
|
border: 1px solid rgb(255 255 255 / 24%);
|
|
489
501
|
border-radius: 999px;
|
|
490
502
|
box-shadow: 0 1px 1px rgb(0 0 0 / 24%);
|
|
491
|
-
|
|
492
|
-
|
|
503
|
+
transition:
|
|
504
|
+
background-color 120ms ease,
|
|
505
|
+
width 150ms ease,
|
|
506
|
+
height 150ms ease;
|
|
493
507
|
}
|
|
494
|
-
.sia-floating-scrollbar__thumb:hover {
|
|
508
|
+
.sia-floating-scrollbar__thumb:hover::after {
|
|
495
509
|
background: var(--sia-scrollbar-thumb-hover);
|
|
496
510
|
}
|
|
497
511
|
.sia-floating-scrollbar--horizontal .sia-floating-scrollbar__thumb {
|
|
498
512
|
bottom: 0;
|
|
499
513
|
left: 0;
|
|
514
|
+
height: 100%;
|
|
515
|
+
}
|
|
516
|
+
.sia-floating-scrollbar--horizontal .sia-floating-scrollbar__thumb::after {
|
|
517
|
+
width: 100%;
|
|
500
518
|
height: var(--sia-scrollbar-size);
|
|
501
|
-
transition: background-color 120ms ease, height 150ms ease;
|
|
502
519
|
}
|
|
503
520
|
.sia-floating-scrollbar--vertical .sia-floating-scrollbar__thumb {
|
|
504
521
|
top: 0;
|
|
505
522
|
right: 0;
|
|
523
|
+
width: 100%;
|
|
524
|
+
}
|
|
525
|
+
.sia-floating-scrollbar--vertical .sia-floating-scrollbar__thumb::after {
|
|
506
526
|
width: var(--sia-scrollbar-size);
|
|
507
|
-
|
|
527
|
+
height: 100%;
|
|
508
528
|
}
|
|
509
529
|
.sia-button,
|
|
510
530
|
.sia-input,
|
|
@@ -1788,7 +1808,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1788
1808
|
display: flex;
|
|
1789
1809
|
flex-direction: column;
|
|
1790
1810
|
width: max-content;
|
|
1791
|
-
min-width: 90px;
|
|
1811
|
+
min-width: min(max(90px, var(--sia-popup-anchor-width, 0px)), calc(100vw - 16px));
|
|
1792
1812
|
padding: 4px;
|
|
1793
1813
|
background: var(--sia-color-surface);
|
|
1794
1814
|
border: 1px solid var(--sia-color-border);
|
|
@@ -4868,6 +4888,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4868
4888
|
transition: none;
|
|
4869
4889
|
}
|
|
4870
4890
|
}
|
|
4891
|
+
.sia-table-settings__loading {
|
|
4892
|
+
min-height: 160px;
|
|
4893
|
+
}
|
|
4871
4894
|
|
|
4872
4895
|
/* src/components-extra.css */
|
|
4873
4896
|
.sia-flex {
|
|
@@ -7130,6 +7153,15 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
7130
7153
|
display: inline-flex;
|
|
7131
7154
|
flex: 0 0 auto;
|
|
7132
7155
|
}
|
|
7156
|
+
.sia-menu__icon {
|
|
7157
|
+
justify-content: center;
|
|
7158
|
+
align-items: center;
|
|
7159
|
+
width: var(--sia-menu-icon-size, 16px);
|
|
7160
|
+
flex-basis: var(--sia-menu-icon-size, 16px);
|
|
7161
|
+
}
|
|
7162
|
+
.sia-menu__icon > * {
|
|
7163
|
+
max-width: 100%;
|
|
7164
|
+
}
|
|
7133
7165
|
.sia-menu__extra {
|
|
7134
7166
|
color: var(--sia-color-text-secondary);
|
|
7135
7167
|
font-size: 12px;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps, T as TagStatus, b as ButtonSize, c as BadgeProps } from './core-AeKYVPDZ.cjs';
|
|
4
4
|
export { d as Badge, e as BadgeRibbonProps, f as BadgeStatus, g as Breadcrumb, h as BreadcrumbItem, i as BreadcrumbProps, j as Button, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, U as IconVariant, V as Image, W as ImagePreview, X as ImagePreviewConfig, Y as ImagePreviewProps, Z as ImageProps, _ as Input, $ as InputProps, a0 as Menu, a1 as MenuClickInfo, a2 as MenuItem, a3 as MenuMode, a4 as MenuProps, a5 as MenuTheme, a6 as MessageConfig, a7 as MessageHandle, a8 as MessageKey, a9 as MessageType, aa as Modal, ab as ModalActionResult, ac as ModalOpenConfig, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-AeKYVPDZ.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-DAYZvZVu.cjs';
|
|
@@ -1278,8 +1278,10 @@ declare const ThemeSwitch: react.ForwardRefExoticComponent<ThemeSwitchProps & re
|
|
|
1278
1278
|
|
|
1279
1279
|
interface FloatingScrollbarProviderProps {
|
|
1280
1280
|
disabled?: boolean;
|
|
1281
|
+
/** 仅接管指定容器;不传时接管页面中的滚动容器。 */
|
|
1282
|
+
targetRef?: RefObject<HTMLElement | null>;
|
|
1281
1283
|
}
|
|
1282
|
-
declare function FloatingScrollbarProvider({ disabled }: FloatingScrollbarProviderProps): null;
|
|
1284
|
+
declare function FloatingScrollbarProvider({ disabled, targetRef }: FloatingScrollbarProviderProps): null;
|
|
1283
1285
|
|
|
1284
1286
|
type SiaThemeMode = "light" | "dark";
|
|
1285
1287
|
declare const SIA_THEME: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
3
|
import { O as OverlayContainer, a as OverlayApiHandle, B as ButtonProps, T as TagStatus, b as ButtonSize, c as BadgeProps } from './core-DcSXqSRs.js';
|
|
4
4
|
export { d as Badge, e as BadgeRibbonProps, f as BadgeStatus, g as Breadcrumb, h as BreadcrumbItem, i as BreadcrumbProps, j as Button, k as ButtonVariant, C as Calendar, l as CalendarProps, m as Card, n as CardAccent, o as CardProps, p as Carousel, q as CarouselProps, r as CarouselRef, s as Collapse, t as CollapseItem, u as CollapseKey, v as CollapseProps, D as Dropdown, w as DropdownButtonProps, x as DropdownMenuProps, y as DropdownOpenSource, z as DropdownPlacement, A as DropdownProps, E as DropdownTrigger, F as FILLED_ICON_NAMES, G as FilledIconName, H as FloatButton, I as FloatButtonBackTopProps, J as FloatButtonGroupProps, K as FloatButtonProps, L as FloatButtonShape, M as FloatingPlacement, N as FloatingTrigger, P as ICON_NAMES, Q as Icon, R as IconName, S as IconProps, U as IconVariant, V as Image, W as ImagePreview, X as ImagePreviewConfig, Y as ImagePreviewProps, Z as ImageProps, _ as Input, $ as InputProps, a0 as Menu, a1 as MenuClickInfo, a2 as MenuItem, a3 as MenuMode, a4 as MenuProps, a5 as MenuTheme, a6 as MessageConfig, a7 as MessageHandle, a8 as MessageKey, a9 as MessageType, aa as Modal, ab as ModalActionResult, ac as ModalOpenConfig, ad as ModalProps, ae as ModalType, af as NotificationConfig, ag as NotificationPlacement, ah as NotificationType, ai as Popconfirm, aj as PopconfirmProps, ak as Popover, al as PopoverProps, am as Progress, an as ProgressProps, ao as ProgressStatus, ap as Rate, aq as RateProps, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, av as Spin, aw as SpinProps, ax as StepItem, ay as StepStatus, az as Steps, aA as StepsProps, aB as TabItem, aC as Tabs, aD as TabsContextMenuClickInfo, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, aK as TagVariant, aL as Timeline, aM as TimelineItem, aN as TimelineProps, aO as Tooltip, aP as TooltipProps, aQ as Tour, aR as TourProps, aS as TourStep, aT as Tree, aU as TreeDropPosition, aV as TreeKey, aW as TreeNode, aX as TreeProps, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, b8 as Watermark, b9 as WatermarkFont, ba as WatermarkProps, bb as message, bc as notification } from './core-DcSXqSRs.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-DAYZvZVu.js';
|
|
@@ -1278,8 +1278,10 @@ declare const ThemeSwitch: react.ForwardRefExoticComponent<ThemeSwitchProps & re
|
|
|
1278
1278
|
|
|
1279
1279
|
interface FloatingScrollbarProviderProps {
|
|
1280
1280
|
disabled?: boolean;
|
|
1281
|
+
/** 仅接管指定容器;不传时接管页面中的滚动容器。 */
|
|
1282
|
+
targetRef?: RefObject<HTMLElement | null>;
|
|
1281
1283
|
}
|
|
1282
|
-
declare function FloatingScrollbarProvider({ disabled }: FloatingScrollbarProviderProps): null;
|
|
1284
|
+
declare function FloatingScrollbarProvider({ disabled, targetRef }: FloatingScrollbarProviderProps): null;
|
|
1283
1285
|
|
|
1284
1286
|
type SiaThemeMode = "light" | "dark";
|
|
1285
1287
|
declare const SIA_THEME: {
|