@tb-dev/vue-components 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/popover/types.d.ts +18 -0
- package/dist/index.js +36 -2
- package/package.json +1 -1
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PopoverContentProps } from 'reka-ui';
|
|
2
3
|
export interface PopoverProps {
|
|
4
|
+
align?: PopoverContentProps['align'];
|
|
5
|
+
alignOffset?: PopoverContentProps['alignOffset'];
|
|
6
|
+
arrowPadding?: PopoverContentProps['arrowPadding'];
|
|
7
|
+
avoidCollisions?: PopoverContentProps['avoidCollisions'];
|
|
8
|
+
collisionBoundary?: PopoverContentProps['collisionBoundary'];
|
|
9
|
+
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
3
10
|
contentClass?: HTMLAttributes['class'];
|
|
11
|
+
disableOutsidePointerEvents?: PopoverContentProps['disableOutsidePointerEvents'];
|
|
12
|
+
disableUpdateOnLayoutShift?: PopoverContentProps['disableUpdateOnLayoutShift'];
|
|
13
|
+
forceMount?: PopoverContentProps['forceMount'];
|
|
14
|
+
hideWhenDetached?: PopoverContentProps['hideWhenDetached'];
|
|
4
15
|
keepOpen?: boolean;
|
|
16
|
+
positionStrategy?: PopoverContentProps['positionStrategy'];
|
|
17
|
+
prioritizePosition?: PopoverContentProps['prioritizePosition'];
|
|
18
|
+
reference?: PopoverContentProps['reference'];
|
|
19
|
+
side?: PopoverContentProps['side'];
|
|
20
|
+
sideOffset?: PopoverContentProps['sideOffset'];
|
|
21
|
+
sticky?: PopoverContentProps['sticky'];
|
|
22
|
+
updatePositionStrategy?: PopoverContentProps['updatePositionStrategy'];
|
|
5
23
|
}
|
package/dist/index.js
CHANGED
|
@@ -4039,8 +4039,25 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
4039
4039
|
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
4040
4040
|
__name: "Popover",
|
|
4041
4041
|
props: /* @__PURE__ */ mergeModels({
|
|
4042
|
+
align: {},
|
|
4043
|
+
alignOffset: {},
|
|
4044
|
+
arrowPadding: {},
|
|
4045
|
+
avoidCollisions: { type: Boolean },
|
|
4046
|
+
collisionBoundary: {},
|
|
4047
|
+
collisionPadding: {},
|
|
4042
4048
|
contentClass: {},
|
|
4043
|
-
|
|
4049
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
4050
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
4051
|
+
forceMount: { type: Boolean },
|
|
4052
|
+
hideWhenDetached: { type: Boolean },
|
|
4053
|
+
keepOpen: { type: Boolean },
|
|
4054
|
+
positionStrategy: {},
|
|
4055
|
+
prioritizePosition: { type: Boolean },
|
|
4056
|
+
reference: {},
|
|
4057
|
+
side: {},
|
|
4058
|
+
sideOffset: {},
|
|
4059
|
+
sticky: {},
|
|
4060
|
+
updatePositionStrategy: {}
|
|
4044
4061
|
}, {
|
|
4045
4062
|
"modelValue": { type: Boolean, ...{ required: true } },
|
|
4046
4063
|
"modelModifiers": {}
|
|
@@ -4072,6 +4089,23 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
4072
4089
|
_: 3
|
|
4073
4090
|
}),
|
|
4074
4091
|
createVNode(unref(_sfc_main$1m), {
|
|
4092
|
+
align: _ctx.align,
|
|
4093
|
+
"align-offset": _ctx.alignOffset,
|
|
4094
|
+
"arrow-padding": _ctx.arrowPadding,
|
|
4095
|
+
"avoid-collisions": _ctx.avoidCollisions,
|
|
4096
|
+
"collision-boundary": _ctx.collisionBoundary,
|
|
4097
|
+
"collision-padding": _ctx.collisionPadding,
|
|
4098
|
+
"disable-outside-pointer-events": _ctx.disableOutsidePointerEvents,
|
|
4099
|
+
"disable-update-on-layout-shift": _ctx.disableUpdateOnLayoutShift,
|
|
4100
|
+
"force-mount": _ctx.forceMount,
|
|
4101
|
+
"hide-when-detached": _ctx.hideWhenDetached,
|
|
4102
|
+
"position-strategy": _ctx.positionStrategy,
|
|
4103
|
+
"prioritize-position": _ctx.prioritizePosition,
|
|
4104
|
+
reference: _ctx.reference,
|
|
4105
|
+
side: _ctx.side,
|
|
4106
|
+
"side-offset": _ctx.sideOffset,
|
|
4107
|
+
sticky: _ctx.sticky,
|
|
4108
|
+
"update-position-strategy": _ctx.updatePositionStrategy,
|
|
4075
4109
|
class: normalizeClass(_ctx.contentClass),
|
|
4076
4110
|
onPointerDownOutside
|
|
4077
4111
|
}, {
|
|
@@ -4079,7 +4113,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
4079
4113
|
renderSlot(_ctx.$slots, "default")
|
|
4080
4114
|
]),
|
|
4081
4115
|
_: 3
|
|
4082
|
-
}, 8, ["class"])
|
|
4116
|
+
}, 8, ["align", "align-offset", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "disable-outside-pointer-events", "disable-update-on-layout-shift", "force-mount", "hide-when-detached", "position-strategy", "prioritize-position", "reference", "side", "side-offset", "sticky", "update-position-strategy", "class"])
|
|
4083
4117
|
]),
|
|
4084
4118
|
_: 3
|
|
4085
4119
|
}, 8, ["open"]);
|