@pequity/squirrel 1.0.29-beta.1 → 1.2.3

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.
@@ -1,61 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, createVNode, createElementVNode, toDisplayString, Fragment, renderList, createBlock, withCtx, resolveDynamicComponent, createCommentVNode } from "vue";
2
- import PBtn from "../p-btn.js";
3
- import PCloseBtn from "../p-close-btn.js";
4
- const _hoisted_1 = {
5
- class: "fixed bottom-6 left-1/2 flex h-12 -translate-x-1/2 select-none flex-row items-center rounded-lg bg-p-purple-60 px-2 text-sm font-medium text-white",
6
- role: "alertdialog"
7
- };
8
- const _hoisted_2 = { class: "px-3" };
9
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "mx-4 h-9 w-0.5 rounded bg-p-purple-50" }, null, -1);
10
- const _hoisted_4 = { class: "flex" };
11
- const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- __name: "p-action-bar",
14
- props: {
15
- label: {
16
- type: String,
17
- required: true
18
- },
19
- actions: {
20
- type: Array,
21
- required: true
22
- }
23
- },
24
- emits: ["click:dismiss", "click:action"],
25
- setup(__props) {
26
- return (_ctx, _cache) => {
27
- return openBlock(), createElementBlock("div", _hoisted_1, [
28
- createVNode(PCloseBtn, {
29
- variant: "dark",
30
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click:dismiss"))
31
- }),
32
- createElementVNode("p", _hoisted_2, toDisplayString(__props.label), 1),
33
- _hoisted_3,
34
- createElementVNode("div", _hoisted_4, [
35
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action) => {
36
- return openBlock(), createBlock(PBtn, {
37
- key: `action-${action.name}`,
38
- size: "sm",
39
- type: "secondary-ghost-dark",
40
- onClick: ($event) => _ctx.$emit("click:action", action.name)
41
- }, {
42
- default: withCtx(() => [
43
- createElementVNode("div", _hoisted_5, [
44
- action.icon ? (openBlock(), createBlock(resolveDynamicComponent(action.icon), {
45
- key: 0,
46
- class: "h-4 w-4"
47
- })) : createCommentVNode("", true),
48
- createElementVNode("div", null, toDisplayString(action.label), 1)
49
- ])
50
- ]),
51
- _: 2
52
- }, 1032, ["onClick"]);
53
- }), 128))
54
- ])
55
- ]);
56
- };
57
- }
58
- });
59
- export {
60
- _sfc_main as _
61
- };