@zealsolutions/zeal-ui 1.0.0-alpha.342 → 1.0.0-alpha.344

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.
@@ -0,0 +1,43 @@
1
+ import { openBlock as s, createElementBlock as a, normalizeClass as e, createElementVNode as o, renderSlot as r, createCommentVNode as l, createVNode as c } from "vue";
2
+ import i from "./ChevronDownIcon-CrC-BSpe.js";
3
+ const d = { class: "flex h-full items-center space-x-3" }, u = { class: "truncate" }, g = {
4
+ __name: "BaseDropdownButton",
5
+ props: {
6
+ showButtonIcon: {
7
+ type: Boolean,
8
+ default: !1
9
+ },
10
+ dropdownDirection: {
11
+ type: String,
12
+ default: "down"
13
+ },
14
+ showDropdown: {
15
+ type: Boolean,
16
+ default: !1
17
+ }
18
+ },
19
+ setup(t) {
20
+ return (n, p) => (s(), a("button", {
21
+ ref: "button",
22
+ type: "button",
23
+ class: e(["relative cursor-default text-style-input rounded-[20px] h-10 pl-4 pr-8 text-left text-black-950 dark:text-content ring-inset focus:outline-none focus:ring-2 focus:ring-app-950 focus:bg-app-100 dark:focus:text-black-950", t.showDropdown ? "ring-2 ring-app-950 bg-app-100 dark:!text-black-950" : "ring-1 ring-steel-400 dark:ring-line-strong bg-white dark:bg-surface-raised"])
24
+ }, [
25
+ o("div", d, [
26
+ t.showButtonIcon ? r(n.$slots, "buttonIcon", { key: 0 }) : l("", !0),
27
+ o("div", u, [
28
+ r(n.$slots, "default")
29
+ ])
30
+ ]),
31
+ o("span", {
32
+ class: e(["absolute flex pointer-events-none inset-y-0 right-[18px] w-3 items-center justify-center", t.showDropdown ? "text-black-950" : "text-steel-800 dark:text-content-muted"])
33
+ }, [
34
+ c(i, {
35
+ class: e(["transition-transform duration-300", t.dropdownDirection === "down" ? "" : "rotate-180"])
36
+ }, null, 8, ["class"])
37
+ ], 2)
38
+ ], 2));
39
+ }
40
+ };
41
+ export {
42
+ g as _
43
+ };
@@ -1,8 +1,8 @@
1
- import { useAttrs as p, openBlock as t, createBlock as a, Teleport as B, resolveDynamicComponent as f, withCtx as d, createCommentVNode as s, createVNode as b, unref as i, createElementBlock as w, mergeProps as C, renderSlot as n } from "vue";
1
+ import { useAttrs as p, openBlock as t, createBlock as a, Teleport as b, resolveDynamicComponent as d, withCtx as f, createCommentVNode as s, createVNode as B, unref as i, createElementBlock as w, mergeProps as C, renderSlot as n } from "vue";
2
2
  import { _ as q } from "./BaseOverlay-aTh6_ssu.js";
3
3
  import { _ as O } from "./OpacityTransition-D4EuhJnX.js";
4
4
  import { _ as T } from "./OpacityScaleTransition-CtMzqccC.js";
5
- import { _ as $ } from "./CloseButton-5Lrtf2mr.js";
5
+ import { _ as k } from "./CloseButton-5Lrtf2mr.js";
6
6
  const L = /* @__PURE__ */ Object.assign({
7
7
  inheritAttrs: !1
8
8
  }, {
@@ -56,25 +56,25 @@ const L = /* @__PURE__ */ Object.assign({
56
56
  },
57
57
  emits: ["close", "afterEnter", "afterLeave"],
58
58
  setup(e, { emit: u }) {
59
- const c = p(), m = e, o = u, y = () => {
60
- m.closeOutside && l();
61
- }, l = () => {
62
- o("close");
59
+ const c = p(), m = e, r = u, y = () => {
60
+ m.closeOutside && o();
61
+ }, o = () => {
62
+ r("close");
63
63
  }, h = () => {
64
- o("afterEnter");
64
+ r("afterEnter");
65
65
  }, v = () => {
66
- o("afterLeave");
66
+ r("afterLeave");
67
67
  };
68
- return (r, k) => (t(), a(B, {
68
+ return (l, $) => (t(), a(b, {
69
69
  to: "body",
70
70
  disabled: e.disableTeleport
71
71
  }, [
72
- (t(), a(f(e.overlayTransition), {
72
+ (t(), a(d(e.overlayTransition), {
73
73
  onAfterEnter: h,
74
74
  onAfterLeave: v
75
75
  }, {
76
- default: d(() => [
77
- e.show && e.showOverlay ? (t(), a(f(e.overlay), {
76
+ default: f(() => [
77
+ e.show && e.showOverlay ? (t(), a(d(e.overlay), {
78
78
  key: 0,
79
79
  transparent: e.overlayTransparent,
80
80
  onClose: y
@@ -82,18 +82,18 @@ const L = /* @__PURE__ */ Object.assign({
82
82
  ]),
83
83
  _: 1
84
84
  }, 32)),
85
- b(i(e.modalTransition), null, {
86
- default: d(() => [
87
- e.show ? (t(), w("div", C({ key: 0 }, i(c), { class: "fixed flex flex-col p-8 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-lg overflow-hidden bg-white shadow-xl z-50" }), [
88
- n(r.$slots, "header", { handleClose: l }, () => [
89
- e.showCloseButton ? (t(), a($, {
85
+ B(i(e.modalTransition), null, {
86
+ default: f(() => [
87
+ e.show ? (t(), w("div", C({ key: 0 }, i(c), { class: "fixed flex flex-col p-8 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-lg overflow-hidden bg-white dark:bg-surface-raised shadow-xl z-50" }), [
88
+ n(l.$slots, "header", { handleClose: o }, () => [
89
+ e.showCloseButton ? (t(), a(k, {
90
90
  key: 0,
91
91
  class: "top-2 right-2 absolute",
92
- onClose: l
92
+ onClose: o
93
93
  })) : s("", !0)
94
94
  ]),
95
- n(r.$slots, "default"),
96
- n(r.$slots, "footer")
95
+ n(l.$slots, "default"),
96
+ n(l.$slots, "footer")
97
97
  ], 16)) : s("", !0)
98
98
  ]),
99
99
  _: 3
@@ -0,0 +1,10 @@
1
+ import { openBlock as e, createElementBlock as n } from "vue";
2
+ import { _ as o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const r = {}, t = { class: "inline-block h-2.5 w-2.5 flex-shrink-0 rounded-full bg-steel-500 dark:bg-line-strong" };
4
+ function c(s, l) {
5
+ return e(), n("span", t);
6
+ }
7
+ const i = /* @__PURE__ */ o(r, [["render", c]]);
8
+ export {
9
+ i as default
10
+ };