@pihanga2/shadcn 0.2.22 → 0.2.23

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,75 +1,75 @@
1
1
  import { cn as e } from "../../lib/utils.js";
2
- import { Drawer as t } from "../../node_modules/vaul/dist/index.js";
3
2
  import "react";
4
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ import { Drawer as r } from "vaul";
5
5
  //#region src/components/ui/drawer.tsx
6
6
  function i({ ...e }) {
7
- return /* @__PURE__ */ n(t.Root, {
7
+ return /* @__PURE__ */ t(r.Root, {
8
8
  "data-slot": "drawer",
9
9
  ...e
10
10
  });
11
11
  }
12
12
  function a({ ...e }) {
13
- return /* @__PURE__ */ n(t.Trigger, {
13
+ return /* @__PURE__ */ t(r.Trigger, {
14
14
  "data-slot": "drawer-trigger",
15
15
  ...e
16
16
  });
17
17
  }
18
18
  function o({ ...e }) {
19
- return /* @__PURE__ */ n(t.Portal, {
19
+ return /* @__PURE__ */ t(r.Portal, {
20
20
  "data-slot": "drawer-portal",
21
21
  ...e
22
22
  });
23
23
  }
24
24
  function s({ ...e }) {
25
- return /* @__PURE__ */ n(t.Close, {
25
+ return /* @__PURE__ */ t(r.Close, {
26
26
  "data-slot": "drawer-close",
27
27
  ...e
28
28
  });
29
29
  }
30
- function c({ className: r, ...i }) {
31
- return /* @__PURE__ */ n(t.Overlay, {
30
+ function c({ className: n, ...i }) {
31
+ return /* @__PURE__ */ t(r.Overlay, {
32
32
  "data-slot": "drawer-overlay",
33
- className: e("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", r),
33
+ className: e("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", n),
34
34
  ...i
35
35
  });
36
36
  }
37
37
  function l({ className: i, children: a, ...s }) {
38
- return /* @__PURE__ */ r(o, {
38
+ return /* @__PURE__ */ n(o, {
39
39
  "data-slot": "drawer-portal",
40
- children: [/* @__PURE__ */ n(c, {}), /* @__PURE__ */ r(t.Content, {
40
+ children: [/* @__PURE__ */ t(c, {}), /* @__PURE__ */ n(r.Content, {
41
41
  "data-slot": "drawer-content",
42
42
  className: e("group/drawer-content fixed z-50 flex h-auto flex-col bg-background", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", i),
43
43
  ...s,
44
- children: [/* @__PURE__ */ n("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), a]
44
+ children: [/* @__PURE__ */ t("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), a]
45
45
  })]
46
46
  });
47
47
  }
48
- function u({ className: t, ...r }) {
49
- return /* @__PURE__ */ n("div", {
48
+ function u({ className: n, ...r }) {
49
+ return /* @__PURE__ */ t("div", {
50
50
  "data-slot": "drawer-header",
51
- className: e("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", t),
51
+ className: e("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", n),
52
52
  ...r
53
53
  });
54
54
  }
55
- function d({ className: t, ...r }) {
56
- return /* @__PURE__ */ n("div", {
55
+ function d({ className: n, ...r }) {
56
+ return /* @__PURE__ */ t("div", {
57
57
  "data-slot": "drawer-footer",
58
- className: e("mt-auto flex flex-col gap-2 p-4", t),
58
+ className: e("mt-auto flex flex-col gap-2 p-4", n),
59
59
  ...r
60
60
  });
61
61
  }
62
- function f({ className: r, ...i }) {
63
- return /* @__PURE__ */ n(t.Title, {
62
+ function f({ className: n, ...i }) {
63
+ return /* @__PURE__ */ t(r.Title, {
64
64
  "data-slot": "drawer-title",
65
- className: e("font-semibold text-foreground", r),
65
+ className: e("font-semibold text-foreground", n),
66
66
  ...i
67
67
  });
68
68
  }
69
- function p({ className: r, ...i }) {
70
- return /* @__PURE__ */ n(t.Description, {
69
+ function p({ className: n, ...i }) {
70
+ return /* @__PURE__ */ t(r.Description, {
71
71
  "data-slot": "drawer-description",
72
- className: e("text-sm text-muted-foreground", r),
72
+ className: e("text-sm text-muted-foreground", n),
73
73
  ...i
74
74
  });
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pihanga2/shadcn",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Pihanga core card components built on shadcn/ui and Radix UI — the npm distribution of pihanga-shadcn.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -188,6 +188,10 @@
188
188
  "import": "./cards/suspense/index.js",
189
189
  "types": "./cards/suspense/index.d.ts"
190
190
  },
191
+ "./cards/swimlane": {
192
+ "import": "./cards/swimlane/index.js",
193
+ "types": "./cards/swimlane/index.d.ts"
194
+ },
191
195
  "./cards/switch": {
192
196
  "import": "./cards/switch/index.js",
193
197
  "types": "./cards/switch/index.d.ts"
@@ -235,7 +239,8 @@
235
239
  "./theme": {
236
240
  "style": "./theme.css",
237
241
  "default": "./theme.css"
238
- }
242
+ },
243
+ "./cards.schema.json": "./cards.schema.json"
239
244
  },
240
245
  "sideEffects": [
241
246
  "./cards/attachment/index.js",
@@ -284,6 +289,7 @@
284
289
  "./cards/stack/index.js",
285
290
  "./cards/stepper/index.js",
286
291
  "./cards/suspense/index.js",
292
+ "./cards/swimlane/index.js",
287
293
  "./cards/switch/index.js",
288
294
  "./cards/tabs/index.js",
289
295
  "./cards/textArea/index.js",