@surdeddd/bottom-sheet 0.4.0 → 0.4.1
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/element.cjs +11 -3
- package/dist/element.iife.global.js +2 -2
- package/dist/element.js +11 -3
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/dist/qwik.cjs +6 -0
- package/dist/qwik.js +6 -0
- package/dist/react.cjs +24 -2
- package/dist/react.js +24 -2
- package/dist/solid.cjs +6 -0
- package/dist/solid.js +6 -0
- package/dist/solid.source.jsx +6 -0
- package/dist/styles.css +17 -5
- package/dist/svelte-core.cjs +6 -0
- package/dist/svelte-core.js +6 -0
- package/dist/svelte-src/BottomSheet.svelte +10 -10
- package/dist/svelte.cjs +53 -45
- package/dist/svelte.js +53 -45
- package/dist/vue.cjs +30 -22
- package/dist/vue.js +30 -22
- package/package.json +3 -3
package/dist/svelte.js
CHANGED
|
@@ -3273,6 +3273,9 @@ var BottomSheetEngine = class {
|
|
|
3273
3273
|
if (this.anchorHost && this.anchorHost !== this.scrimParent) {
|
|
3274
3274
|
this.anchorHost.style.setProperty("--bs-size", `${size}px`);
|
|
3275
3275
|
}
|
|
3276
|
+
if (this.rootEl && this.rootEl !== this.scrimParent && this.rootEl !== this.anchorHost) {
|
|
3277
|
+
this.rootEl.style.setProperty("--bs-size", `${size}px`);
|
|
3278
|
+
}
|
|
3276
3279
|
}
|
|
3277
3280
|
const progress = this.computeProgress(size);
|
|
3278
3281
|
const progressChanged = this.progressWriteSentinel.shouldWrite(
|
|
@@ -3284,6 +3287,9 @@ var BottomSheetEngine = class {
|
|
|
3284
3287
|
if (this.anchorHost) {
|
|
3285
3288
|
this.anchorHost.style.setProperty("--bs-progress", String(progress));
|
|
3286
3289
|
}
|
|
3290
|
+
if (this.rootEl && this.rootEl !== this.anchorHost) {
|
|
3291
|
+
this.rootEl.style.setProperty("--bs-progress", String(progress));
|
|
3292
|
+
}
|
|
3287
3293
|
}
|
|
3288
3294
|
this.scrim.applyOpacity(progress, progressChanged);
|
|
3289
3295
|
if (progressChanged && this.bus.listenerCount("progress") > 0) {
|
|
@@ -3410,9 +3416,9 @@ function createBottomSheet(opts) {
|
|
|
3410
3416
|
};
|
|
3411
3417
|
}
|
|
3412
3418
|
var root_1 = $2.from_html(`<div class="bs-backdrop" aria-hidden="true"></div>`);
|
|
3413
|
-
var
|
|
3414
|
-
var
|
|
3415
|
-
var root = $2.from_html(`<div class="bs-root"><!> <div class="bs-screen"><!></div> <section class="bs-sheet" role="dialog"
|
|
3419
|
+
var root_5 = $2.from_html(`<div class="bs-button-slot" data-side="left"><!></div>`);
|
|
3420
|
+
var root_6 = $2.from_html(`<div class="bs-button-slot" data-side="right"><!></div>`);
|
|
3421
|
+
var root = $2.from_html(`<div class="bs-root"><!> <div class="bs-screen"><!></div> <section class="bs-sheet" role="dialog"><div class="bs-handle" role="slider" tabindex="0" aria-label="Resize sheet"><!></div> <div class="bs-content" tabindex="0" role="region" aria-label="Sheet content"><!></div> <span class="bs-sr-only" role="status" aria-live="polite"> </span></section> <!> <!></div>`);
|
|
3416
3422
|
function BottomSheet($$anchor, $$props) {
|
|
3417
3423
|
$2.push($$props, true);
|
|
3418
3424
|
let mode = $2.prop($$props, "mode", 3, "bottom"), animation = $2.prop($$props, "animation", 3, "spring"), focusTrap = $2.prop($$props, "focusTrap", 3, false), closeOnEscape = $2.prop($$props, "closeOnEscape", 3, true), closeOnBack = $2.prop($$props, "closeOnBack", 3, false), lockBodyScroll2 = $2.prop($$props, "lockBodyScroll", 3, true), rubberBand2 = $2.prop($$props, "rubberBand", 3, true), backdrop = $2.prop($$props, "backdrop", 3, true), closeOnBackdrop = $2.prop($$props, "closeOnBackdrop", 3, true), persistent = $2.prop($$props, "persistent", 3, false), disableClose = $2.prop($$props, "disableClose", 3, false), disableDrag = $2.prop($$props, "disableDrag", 3, false), closeOnRouteChange = $2.prop($$props, "closeOnRouteChange", 3, false), openProp = $2.prop($$props, "open", 15), snap = $2.prop($$props, "snap", 15), ariaLabel = $2.prop($$props, "ariaLabel", 3, "Bottom sheet");
|
|
@@ -3591,68 +3597,70 @@ function BottomSheet($$anchor, $$props) {
|
|
|
3591
3597
|
$2.reset(div_2);
|
|
3592
3598
|
$2.bind_this(div_2, ($$value) => $2.set(screenEl, $$value), () => $2.get(screenEl));
|
|
3593
3599
|
var section = $2.sibling(div_2, 2);
|
|
3594
|
-
var
|
|
3600
|
+
var div_3 = $2.child(section);
|
|
3601
|
+
$2.set_attribute(div_3, "aria-valuemin", 0);
|
|
3602
|
+
var node_3 = $2.child(div_3);
|
|
3595
3603
|
{
|
|
3596
3604
|
var consequent_2 = ($$anchor2) => {
|
|
3597
|
-
var
|
|
3598
|
-
var node_4 = $2.
|
|
3599
|
-
$2.snippet(node_4, () => $$props.
|
|
3600
|
-
$2.
|
|
3601
|
-
$2.append($$anchor2, div_3);
|
|
3605
|
+
var fragment_1 = $2.comment();
|
|
3606
|
+
var node_4 = $2.first_child(fragment_1);
|
|
3607
|
+
$2.snippet(node_4, () => $$props.header, () => $2.get(viewState));
|
|
3608
|
+
$2.append($$anchor2, fragment_1);
|
|
3602
3609
|
};
|
|
3603
3610
|
$2.if(node_3, ($$render) => {
|
|
3604
|
-
if ($$props.
|
|
3611
|
+
if ($$props.header) $$render(consequent_2);
|
|
3605
3612
|
});
|
|
3606
3613
|
}
|
|
3607
|
-
|
|
3614
|
+
$2.reset(div_3);
|
|
3615
|
+
$2.bind_this(div_3, ($$value) => $2.set(handleEl, $$value), () => $2.get(handleEl));
|
|
3616
|
+
var div_4 = $2.sibling(div_3, 2);
|
|
3617
|
+
var node_5 = $2.child(div_4);
|
|
3608
3618
|
{
|
|
3609
3619
|
var consequent_3 = ($$anchor2) => {
|
|
3610
|
-
var
|
|
3611
|
-
var node_6 = $2.
|
|
3612
|
-
$2.snippet(node_6, () => $$props.
|
|
3613
|
-
$2.
|
|
3614
|
-
$2.append($$anchor2, div_4);
|
|
3620
|
+
var fragment_2 = $2.comment();
|
|
3621
|
+
var node_6 = $2.first_child(fragment_2);
|
|
3622
|
+
$2.snippet(node_6, () => $$props.children);
|
|
3623
|
+
$2.append($$anchor2, fragment_2);
|
|
3615
3624
|
};
|
|
3616
3625
|
$2.if(node_5, ($$render) => {
|
|
3617
|
-
if ($$props.
|
|
3626
|
+
if ($$props.children) $$render(consequent_3);
|
|
3618
3627
|
});
|
|
3619
3628
|
}
|
|
3620
|
-
|
|
3621
|
-
$2.
|
|
3622
|
-
var
|
|
3629
|
+
$2.reset(div_4);
|
|
3630
|
+
$2.bind_this(div_4, ($$value) => $2.set(contentEl, $$value), () => $2.get(contentEl));
|
|
3631
|
+
var span = $2.sibling(div_4, 2);
|
|
3632
|
+
var text = $2.child(span, true);
|
|
3633
|
+
$2.reset(span);
|
|
3634
|
+
$2.reset(section);
|
|
3635
|
+
$2.bind_this(section, ($$value) => $2.set(sheetEl, $$value), () => $2.get(sheetEl));
|
|
3636
|
+
var node_7 = $2.sibling(section, 2);
|
|
3623
3637
|
{
|
|
3624
3638
|
var consequent_4 = ($$anchor2) => {
|
|
3625
|
-
var
|
|
3626
|
-
var node_8 = $2.
|
|
3627
|
-
$2.snippet(node_8, () => $$props.
|
|
3628
|
-
$2.
|
|
3639
|
+
var div_5 = root_5();
|
|
3640
|
+
var node_8 = $2.child(div_5);
|
|
3641
|
+
$2.snippet(node_8, () => $$props.leftButton);
|
|
3642
|
+
$2.reset(div_5);
|
|
3643
|
+
$2.template_effect(() => $2.set_attribute(div_5, "data-mode", mode()));
|
|
3644
|
+
$2.append($$anchor2, div_5);
|
|
3629
3645
|
};
|
|
3630
3646
|
$2.if(node_7, ($$render) => {
|
|
3631
|
-
if ($$props.
|
|
3647
|
+
if ($$props.leftButton) $$render(consequent_4);
|
|
3632
3648
|
});
|
|
3633
3649
|
}
|
|
3634
|
-
$2.
|
|
3635
|
-
$2.bind_this(div_5, ($$value) => $2.set(handleEl, $$value), () => $2.get(handleEl));
|
|
3636
|
-
var div_6 = $2.sibling(div_5, 2);
|
|
3637
|
-
var node_9 = $2.child(div_6);
|
|
3650
|
+
var node_9 = $2.sibling(node_7, 2);
|
|
3638
3651
|
{
|
|
3639
3652
|
var consequent_5 = ($$anchor2) => {
|
|
3640
|
-
var
|
|
3641
|
-
var node_10 = $2.
|
|
3642
|
-
$2.snippet(node_10, () => $$props.
|
|
3643
|
-
$2.
|
|
3653
|
+
var div_6 = root_6();
|
|
3654
|
+
var node_10 = $2.child(div_6);
|
|
3655
|
+
$2.snippet(node_10, () => $$props.rightButton);
|
|
3656
|
+
$2.reset(div_6);
|
|
3657
|
+
$2.template_effect(() => $2.set_attribute(div_6, "data-mode", mode()));
|
|
3658
|
+
$2.append($$anchor2, div_6);
|
|
3644
3659
|
};
|
|
3645
3660
|
$2.if(node_9, ($$render) => {
|
|
3646
|
-
if ($$props.
|
|
3661
|
+
if ($$props.rightButton) $$render(consequent_5);
|
|
3647
3662
|
});
|
|
3648
3663
|
}
|
|
3649
|
-
$2.reset(div_6);
|
|
3650
|
-
$2.bind_this(div_6, ($$value) => $2.set(contentEl, $$value), () => $2.get(contentEl));
|
|
3651
|
-
var span = $2.sibling(div_6, 2);
|
|
3652
|
-
var text = $2.child(span, true);
|
|
3653
|
-
$2.reset(span);
|
|
3654
|
-
$2.reset(section);
|
|
3655
|
-
$2.bind_this(section, ($$value) => $2.set(sheetEl, $$value), () => $2.get(sheetEl));
|
|
3656
3664
|
$2.reset(div);
|
|
3657
3665
|
$2.template_effect(
|
|
3658
3666
|
($0, $1) => {
|
|
@@ -3660,10 +3668,10 @@ function BottomSheet($$anchor, $$props) {
|
|
|
3660
3668
|
$2.set_attribute(section, "data-active", $2.get(viewState).activeId);
|
|
3661
3669
|
$2.set_attribute(section, "aria-modal", focusTrap() ? "true" : void 0);
|
|
3662
3670
|
$2.set_attribute(section, "aria-label", ariaLabel());
|
|
3663
|
-
$2.set_attribute(
|
|
3664
|
-
$2.set_attribute(
|
|
3665
|
-
$2.set_attribute(
|
|
3666
|
-
$2.set_attribute(
|
|
3671
|
+
$2.set_attribute(div_3, "aria-orientation", $2.get(isVerticalAxis) ? "vertical" : "horizontal");
|
|
3672
|
+
$2.set_attribute(div_3, "aria-valuemax", $0);
|
|
3673
|
+
$2.set_attribute(div_3, "aria-valuenow", $1);
|
|
3674
|
+
$2.set_attribute(div_3, "aria-valuetext", $2.get(viewState).activeId);
|
|
3667
3675
|
$2.set_text(text, $2.get(viewState).activeId);
|
|
3668
3676
|
},
|
|
3669
3677
|
[
|
package/dist/vue.cjs
CHANGED
|
@@ -3273,6 +3273,9 @@ var BottomSheetEngine = class {
|
|
|
3273
3273
|
if (this.anchorHost && this.anchorHost !== this.scrimParent) {
|
|
3274
3274
|
this.anchorHost.style.setProperty("--bs-size", `${size}px`);
|
|
3275
3275
|
}
|
|
3276
|
+
if (this.rootEl && this.rootEl !== this.scrimParent && this.rootEl !== this.anchorHost) {
|
|
3277
|
+
this.rootEl.style.setProperty("--bs-size", `${size}px`);
|
|
3278
|
+
}
|
|
3276
3279
|
}
|
|
3277
3280
|
const progress = this.computeProgress(size);
|
|
3278
3281
|
const progressChanged = this.progressWriteSentinel.shouldWrite(
|
|
@@ -3284,6 +3287,9 @@ var BottomSheetEngine = class {
|
|
|
3284
3287
|
if (this.anchorHost) {
|
|
3285
3288
|
this.anchorHost.style.setProperty("--bs-progress", String(progress));
|
|
3286
3289
|
}
|
|
3290
|
+
if (this.rootEl && this.rootEl !== this.anchorHost) {
|
|
3291
|
+
this.rootEl.style.setProperty("--bs-progress", String(progress));
|
|
3292
|
+
}
|
|
3287
3293
|
}
|
|
3288
3294
|
this.scrim.applyOpacity(progress, progressChanged);
|
|
3289
3295
|
if (progressChanged && this.bus.listenerCount("progress") > 0) {
|
|
@@ -3887,38 +3893,30 @@ var _hoisted_3 = [
|
|
|
3887
3893
|
"aria-modal",
|
|
3888
3894
|
"aria-label"
|
|
3889
3895
|
];
|
|
3890
|
-
var _hoisted_4 =
|
|
3891
|
-
key: 0,
|
|
3892
|
-
class: "bs-button-slot",
|
|
3893
|
-
"data-side": "left"
|
|
3894
|
-
};
|
|
3895
|
-
var _hoisted_5 = {
|
|
3896
|
-
key: 1,
|
|
3897
|
-
class: "bs-button-slot",
|
|
3898
|
-
"data-side": "right"
|
|
3899
|
-
};
|
|
3900
|
-
var _hoisted_6 = [
|
|
3896
|
+
var _hoisted_4 = [
|
|
3901
3897
|
"aria-orientation",
|
|
3902
3898
|
"aria-valuemax",
|
|
3903
3899
|
"aria-valuenow",
|
|
3904
3900
|
"aria-valuetext"
|
|
3905
3901
|
];
|
|
3906
|
-
var
|
|
3902
|
+
var _hoisted_5 = {
|
|
3907
3903
|
ref: "contentRef",
|
|
3908
3904
|
class: "bs-content",
|
|
3909
3905
|
tabindex: "0",
|
|
3910
3906
|
role: "region",
|
|
3911
3907
|
"aria-label": "Sheet content"
|
|
3912
3908
|
};
|
|
3913
|
-
var
|
|
3914
|
-
key:
|
|
3909
|
+
var _hoisted_6 = {
|
|
3910
|
+
key: 0,
|
|
3915
3911
|
class: "bs-footer"
|
|
3916
3912
|
};
|
|
3917
|
-
var
|
|
3913
|
+
var _hoisted_7 = {
|
|
3918
3914
|
class: "bs-sr-only",
|
|
3919
3915
|
role: "status",
|
|
3920
3916
|
"aria-live": "polite"
|
|
3921
3917
|
};
|
|
3918
|
+
var _hoisted_8 = ["data-mode"];
|
|
3919
|
+
var _hoisted_9 = ["data-mode"];
|
|
3922
3920
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3923
3921
|
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
3924
3922
|
to: $props.teleportTo,
|
|
@@ -3953,8 +3951,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3953
3951
|
"aria-modal": $setup.ariaModal ? "true" : void 0,
|
|
3954
3952
|
"aria-label": $props.ariaLabel
|
|
3955
3953
|
}, [
|
|
3956
|
-
_ctx.$slots["button-left"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [vue.renderSlot(_ctx.$slots, "button-left")])) : vue.createCommentVNode("v-if", true),
|
|
3957
|
-
_ctx.$slots["button-right"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [vue.renderSlot(_ctx.$slots, "button-right")])) : vue.createCommentVNode("v-if", true),
|
|
3958
3954
|
vue.createElementVNode("div", {
|
|
3959
3955
|
ref: "handleRef",
|
|
3960
3956
|
class: "bs-handle",
|
|
@@ -3966,23 +3962,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3966
3962
|
"aria-valuenow": $setup.activeIdx,
|
|
3967
3963
|
"aria-valuetext": $setup.state.activeId,
|
|
3968
3964
|
"aria-label": "Resize sheet"
|
|
3969
|
-
}, [vue.renderSlot(_ctx.$slots, "header", { state: $setup.state })], 8,
|
|
3965
|
+
}, [vue.renderSlot(_ctx.$slots, "header", { state: $setup.state })], 8, _hoisted_4),
|
|
3970
3966
|
vue.createElementVNode(
|
|
3971
3967
|
"div",
|
|
3972
|
-
|
|
3968
|
+
_hoisted_5,
|
|
3973
3969
|
[vue.renderSlot(_ctx.$slots, "default")],
|
|
3974
3970
|
512
|
|
3975
3971
|
/* NEED_PATCH */
|
|
3976
3972
|
),
|
|
3977
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div",
|
|
3973
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [vue.renderSlot(_ctx.$slots, "footer", { state: $setup.state })])) : vue.createCommentVNode("v-if", true),
|
|
3978
3974
|
vue.createElementVNode(
|
|
3979
3975
|
"span",
|
|
3980
|
-
|
|
3976
|
+
_hoisted_7,
|
|
3981
3977
|
vue.toDisplayString($setup.state.activeId),
|
|
3982
3978
|
1
|
|
3983
3979
|
/* TEXT */
|
|
3984
3980
|
)
|
|
3985
|
-
], 8, _hoisted_3)
|
|
3981
|
+
], 8, _hoisted_3),
|
|
3982
|
+
_ctx.$slots["button-left"] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3983
|
+
key: 1,
|
|
3984
|
+
class: "bs-button-slot",
|
|
3985
|
+
"data-side": "left",
|
|
3986
|
+
"data-mode": $setup.props.mode ?? "bottom"
|
|
3987
|
+
}, [vue.renderSlot(_ctx.$slots, "button-left")], 8, _hoisted_8)) : vue.createCommentVNode("v-if", true),
|
|
3988
|
+
_ctx.$slots["button-right"] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3989
|
+
key: 2,
|
|
3990
|
+
class: "bs-button-slot",
|
|
3991
|
+
"data-side": "right",
|
|
3992
|
+
"data-mode": $setup.props.mode ?? "bottom"
|
|
3993
|
+
}, [vue.renderSlot(_ctx.$slots, "button-right")], 8, _hoisted_9)) : vue.createCommentVNode("v-if", true)
|
|
3986
3994
|
]), (vue.openBlock(true), vue.createElementBlock(
|
|
3987
3995
|
vue.Fragment,
|
|
3988
3996
|
null,
|
package/dist/vue.js
CHANGED
|
@@ -3271,6 +3271,9 @@ var BottomSheetEngine = class {
|
|
|
3271
3271
|
if (this.anchorHost && this.anchorHost !== this.scrimParent) {
|
|
3272
3272
|
this.anchorHost.style.setProperty("--bs-size", `${size}px`);
|
|
3273
3273
|
}
|
|
3274
|
+
if (this.rootEl && this.rootEl !== this.scrimParent && this.rootEl !== this.anchorHost) {
|
|
3275
|
+
this.rootEl.style.setProperty("--bs-size", `${size}px`);
|
|
3276
|
+
}
|
|
3274
3277
|
}
|
|
3275
3278
|
const progress = this.computeProgress(size);
|
|
3276
3279
|
const progressChanged = this.progressWriteSentinel.shouldWrite(
|
|
@@ -3282,6 +3285,9 @@ var BottomSheetEngine = class {
|
|
|
3282
3285
|
if (this.anchorHost) {
|
|
3283
3286
|
this.anchorHost.style.setProperty("--bs-progress", String(progress));
|
|
3284
3287
|
}
|
|
3288
|
+
if (this.rootEl && this.rootEl !== this.anchorHost) {
|
|
3289
|
+
this.rootEl.style.setProperty("--bs-progress", String(progress));
|
|
3290
|
+
}
|
|
3285
3291
|
}
|
|
3286
3292
|
this.scrim.applyOpacity(progress, progressChanged);
|
|
3287
3293
|
if (progressChanged && this.bus.listenerCount("progress") > 0) {
|
|
@@ -3885,38 +3891,30 @@ var _hoisted_3 = [
|
|
|
3885
3891
|
"aria-modal",
|
|
3886
3892
|
"aria-label"
|
|
3887
3893
|
];
|
|
3888
|
-
var _hoisted_4 =
|
|
3889
|
-
key: 0,
|
|
3890
|
-
class: "bs-button-slot",
|
|
3891
|
-
"data-side": "left"
|
|
3892
|
-
};
|
|
3893
|
-
var _hoisted_5 = {
|
|
3894
|
-
key: 1,
|
|
3895
|
-
class: "bs-button-slot",
|
|
3896
|
-
"data-side": "right"
|
|
3897
|
-
};
|
|
3898
|
-
var _hoisted_6 = [
|
|
3894
|
+
var _hoisted_4 = [
|
|
3899
3895
|
"aria-orientation",
|
|
3900
3896
|
"aria-valuemax",
|
|
3901
3897
|
"aria-valuenow",
|
|
3902
3898
|
"aria-valuetext"
|
|
3903
3899
|
];
|
|
3904
|
-
var
|
|
3900
|
+
var _hoisted_5 = {
|
|
3905
3901
|
ref: "contentRef",
|
|
3906
3902
|
class: "bs-content",
|
|
3907
3903
|
tabindex: "0",
|
|
3908
3904
|
role: "region",
|
|
3909
3905
|
"aria-label": "Sheet content"
|
|
3910
3906
|
};
|
|
3911
|
-
var
|
|
3912
|
-
key:
|
|
3907
|
+
var _hoisted_6 = {
|
|
3908
|
+
key: 0,
|
|
3913
3909
|
class: "bs-footer"
|
|
3914
3910
|
};
|
|
3915
|
-
var
|
|
3911
|
+
var _hoisted_7 = {
|
|
3916
3912
|
class: "bs-sr-only",
|
|
3917
3913
|
role: "status",
|
|
3918
3914
|
"aria-live": "polite"
|
|
3919
3915
|
};
|
|
3916
|
+
var _hoisted_8 = ["data-mode"];
|
|
3917
|
+
var _hoisted_9 = ["data-mode"];
|
|
3920
3918
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3921
3919
|
return openBlock(), createBlock(Teleport, {
|
|
3922
3920
|
to: $props.teleportTo,
|
|
@@ -3951,8 +3949,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3951
3949
|
"aria-modal": $setup.ariaModal ? "true" : void 0,
|
|
3952
3950
|
"aria-label": $props.ariaLabel
|
|
3953
3951
|
}, [
|
|
3954
|
-
_ctx.$slots["button-left"] ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "button-left")])) : createCommentVNode("v-if", true),
|
|
3955
|
-
_ctx.$slots["button-right"] ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "button-right")])) : createCommentVNode("v-if", true),
|
|
3956
3952
|
createElementVNode("div", {
|
|
3957
3953
|
ref: "handleRef",
|
|
3958
3954
|
class: "bs-handle",
|
|
@@ -3964,23 +3960,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3964
3960
|
"aria-valuenow": $setup.activeIdx,
|
|
3965
3961
|
"aria-valuetext": $setup.state.activeId,
|
|
3966
3962
|
"aria-label": "Resize sheet"
|
|
3967
|
-
}, [renderSlot(_ctx.$slots, "header", { state: $setup.state })], 8,
|
|
3963
|
+
}, [renderSlot(_ctx.$slots, "header", { state: $setup.state })], 8, _hoisted_4),
|
|
3968
3964
|
createElementVNode(
|
|
3969
3965
|
"div",
|
|
3970
|
-
|
|
3966
|
+
_hoisted_5,
|
|
3971
3967
|
[renderSlot(_ctx.$slots, "default")],
|
|
3972
3968
|
512
|
|
3973
3969
|
/* NEED_PATCH */
|
|
3974
3970
|
),
|
|
3975
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
|
3971
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "footer", { state: $setup.state })])) : createCommentVNode("v-if", true),
|
|
3976
3972
|
createElementVNode(
|
|
3977
3973
|
"span",
|
|
3978
|
-
|
|
3974
|
+
_hoisted_7,
|
|
3979
3975
|
toDisplayString($setup.state.activeId),
|
|
3980
3976
|
1
|
|
3981
3977
|
/* TEXT */
|
|
3982
3978
|
)
|
|
3983
|
-
], 8, _hoisted_3)
|
|
3979
|
+
], 8, _hoisted_3),
|
|
3980
|
+
_ctx.$slots["button-left"] ? (openBlock(), createElementBlock("div", {
|
|
3981
|
+
key: 1,
|
|
3982
|
+
class: "bs-button-slot",
|
|
3983
|
+
"data-side": "left",
|
|
3984
|
+
"data-mode": $setup.props.mode ?? "bottom"
|
|
3985
|
+
}, [renderSlot(_ctx.$slots, "button-left")], 8, _hoisted_8)) : createCommentVNode("v-if", true),
|
|
3986
|
+
_ctx.$slots["button-right"] ? (openBlock(), createElementBlock("div", {
|
|
3987
|
+
key: 2,
|
|
3988
|
+
class: "bs-button-slot",
|
|
3989
|
+
"data-side": "right",
|
|
3990
|
+
"data-mode": $setup.props.mode ?? "bottom"
|
|
3991
|
+
}, [renderSlot(_ctx.$slots, "button-right")], 8, _hoisted_9)) : createCommentVNode("v-if", true)
|
|
3984
3992
|
]), (openBlock(true), createElementBlock(
|
|
3985
3993
|
Fragment,
|
|
3986
3994
|
null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surdeddd/bottom-sheet",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Universal, headless bottom sheet — framework-agnostic core with React, Vue 3, Svelte, Solid, Qwik, Preact, Lit and Custom Element adapters. Pointer Events, snap points, momentum, a11y, SSR-safe.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
{
|
|
188
188
|
"name": "vue adapter",
|
|
189
189
|
"path": "dist/vue.js",
|
|
190
|
-
"limit": "
|
|
190
|
+
"limit": "21 KB",
|
|
191
191
|
"gzip": true
|
|
192
192
|
},
|
|
193
193
|
{
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
{
|
|
206
206
|
"name": "qwik adapter",
|
|
207
207
|
"path": "dist/qwik.js",
|
|
208
|
-
"limit": "
|
|
208
|
+
"limit": "19 KB",
|
|
209
209
|
"gzip": true
|
|
210
210
|
},
|
|
211
211
|
{
|