@soft-stech/bootsman-ui-shadcn 1.5.5 → 1.5.7

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,34 @@
1
+ import { defineComponent as c, openBlock as r, createBlock as s, normalizeClass as i, unref as l, withCtx as f, renderSlot as m } from "vue";
2
+ import { _ as u, g as _ } from "./utils-OU_XEaVl.js";
3
+ const h = /* @__PURE__ */ c({
4
+ __name: "BuiCommandNewItem",
5
+ emits: ["create"],
6
+ setup(p, { emit: n }) {
7
+ const t = n;
8
+ function o() {
9
+ t("create");
10
+ }
11
+ function a(e) {
12
+ e.key === "Enter" && t("create");
13
+ }
14
+ return (e, d) => (r(), s(u, {
15
+ variant: "none",
16
+ onClick: o,
17
+ onKeydown: a,
18
+ class: i(
19
+ l(_)(
20
+ "w-full justify-start px-2 py-1.5 text-left text-primary focus:outline-none",
21
+ "hover:bg-accent/[0.08] focus:!bg-accent/[0.08]"
22
+ )
23
+ )
24
+ }, {
25
+ default: f(() => [
26
+ m(e.$slots, "default")
27
+ ]),
28
+ _: 3
29
+ }, 8, ["class"]));
30
+ }
31
+ });
32
+ export {
33
+ h as _
34
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "../../../BuiCommandNewItem.vue_vue_type_script_setup_true_lang-1gIGF9Wo.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,20 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ create: (...args: any[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
12
+ onCreate?: ((...args: any[]) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -7,3 +7,4 @@ export { default as BuiCommandItem } from './BuiCommandItem.vue';
7
7
  export { default as BuiCommandList } from './BuiCommandList.vue';
8
8
  export { default as BuiCommandSeparator } from './BuiCommandSeparator.vue';
9
9
  export { default as BuiCommandShortcut } from './BuiCommandShortcut.vue';
10
+ export { default as BuiCommandNewItem } from './BuiCommandNewItem.vue';
@@ -1,20 +1,22 @@
1
1
  import { _ as r } from "../../../BuiCommand.vue_vue_type_script_setup_true_lang-BIjWo-Sd.js";
2
2
  import { _ as t } from "../../../BuiCommandDialog.vue_vue_type_script_setup_true_lang-JPEwqlXW.js";
3
- import { _ as u } from "../../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-DZmwTun7.js";
3
+ import { _ as p } from "../../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-DZmwTun7.js";
4
4
  import { _ as i } from "../../../BuiCommandGroup.vue_vue_type_script_setup_true_lang-CLCFU6u0.js";
5
5
  import { _ as s } from "../../../BuiCommandInput.vue_vue_type_script_setup_true_lang-B6ZkLibP.js";
6
6
  import { _ as f } from "../../../BuiCommandItem.vue_vue_type_script_setup_true_lang-lDF8OoZf.js";
7
7
  import { _ as B } from "../../../BuiCommandList.vue_vue_type_script_setup_true_lang-w9fBCIYj.js";
8
8
  import { _ } from "../../../BuiCommandSeparator.vue_vue_type_script_setup_true_lang-C98-rQ3b.js";
9
9
  import { _ as S } from "../../../BuiCommandShortcut.vue_vue_type_script_setup_true_lang-CInlvP4C.js";
10
+ import { _ as g } from "../../../BuiCommandNewItem.vue_vue_type_script_setup_true_lang-1gIGF9Wo.js";
10
11
  export {
11
12
  r as BuiCommand,
12
13
  t as BuiCommandDialog,
13
- u as BuiCommandEmpty,
14
+ p as BuiCommandEmpty,
14
15
  i as BuiCommandGroup,
15
16
  s as BuiCommandInput,
16
17
  f as BuiCommandItem,
17
18
  B as BuiCommandList,
19
+ g as BuiCommandNewItem,
18
20
  _ as BuiCommandSeparator,
19
21
  S as BuiCommandShortcut
20
22
  };
@@ -1,9 +1,9 @@
1
1
  import { _ as j } from "../../../BuiTabs.vue_vue_type_script_setup_true_lang-DOMi5Ruu.js";
2
- import { defineComponent as s, openBlock as i, createBlock as o, unref as t, mergeProps as n, withCtx as d, createElementVNode as p, renderSlot as l } from "vue";
2
+ import { defineComponent as r, openBlock as i, createBlock as o, unref as t, mergeProps as n, withCtx as d, createElementVNode as p, renderSlot as l } from "vue";
3
3
  import { bq as b, br as v } from "../../../index-0I6LZbPQ.js";
4
4
  import { g as c, j as u } from "../../../utils-OU_XEaVl.js";
5
5
  import { _ as V } from "../../../BuiTabsContent.vue_vue_type_script_setup_true_lang-BE_FCFL1.js";
6
- const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
6
+ const g = { class: "flex items-center text-left" }, w = /* @__PURE__ */ r({
7
7
  __name: "BuiTabsTrigger",
8
8
  props: {
9
9
  variant: {},
@@ -13,10 +13,10 @@ const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
13
13
  asChild: { type: Boolean },
14
14
  as: {}
15
15
  },
16
- setup(r) {
17
- const a = r;
16
+ setup(s) {
17
+ const a = s;
18
18
  return (e, f) => (i(), o(t(b), n(a, {
19
- class: t(c)(t(y)({ variant: e.variant }), a.class ?? "")
19
+ class: t(c)(t(h)({ variant: e.variant }), a.class ?? "")
20
20
  }), {
21
21
  default: d(() => [
22
22
  p("div", g, [
@@ -26,7 +26,7 @@ const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
26
26
  _: 3
27
27
  }, 16, ["class"]));
28
28
  }
29
- }), T = /* @__PURE__ */ s({
29
+ }), B = /* @__PURE__ */ r({
30
30
  __name: "BuiTabsList",
31
31
  props: {
32
32
  variant: {},
@@ -35,8 +35,8 @@ const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
35
35
  asChild: { type: Boolean },
36
36
  as: {}
37
37
  },
38
- setup(r) {
39
- const a = r;
38
+ setup(s) {
39
+ const a = s;
40
40
  return (e, f) => (i(), o(t(v), n(a, {
41
41
  class: t(c)(t(m)({ variant: e.variant }), a.class ?? "")
42
42
  }), {
@@ -51,20 +51,20 @@ const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
51
51
  variant: {
52
52
  default: "bg-muted text-muted-foreground p-0",
53
53
  ghost: "bg-background bg-text-foreground",
54
- vertical: "bg-muted text-muted-foreground p-0 flex flex-col justify-start rounded-none"
54
+ vertical: "w-[17.5rem] shrink-0 bg-tabs-sidebar text-muted-foreground p-0 flex flex-col justify-start rounded-none shadow-tab-sidebar-shadow"
55
55
  }
56
56
  },
57
57
  defaultVariants: {
58
58
  variant: "default"
59
59
  }
60
- }), y = u(
61
- "inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground",
60
+ }), h = u(
61
+ "inline-flex items-center justify-center px-3 py-1 text-sm font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground",
62
62
  {
63
63
  variants: {
64
64
  variant: {
65
- default: "rounded-sm text-foreground opacity-[0.56] hover:opacity-100 data-[state=active]:opacity-100 data-[state=active]:bg-background my-1 [&:first-child]:ml-1 [&:last-child]:mr-1 data-[state=active]:shadow-tab-shadow",
66
- ghost: "border-transparent text-muted-foreground pb-0 [&_div]:pb-0.5 [&_div]:data-[state=active]:border-b-2 [&_div]:data-[state=active]:border-primary",
67
- vertical: "border-transparent text-primary data-[state=active]:border-primary data-[state=active]:bg-background border-l-2 border-b-0 w-full h-8 justify-start pl-6"
65
+ default: "whitespace-nowrap rounded-sm text-foreground opacity-[0.56] hover:opacity-100 data-[state=active]:opacity-100 data-[state=active]:bg-background my-1 [&:first-child]:ml-1 [&:last-child]:mr-1 data-[state=active]:shadow-tab-shadow",
66
+ ghost: "whitespace-nowrap border-transparent text-muted-foreground pb-0 [&_div]:pb-0.5 [&_div]:data-[state=active]:border-b-2 [&_div]:data-[state=active]:border-primary",
67
+ vertical: "border-transparent text-primary data-[state=active]:border-primary data-[state=active]:bg-background data-[state=active]:shadow-tab-sidebar-shadow border-l-2 border-b-0 w-full h-fit justify-start pl-6"
68
68
  }
69
69
  },
70
70
  defaultVariants: {
@@ -75,8 +75,8 @@ const g = { class: "flex items-center" }, B = /* @__PURE__ */ s({
75
75
  export {
76
76
  j as BuiTabs,
77
77
  V as BuiTabsContent,
78
- T as BuiTabsList,
79
- B as BuiTabsTrigger,
78
+ B as BuiTabsList,
79
+ w as BuiTabsTrigger,
80
80
  m as tabsListVariants,
81
- y as tabsTriggerVariants
81
+ h as tabsTriggerVariants
82
82
  };