pxd 0.1.2 → 0.1.4
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/components/_internal/calendar-day.vue +19 -19
- package/dist/components/_internal/dismiss-container.d.vue.ts +1 -1
- package/dist/components/_internal/dismiss-container.vue +20 -20
- package/dist/components/_internal/loading-mask.vue +9 -1
- package/dist/components/_internal/mention-editor.vue +3 -3
- package/dist/components/_internal/popover-arrow.d.vue.ts +1 -1
- package/dist/components/_internal/popover-arrow.vue +1 -1
- package/dist/components/{steps → _internal}/step-item.d.vue.ts +1 -1
- package/dist/components/{steps → _internal}/step-item.vue +2 -2
- package/dist/components/_internal/tree-node.d.vue.ts +23 -20
- package/dist/components/_internal/tree-node.vue +68 -51
- package/dist/components/active-graph/index.d.vue.ts +2 -2
- package/dist/components/active-graph/index.vue +1 -1
- package/dist/components/approval-card/index.d.vue.ts +1 -1
- package/dist/components/approval-card/index.vue +34 -17
- package/dist/components/approval-card/types.d.ts +1 -1
- package/dist/components/avatar/index.vue +2 -2
- package/dist/components/backtop/index.d.vue.ts +3 -3
- package/dist/components/backtop/index.vue +17 -17
- package/dist/components/backtop/types.d.ts +1 -1
- package/dist/components/badge/index.d.vue.ts +3 -3
- package/dist/components/badge/index.vue +45 -45
- package/dist/components/badge/types.d.ts +1 -1
- package/dist/components/book/types.d.ts +1 -1
- package/dist/components/border-beam/index.vue +1 -1
- package/dist/components/border-beam/types.d.ts +1 -1
- package/dist/components/browser/index.vue +1 -1
- package/dist/components/bubble/index.vue +6 -6
- package/dist/components/bubble-group/index.d.vue.ts +4 -4
- package/dist/components/button/index.d.vue.ts +4 -4
- package/dist/components/button/index.vue +18 -17
- package/dist/components/button/types.d.ts +2 -2
- package/dist/components/button-group/types.d.ts +2 -2
- package/dist/components/calendar/index.d.vue.ts +2 -2
- package/dist/components/calendar/index.vue +10 -10
- package/dist/components/calendar/types.d.ts +1 -1
- package/dist/components/card/index.vue +2 -2
- package/dist/components/card/types.d.ts +1 -1
- package/dist/components/carousel/index.d.vue.ts +6 -7
- package/dist/components/carousel/index.vue +23 -18
- package/dist/components/carousel/types.d.ts +1 -2
- package/dist/components/checkbox/index.vue +2 -2
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/checkbox-group/index.d.vue.ts +2 -2
- package/dist/components/checkbox-group/types.d.ts +1 -1
- package/dist/components/chip/index.d.vue.ts +1 -1
- package/dist/components/chip/types.d.ts +1 -1
- package/dist/components/choicebox/index.d.vue.ts +3 -3
- package/dist/components/choicebox/types.d.ts +1 -1
- package/dist/components/choicebox-item/index.vue +10 -10
- package/dist/components/choicebox-item/types.d.ts +1 -1
- package/dist/components/code-block/index.d.vue.ts +22 -0
- package/dist/components/code-block/index.vue +166 -0
- package/dist/components/code-block/types.d.ts +14 -0
- package/dist/components/collapse/index.vue +2 -2
- package/dist/components/collapse-group/index.vue +1 -1
- package/dist/components/collapse-group/types.d.ts +1 -1
- package/dist/components/command-menu/index.d.vue.ts +4 -4
- package/dist/components/command-menu/index.vue +11 -5
- package/dist/components/config-provider/index.d.vue.ts +44 -5
- package/dist/components/config-provider/types.d.ts +2 -1
- package/dist/components/confirm-popover/index.d.vue.ts +38 -0
- package/dist/components/confirm-popover/index.vue +203 -0
- package/dist/components/confirm-popover/types.d.ts +25 -0
- package/dist/components/copy-button/index.d.vue.ts +2 -6
- package/dist/components/copy-button/index.vue +4 -10
- package/dist/components/dash-line/index.d.vue.ts +1 -1
- package/dist/components/dash-line/index.vue +8 -8
- package/dist/components/dash-line/types.d.ts +1 -1
- package/dist/components/date-picker/index.d.vue.ts +1 -1
- package/dist/components/date-picker/index.vue +4 -4
- package/dist/components/date-picker/types.d.ts +1 -1
- package/dist/components/description/index.vue +1 -1
- package/dist/components/drawer/index.d.vue.ts +10 -10
- package/dist/components/drawer/index.vue +36 -27
- package/dist/components/drawer/types.d.ts +2 -2
- package/dist/components/effort-slider/index.vue +12 -18
- package/dist/components/effort-slider/types.d.ts +1 -1
- package/dist/components/ellipsis-text/index.d.vue.ts +2 -2
- package/dist/components/ellipsis-text/index.vue +76 -76
- package/dist/components/error/index.vue +2 -2
- package/dist/components/error/types.d.ts +1 -1
- package/dist/components/fader/index.vue +2 -2
- package/dist/components/fader/types.d.ts +1 -1
- package/dist/components/gauge/index.vue +2 -2
- package/dist/components/gauge/types.d.ts +1 -1
- package/dist/components/grid/types.d.ts +1 -1
- package/dist/components/grid-item/types.d.ts +1 -1
- package/dist/components/hint/index.d.vue.ts +32 -0
- package/dist/components/hint/index.vue +239 -0
- package/dist/components/hint/types.d.ts +17 -0
- package/dist/components/hold-button/index.d.vue.ts +4 -4
- package/dist/components/hold-button/index.vue +10 -10
- package/dist/components/image-preview/index.d.vue.ts +38 -0
- package/dist/components/image-preview/index.vue +351 -0
- package/dist/components/image-preview/types.d.ts +18 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +6 -0
- package/dist/components/input/index.d.vue.ts +1 -1
- package/dist/components/input/index.vue +19 -11
- package/dist/components/input/types.d.ts +1 -1
- package/dist/components/intersection-observer/index.vue +3 -3
- package/dist/components/kbd/index.vue +3 -3
- package/dist/components/kbd/types.d.ts +1 -1
- package/dist/components/link-button/index.d.vue.ts +5 -5
- package/dist/components/list/index.d.vue.ts +4 -4
- package/dist/components/list/index.vue +126 -47
- package/dist/components/list/types.d.ts +1 -1
- package/dist/components/list-group/index.vue +7 -1
- package/dist/components/list-group/types.d.ts +1 -1
- package/dist/components/list-item/index.d.vue.ts +2 -2
- package/dist/components/list-item/index.vue +42 -11
- package/dist/components/loading-bar/index.vue +5 -5
- package/dist/components/marching-ants/index.d.vue.ts +2 -2
- package/dist/components/marching-ants/index.vue +56 -56
- package/dist/components/marching-ants/types.d.ts +1 -1
- package/dist/components/marquee/index.d.vue.ts +6 -6
- package/dist/components/marquee/index.vue +22 -18
- package/dist/components/marquee/types.d.ts +1 -1
- package/dist/components/material/index.d.vue.ts +3 -3
- package/dist/components/mention/index.d.vue.ts +4 -4
- package/dist/components/mention/index.vue +68 -68
- package/dist/components/menu/index.d.vue.ts +4 -4
- package/dist/components/menu/index.vue +10 -10
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/message/index.d.vue.ts +1 -1
- package/dist/components/message/index.vue +20 -26
- package/dist/components/message/types.d.ts +1 -1
- package/dist/components/message-item/index.vue +2 -6
- package/dist/components/modal/index.d.vue.ts +9 -9
- package/dist/components/modal/index.vue +32 -23
- package/dist/components/modal/types.d.ts +2 -2
- package/dist/components/noise-background/types.d.ts +1 -1
- package/dist/components/note/index.vue +7 -3
- package/dist/components/note/types.d.ts +2 -1
- package/dist/components/number-input/index.d.vue.ts +11 -6
- package/dist/components/number-input/index.vue +61 -20
- package/dist/components/number-input/types.d.ts +2 -1
- package/dist/components/overlay/index.d.vue.ts +2 -4
- package/dist/components/overlay/index.vue +12 -70
- package/dist/components/overlay/types.d.ts +1 -4
- package/dist/components/page-number/index.vue +30 -29
- package/dist/components/page-number/types.d.ts +1 -1
- package/dist/components/pagination/index.vue +4 -4
- package/dist/components/pin-input/index.vue +11 -7
- package/dist/components/pin-input/types.d.ts +1 -1
- package/dist/components/popover/index.vue +72 -39
- package/dist/components/popover/types.d.ts +4 -1
- package/dist/components/progress/index.d.vue.ts +2 -2
- package/dist/components/progress/index.vue +12 -12
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/project-banner/index.vue +22 -9
- package/dist/components/project-banner/types.d.ts +1 -1
- package/dist/components/questionnaire/index.vue +15 -15
- package/dist/components/radio/index.vue +1 -1
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/radio-group/index.d.vue.ts +2 -2
- package/dist/components/radio-group/types.d.ts +1 -1
- package/dist/components/rating/index.vue +28 -28
- package/dist/components/rating/types.d.ts +1 -1
- package/dist/components/resizable/index.d.vue.ts +6 -0
- package/dist/components/resizable/index.vue +320 -236
- package/dist/components/resizable/types.d.ts +8 -10
- package/dist/components/reveal/index.d.vue.ts +3 -3
- package/dist/components/reveal/index.vue +4 -4
- package/dist/components/reveal/types.d.ts +1 -1
- package/dist/components/rolling-number/index.d.vue.ts +2 -2
- package/dist/components/rolling-number/index.vue +15 -15
- package/dist/components/scalable-text/index.vue +9 -9
- package/dist/components/scroll-text/index.d.vue.ts +3 -3
- package/dist/components/scroll-text/index.vue +6 -6
- package/dist/components/scroll-text/types.d.ts +1 -1
- package/dist/components/scrollable/types.d.ts +2 -1
- package/dist/components/search-input/index.d.vue.ts +5 -5
- package/dist/components/search-input/index.vue +2 -1
- package/dist/components/select/index.d.vue.ts +12 -9
- package/dist/components/select/index.vue +167 -42
- package/dist/components/select/types.d.ts +3 -1
- package/dist/components/separator/index.d.vue.ts +1 -1
- package/dist/components/separator/types.d.ts +1 -1
- package/dist/components/skeleton/index.vue +11 -11
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/slider/index.d.vue.ts +1 -1
- package/dist/components/slider/index.vue +1 -1
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/snippet/index.d.vue.ts +3 -3
- package/dist/components/snippet/index.vue +7 -5
- package/dist/components/snippet/types.d.ts +1 -1
- package/dist/components/spinner/index.vue +5 -1
- package/dist/components/spinner-dots/index.d.vue.ts +1 -1
- package/dist/components/split-button/index.d.vue.ts +5 -5
- package/dist/components/split-button/types.d.ts +1 -1
- package/dist/components/stack/index.d.vue.ts +3 -3
- package/dist/components/stack/index.vue +28 -29
- package/dist/components/stack/types.d.ts +1 -1
- package/dist/components/status-dot/types.d.ts +1 -1
- package/dist/components/steps/index.d.vue.ts +2 -2
- package/dist/components/steps/index.vue +6 -6
- package/dist/components/steps/types.d.ts +1 -1
- package/dist/components/stick-to-bottom/types.d.ts +1 -1
- package/dist/components/swipe-cell/index.d.vue.ts +6 -6
- package/dist/components/swipe-cell/index.vue +64 -64
- package/dist/components/swipe-cell/types.d.ts +2 -1
- package/dist/components/switch/index.vue +2 -2
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/switch-item/index.vue +1 -1
- package/dist/components/switch-item/types.d.ts +1 -1
- package/dist/components/tabs/index.d.vue.ts +1 -1
- package/dist/components/tabs/index.vue +49 -52
- package/dist/components/tabs/types.d.ts +1 -1
- package/dist/components/teleport/index.vue +22 -24
- package/dist/components/text/index.d.vue.ts +3 -3
- package/dist/components/text/index.vue +11 -11
- package/dist/components/text/types.d.ts +1 -1
- package/dist/components/textarea/index.vue +2 -1
- package/dist/components/textarea/types.d.ts +1 -1
- package/dist/components/theme-switcher/index.d.vue.ts +3 -2
- package/dist/components/theme-switcher/index.vue +15 -7
- package/dist/components/theme-switcher/types.d.ts +2 -2
- package/dist/components/time-ago/index.d.vue.ts +6 -0
- package/dist/components/time-ago/index.vue +143 -0
- package/dist/components/time-ago/types.d.ts +4 -0
- package/dist/components/time-picker/index.d.vue.ts +1 -1
- package/dist/components/time-picker/index.vue +11 -11
- package/dist/components/time-picker/types.d.ts +1 -1
- package/dist/components/toc/index.d.vue.ts +2 -2
- package/dist/components/toc/index.vue +1 -1
- package/dist/components/todo-list/index.d.vue.ts +5 -5
- package/dist/components/todo-list/index.vue +15 -15
- package/dist/components/todo-list/types.d.ts +1 -1
- package/dist/components/toggle/index.vue +4 -4
- package/dist/components/toggle/types.d.ts +1 -1
- package/dist/components/toggle-button/index.vue +24 -15
- package/dist/components/toggle-button/types.d.ts +4 -3
- package/dist/components/toggle-button-group/index.d.vue.ts +3 -3
- package/dist/components/toggle-button-group/index.vue +3 -2
- package/dist/components/toggle-button-group/types.d.ts +4 -4
- package/dist/components/tool-call/index.vue +5 -5
- package/dist/components/tooltip/index.d.vue.ts +4 -5
- package/dist/components/tooltip/index.vue +4 -49
- package/dist/components/tooltip/types.d.ts +3 -7
- package/dist/components/tour/index.d.vue.ts +33 -0
- package/dist/components/tour/index.vue +302 -0
- package/dist/components/tour/types.d.ts +29 -0
- package/dist/components/tree/index.d.vue.ts +33 -34
- package/dist/components/tree/index.vue +385 -293
- package/dist/components/tree/types.d.ts +42 -13
- package/dist/components/virtual-list/index.d.vue.ts +4 -4
- package/dist/composables/_internal/use-code-highlight.d.ts +12 -0
- package/dist/composables/_internal/use-code-highlight.js +47 -0
- package/dist/composables/_internal/use-list-keyboard-controller.js +9 -10
- package/dist/composables/_internal/use-list-rows.d.ts +4 -0
- package/dist/composables/_internal/use-list-rows.js +12 -4
- package/dist/composables/_internal/use-list-selection.d.ts +1 -1
- package/dist/composables/_internal/use-lock-scroll.d.ts +8 -1
- package/dist/composables/_internal/use-lock-scroll.js +39 -35
- package/dist/composables/_internal/use-mention-editor.js +1 -1
- package/dist/composables/_internal/use-message-group.d.ts +22 -0
- package/dist/composables/_internal/use-message-group.js +143 -0
- package/dist/composables/_internal/use-overlay-dialog.js +1 -3
- package/dist/composables/_internal/use-overlay-manager.d.ts +4 -2
- package/dist/composables/_internal/use-overlay-manager.js +53 -10
- package/dist/composables/_internal/use-popover-responsive.js +9 -12
- package/dist/composables/_internal/use-swipe-gesture.d.ts +2 -2
- package/dist/composables/_internal/use-swipe-gesture.js +5 -4
- package/dist/composables/_internal/use-tailwind-variant.js +1 -1
- package/dist/composables/_internal/use-tour-target.d.ts +29 -0
- package/dist/composables/_internal/use-tour-target.js +201 -0
- package/dist/composables/_internal/use-tree.d.ts +103 -0
- package/dist/composables/_internal/use-tree.js +676 -0
- package/dist/composables/_internal/use-word-limit.d.ts +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-color-scheme.d.ts +1 -1
- package/dist/composables/use-color-scheme.js +7 -6
- package/dist/composables/use-delay-destroy.d.ts +1 -1
- package/dist/composables/use-document-hidden.d.ts +1 -1
- package/dist/composables/use-intersection-observer.d.ts +1 -1
- package/dist/composables/use-intersection-observer.js +1 -1
- package/dist/composables/use-media-query.d.ts +3 -1
- package/dist/composables/use-media-query.js +33 -51
- package/dist/composables/{_internal/use-motion-reduce.js → use-motion-reduce.js} +2 -2
- package/dist/composables/use-mutation-observer.d.ts +1 -1
- package/dist/composables/use-mutation-observer.js +1 -1
- package/dist/composables/use-outside-click.d.ts +2 -1
- package/dist/composables/use-outside-click.js +3 -7
- package/dist/composables/use-repeat-action.d.ts +1 -1
- package/dist/composables/use-repeat-action.js +3 -3
- package/dist/composables/use-resize-observer.d.ts +1 -1
- package/dist/composables/use-resize-observer.js +1 -1
- package/dist/composables/use-view-transition.js +1 -0
- package/dist/composables/use-virtual-list.d.ts +1 -1
- package/dist/constants/size.d.ts +1 -0
- package/dist/constants/size.js +7 -6
- package/dist/constants/tooltip-variants.d.ts +28 -0
- package/dist/constants/tooltip-variants.js +27 -0
- package/dist/contexts/avatar.js +1 -1
- package/dist/contexts/breadcrumb.js +1 -1
- package/dist/contexts/button.js +1 -1
- package/dist/contexts/checkbox.js +1 -1
- package/dist/contexts/choicebox.js +1 -1
- package/dist/contexts/collapse.js +1 -1
- package/dist/contexts/config-provider.js +1 -1
- package/dist/contexts/list.js +1 -1
- package/dist/contexts/radio.js +1 -1
- package/dist/contexts/switch.js +1 -1
- package/dist/contexts/toggle-button.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/locales/en-us.d.ts +39 -0
- package/dist/locales/en-us.js +24 -0
- package/dist/locales/zh-cn.d.ts +39 -0
- package/dist/locales/zh-cn.js +24 -0
- package/dist/styles/styles.css +1 -1
- package/dist/styles/tw.css +55 -37
- package/dist/utils/_internal/cn-tables.d.ts +27 -0
- package/dist/utils/_internal/cn-tables.js +131 -0
- package/dist/utils/{context.js → _internal/context.js} +1 -1
- package/dist/utils/{observer.d.ts → _internal/observer.d.ts} +1 -1
- package/dist/utils/{observer.js → _internal/observer.js} +4 -4
- package/dist/{components/swipe-cell/instances.d.ts → utils/_internal/swipe-cell-instances.d.ts} +1 -1
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/cn.js +3 -0
- package/dist/utils/event.d.ts +2 -1
- package/dist/utils/event.js +3 -0
- package/package.json +29 -51
- package/volar.d.ts +6 -0
- package/dist/components/message/composables/use-group-expand.d.ts +0 -13
- package/dist/components/message/composables/use-group-expand.js +0 -50
- package/dist/components/message/composables/use-message-timer.d.ts +0 -9
- package/dist/components/message/composables/use-message-timer.js +0 -62
- package/dist/components/message/composables/use-promise-message.d.ts +0 -4
- package/dist/components/message/composables/use-promise-message.js +0 -49
- package/dist/components/resizable/utils.d.ts +0 -4
- package/dist/components/resizable/utils.js +0 -10
- package/dist/composables/_internal/use-tree-drag.d.ts +0 -23
- package/dist/composables/_internal/use-tree-drag.js +0 -196
- package/dist/composables/_internal/use-tree-move.d.ts +0 -20
- package/dist/composables/_internal/use-tree-move.js +0 -96
- package/dist/composables/_internal/use-tree-rows.d.ts +0 -46
- package/dist/composables/_internal/use-tree-rows.js +0 -101
- package/dist/composables/_internal/use-tree-selection.d.ts +0 -22
- package/dist/composables/_internal/use-tree-selection.js +0 -87
- package/dist/styles/source.css +0 -675
- package/dist/types/shared/index.d.ts +0 -2
- /package/dist/composables/{_internal/use-motion-reduce.d.ts → use-motion-reduce.d.ts} +0 -0
- /package/dist/utils/{context.d.ts → _internal/context.d.ts} +0 -0
- /package/dist/utils/{mention-html.d.ts → _internal/mention-html.d.ts} +0 -0
- /package/dist/utils/{mention-html.js → _internal/mention-html.js} +0 -0
- /package/dist/{components/swipe-cell/instances.js → utils/_internal/swipe-cell-instances.js} +0 -0
|
@@ -5,6 +5,7 @@ import CrossCircleFillIcon from "@gdsicon/vue/cross-circle-fill";
|
|
|
5
5
|
import TerminalIcon from "@gdsicon/vue/terminal";
|
|
6
6
|
import { computed, onBeforeUnmount, shallowRef, watch } from "vue";
|
|
7
7
|
import { useConfigProvider } from "../../contexts/config-provider.js";
|
|
8
|
+
import { isCompositionKeydown } from "../../utils/event.js";
|
|
8
9
|
import { isTruthyProp, toArray } from "../../utils/format.js";
|
|
9
10
|
import PBadge from "../badge/index.vue";
|
|
10
11
|
import PButton from "../button/index.vue";
|
|
@@ -64,16 +65,7 @@ const emits = defineEmits([
|
|
|
64
65
|
"approve",
|
|
65
66
|
"reject"
|
|
66
67
|
]);
|
|
67
|
-
const configProvider = useConfigProvider();
|
|
68
|
-
const internalStatus = shallowRef("pending");
|
|
69
|
-
const remembered = shallowRef(false);
|
|
70
68
|
let timerId;
|
|
71
|
-
const status = computed(() => props.modelValue ?? internalStatus.value);
|
|
72
|
-
const isPending = computed(() => status.value === "pending");
|
|
73
|
-
const isDisabled = computed(() => isTruthyProp(props.disabled) || isTruthyProp(props.loading));
|
|
74
|
-
const computedTitle = computed(() => props.title || configProvider.locale.approval.title);
|
|
75
|
-
const computedStatusLabel = computed(() => configProvider.locale.approval[status.value]);
|
|
76
|
-
const commandList = computed(() => toArray(props.command).filter(Boolean));
|
|
77
69
|
const STATUS_ICON = {
|
|
78
70
|
pending: TerminalIcon,
|
|
79
71
|
approved: CheckCircleFillIcon,
|
|
@@ -98,9 +90,19 @@ const VARIANT_CLASS = {
|
|
|
98
90
|
warning: "border-amber-400 bg-amber-200 text-amber-900",
|
|
99
91
|
success: "border-green-400 bg-green-200 text-green-900"
|
|
100
92
|
};
|
|
93
|
+
const internalStatus = shallowRef("pending");
|
|
94
|
+
const remembered = shallowRef(false);
|
|
95
|
+
const timerKey = shallowRef(0);
|
|
96
|
+
const status = computed(() => props.modelValue ?? internalStatus.value);
|
|
97
|
+
const isPending = computed(() => status.value === "pending");
|
|
98
|
+
const isDisabled = computed(() => isTruthyProp(props.disabled) || isTruthyProp(props.loading));
|
|
99
|
+
const commandList = computed(() => toArray(props.command).filter(Boolean));
|
|
101
100
|
const statusIcon = computed(() => STATUS_ICON[status.value]);
|
|
102
101
|
const statusBadge = computed(() => STATUS_BADGE[status.value]);
|
|
103
102
|
const iconClass = computed(() => isPending.value ? VARIANT_CLASS[props.variant] : STATUS_CLASS[status.value]);
|
|
103
|
+
const configProvider = useConfigProvider();
|
|
104
|
+
const computedTitle = computed(() => props.title || configProvider.locale.approval.title);
|
|
105
|
+
const computedStatusLabel = computed(() => configProvider.locale.approval[status.value]);
|
|
104
106
|
function clearTimer() {
|
|
105
107
|
if (timerId !== undefined) {
|
|
106
108
|
clearTimeout(timerId);
|
|
@@ -113,6 +115,7 @@ function startTimer() {
|
|
|
113
115
|
if (!isPending.value || !timeout) {
|
|
114
116
|
return;
|
|
115
117
|
}
|
|
118
|
+
timerKey.value++;
|
|
116
119
|
timerId = setTimeout(() => {
|
|
117
120
|
dismiss("timeout");
|
|
118
121
|
}, timeout);
|
|
@@ -154,10 +157,11 @@ function reset() {
|
|
|
154
157
|
emits("update:modelValue", "pending");
|
|
155
158
|
startTimer();
|
|
156
159
|
}
|
|
157
|
-
function onEscape() {
|
|
158
|
-
if (!props.closeOnPressEscape) {
|
|
160
|
+
function onEscape(ev) {
|
|
161
|
+
if (!props.closeOnPressEscape || !isPending.value || isCompositionKeydown(ev)) {
|
|
159
162
|
return;
|
|
160
163
|
}
|
|
164
|
+
ev.preventDefault();
|
|
161
165
|
dismiss("escape");
|
|
162
166
|
}
|
|
163
167
|
watch(() => [status.value, props.timeout], startTimer, { immediate: true });
|
|
@@ -174,25 +178,38 @@ defineExpose({
|
|
|
174
178
|
<template>
|
|
175
179
|
<div
|
|
176
180
|
data-approval-card
|
|
177
|
-
class="pxd-approval-card bg-background p-3 gap-2 flex w-full max-w-full flex-col rounded-xl border"
|
|
181
|
+
class="pxd-approval-card bg-background p-3 gap-2 relative flex w-full max-w-full flex-col overflow-hidden rounded-xl border"
|
|
178
182
|
:data-status="status"
|
|
179
183
|
:data-variant="variant"
|
|
180
184
|
v-bind="$attrs"
|
|
181
185
|
@keydown.esc="onEscape"
|
|
182
186
|
>
|
|
187
|
+
<div
|
|
188
|
+
v-if="isPending && timeout"
|
|
189
|
+
:key="timerKey"
|
|
190
|
+
aria-hidden="true"
|
|
191
|
+
class="pxd-approval-card--progress pxd-countdown-progress inset-x-0 top-0 h-0.5 absolute rounded-full bg-current"
|
|
192
|
+
:style="{ animationDuration: `${timeout}ms` }"
|
|
193
|
+
/>
|
|
194
|
+
|
|
183
195
|
<div class="pxd-approval-card--header gap-2 flex items-center">
|
|
184
|
-
<div
|
|
196
|
+
<div
|
|
197
|
+
class="pxd-approval-card--icon size-8 flex shrink-0 items-center justify-center rounded-md border"
|
|
198
|
+
:class="iconClass"
|
|
199
|
+
>
|
|
185
200
|
<Component :is="statusIcon" class="size-4" />
|
|
186
201
|
</div>
|
|
187
202
|
|
|
188
203
|
<div class="min-w-0 flex-1">
|
|
189
|
-
<div
|
|
204
|
+
<div
|
|
205
|
+
class="pxd-approval-card--title font-medium text-sm leading-tight truncate text-foreground"
|
|
206
|
+
>
|
|
190
207
|
{{ computedTitle }}
|
|
191
208
|
</div>
|
|
192
209
|
|
|
193
210
|
<div
|
|
194
211
|
v-if="description"
|
|
195
|
-
class="pxd-approval-card--description text-sm truncate text-foreground-secondary"
|
|
212
|
+
class="pxd-approval-card--description text-sm truncate leading-none text-foreground-secondary"
|
|
196
213
|
>
|
|
197
214
|
{{ description }}
|
|
198
215
|
</div>
|
|
@@ -222,11 +239,11 @@ defineExpose({
|
|
|
222
239
|
</div>
|
|
223
240
|
|
|
224
241
|
<div class="gap-2 ms-auto flex items-center">
|
|
225
|
-
<PButton :disabled="isDisabled" @click="reject()">
|
|
242
|
+
<PButton size="sm" :disabled="isDisabled" @click="reject()">
|
|
226
243
|
{{ configProvider.locale.approval.reject }}
|
|
227
244
|
</PButton>
|
|
228
245
|
|
|
229
|
-
<PButton variant="primary" :loading="loading" @click="approve()">
|
|
246
|
+
<PButton size="sm" variant="primary" :loading="loading" @click="approve()">
|
|
230
247
|
{{ configProvider.locale.approval.approve }}
|
|
231
248
|
</PButton>
|
|
232
249
|
</div>
|
|
@@ -34,9 +34,9 @@ const emits = defineEmits([
|
|
|
34
34
|
"loadstart"
|
|
35
35
|
]);
|
|
36
36
|
const loadingStatus = shallowRef("idle");
|
|
37
|
+
const isHideAvatar = computed(() => !props.src || props.placeholder || loadingStatus.value === "error");
|
|
37
38
|
const avatarGroupContext = useAvatarGroupContext();
|
|
38
39
|
const computedSize = computed(() => getCssUnitValue(props.size || avatarGroupContext?.props.size));
|
|
39
|
-
const isHideAvatar = computed(() => !props.src || props.placeholder || loadingStatus.value === "error");
|
|
40
40
|
function onLoadError(event) {
|
|
41
41
|
loadingStatus.value = "error";
|
|
42
42
|
emits("error", event);
|
|
@@ -58,7 +58,7 @@ defineExpose({ getLoadingStatus });
|
|
|
58
58
|
<template>
|
|
59
59
|
<div
|
|
60
60
|
data-avatar
|
|
61
|
-
class="pxd-avatar relative inline-flex size-(--avatar-size) items-center justify-center rounded-full bg-background-100 text-
|
|
61
|
+
class="pxd-avatar relative inline-flex size-(--avatar-size) items-center justify-center rounded-full bg-background-100 text-13px select-none before:default-animation-timing-function! after:border after:border-gray-alpha-300 motion-reduce:before:animate-none!"
|
|
62
62
|
:style="{ '--avatar-size': computedSize }"
|
|
63
63
|
:data-placeholder="placeholder"
|
|
64
64
|
v-bind="$attrs"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BacktopProps } from './types';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_13: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof
|
|
4
|
+
default?: (props: typeof __VLS_13) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
click: (args_0: PointerEvent) => any;
|
|
@@ -10,7 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {}, {}, {}
|
|
|
10
10
|
}>, {
|
|
11
11
|
appendToBody: boolean;
|
|
12
12
|
visibleThreshold: number;
|
|
13
|
-
scrollTarget: "
|
|
13
|
+
scrollTarget: "bottom" | "top";
|
|
14
14
|
scrollBehavior: ScrollBehavior;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import ArrowUpIcon from "@gdsicon/vue/arrow-up";
|
|
3
3
|
import { computed, onBeforeUnmount, onMounted, shallowRef } from "vue";
|
|
4
|
-
import { useMotionReduced } from "../../composables/_internal/use-motion-reduce.js";
|
|
5
4
|
import { useTailwindVariant } from "../../composables/_internal/use-tailwind-variant.js";
|
|
5
|
+
import { useMotionReduced } from "../../composables/use-motion-reduce.js";
|
|
6
6
|
import { getScrollTarget, getScrollElement, resolveScrollBehavior } from "../../utils/dom.js";
|
|
7
7
|
import { cachedOff, cachedOn, throttleByRaf } from "../../utils/event.js";
|
|
8
8
|
import PButton from "../button/index.vue";
|
|
@@ -40,6 +40,22 @@ const props = defineProps({
|
|
|
40
40
|
const emits = defineEmits(["click"]);
|
|
41
41
|
let scrollContainer;
|
|
42
42
|
let scrollContainerEl;
|
|
43
|
+
const scrollTop = shallowRef(0);
|
|
44
|
+
const maxScrollTop = shallowRef(0);
|
|
45
|
+
const updateScrollTop = throttleByRaf(() => {
|
|
46
|
+
if (!scrollContainerEl) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
scrollTop.value = scrollContainerEl.scrollTop;
|
|
50
|
+
maxScrollTop.value = Math.max(0, scrollContainerEl.scrollHeight - scrollContainerEl.clientHeight);
|
|
51
|
+
});
|
|
52
|
+
const wrapperRef = shallowRef();
|
|
53
|
+
const isVisible = computed(() => {
|
|
54
|
+
if (props.scrollTarget === "top") {
|
|
55
|
+
return scrollTop.value >= props.visibleThreshold;
|
|
56
|
+
}
|
|
57
|
+
return maxScrollTop.value - scrollTop.value >= props.visibleThreshold;
|
|
58
|
+
});
|
|
43
59
|
const { attrs, classes } = useTailwindVariant({
|
|
44
60
|
base: "pxd-backtop",
|
|
45
61
|
variants: {
|
|
@@ -54,22 +70,6 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
54
70
|
visible: isVisible.value
|
|
55
71
|
}) });
|
|
56
72
|
const motionReduce = useMotionReduced();
|
|
57
|
-
const scrollTop = shallowRef(0);
|
|
58
|
-
const maxScrollTop = shallowRef(0);
|
|
59
|
-
const wrapperRef = shallowRef();
|
|
60
|
-
const isVisible = computed(() => {
|
|
61
|
-
if (props.scrollTarget === "top") {
|
|
62
|
-
return scrollTop.value >= props.visibleThreshold;
|
|
63
|
-
}
|
|
64
|
-
return maxScrollTop.value - scrollTop.value >= props.visibleThreshold;
|
|
65
|
-
});
|
|
66
|
-
const updateScrollTop = throttleByRaf(() => {
|
|
67
|
-
if (!scrollContainerEl) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
scrollTop.value = scrollContainerEl.scrollTop;
|
|
71
|
-
maxScrollTop.value = Math.max(0, scrollContainerEl.scrollHeight - scrollContainerEl.clientHeight);
|
|
72
|
-
});
|
|
73
73
|
function onActionClick(ev) {
|
|
74
74
|
emits("click", ev);
|
|
75
75
|
if (!scrollContainer || !scrollContainerEl) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { BadgeProps } from './types';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
prefix?: (props: typeof
|
|
4
|
+
prefix?: (props: typeof __VLS_7) => any;
|
|
5
5
|
} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_9) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
close: (args_0: Event) => any;
|
|
@@ -33,6 +33,49 @@ const props = defineProps({
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
const emits = defineEmits(["close"]);
|
|
36
|
+
const iconSlotClasses = createTailwindVariant({
|
|
37
|
+
base: "inline-flex shrink-0 items-center justify-center",
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
sm: "w-3 h-3 p-0.5 text-11px",
|
|
41
|
+
md: "w-4 h-4 text-xs",
|
|
42
|
+
lg: "w-5 h-5 text-sm"
|
|
43
|
+
},
|
|
44
|
+
slot: {}
|
|
45
|
+
},
|
|
46
|
+
compoundVariants: [
|
|
47
|
+
{
|
|
48
|
+
size: "sm",
|
|
49
|
+
slot: "prefix",
|
|
50
|
+
class: "-ms-0.5"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
size: "md",
|
|
54
|
+
slot: "prefix",
|
|
55
|
+
class: "-ms-01"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
size: "lg",
|
|
59
|
+
slot: "prefix",
|
|
60
|
+
class: "-ms-1.5"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
size: "sm",
|
|
64
|
+
slot: "suffix",
|
|
65
|
+
class: "-me-0.5"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
size: "md",
|
|
69
|
+
slot: "suffix",
|
|
70
|
+
class: "-me-1.5"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
size: "lg",
|
|
74
|
+
slot: "suffix",
|
|
75
|
+
class: "-me-1.5"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
});
|
|
36
79
|
const configProvider = useConfigProvider();
|
|
37
80
|
const computedSize = computed(() => props.size || configProvider.size);
|
|
38
81
|
const { attrs, classes } = useTailwindVariant({
|
|
@@ -69,7 +112,7 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
69
112
|
rounded: "rounded-full"
|
|
70
113
|
},
|
|
71
114
|
size: {
|
|
72
|
-
sm: "px-1.5 h-5 text-
|
|
115
|
+
sm: "px-1.5 h-5 text-10px",
|
|
73
116
|
md: "px-2.5 h-6 text-xs",
|
|
74
117
|
lg: "px-3 h-8 text-sm"
|
|
75
118
|
}
|
|
@@ -79,49 +122,6 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
79
122
|
shape: props.shape,
|
|
80
123
|
size: computedSize.value
|
|
81
124
|
}) });
|
|
82
|
-
const iconSlotClasses = createTailwindVariant({
|
|
83
|
-
base: "inline-flex shrink-0 items-center justify-center",
|
|
84
|
-
variants: {
|
|
85
|
-
size: {
|
|
86
|
-
sm: "w-3 h-3 p-0.5 text-11",
|
|
87
|
-
md: "w-4 h-4 text-xs",
|
|
88
|
-
lg: "w-5 h-5 text-sm"
|
|
89
|
-
},
|
|
90
|
-
slot: {}
|
|
91
|
-
},
|
|
92
|
-
compoundVariants: [
|
|
93
|
-
{
|
|
94
|
-
size: "sm",
|
|
95
|
-
slot: "prefix",
|
|
96
|
-
class: "-ms-0.5"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
size: "md",
|
|
100
|
-
slot: "prefix",
|
|
101
|
-
class: "-ms-01"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
size: "lg",
|
|
105
|
-
slot: "prefix",
|
|
106
|
-
class: "-ms-1.5"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
size: "sm",
|
|
110
|
-
slot: "suffix",
|
|
111
|
-
class: "-me-0.5"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
size: "md",
|
|
115
|
-
slot: "suffix",
|
|
116
|
-
class: "-me-1.5"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
size: "lg",
|
|
120
|
-
slot: "suffix",
|
|
121
|
-
class: "-me-1.5"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
});
|
|
125
125
|
function onClose(ev) {
|
|
126
126
|
emits("close", ev);
|
|
127
127
|
}
|
|
@@ -145,7 +145,7 @@ function onClose(ev) {
|
|
|
145
145
|
:class="iconSlotClasses({ size: computedSize, slot: 'suffix' })"
|
|
146
146
|
@click.stop="onClose"
|
|
147
147
|
>
|
|
148
|
-
<CrossIcon
|
|
148
|
+
<CrossIcon />
|
|
149
149
|
</button>
|
|
150
150
|
</Component>
|
|
151
151
|
</template>
|
|
@@ -60,5 +60,5 @@ const computedStyle = computed(() => {
|
|
|
60
60
|
</template>
|
|
61
61
|
|
|
62
62
|
<style>
|
|
63
|
-
@property --pxd-border-beam-angle{syntax:"<angle>";initial-value:0deg;inherits:true}.pxd-border-beam{--pxd-border-beam-mask-conic:conic-gradient(from var(--pxd-border-beam-angle),transparent 0%,transparent 30%,hsla(0,0%,100%,.1) 36%,hsla(0,0%,100%,.35) 44%,#fff 52%,#fff 80%,hsla(0,0%,100%,.35) 86%,hsla(0,0%,100%,.1) 92%,transparent 95%,transparent 100%);animation:pxd-animation-border-beam-spin 1.96s linear infinite}.pxd-border-beam:after{background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 54%,hsla(0,0%,100%,.1) 57%,hsla(0,0%,100%,.3) 60%,hsla(0,0%,100%,.6) 63%,hsla(0,0%,100%,.75) 66%,hsla(0,0%,100%,.6) 69%,hsla(0,0%,100%,.3) 72%,hsla(0,0%,100%,.1) 75%,transparent 78%,transparent 100%),radial-gradient(ellipse 70px 40px at 33% -7.4%,var(--border-beam-stroke-color-1,var(--color-pink-700)),transparent),radial-gradient(ellipse 60px 35px at 12% -5%,var(--border-beam-stroke-color-2,var(--color-blue-600)),transparent),radial-gradient(ellipse 40px 70px at 2.1% 68.3%,var(--border-beam-stroke-color-3,var(--color-green-600)),transparent),radial-gradient(ellipse 20px 35px at 2.1% 68.3%,var(--border-beam-stroke-color-4,var(--color-teal-700)),transparent),radial-gradient(ellipse 180px 32px at 74.4% 100%,var(--border-beam-stroke-color-5,var(--color-purple-600)),transparent),radial-gradient(ellipse 85px 26px at 55% 100%,var(--border-beam-stroke-color-6,var(--color-blue-600)),transparent),radial-gradient(ellipse 74px 32px at 93.9% 0,var(--border-beam-stroke-color-7,var(--color-amber-600)),transparent),radial-gradient(ellipse 26px 42px at 100% 27.1%,var(--border-beam-stroke-color-8,var(--color-pink-700)),transparent),radial-gradient(ellipse 52px 48px at 100% 27.1%,var(--border-beam-stroke-color-9,var(--color-purple-700)),transparent);-webkit-mask:var(--pxd-border-beam-mask-conic),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:var(--pxd-border-beam-mask-conic),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:source-in,xor,xor;mask-composite:intersect,exclude}.pxd-border-beam:after,.pxd-border-beam:before{animation:pxd-animation-border-beam-hue 12s ease-in-out infinite;opacity:var(--border-beam-strength)}.pxd-border-beam:before{background:radial-gradient(ellipse 63px 36px at 33% -7.4%,var(--border-beam-glow-color-1,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 54px 32px at 12% -5%,var(--border-beam-glow-color-2,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 36px 63px at 2.1% 68.3%,var(--border-beam-glow-color-3,hsla(var(--color-green-700-value),40%)),transparent),radial-gradient(ellipse 18px 32px at 2.1% 68.3%,var(--border-beam-glow-color-4,hsla(var(--color-teal-700-value),40%)),transparent),radial-gradient(ellipse 162px 29px at 74.4% 100%,var(--border-beam-glow-color-5,hsla(var(--color-purple-700-value),40%)),transparent),radial-gradient(ellipse 77px 23px at 55% 100%,var(--border-beam-glow-color-6,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 67px 29px at 93.9% 0,var(--border-beam-glow-color-7,hsla(var(--color-amber-700-value),40%)),transparent),radial-gradient(ellipse 23px 38px at 100% 27.1%,var(--border-beam-glow-color-8,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 47px 43px at 100% 27.1%,var(--border-beam-glow-color-9,hsla(var(--color-purple-700-value),40%)),transparent);box-shadow:inset 0 0 9px 1px hsla(0,0%,100%,.27);-webkit-mask-composite:source-in,source-over,xor;mask-composite:intersect,add;-webkit-mask-image:var(--pxd-border-beam-mask-conic),linear-gradient(#fff,transparent 28px,transparent calc(100% - 28px),#fff),linear-gradient(to right,#fff,transparent 28px,transparent calc(100% - 28px),#fff);mask-image:var(--pxd-border-beam-mask-conic),linear-gradient(#fff,transparent 28px,transparent calc(100% - 28px),#fff),linear-gradient(to right,#fff,transparent 28px,transparent calc(100% - 28px),#fff)}.pxd-border-beam--bloom{background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 58%,hsla(0,0%,100%,.03) 62%,hsla(0,0%,100%,.08) 65%,hsla(0,0%,100%,.2) 67%,hsla(0,0%,100%,.45) 69%,hsla(0,0%,100%,.85) 70%,hsla(0,0%,100%,.85) 70.5%,hsla(0,0%,100%,.45) 71.5%,hsla(0,0%,100%,.2) 73%,hsla(0,0%,100%,.08) 75%,hsla(0,0%,100%,.03) 78%,transparent 82%);filter:blur(10px) brightness(1.3) saturate(1.2);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:var(--border-beam-strength)}.pxd-border-beam[data-variant=line] .pxd-border-beam--bloom,.pxd-border-beam[data-variant=line]:before{display:none}.pxd-border-beam[data-variant=line]:after{animation:none;background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 68%,var(--border-beam-stroke-color-1,var(--color-blue-600)) 74%,var(--border-beam-stroke-color-2,var(--color-purple-600)) 80%,var(--border-beam-stroke-color-3,var(--color-pink-700)) 86%,var(--border-beam-stroke-color-4,var(--color-amber-600)) 92%,transparent 97%,transparent 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px}.pxd-border-beam[data-disabled=true]{animation-play-state:paused}.pxd-border-beam[data-disabled=true] .pxd-border-beam--bloom,.pxd-border-beam[data-disabled=true]:after,.pxd-border-beam[data-disabled=true]:before{animation:pxd-animation-border-beam-fade-out .5s ease forwards}@keyframes pxd-animation-border-beam-spin{to{--pxd-border-beam-angle:360deg}}@keyframes pxd-animation-border-beam-hue{0%{filter:hue-rotate(-30deg) brightness(1.3) saturate(1.2)}50%{filter:hue-rotate(30deg) brightness(1.3) saturate(1.2)}to{filter:hue-rotate(-30deg) brightness(1.3) saturate(1.2)}}@keyframes pxd-animation-border-beam-fade-out{to{opacity:0}}
|
|
63
|
+
@property --pxd-border-beam-angle{syntax:"<angle>";initial-value:0deg;inherits:true}@property --pxd-border-beam-x{syntax:"<number>";initial-value:.5;inherits:true}@property --pxd-border-beam-edge{syntax:"<number>";initial-value:1;inherits:true}.pxd-border-beam{--pxd-border-beam-mask-conic:conic-gradient(from var(--pxd-border-beam-angle),transparent 0%,transparent 30%,hsla(0,0%,100%,.1) 36%,hsla(0,0%,100%,.35) 44%,#fff 52%,#fff 80%,hsla(0,0%,100%,.35) 86%,hsla(0,0%,100%,.1) 92%,transparent 95%,transparent 100%);animation:pxd-animation-border-beam-spin 1.96s linear infinite}.pxd-border-beam:after{background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 54%,hsla(0,0%,100%,.1) 57%,hsla(0,0%,100%,.3) 60%,hsla(0,0%,100%,.6) 63%,hsla(0,0%,100%,.75) 66%,hsla(0,0%,100%,.6) 69%,hsla(0,0%,100%,.3) 72%,hsla(0,0%,100%,.1) 75%,transparent 78%,transparent 100%),radial-gradient(ellipse 70px 40px at 33% -7.4%,var(--border-beam-stroke-color-1,var(--color-pink-700)),transparent),radial-gradient(ellipse 60px 35px at 12% -5%,var(--border-beam-stroke-color-2,var(--color-blue-600)),transparent),radial-gradient(ellipse 40px 70px at 2.1% 68.3%,var(--border-beam-stroke-color-3,var(--color-green-600)),transparent),radial-gradient(ellipse 20px 35px at 2.1% 68.3%,var(--border-beam-stroke-color-4,var(--color-teal-700)),transparent),radial-gradient(ellipse 180px 32px at 74.4% 100%,var(--border-beam-stroke-color-5,var(--color-purple-600)),transparent),radial-gradient(ellipse 85px 26px at 55% 100%,var(--border-beam-stroke-color-6,var(--color-blue-600)),transparent),radial-gradient(ellipse 74px 32px at 93.9% 0,var(--border-beam-stroke-color-7,var(--color-amber-600)),transparent),radial-gradient(ellipse 26px 42px at 100% 27.1%,var(--border-beam-stroke-color-8,var(--color-pink-700)),transparent),radial-gradient(ellipse 52px 48px at 100% 27.1%,var(--border-beam-stroke-color-9,var(--color-purple-700)),transparent);-webkit-mask:var(--pxd-border-beam-mask-conic),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:var(--pxd-border-beam-mask-conic),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:source-in,xor,xor;mask-composite:intersect,exclude}.pxd-border-beam:after,.pxd-border-beam:before{animation:pxd-animation-border-beam-hue 12s ease-in-out infinite;opacity:var(--border-beam-strength)}.pxd-border-beam:before{background:radial-gradient(ellipse 63px 36px at 33% -7.4%,var(--border-beam-glow-color-1,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 54px 32px at 12% -5%,var(--border-beam-glow-color-2,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 36px 63px at 2.1% 68.3%,var(--border-beam-glow-color-3,hsla(var(--color-green-700-value),40%)),transparent),radial-gradient(ellipse 18px 32px at 2.1% 68.3%,var(--border-beam-glow-color-4,hsla(var(--color-teal-700-value),40%)),transparent),radial-gradient(ellipse 162px 29px at 74.4% 100%,var(--border-beam-glow-color-5,hsla(var(--color-purple-700-value),40%)),transparent),radial-gradient(ellipse 77px 23px at 55% 100%,var(--border-beam-glow-color-6,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 67px 29px at 93.9% 0,var(--border-beam-glow-color-7,hsla(var(--color-amber-700-value),40%)),transparent),radial-gradient(ellipse 23px 38px at 100% 27.1%,var(--border-beam-glow-color-8,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 47px 43px at 100% 27.1%,var(--border-beam-glow-color-9,hsla(var(--color-purple-700-value),40%)),transparent);box-shadow:inset 0 0 9px 1px hsla(0,0%,100%,.27);-webkit-mask-composite:source-in,source-over,xor;mask-composite:intersect,add;-webkit-mask-image:var(--pxd-border-beam-mask-conic),linear-gradient(#fff,transparent 28px,transparent calc(100% - 28px),#fff),linear-gradient(to right,#fff,transparent 28px,transparent calc(100% - 28px),#fff);mask-image:var(--pxd-border-beam-mask-conic),linear-gradient(#fff,transparent 28px,transparent calc(100% - 28px),#fff),linear-gradient(to right,#fff,transparent 28px,transparent calc(100% - 28px),#fff)}.pxd-border-beam--bloom{background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 58%,hsla(0,0%,100%,.03) 62%,hsla(0,0%,100%,.08) 65%,hsla(0,0%,100%,.2) 67%,hsla(0,0%,100%,.45) 69%,hsla(0,0%,100%,.85) 70%,hsla(0,0%,100%,.85) 70.5%,hsla(0,0%,100%,.45) 71.5%,hsla(0,0%,100%,.2) 73%,hsla(0,0%,100%,.08) 75%,hsla(0,0%,100%,.03) 78%,transparent 82%);filter:blur(10px) brightness(1.3) saturate(1.2);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:var(--border-beam-strength)}.pxd-border-beam[data-variant=line] .pxd-border-beam--bloom,.pxd-border-beam[data-variant=line]:before{display:none}.pxd-border-beam[data-variant=line]:after{animation:none;background:conic-gradient(from var(--pxd-border-beam-angle),transparent 0,transparent 68%,var(--border-beam-stroke-color-1,var(--color-blue-600)) 74%,var(--border-beam-stroke-color-2,var(--color-purple-600)) 80%,var(--border-beam-stroke-color-3,var(--color-pink-700)) 86%,var(--border-beam-stroke-color-4,var(--color-amber-600)) 92%,transparent 97%,transparent 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px}.pxd-border-beam[data-variant=bottom]{animation:pxd-animation-border-beam-travel 2.4s linear infinite,pxd-animation-border-beam-edge 2.4s linear infinite}.pxd-border-beam[data-variant=bottom]:before{display:none}.pxd-border-beam[data-variant=bottom]:after{animation:none;background:radial-gradient(ellipse 32px 23px at calc(var(--pxd-border-beam-x)*100%) calc(100% + 2px),hsla(0,0%,100%,.38),transparent),radial-gradient(ellipse 36px 27px at calc(var(--pxd-border-beam-x)*100%) 100%,var(--border-beam-stroke-color-1,var(--color-pink-700)),transparent),radial-gradient(ellipse 30px 24px at calc(var(--pxd-border-beam-x)*100% + 39px) 100%,var(--border-beam-stroke-color-2,var(--color-blue-600)),transparent),radial-gradient(ellipse 33px 21px at calc(var(--pxd-border-beam-x)*100% - 36px) 100%,var(--border-beam-stroke-color-3,var(--color-green-600)),transparent),radial-gradient(ellipse 29px 26px at calc(var(--pxd-border-beam-x)*100% - 54px) 100%,var(--border-beam-stroke-color-4,var(--color-teal-700)),transparent),radial-gradient(ellipse 27px 23px at calc(var(--pxd-border-beam-x)*100% + 51px) 100%,var(--border-beam-stroke-color-5,var(--color-purple-600)),transparent),radial-gradient(ellipse 36px 18px at calc(var(--pxd-border-beam-x)*100% + 21px) 100%,var(--border-beam-stroke-color-6,var(--color-blue-600)),transparent),radial-gradient(ellipse 30px 17px at calc(var(--pxd-border-beam-x)*100% - 21px) 100%,var(--border-beam-stroke-color-7,var(--color-amber-600)),transparent),radial-gradient(ellipse 25px 21px at calc(var(--pxd-border-beam-x)*100% + 66px) 100%,var(--border-beam-stroke-color-8,var(--color-pink-700)),transparent),radial-gradient(ellipse 23px 23px at calc(var(--pxd-border-beam-x)*100% - 66px) 100%,var(--border-beam-stroke-color-9,var(--color-purple-700)),transparent);-webkit-mask:radial-gradient(ellipse 78px 45px at calc(var(--pxd-border-beam-x)*100%) 100%,#fff 0,hsla(0,0%,100%,.5) 45%,transparent 100%),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:radial-gradient(ellipse 78px 45px at calc(var(--pxd-border-beam-x)*100%) 100%,#fff 0,hsla(0,0%,100%,.5) 45%,transparent 100%),linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:source-in,xor,xor;mask-composite:intersect,exclude;opacity:calc(var(--border-beam-strength)*var(--pxd-border-beam-edge));padding:1px}.pxd-border-beam[data-variant=bottom] .pxd-border-beam--bloom{background:radial-gradient(ellipse 42px 30px at calc(var(--pxd-border-beam-x)*100%) 100%,hsla(0,0%,100%,.3),transparent),radial-gradient(ellipse 36px 27px at calc(var(--pxd-border-beam-x)*100%) 100%,var(--border-beam-glow-color-1,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 30px 24px at calc(var(--pxd-border-beam-x)*100% + 39px) 100%,var(--border-beam-glow-color-2,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 33px 21px at calc(var(--pxd-border-beam-x)*100% - 36px) 100%,var(--border-beam-glow-color-3,hsla(var(--color-green-700-value),40%)),transparent),radial-gradient(ellipse 29px 26px at calc(var(--pxd-border-beam-x)*100% - 54px) 100%,var(--border-beam-glow-color-4,hsla(var(--color-teal-700-value),40%)),transparent),radial-gradient(ellipse 27px 23px at calc(var(--pxd-border-beam-x)*100% + 51px) 100%,var(--border-beam-glow-color-5,hsla(var(--color-purple-700-value),40%)),transparent),radial-gradient(ellipse 36px 18px at calc(var(--pxd-border-beam-x)*100% + 21px) 100%,var(--border-beam-glow-color-6,hsla(var(--color-blue-700-value),40%)),transparent),radial-gradient(ellipse 30px 17px at calc(var(--pxd-border-beam-x)*100% - 21px) 100%,var(--border-beam-glow-color-7,hsla(var(--color-amber-700-value),40%)),transparent),radial-gradient(ellipse 25px 21px at calc(var(--pxd-border-beam-x)*100% + 66px) 100%,var(--border-beam-glow-color-8,hsla(var(--color-pink-700-value),40%)),transparent),radial-gradient(ellipse 23px 23px at calc(var(--pxd-border-beam-x)*100% - 66px) 100%,var(--border-beam-glow-color-9,hsla(var(--color-purple-700-value),40%)),transparent);-webkit-mask:radial-gradient(ellipse 84px 82px at calc(var(--pxd-border-beam-x)*100%) 100%,#fff 0,hsla(0,0%,100%,.5) 35%,transparent 100%);mask:radial-gradient(ellipse 84px 82px at calc(var(--pxd-border-beam-x)*100%) 100%,#fff 0,hsla(0,0%,100%,.5) 35%,transparent 100%);-webkit-mask-composite:source-over;mask-composite:add;opacity:calc(var(--border-beam-strength)*var(--pxd-border-beam-edge))}.pxd-border-beam[data-disabled=true]{animation-play-state:paused}.pxd-border-beam[data-disabled=true] .pxd-border-beam--bloom,.pxd-border-beam[data-disabled=true]:after,.pxd-border-beam[data-disabled=true]:before{animation:pxd-animation-border-beam-fade-out .5s ease forwards}@keyframes pxd-animation-border-beam-spin{to{--pxd-border-beam-angle:360deg}}@keyframes pxd-animation-border-beam-hue{0%{filter:hue-rotate(-30deg) brightness(1.3) saturate(1.2)}50%{filter:hue-rotate(30deg) brightness(1.3) saturate(1.2)}to{filter:hue-rotate(-30deg) brightness(1.3) saturate(1.2)}}@keyframes pxd-animation-border-beam-travel{0%{--pxd-border-beam-x:0.06}to{--pxd-border-beam-x:0.94}}@keyframes pxd-animation-border-beam-edge{0%{--pxd-border-beam-edge:0}12.5%{--pxd-border-beam-edge:0}32.5%{--pxd-border-beam-edge:1}67.5%{--pxd-border-beam-edge:1}87.5%{--pxd-border-beam-edge:0}to{--pxd-border-beam-edge:0}}@keyframes pxd-animation-border-beam-fade-out{to{opacity:0}}
|
|
64
64
|
</style>
|
|
@@ -44,7 +44,7 @@ defineProps({ address: {
|
|
|
44
44
|
>
|
|
45
45
|
<LockClosedIcon class="text-sm text-foreground-secondary" />
|
|
46
46
|
|
|
47
|
-
<div class="ps-1.5 min-w-0 flex-1 truncate text-center text-
|
|
47
|
+
<div class="ps-1.5 min-w-0 flex-1 truncate text-center text-13px text-gray-1000">
|
|
48
48
|
{{ address }}
|
|
49
49
|
</div>
|
|
50
50
|
|
|
@@ -35,6 +35,7 @@ const props = defineProps({
|
|
|
35
35
|
default: "default"
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
const ariaLabel = computed(() => props.role === "user" ? "User message" : "System message");
|
|
38
39
|
const { attrs, classes } = useTailwindVariant({
|
|
39
40
|
base: "pxd-bubble group/bubble sibling:mbs-2 gap-2 flex max-w-full cursor-default",
|
|
40
41
|
variants: { role: {
|
|
@@ -68,7 +69,6 @@ const { classes: contentClasses } = useTailwindVariant({
|
|
|
68
69
|
variant: props.variant
|
|
69
70
|
})
|
|
70
71
|
});
|
|
71
|
-
const ariaLabel = computed(() => props.role === "user" ? "User message" : "System message");
|
|
72
72
|
</script>
|
|
73
73
|
|
|
74
74
|
<template>
|
|
@@ -91,17 +91,17 @@ const ariaLabel = computed(() => props.role === "user" ? "User message" : "Syste
|
|
|
91
91
|
<div class="pxd-bubble--wrapper text-sm gap-1 flex w-max flex-col">
|
|
92
92
|
<header
|
|
93
93
|
v-if="header || $slots.header"
|
|
94
|
-
class="pxd-bubble--header flex items-center text-
|
|
94
|
+
class="pxd-bubble--header flex items-center text-13px text-foreground-secondary group-data-[role=user]/bubble:justify-end"
|
|
95
95
|
>
|
|
96
|
-
<slot name="header">
|
|
97
|
-
{{ header }}
|
|
98
|
-
</slot>
|
|
96
|
+
<slot name="header">{{ header }}</slot>
|
|
99
97
|
</header>
|
|
100
98
|
|
|
101
99
|
<div :class="contentClasses">
|
|
102
100
|
<PSpinner v-if="loading" class="translate-y-0.5" />
|
|
103
101
|
<template v-else>
|
|
104
|
-
<slot>
|
|
102
|
+
<slot>
|
|
103
|
+
<span>{{ text }}</span>
|
|
104
|
+
</slot>
|
|
105
105
|
<div
|
|
106
106
|
v-if="$slots.reactions"
|
|
107
107
|
class="pxd-bubble--reactions mbs-1.5 gap-1.5 flex items-center"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BubbleGroupProps } from './types';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_8: {
|
|
3
3
|
item: any;
|
|
4
4
|
index: number;
|
|
5
|
-
},
|
|
5
|
+
}, __VLS_10: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
item?: (props: typeof
|
|
7
|
+
item?: (props: typeof __VLS_8) => any;
|
|
8
8
|
} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<BubbleGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BubbleGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ButtonProps } from './types';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_12: {}, __VLS_14: {}, __VLS_16: {};
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
prefix?: (props: typeof
|
|
4
|
+
prefix?: (props: typeof __VLS_12) => any;
|
|
5
5
|
} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_14) => any;
|
|
7
7
|
} & {
|
|
8
|
-
suffix?: (props: typeof
|
|
8
|
+
suffix?: (props: typeof __VLS_16) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
11
11
|
icon: boolean;
|
|
@@ -57,14 +57,28 @@ const isDisabled = computed(() => isTruthyProp(props.disabled) || isTruthyProp(p
|
|
|
57
57
|
const computedVariant = computed(() => {
|
|
58
58
|
return props.variant || buttonGroupContext?.props.variant || "default";
|
|
59
59
|
});
|
|
60
|
+
const btnContentClasses = computed(() => {
|
|
61
|
+
const { icon, align } = props;
|
|
62
|
+
const internalAlign = icon ? "center" : align;
|
|
63
|
+
const alignClasses = {
|
|
64
|
+
left: "justify-start",
|
|
65
|
+
center: "justify-center",
|
|
66
|
+
right: "justify-end"
|
|
67
|
+
}[internalAlign || buttonGroupContext?.props.align || "center"];
|
|
68
|
+
return {
|
|
69
|
+
"px-1": !icon,
|
|
70
|
+
[alignClasses]: true
|
|
71
|
+
};
|
|
72
|
+
});
|
|
60
73
|
const { attrs, classes } = useTailwindVariant({
|
|
61
74
|
base: "pxd-button inline-flex shrink-0 cursor-pointer touch-manipulation items-center font-inherit select-none focus-visible:z-1 motion-safe:transition-appearance within-group:not-first:rounded-l-none within-group:not-first:border-l-0 within-group:not-last:rounded-r-none",
|
|
62
75
|
variants: {
|
|
63
76
|
size: {
|
|
77
|
+
xxs: `${BASIC_HEIGHTS.xxs} px-1 rounded-sm text-11px`,
|
|
64
78
|
xs: `${BASIC_HEIGHTS.xs} px-1 text-xs rounded-sm`,
|
|
65
|
-
sm: `${BASIC_HEIGHTS.sm} px-
|
|
66
|
-
md: `${BASIC_HEIGHTS.md} px-
|
|
67
|
-
lg: `${BASIC_HEIGHTS.lg} px-
|
|
79
|
+
sm: `${BASIC_HEIGHTS.sm} px-2 text-sm rounded-md`,
|
|
80
|
+
md: `${BASIC_HEIGHTS.md} px-3 text-sm rounded-md`,
|
|
81
|
+
lg: `${BASIC_HEIGHTS.lg} px-4 text-base rounded-lg`
|
|
68
82
|
},
|
|
69
83
|
shape: {
|
|
70
84
|
square: "rounded-none",
|
|
@@ -110,19 +124,6 @@ const { attrs, classes } = useTailwindVariant({
|
|
|
110
124
|
disabled: isDisabled.value
|
|
111
125
|
};
|
|
112
126
|
} });
|
|
113
|
-
const btnContentClasses = computed(() => {
|
|
114
|
-
const { icon, align } = props;
|
|
115
|
-
const internalAlign = icon ? "center" : align;
|
|
116
|
-
const alignClasses = {
|
|
117
|
-
left: "justify-start",
|
|
118
|
-
center: "justify-center",
|
|
119
|
-
right: "justify-end"
|
|
120
|
-
}[internalAlign || buttonGroupContext?.props.align || "center"];
|
|
121
|
-
return {
|
|
122
|
-
"px-1.5": !icon,
|
|
123
|
-
[alignClasses]: true
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
127
|
</script>
|
|
127
128
|
|
|
128
129
|
<template>
|
|
@@ -141,7 +142,7 @@ const btnContentClasses = computed(() => {
|
|
|
141
142
|
<PSpinner v-if="loading" />
|
|
142
143
|
<slot v-else name="prefix" />
|
|
143
144
|
|
|
144
|
-
<span class="
|
|
145
|
+
<span class="min-w-0 flex flex-1 items-center" :class="btnContentClasses">
|
|
145
146
|
<slot />
|
|
146
147
|
</span>
|
|
147
148
|
|
|
@@ -4,14 +4,14 @@ import type {
|
|
|
4
4
|
ComponentShape,
|
|
5
5
|
ComponentSizeWithXs,
|
|
6
6
|
ComponentVariantWithDefault,
|
|
7
|
-
} from '../../types/shared'
|
|
7
|
+
} from '../../types/shared/props'
|
|
8
8
|
|
|
9
9
|
export type ButtonVariant = ComponentVariantWithDefault | 'ghost' | 'simple' | 'link'
|
|
10
10
|
|
|
11
11
|
export interface ButtonProps {
|
|
12
12
|
as?: ComponentAs
|
|
13
13
|
variant?: ButtonVariant
|
|
14
|
-
size?: ComponentSizeWithXs
|
|
14
|
+
size?: ComponentSizeWithXs | 'xxs'
|
|
15
15
|
shape?: ComponentShape
|
|
16
16
|
align?: ComponentAlign
|
|
17
17
|
icon?: boolean
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ComponentSizeWithXs, ComponentAlign } from '../../types/shared'
|
|
1
|
+
import type { ComponentSizeWithXs, ComponentAlign } from '../../types/shared/props'
|
|
2
2
|
import type { ButtonVariant } from '../button/types'
|
|
3
3
|
|
|
4
4
|
export interface ButtonGroupProps {
|
|
5
|
-
size?: ComponentSizeWithXs
|
|
5
|
+
size?: ComponentSizeWithXs | 'xxs'
|
|
6
6
|
align?: ComponentAlign
|
|
7
7
|
variant?: ButtonVariant
|
|
8
8
|
disabled?: boolean
|
|
@@ -2,7 +2,7 @@ import type { CalendarPanelInfo, CalendarProps } from './types';
|
|
|
2
2
|
declare var __VLS_1: {
|
|
3
3
|
year: number;
|
|
4
4
|
month: number;
|
|
5
|
-
},
|
|
5
|
+
}, __VLS_74: {
|
|
6
6
|
isSelected: boolean;
|
|
7
7
|
key: string;
|
|
8
8
|
timestamp: number;
|
|
@@ -16,7 +16,7 @@ declare var __VLS_1: {
|
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
17
|
header?: (props: typeof __VLS_1) => any;
|
|
18
18
|
} & {
|
|
19
|
-
item?: (props: typeof
|
|
19
|
+
item?: (props: typeof __VLS_74) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
change: (args_0: import("../../types/shared/props.js").ComponentDateTimeValue) => any;
|