@woodger/antd 0.1.1 → 0.1.2
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/affix/Affix.svelte +5 -2
- package/dist/alert/Alert.svelte +5 -2
- package/dist/anchor/Anchor.svelte +5 -2
- package/dist/auto-complete/AutoComplete.svelte +3 -2
- package/dist/avatar/Avatar.svelte +3 -2
- package/dist/avatar/AvatarGroup.svelte +3 -1
- package/dist/avatar/avatar.component.d.ts +7 -0
- package/dist/avatar/avatar.component.js +4 -0
- package/dist/badge/Badge.svelte +3 -2
- package/dist/badge/BadgeRibbon.svelte +3 -2
- package/dist/badge/badge.component.d.ts +7 -0
- package/dist/badge/badge.component.js +4 -0
- package/dist/border-beam/BorderBeam.svelte +5 -3
- package/dist/breadcrumb/Breadcrumb.svelte +5 -2
- package/dist/button/Button.svelte +7 -4
- package/dist/calendar/CalendarCore.svelte +3 -1
- package/dist/calendar/calendar.component.d.ts +7 -0
- package/dist/calendar/calendar.component.js +4 -0
- package/dist/card/Card.svelte +6 -3
- package/dist/card/card.component.d.ts +9 -0
- package/dist/card/card.component.js +5 -0
- package/dist/carousel/Carousel.svelte +6 -3
- package/dist/cascader/CascaderCore.svelte +8 -2
- package/dist/cascader/cascader.component.d.ts +11 -0
- package/dist/cascader/cascader.component.js +9 -0
- package/dist/cascader/cascader.types.d.ts +8 -0
- package/dist/checkbox/Checkbox.svelte +9 -4
- package/dist/checkbox/CheckboxGroup.svelte +6 -3
- package/dist/checkbox/checkbox-group.types.d.ts +2 -0
- package/dist/checkbox/checkbox.component.d.ts +7 -0
- package/dist/checkbox/checkbox.component.js +4 -0
- package/dist/collapse/Collapse.svelte +5 -2
- package/dist/collapse/collapse.engine.d.ts +1 -1
- package/dist/color-picker/ColorPicker.svelte +6 -3
- package/dist/color-picker/ColorPickerPresets.svelte +5 -3
- package/dist/component-refs.types.d.ts +45 -0
- package/dist/component-refs.types.js +1 -0
- package/dist/component.types.d.ts +13 -0
- package/dist/component.types.js +1 -0
- package/dist/config-provider/ConfigProvider.svelte +18 -6
- package/dist/config-provider/ConfigProvider.svelte.d.ts +2 -0
- package/dist/config-provider/config-context.d.ts +7 -0
- package/dist/config-provider/config-context.js +1 -0
- package/dist/config-provider/config-provider.component.d.ts +6 -0
- package/dist/config-provider/config-provider.component.js +10 -1
- package/dist/descriptions/Descriptions.svelte +6 -4
- package/dist/dialog/dialog-container.model.svelte.d.ts +1 -1
- package/dist/dialog/dialog-container.model.svelte.js +14 -2
- package/dist/dialog/dialog-focus.dom.d.ts +3 -1
- package/dist/dialog/dialog-focus.dom.js +8 -7
- package/dist/divider/Divider.svelte +5 -2
- package/dist/drawer/Drawer.svelte +3 -2
- package/dist/dropdown/Dropdown.svelte +9 -5
- package/dist/empty/Empty.svelte +5 -2
- package/dist/flex/Flex.svelte +5 -2
- package/dist/float-button/FloatButton.svelte +6 -3
- package/dist/float-button/FloatButtonGroup.svelte +6 -3
- package/dist/float-button/float-button.component.d.ts +9 -0
- package/dist/float-button/float-button.component.js +5 -0
- package/dist/form/Form.svelte +237 -42
- package/dist/form/Form.svelte.d.ts +4 -4
- package/dist/form/FormErrorList.svelte +19 -69
- package/dist/form/FormItem.svelte +271 -62
- package/dist/form/FormItem.svelte.d.ts +31 -5
- package/dist/form/FormItemControlBinding.svelte +68 -0
- package/dist/form/FormItemControlBinding.svelte.d.ts +10 -0
- package/dist/form/FormItemMessages.svelte +142 -0
- package/dist/form/FormItemMessages.svelte.d.ts +23 -0
- package/dist/form/FormList.svelte +49 -4
- package/dist/form/FormMessageMotion.svelte +133 -0
- package/dist/form/FormMessageMotion.svelte.d.ts +18 -0
- package/dist/form/FormProvider.svelte +9 -0
- package/dist/form/FormProvider.svelte.d.ts +4 -0
- package/dist/form/form-context.d.ts +24 -6
- package/dist/form/form-context.js +18 -0
- package/dist/form/form-control.engine.d.ts +2 -0
- package/dist/form/form-control.engine.js +13 -0
- package/dist/form/form-error-list-state.svelte.d.ts +21 -0
- package/dist/form/form-error-list-state.svelte.js +77 -0
- package/dist/form/form-error-list.engine.js +3 -1
- package/dist/form/form-error-list.types.d.ts +3 -2
- package/dist/form/form-field.dom.js +27 -4
- package/dist/form/form-internal.d.ts +32 -8
- package/dist/form/form-internal.js +2 -0
- package/dist/form/form-item-status.d.ts +2 -1
- package/dist/form/form-item-status.js +3 -1
- package/dist/form/form-list-context.d.ts +4 -0
- package/dist/form/form-list-context.js +3 -0
- package/dist/form/form-list.types.d.ts +5 -2
- package/dist/form/form-no-style.engine.d.ts +6 -5
- package/dist/form/form-provider-context.d.ts +13 -0
- package/dist/form/form-provider-context.js +74 -0
- package/dist/form/form-ref.engine.d.ts +5 -0
- package/dist/form/form-ref.engine.js +43 -0
- package/dist/form/form-store.engine.d.ts +3 -1
- package/dist/form/form-store.engine.js +25 -3
- package/dist/form/form-update.engine.d.ts +29 -0
- package/dist/form/form-update.engine.js +40 -0
- package/dist/form/form-watch.svelte.d.ts +25 -0
- package/dist/form/form-watch.svelte.js +56 -0
- package/dist/form/form.component.d.ts +28 -0
- package/dist/form/form.component.js +25 -0
- package/dist/form/form.model.svelte.d.ts +25 -3
- package/dist/form/form.model.svelte.js +728 -179
- package/dist/form/form.types.d.ts +117 -11
- package/dist/form/validation-message.engine.d.ts +17 -3
- package/dist/form/validation-message.engine.js +39 -2
- package/dist/form/validation-messages.types.d.ts +11 -0
- package/dist/form/validation-nested.engine.d.ts +5 -4
- package/dist/form/validation.engine.d.ts +8 -6
- package/dist/form/validation.engine.js +2 -2
- package/dist/grid/Col.svelte +4 -6
- package/dist/grid/Row.svelte +7 -4
- package/dist/grid/grid.svelte.d.ts +7 -0
- package/dist/grid/grid.svelte.js +30 -0
- package/dist/image/Image.svelte +147 -58
- package/dist/image/ImagePreview.svelte +280 -137
- package/dist/image/ImagePreview.svelte.d.ts +10 -2
- package/dist/image/ImagePreviewGroup.svelte +40 -7
- package/dist/image/ImagePreviewIcons.svelte +18 -0
- package/dist/image/ImagePreviewIcons.svelte.d.ts +29 -0
- package/dist/image/ImageProgress.svelte +84 -0
- package/dist/image/ImageProgress.svelte.d.ts +13 -0
- package/dist/image/image-group-context.d.ts +2 -1
- package/dist/image/image-prefix.engine.js +4 -0
- package/dist/image/image-preview-group.types.d.ts +8 -8
- package/dist/image/image-preview-motion.dom.d.ts +16 -0
- package/dist/image/image-preview-motion.dom.js +72 -0
- package/dist/image/image-semantic.engine.d.ts +39 -0
- package/dist/image/image-semantic.engine.js +61 -0
- package/dist/image/image.component.d.ts +7 -0
- package/dist/image/image.component.js +4 -0
- package/dist/image/image.types.d.ts +84 -11
- package/dist/index.d.ts +51 -41
- package/dist/index.js +24 -19
- package/dist/input/Input.svelte +6 -3
- package/dist/input/InputOTP.svelte +5 -2
- package/dist/input/InputPassword.svelte +5 -1
- package/dist/input/InputSearch.svelte +6 -3
- package/dist/input/TextArea.svelte +6 -3
- package/dist/input/input.component.d.ts +13 -0
- package/dist/input/input.component.js +12 -0
- package/dist/input-number/InputNumberControl.svelte +5 -2
- package/dist/layout/Layout.svelte +5 -2
- package/dist/layout/LayoutPart.svelte +7 -2
- package/dist/layout/LayoutSider.svelte +5 -2
- package/dist/layout/layout.component.d.ts +13 -0
- package/dist/layout/layout.component.js +7 -0
- package/dist/listy/Listy.svelte +3 -2
- package/dist/masonry/Masonry.svelte +5 -3
- package/dist/mentions/Mentions.svelte +3 -2
- package/dist/mentions/mentions.component.d.ts +7 -0
- package/dist/mentions/mentions.component.js +4 -0
- package/dist/menu/Menu.svelte +7 -2
- package/dist/message/MessageHolder.svelte +3 -1
- package/dist/modal/Modal.svelte +112 -14
- package/dist/modal/ModalFooterScope.svelte +15 -0
- package/dist/modal/ModalFooterScope.svelte.d.ts +7 -0
- package/dist/modal/modal-layout.engine.d.ts +1 -1
- package/dist/modal/modal-layout.engine.js +20 -3
- package/dist/modal/modal-motion.dom.d.ts +1 -0
- package/dist/modal/modal-motion.dom.js +21 -5
- package/dist/modal/modal-named-motion.dom.d.ts +1 -1
- package/dist/modal/modal-named-motion.dom.js +1 -2
- package/dist/modal/modal-semantic.engine.d.ts +1 -1
- package/dist/modal/modal.types.d.ts +3 -1
- package/dist/notification/NotificationHolder.svelte +3 -1
- package/dist/pagination/Pagination.svelte +3 -2
- package/dist/picker/DatePicker.svelte.d.ts +1 -1
- package/dist/picker/RangePickerCore.svelte +3 -1
- package/dist/picker/SinglePicker.svelte +3 -1
- package/dist/picker/picker-popup.model.svelte.d.ts +3 -1
- package/dist/picker/time-picker.component.d.ts +4 -1
- package/dist/picker/time-picker.component.js +3 -1
- package/dist/popconfirm/Popconfirm.svelte +6 -1
- package/dist/popconfirm/popconfirm.types.d.ts +2 -0
- package/dist/popover/Popover.svelte +31 -13
- package/dist/popover/popover.types.d.ts +2 -0
- package/dist/popup/popup-container.model.svelte.d.ts +4 -1
- package/dist/popup/popup-container.model.svelte.js +7 -2
- package/dist/popup/popup-geometry.dom.d.ts +8 -0
- package/dist/popup/popup-geometry.dom.js +29 -0
- package/dist/popup/popup.dom.d.ts +3 -0
- package/dist/popup/popup.dom.js +3 -1
- package/dist/progress/Progress.svelte +5 -2
- package/dist/progress/progress-circle.engine.d.ts +1 -1
- package/dist/qr-code/QRCode.svelte +5 -3
- package/dist/radio/Radio.svelte +9 -4
- package/dist/radio/RadioGroup.svelte +6 -3
- package/dist/radio/radio.component.d.ts +9 -0
- package/dist/radio/radio.component.js +5 -0
- package/dist/rate/Rate.svelte +3 -2
- package/dist/result/Result.svelte +5 -2
- package/dist/segmented/Segmented.svelte +5 -2
- package/dist/select/Select.svelte +3 -2
- package/dist/select/select-style.engine.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +5 -2
- package/dist/skeleton/SkeletonElement.svelte +5 -2
- package/dist/slider/SliderRange.svelte +9 -41
- package/dist/slider/SliderSingle.svelte +35 -30
- package/dist/slider/SliderTooltip.svelte +224 -0
- package/dist/slider/SliderTooltip.svelte.d.ts +17 -0
- package/dist/space/Space.svelte +6 -3
- package/dist/space/SpaceAddon.svelte +6 -3
- package/dist/space/SpaceCompact.svelte +5 -2
- package/dist/space/space.component.d.ts +9 -0
- package/dist/space/space.component.js +5 -0
- package/dist/spin/Spin.svelte +5 -2
- package/dist/splitter/Splitter.svelte +6 -3
- package/dist/splitter/SplitterArrow.svelte.d.ts +1 -1
- package/dist/statistic/Statistic.svelte +5 -3
- package/dist/statistic/statistic.component.d.ts +7 -0
- package/dist/statistic/statistic.component.js +4 -0
- package/dist/steps/Steps.svelte +5 -2
- package/dist/styles.css +1 -0
- package/dist/styles.css.d.ts +1 -0
- package/dist/switch/Switch.svelte +5 -2
- package/dist/table/Table.svelte +3 -2
- package/dist/table/table-cell.engine.d.ts +6 -6
- package/dist/table/table.types.d.ts +2 -0
- package/dist/tabs/Tabs.svelte +6 -4
- package/dist/tag/CheckableTag.svelte +3 -1
- package/dist/tag/CheckableTagGroup.svelte +3 -1
- package/dist/tag/Tag.svelte +3 -1
- package/dist/tag/tag.component.d.ts +10 -0
- package/dist/tag/tag.component.js +5 -0
- package/dist/theme/theme-context.svelte.d.ts +2 -0
- package/dist/theme/theme-context.svelte.js +6 -1
- package/dist/timeline/Timeline.svelte +5 -2
- package/dist/tooltip/Tooltip.svelte +16 -7
- package/dist/tooltip/TooltipPopup.svelte +22 -6
- package/dist/tooltip/tooltip-popup.types.d.ts +6 -0
- package/dist/tooltip/tooltip.types.d.ts +16 -0
- package/dist/tour/Tour.svelte +3 -1
- package/dist/transfer/Transfer.svelte +3 -1
- package/dist/transfer/TransferCheckbox.svelte +3 -1
- package/dist/transfer/TransferPagination.svelte +3 -1
- package/dist/tree/Tree.svelte +3 -2
- package/dist/tree/tree.component.d.ts +10 -0
- package/dist/tree/tree.component.js +5 -0
- package/dist/tree-select/TreeSelectControl.svelte +5 -4
- package/dist/types.d.ts +2 -2
- package/dist/typography/TypographyEditable.svelte +5 -2
- package/dist/typography/TypographyElement.svelte +6 -3
- package/dist/typography/TypographyTooltip.svelte +19 -8
- package/dist/typography/typography.component.d.ts +13 -0
- package/dist/typography/typography.component.js +7 -0
- package/dist/upload/Upload.svelte +44 -4
- package/dist/upload/Upload.svelte.d.ts +1 -1
- package/dist/upload/UploadDragger.svelte +3 -2
- package/dist/upload/UploadDragger.svelte.d.ts +4 -4
- package/dist/upload/UploadList.svelte.d.ts +1 -1
- package/dist/upload/UploadListItem.svelte +52 -11
- package/dist/upload/upload.component.d.ts +9 -0
- package/dist/upload/upload.component.js +5 -0
- package/dist/upload/upload.engine.d.ts +8 -2
- package/dist/upload/upload.engine.js +80 -4
- package/dist/upload/upload.types.d.ts +2 -1
- package/dist/vendor/compute-scroll-into-view.d.ts +3 -1
- package/dist/vendor/compute-scroll-into-view.js +3 -2
- package/dist/vendor/dropdown-motion.css +105 -0
- package/dist/vendor/image-prefix.css.js +3 -3
- package/dist/vendor/image.css +16 -2
- package/dist/version.d.ts +2 -0
- package/dist/version.js +3 -0
- package/package.json +15 -4
package/dist/rate/Rate.svelte
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { onMount, untrack } from 'svelte';
|
|
5
5
|
import { useConfig } from '../config-provider/config-context';
|
|
6
6
|
import { useComponentTheme } from '../theme/theme-component.svelte';
|
|
7
|
-
import { useDesignTokenContext } from '../theme/theme-context.svelte';
|
|
7
|
+
import { useDesignTokenContext, useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
8
8
|
import { useForm, useFormField } from '../form/form-context';
|
|
9
9
|
import { getRateKeyValue, getRatePointerValue, getRateStarClass } from './rate.engine';
|
|
10
10
|
import { getRatePrefixCss } from './rate-prefix.engine';
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
}: RateProps = $props();
|
|
42
42
|
const config = useConfig();
|
|
43
43
|
let componentPrefix = $derived(config.getPrefixCls('rate', customizePrefixCls));
|
|
44
|
-
|
|
44
|
+
const runtimeStyles = useRuntimeStyles();
|
|
45
|
+
let prefixCss = $derived(runtimeStyles && getRatePrefixCss(componentPrefix));
|
|
45
46
|
const componentTheme = useComponentTheme('Rate');
|
|
46
47
|
const tokens = useDesignTokenContext();
|
|
47
48
|
let transformFallback = $derived.by(() => {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { useComponentTheme } from '../theme/theme-component.svelte';
|
|
5
5
|
import { connectFeedbackFocus } from '../feedback.dom';
|
|
6
6
|
import { getResultPrefixCss } from './result-prefix.engine';
|
|
7
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
7
8
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
8
9
|
import RenderContent from '../RenderContent.svelte';
|
|
9
10
|
import Icon from '../icon/Icon.svelte';
|
|
@@ -45,7 +46,9 @@
|
|
|
45
46
|
} as const;
|
|
46
47
|
let host = $state<HTMLDivElement>();
|
|
47
48
|
let prefix = $derived(config.getPrefixCls('result', prefixCls));
|
|
48
|
-
|
|
49
|
+
const runtimeStyles = useRuntimeStyles();
|
|
50
|
+
const hasCustomPrefix = $derived(prefix !== 'ant-result');
|
|
51
|
+
let prefixCss = $derived(runtimeStyles && getResultPrefixCss(prefix));
|
|
49
52
|
let kind = $derived(
|
|
50
53
|
String(status) as 'success' | 'error' | 'info' | 'warning' | '403' | '404' | '500'
|
|
51
54
|
);
|
|
@@ -149,7 +152,7 @@
|
|
|
149
152
|
|
|
150
153
|
{#if prefixCss}<ThemeScopeStyle css={prefixCss} scope={`result-prefix:${prefix}`} />{/if}<div
|
|
151
154
|
{...attributes} bind:this={host} {id} data-ant-result
|
|
152
|
-
data-ant-result-prefix={
|
|
155
|
+
data-ant-result-prefix={hasCustomPrefix ? prefix : undefined}
|
|
153
156
|
role={role ?? (ariaLabel || ariaLabelledby ? 'group' : undefined)}
|
|
154
157
|
aria-label={ariaLabel} aria-labelledby={ariaLabelledby} aria-describedby={ariaDescribedby}
|
|
155
158
|
dir={config.direction} class={[
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { connectFeedbackFocus } from '../feedback.dom';
|
|
7
7
|
import { animateSegmentedThumb } from './segmented.dom';
|
|
8
8
|
import { getSegmentedPrefixCss } from './segmented-prefix.engine';
|
|
9
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
9
10
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
10
11
|
import Tooltip from '../tooltip/Tooltip.svelte';
|
|
11
12
|
import type {
|
|
@@ -46,7 +47,9 @@
|
|
|
46
47
|
let isVertical = $derived(orientation ? orientation === 'vertical' : vertical);
|
|
47
48
|
let mergedSize = $derived(size ?? config.componentSize);
|
|
48
49
|
let prefix = $derived(config.getPrefixCls('segmented', prefixCls));
|
|
49
|
-
|
|
50
|
+
const runtimeStyles = useRuntimeStyles();
|
|
51
|
+
const hasCustomPrefix = $derived(prefix !== 'ant-segmented');
|
|
52
|
+
let prefixCss = $derived(runtimeStyles && getSegmentedPrefixCss(prefix));
|
|
50
53
|
let info = $derived(
|
|
51
54
|
{
|
|
52
55
|
props: {
|
|
@@ -248,7 +251,7 @@
|
|
|
248
251
|
{/snippet}
|
|
249
252
|
|
|
250
253
|
{#if prefixCss}<ThemeScopeStyle css={prefixCss} scope={`segmented-prefix:${prefix}`} />{/if}<div {...rest} bind:this={nativeElement} data-ant-segmented
|
|
251
|
-
data-ant-segmented-prefix={
|
|
254
|
+
data-ant-segmented-prefix={hasCustomPrefix ? prefix : undefined} role="radiogroup" aria-label={rest['aria-label']
|
|
252
255
|
?? (rest['aria-labelledby']
|
|
253
256
|
? undefined
|
|
254
257
|
: 'segmented control')}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import { resolveSelectPopupRootStyle, resolveSelectStyleFrame } from './select-style.engine';
|
|
15
15
|
import { createSelectComponentInputStyle, type SelectComponentInputLifetime } from './select-component-input-style.dom';
|
|
16
16
|
import { useComponentTheme } from '../theme/theme-component.svelte';
|
|
17
|
-
import { useToken } from '../theme/theme-context.svelte';
|
|
17
|
+
import { useToken, useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
18
18
|
import { useZIndex } from '../popup/z-index-context.svelte';
|
|
19
19
|
import SelectOptionList from './SelectOptionList.svelte';
|
|
20
20
|
import { createSelectOptionList } from './select-option-list.model.svelte';
|
|
@@ -175,7 +175,8 @@
|
|
|
175
175
|
let prefix = $derived(config.getPrefixCls('select', prefixCls));
|
|
176
176
|
let rootPrefix = $derived(config.getPrefixCls());
|
|
177
177
|
let privateNamespace = $derived(rootPrefix.replaceAll('.', ''));
|
|
178
|
-
|
|
178
|
+
const runtimeStyles = useRuntimeStyles();
|
|
179
|
+
let prefixCss = $derived(runtimeStyles && getSelectPrefixCss(prefix, rootPrefix));
|
|
179
180
|
const variantContext = useVariant('select', () => ({ variant }));
|
|
180
181
|
const componentTheme = useComponentTheme('Select');
|
|
181
182
|
const layer = useZIndex('popup');
|
|
@@ -14,7 +14,7 @@ export interface SelectStyleFrame {
|
|
|
14
14
|
readonly text: string | undefined;
|
|
15
15
|
}
|
|
16
16
|
/** Puts an inherited layer at its own undefined in zIndex objects. */
|
|
17
|
-
export declare function resolveSelectPopupRootStyle(style: SelectStyle | undefined, inheritedZIndex: number | undefined): string | Readonly<Partial<Record<("float" | "r" | "overflow" | "page" | "clear" | "top" | "bottom" | "filter" | "fill" | "content" | "translate" | "color" | "height" | "width" | "borderRadius" | "padding" | "margin" | "boxShadow" | "fontFamily" | "fontSize" | "lineHeight" | "fontWeight" | "paddingInline" | "paddingBlock" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "all" | "anchorName" | "anchorScope" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationRange" | "animationRangeEnd" | "animationRangeStart" | "animationTimeline" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "baselineSource" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxDecorationBreak" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clip" | "clipPath" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicSize" | "containIntrinsicWidth" | "container" | "containerName" | "containerType" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "cx" | "cy" | "d" | "direction" | "display" | "dominantBaseline" | "dynamicRangeLimit" | "emptyCells" | "fieldSizing" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "floodColor" | "floodOpacity" | "font" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "forcedColorAdjust" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineBreak" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowBlock" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "positionAnchor" | "positionArea" | "positionTry" | "positionTryFallbacks" | "positionTryOrder" | "positionVisibility" | "printColorAdjust" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyAlign" | "rubyPosition" | "rx" | "ry" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollTimeline" | "scrollTimelineAxis" | "scrollTimelineName" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textAutospace" | "textBox" | "textBoxEdge" | "textBoxTrim" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrap" | "textWrapMode" | "textWrapStyle" | "timelineScope" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "userSelect" | "vectorEffect" | "verticalAlign" | "viewTimeline" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionClass" | "viewTransitionName" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "x" | "y" | "zIndex" | "zoom") | "WebkitFilter" | "WebkitFlex" | "WebkitAlignContent" | "WebkitAlignItems" | "WebkitAlignSelf" | "WebkitAnimation" | "WebkitAnimationDelay" | "WebkitAnimationDirection" | "WebkitAnimationDuration" | "WebkitAnimationFillMode" | "WebkitAnimationIterationCount" | "WebkitAnimationName" | "WebkitAnimationPlayState" | "WebkitAnimationTimingFunction" | "WebkitAppearance" | "WebkitBackfaceVisibility" | "WebkitBackgroundClip" | "WebkitBackgroundOrigin" | "WebkitBackgroundSize" | "WebkitBorderBottomLeftRadius" | "WebkitBorderBottomRightRadius" | "WebkitBorderRadius" | "WebkitBorderTopLeftRadius" | "WebkitBorderTopRightRadius" | "WebkitBoxAlign" | "WebkitBoxFlex" | "WebkitBoxOrdinalGroup" | "WebkitBoxOrient" | "WebkitBoxPack" | "WebkitBoxShadow" | "WebkitBoxSizing" | "WebkitFlexBasis" | "WebkitFlexDirection" | "WebkitFlexFlow" | "WebkitFlexGrow" | "WebkitFlexShrink" | "WebkitFlexWrap" | "WebkitJustifyContent" | "WebkitLineClamp" | "WebkitMask" | "WebkitMaskBoxImage" | "WebkitMaskBoxImageOutset" | "WebkitMaskBoxImageRepeat" | "WebkitMaskBoxImageSlice" | "WebkitMaskBoxImageSource" | "WebkitMaskBoxImageWidth" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskRepeat" | "WebkitMaskSize" | "WebkitOrder" | "WebkitPerspective" | "WebkitPerspectiveOrigin" | "WebkitTextFillColor" | "WebkitTextSizeAdjust" | "WebkitTextStroke" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTransform" | "WebkitTransformOrigin" | "WebkitTransformStyle" | "WebkitTransition" | "WebkitTransitionDelay" | "WebkitTransitionDuration" | "WebkitTransitionProperty" | "WebkitTransitionTimingFunction" | "WebkitUserSelect", string | number | null | undefined>>> | null | undefined;
|
|
17
|
+
export declare function resolveSelectPopupRootStyle(style: SelectStyle | undefined, inheritedZIndex: number | undefined): string | Readonly<Partial<Record<("float" | "filter" | "height" | "width" | "top" | "right" | "bottom" | "left" | "r" | "overflow" | "page" | "clear" | "borderRadius" | "padding" | "margin" | "boxShadow" | "fontFamily" | "fontSize" | "lineHeight" | "fontWeight" | "paddingInline" | "paddingBlock" | "fill" | "content" | "translate" | "color" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "all" | "anchorName" | "anchorScope" | "animation" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationRange" | "animationRangeEnd" | "animationRangeStart" | "animationTimeline" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "baselineSource" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxDecorationBreak" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clip" | "clipPath" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicSize" | "containIntrinsicWidth" | "container" | "containerName" | "containerType" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "cx" | "cy" | "d" | "direction" | "display" | "dominantBaseline" | "dynamicRangeLimit" | "emptyCells" | "fieldSizing" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "floodColor" | "floodOpacity" | "font" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "forcedColorAdjust" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lightingColor" | "lineBreak" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offset" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowBlock" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "positionAnchor" | "positionArea" | "positionTry" | "positionTryFallbacks" | "positionTryOrder" | "positionVisibility" | "printColorAdjust" | "quotes" | "resize" | "rotate" | "rowGap" | "rubyAlign" | "rubyPosition" | "rx" | "ry" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollTimeline" | "scrollTimelineAxis" | "scrollTimelineName" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textAutospace" | "textBox" | "textBoxEdge" | "textBoxTrim" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrap" | "textWrapMode" | "textWrapStyle" | "timelineScope" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "userSelect" | "vectorEffect" | "verticalAlign" | "viewTimeline" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionClass" | "viewTransitionName" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextSizeAdjust" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "x" | "y" | "zIndex" | "zoom") | "WebkitFilter" | "WebkitFlex" | "WebkitAlignContent" | "WebkitAlignItems" | "WebkitAlignSelf" | "WebkitAnimation" | "WebkitAnimationDelay" | "WebkitAnimationDirection" | "WebkitAnimationDuration" | "WebkitAnimationFillMode" | "WebkitAnimationIterationCount" | "WebkitAnimationName" | "WebkitAnimationPlayState" | "WebkitAnimationTimingFunction" | "WebkitAppearance" | "WebkitBackfaceVisibility" | "WebkitBackgroundClip" | "WebkitBackgroundOrigin" | "WebkitBackgroundSize" | "WebkitBorderBottomLeftRadius" | "WebkitBorderBottomRightRadius" | "WebkitBorderRadius" | "WebkitBorderTopLeftRadius" | "WebkitBorderTopRightRadius" | "WebkitBoxAlign" | "WebkitBoxFlex" | "WebkitBoxOrdinalGroup" | "WebkitBoxOrient" | "WebkitBoxPack" | "WebkitBoxShadow" | "WebkitBoxSizing" | "WebkitFlexBasis" | "WebkitFlexDirection" | "WebkitFlexFlow" | "WebkitFlexGrow" | "WebkitFlexShrink" | "WebkitFlexWrap" | "WebkitJustifyContent" | "WebkitLineClamp" | "WebkitMask" | "WebkitMaskBoxImage" | "WebkitMaskBoxImageOutset" | "WebkitMaskBoxImageRepeat" | "WebkitMaskBoxImageSlice" | "WebkitMaskBoxImageSource" | "WebkitMaskBoxImageWidth" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskRepeat" | "WebkitMaskSize" | "WebkitOrder" | "WebkitPerspective" | "WebkitPerspectiveOrigin" | "WebkitTextFillColor" | "WebkitTextSizeAdjust" | "WebkitTextStroke" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTransform" | "WebkitTransformOrigin" | "WebkitTransformStyle" | "WebkitTransition" | "WebkitTransitionDelay" | "WebkitTransitionDuration" | "WebkitTransitionProperty" | "WebkitTransitionTimingFunction" | "WebkitUserSelect", string | number | null | undefined>>> | null | undefined;
|
|
18
18
|
export declare function selectStyleName(property: string): string;
|
|
19
19
|
/** Uses the same Source formatter as the raw option, without CSSOM-normalizing the value. */
|
|
20
20
|
export declare function selectStyleValue(property: string, value: SelectStyleValue): string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { resolveSkeletonLayout } from './skeleton.engine';
|
|
6
6
|
import { createSkeletonFocus } from './skeleton.dom';
|
|
7
7
|
import { getSkeletonPrefixCss } from './skeleton-prefix.engine';
|
|
8
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
8
9
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
9
10
|
import { ruRU } from '../types';
|
|
10
11
|
import type { SkeletonProps, SkeletonSemanticInfo, SkeletonSemanticSlots } from './skeleton.types';
|
|
@@ -41,7 +42,9 @@
|
|
|
41
42
|
let content = $state<HTMLDivElement>();
|
|
42
43
|
let placeholder = $state<HTMLDivElement>();
|
|
43
44
|
let prefix = $derived(config.getPrefixCls('skeleton', prefixCls));
|
|
44
|
-
|
|
45
|
+
const runtimeStyles = useRuntimeStyles();
|
|
46
|
+
const hasCustomPrefix = $derived(prefix !== 'ant-skeleton');
|
|
47
|
+
let prefixCss = $derived(runtimeStyles && getSkeletonPrefixCss(prefix));
|
|
45
48
|
let layout = $derived(resolveSkeletonLayout({ avatar, title, paragraph }));
|
|
46
49
|
let strings = $derived({ ...ruRU.skeleton, ...config.locale.skeleton });
|
|
47
50
|
let label = $derived(ariaLabel ?? (ariaLabelledby ? undefined : strings.loadingText));
|
|
@@ -163,7 +166,7 @@
|
|
|
163
166
|
{#if loading}
|
|
164
167
|
{#if prefixCss}<ThemeScopeStyle css={prefixCss} scope={`skeleton-main-prefix:${prefix}`} />{/if}<div
|
|
165
168
|
bind:this={placeholder} data-ant-skeleton-main data-ant-skeleton-active={active || undefined}
|
|
166
|
-
data-ant-skeleton-prefix={
|
|
169
|
+
data-ant-skeleton-prefix={hasCustomPrefix ? prefix : undefined} class={[
|
|
167
170
|
prefix, 'ant-skeleton-css-var',
|
|
168
171
|
componentTheme.className,
|
|
169
172
|
layout.avatar && `${prefix}-with-avatar`,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useConfig } from '../config-provider/config-context';
|
|
3
3
|
import { useComponentTheme } from '../theme/theme-component.svelte';
|
|
4
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
4
5
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
5
6
|
import { getSkeletonPrefixCss } from './skeleton-prefix.engine';
|
|
6
7
|
import type { Snippet } from 'svelte';
|
|
@@ -31,7 +32,9 @@
|
|
|
31
32
|
const config = useConfig();
|
|
32
33
|
const componentTheme = useComponentTheme('Skeleton');
|
|
33
34
|
let prefix = $derived(config.getPrefixCls('skeleton', prefixCls));
|
|
34
|
-
|
|
35
|
+
const runtimeStyles = useRuntimeStyles();
|
|
36
|
+
const hasCustomPrefix = $derived(prefix !== 'ant-skeleton');
|
|
37
|
+
let prefixCss = $derived(runtimeStyles && getSkeletonPrefixCss(prefix));
|
|
35
38
|
let mergedSize = $derived(size ?? config.componentSize);
|
|
36
39
|
let contentClass = $derived(kind === 'node' && internalClassName
|
|
37
40
|
? internalClassName : `${prefix}-${kind}`);
|
|
@@ -56,7 +59,7 @@
|
|
|
56
59
|
componentTheme.className, classNames?.root, className, rootClassName
|
|
57
60
|
]} style={[componentTheme.style, styles?.root].filter(Boolean).join(';') || undefined}
|
|
58
61
|
data-ant-skeleton-element={kind} data-ant-skeleton-active={active || undefined}
|
|
59
|
-
data-ant-skeleton-prefix={
|
|
62
|
+
data-ant-skeleton-prefix={hasCustomPrefix ? prefix : undefined}>
|
|
60
63
|
{#if kind === 'node' || kind === 'image'}
|
|
61
64
|
<div class={[classNames?.content, contentClass]} data-ant-skeleton-content
|
|
62
65
|
style={[styles?.content, style].filter(Boolean).join(';') || undefined}>
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
import { useSliderInternal } from './slider-internal-context';
|
|
24
24
|
import { sliderSemantics } from './slider-semantic.engine';
|
|
25
25
|
import { getSliderPrefixCss } from './slider-prefix.engine';
|
|
26
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
26
27
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
27
28
|
import type { SliderRangeProps } from './slider-range.types';
|
|
28
|
-
import
|
|
29
|
+
import SliderTooltip from './SliderTooltip.svelte';
|
|
29
30
|
|
|
30
31
|
let { value = $bindable(), ref = $bindable(), nativeElement = $bindable(), ...props }:
|
|
31
32
|
SliderRangeProps = $props();
|
|
@@ -55,7 +56,8 @@
|
|
|
55
56
|
let blurCallbacks: Pick<SliderRangeProps, 'onBlur' | 'onblur'> = {};
|
|
56
57
|
let prefixCls = $derived(config.getPrefixCls('slider', props.prefixCls));
|
|
57
58
|
let customPrefix = $derived(prefixCls !== 'ant-slider');
|
|
58
|
-
|
|
59
|
+
const runtimeStyles = useRuntimeStyles();
|
|
60
|
+
let prefixCss = $derived(runtimeStyles && getSliderPrefixCss(prefixCls));
|
|
59
61
|
let orientation = $derived(props.orientation ?? 'horizontal');
|
|
60
62
|
let direction = $derived(getSliderDirection(orientation, props.reverse ?? false,
|
|
61
63
|
(internal?.direction ?? config.direction) === 'rtl'));
|
|
@@ -639,28 +641,12 @@
|
|
|
639
641
|
onchange={handleChange} />
|
|
640
642
|
</div>
|
|
641
643
|
{#if props.tooltip !== false && props.tooltip?.open}
|
|
642
|
-
<
|
|
644
|
+
<SliderTooltip title={formatTooltip(point)} options={props.tooltip} listenToInput
|
|
643
645
|
ownerClassName={`${prefixCls}-tooltip`}
|
|
644
646
|
open={!disabledState[0] && props.tooltip.formatter !== null && !draggingDelete}
|
|
645
|
-
anchor={handles[index]}
|
|
647
|
+
anchor={handles[index]} trigger={inputs[index]}
|
|
646
648
|
placement={props.tooltip.placement ?? (orientation === 'vertical'
|
|
647
649
|
? config.direction === 'rtl' ? 'left' : 'right' : 'top')}
|
|
648
|
-
arrow={props.tooltip.arrow}
|
|
649
|
-
color={props.tooltip.color}
|
|
650
|
-
prefixCls={props.tooltip.prefixCls}
|
|
651
|
-
openClassName={props.tooltip.openClassName}
|
|
652
|
-
fresh={props.tooltip.fresh}
|
|
653
|
-
id={props.tooltip.id}
|
|
654
|
-
disabled={props.tooltip.disabled}
|
|
655
|
-
unique={props.tooltip.unique}
|
|
656
|
-
forceRender={props.tooltip.forceRender}
|
|
657
|
-
zIndex={props.tooltip.zIndex}
|
|
658
|
-
align={props.tooltip.align}
|
|
659
|
-
builtinPlacements={props.tooltip.builtinPlacements}
|
|
660
|
-
onPopupAlign={props.tooltip.onPopupAlign}
|
|
661
|
-
destroyOnHidden={props.tooltip.destroyOnHidden}
|
|
662
|
-
autoAdjustOverflow={props.tooltip.autoAdjustOverflow}
|
|
663
|
-
getPopupContainer={props.tooltip.getPopupContainer || config.getPopupContainer}
|
|
664
650
|
onDismiss={() => { tooltipDismissed = true; }} />
|
|
665
651
|
{/if}
|
|
666
652
|
{/each}
|
|
@@ -681,29 +667,11 @@
|
|
|
681
667
|
</div>
|
|
682
668
|
{/if}
|
|
683
669
|
{#if props.tooltip === false || !props.tooltip?.open}
|
|
684
|
-
<
|
|
685
|
-
ownerClassName={`${prefixCls}-tooltip`}
|
|
686
|
-
|
|
670
|
+
<SliderTooltip title={tooltipTitle} open={tooltipOpen} options={props.tooltip}
|
|
671
|
+
ownerClassName={`${prefixCls}-tooltip`} anchor={handles[tooltipIndex]}
|
|
672
|
+
trigger={inputs[tooltipIndex]}
|
|
687
673
|
placement={props.tooltip === false ? 'top' : props.tooltip?.placement
|
|
688
674
|
?? (orientation === 'vertical' ? config.direction === 'rtl' ? 'left' : 'right' : 'top')}
|
|
689
|
-
arrow={props.tooltip === false ? false : props.tooltip?.arrow}
|
|
690
|
-
color={props.tooltip === false ? undefined : props.tooltip?.color}
|
|
691
|
-
prefixCls={props.tooltip === false ? undefined : props.tooltip?.prefixCls}
|
|
692
|
-
openClassName={props.tooltip === false ? undefined : props.tooltip?.openClassName}
|
|
693
|
-
fresh={props.tooltip === false ? undefined : props.tooltip?.fresh}
|
|
694
|
-
id={props.tooltip === false ? undefined : props.tooltip?.id}
|
|
695
|
-
disabled={props.tooltip === false ? undefined : props.tooltip?.disabled}
|
|
696
|
-
unique={props.tooltip === false ? undefined : props.tooltip?.unique}
|
|
697
|
-
forceRender={props.tooltip === false ? undefined : props.tooltip?.forceRender}
|
|
698
|
-
zIndex={props.tooltip === false ? undefined : props.tooltip?.zIndex}
|
|
699
|
-
align={props.tooltip === false ? undefined : props.tooltip?.align}
|
|
700
|
-
builtinPlacements={props.tooltip === false ? undefined : props.tooltip?.builtinPlacements}
|
|
701
|
-
onPopupAlign={props.tooltip === false ? undefined : props.tooltip?.onPopupAlign}
|
|
702
|
-
destroyOnHidden={props.tooltip === false ? undefined : props.tooltip?.destroyOnHidden}
|
|
703
|
-
autoAdjustOverflow={props.tooltip === false ? undefined : props.tooltip?.autoAdjustOverflow}
|
|
704
|
-
getPopupContainer={(props.tooltip === false ? undefined : props.tooltip?.getPopupContainer)
|
|
705
|
-
|| config.getPopupContainer}
|
|
706
|
-
|
|
707
675
|
onDismiss={() => { tooltipDismissed = true; }} />
|
|
708
676
|
{/if}
|
|
709
677
|
</div>
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
} from './slider-range.engine';
|
|
24
24
|
import { sliderSemantics } from './slider-semantic.engine';
|
|
25
25
|
import { getSliderPrefixCss } from './slider-prefix.engine';
|
|
26
|
+
import { useRuntimeStyles } from '../theme/theme-context.svelte';
|
|
26
27
|
import ThemeScopeStyle from '../theme/ThemeScopeStyle.svelte';
|
|
27
|
-
import
|
|
28
|
+
import SliderTooltip from './SliderTooltip.svelte';
|
|
28
29
|
|
|
29
30
|
interface Interaction {
|
|
30
31
|
kind: 'pointer' | 'key' | 'native';
|
|
@@ -85,6 +86,8 @@
|
|
|
85
86
|
onpointerdown,
|
|
86
87
|
onpointerenter,
|
|
87
88
|
onpointerleave,
|
|
89
|
+
onmouseenter,
|
|
90
|
+
onmouseleave,
|
|
88
91
|
onlostpointercapture,
|
|
89
92
|
onfocus,
|
|
90
93
|
onblur,
|
|
@@ -122,7 +125,8 @@
|
|
|
122
125
|
let orientation = $derived(orientationProp ?? 'horizontal');
|
|
123
126
|
let prefix = $derived(config.getPrefixCls('slider', prefixCls));
|
|
124
127
|
let customPrefix = $derived(prefix !== 'ant-slider');
|
|
125
|
-
|
|
128
|
+
const runtimeStyles = useRuntimeStyles();
|
|
129
|
+
let prefixCss = $derived(runtimeStyles && getSliderPrefixCss(prefix));
|
|
126
130
|
let options = $derived(resolveSliderOptions({ min, max, step: step ?? undefined }));
|
|
127
131
|
let markEntries = $derived(sliderRangeMarks(marks));
|
|
128
132
|
let hasDecorations = $derived(markEntries.length > 0 || Boolean(dots));
|
|
@@ -168,16 +172,18 @@
|
|
|
168
172
|
?? (indexed(ariaLabelForHandle) != null || attributes['aria-label'] != null
|
|
169
173
|
? undefined : field?.labelledBy));
|
|
170
174
|
let configuredTooltipOpen = $derived(tooltip === false ? false : tooltip?.open);
|
|
175
|
+
const hasTooltipRequests = $derived(tooltip !== false && Boolean(tooltip?.onOpenChange));
|
|
171
176
|
let tooltipState = $derived(
|
|
172
177
|
{ ownerOpen: configuredTooltipOpen, disabled: resolvedDisabled, dismissed: false }
|
|
173
178
|
);
|
|
174
|
-
let
|
|
175
|
-
tooltip === false || configuredTooltipOpen === false
|
|
179
|
+
let tooltipText = $derived(
|
|
180
|
+
tooltip === false || configuredTooltipOpen === false && !tooltip?.onOpenChange
|
|
176
181
|
? ''
|
|
177
182
|
: tooltip?.formatter === null
|
|
178
183
|
? ''
|
|
179
184
|
: tooltip?.formatter ? tooltip.formatter(resolvedValue) ?? '' : String(resolvedValue)
|
|
180
185
|
);
|
|
186
|
+
const tooltipTitle = $derived(resolvedDisabled || configuredTooltipOpen === false ? '' : tooltipText);
|
|
181
187
|
let tooltipOpen = $derived(
|
|
182
188
|
!resolvedDisabled
|
|
183
189
|
&& !tooltipState.dismissed
|
|
@@ -364,20 +370,33 @@
|
|
|
364
370
|
function handlePointerenter(
|
|
365
371
|
event: PointerEvent & { currentTarget: EventTarget & HTMLInputElement; }
|
|
366
372
|
) {
|
|
367
|
-
if (event.pointerType !== 'touch')
|
|
368
|
-
tooltipHovered = true;
|
|
369
|
-
tooltipState = { ...tooltipState, dismissed: false };
|
|
370
|
-
}
|
|
373
|
+
if (!hasTooltipRequests && event.pointerType !== 'touch') beginTooltipHover();
|
|
371
374
|
onpointerenter?.(event);
|
|
372
375
|
}
|
|
373
376
|
|
|
374
377
|
function handlePointerleave(
|
|
375
378
|
event: PointerEvent & { currentTarget: EventTarget & HTMLInputElement; }
|
|
376
379
|
) {
|
|
377
|
-
tooltipHovered = false;
|
|
380
|
+
if (!hasTooltipRequests) tooltipHovered = false;
|
|
378
381
|
onpointerleave?.(event);
|
|
379
382
|
}
|
|
380
383
|
|
|
384
|
+
function beginTooltipHover() {
|
|
385
|
+
tooltipHovered = true;
|
|
386
|
+
tooltipState = { ...tooltipState, dismissed: false };
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function handleMouseEnter(event: MouseEvent & { currentTarget: EventTarget & HTMLInputElement; }) {
|
|
390
|
+
// Tooltip runs the pointer and compatibility mouse requests before Slider accepts hover.
|
|
391
|
+
if (hasTooltipRequests) beginTooltipHover();
|
|
392
|
+
onmouseenter?.(event);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function handleMouseLeave(event: MouseEvent & { currentTarget: EventTarget & HTMLInputElement; }) {
|
|
396
|
+
if (hasTooltipRequests) tooltipHovered = false;
|
|
397
|
+
onmouseleave?.(event);
|
|
398
|
+
}
|
|
399
|
+
|
|
381
400
|
function handleKeydown(
|
|
382
401
|
event: KeyboardEvent & { currentTarget: EventTarget & HTMLInputElement; }
|
|
383
402
|
) {
|
|
@@ -657,6 +676,8 @@
|
|
|
657
676
|
onpointerdown={handlePointerdown}
|
|
658
677
|
onpointerenter={handlePointerenter}
|
|
659
678
|
onpointerleave={handlePointerleave}
|
|
679
|
+
onmouseenter={handleMouseEnter}
|
|
680
|
+
onmouseleave={handleMouseLeave}
|
|
660
681
|
onlostpointercapture={handleLostCapture}
|
|
661
682
|
onkeydown={handleKeydown}
|
|
662
683
|
onkeyup={handleKeyup}
|
|
@@ -677,27 +698,11 @@
|
|
|
677
698
|
{/each}
|
|
678
699
|
</div>
|
|
679
700
|
{/if}
|
|
680
|
-
<
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
openClassName={tooltip === false ? undefined : tooltip?.openClassName}
|
|
685
|
-
fresh={tooltip === false ? undefined : tooltip?.fresh}
|
|
686
|
-
id={tooltip === false ? undefined : tooltip?.id}
|
|
687
|
-
disabled={tooltip === false ? undefined : tooltip?.disabled}
|
|
688
|
-
unique={tooltip === false ? undefined : tooltip?.unique}
|
|
689
|
-
forceRender={tooltip === false ? undefined : tooltip?.forceRender}
|
|
690
|
-
zIndex={tooltip === false ? undefined : tooltip?.zIndex}
|
|
691
|
-
align={tooltip === false ? undefined : tooltip?.align}
|
|
692
|
-
builtinPlacements={tooltip === false ? undefined : tooltip?.builtinPlacements}
|
|
693
|
-
onPopupAlign={tooltip === false ? undefined : tooltip?.onPopupAlign}
|
|
694
|
-
destroyOnHidden={tooltip === false ? undefined : tooltip?.destroyOnHidden}
|
|
695
|
-
autoAdjustOverflow={tooltip === false ? undefined : tooltip?.autoAdjustOverflow}
|
|
696
|
-
getPopupContainer={(tooltip === false ? undefined : tooltip?.getPopupContainer)
|
|
697
|
-
|| config.getPopupContainer}
|
|
701
|
+
<SliderTooltip title={tooltipTitle} requestTitle={resolvedDisabled ? '' : tooltipText}
|
|
702
|
+
open={tooltipOpen}
|
|
703
|
+
options={tooltip} anchor={handle} trigger={control} placement={tooltipPlacement}
|
|
704
|
+
ownerClassName={`${prefix}-tooltip`} listenToInput
|
|
698
705
|
onDismiss={() => {
|
|
699
706
|
tooltipState = { ...tooltipState, dismissed: true };
|
|
700
|
-
}} onHoverChange={
|
|
701
|
-
popupHovered = next;
|
|
702
|
-
}} />
|
|
707
|
+
}} onHoverChange={next => { popupHovered = next; }} />
|
|
703
708
|
</div>
|