@ztwoint/z-ui 0.1.80 → 0.1.82

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,11 @@
1
+ import * as React from 'react';
2
+ declare function Z2Breadcrumb({ ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Z2BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Z2BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function Z2BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
6
+ asChild?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function Z2BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function Z2BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function Z2BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
11
+ export { Z2Breadcrumb, Z2BreadcrumbList, Z2BreadcrumbItem, Z2BreadcrumbLink, Z2BreadcrumbPage, Z2BreadcrumbSeparator, Z2BreadcrumbEllipsis, };
@@ -0,0 +1,100 @@
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
+ import { Slot as n } from "@radix-ui/react-slot";
3
+ import { MoreHorizontal as i } from "lucide-react";
4
+ import "react";
5
+ import { cn as t } from "../../lib/utils.js";
6
+ import l from "../assets/icons/z2-slash.js";
7
+ function x({ ...r }) {
8
+ return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
9
+ }
10
+ function h({ className: r, ...e }) {
11
+ return /* @__PURE__ */ a(
12
+ "ol",
13
+ {
14
+ "data-slot": "breadcrumb-list",
15
+ className: t(
16
+ "text-muted-foreground flex flex-wrap items-center gap-1 text-sm break-words",
17
+ r
18
+ ),
19
+ ...e
20
+ }
21
+ );
22
+ }
23
+ function g({ className: r, ...e }) {
24
+ return /* @__PURE__ */ a(
25
+ "li",
26
+ {
27
+ "data-slot": "breadcrumb-item",
28
+ className: t(
29
+ "inline-flex items-center gap-1.5 text-neutral-secondary hover:text-neutral-primary cursor-pointer",
30
+ r
31
+ ),
32
+ ...e
33
+ }
34
+ );
35
+ }
36
+ function N({
37
+ asChild: r,
38
+ className: e,
39
+ ...o
40
+ }) {
41
+ return /* @__PURE__ */ a(
42
+ r ? n : "a",
43
+ {
44
+ "data-slot": "breadcrumb-link",
45
+ className: t("hover:text-foreground transition-colors", e),
46
+ ...o
47
+ }
48
+ );
49
+ }
50
+ function Z({ className: r, ...e }) {
51
+ return /* @__PURE__ */ a(
52
+ "span",
53
+ {
54
+ "data-slot": "breadcrumb-page",
55
+ role: "link",
56
+ "aria-disabled": "true",
57
+ "aria-current": "page",
58
+ className: t("text-neutral-primary", r),
59
+ ...e
60
+ }
61
+ );
62
+ }
63
+ function B({ children: r, className: e, ...o }) {
64
+ return /* @__PURE__ */ a(
65
+ "li",
66
+ {
67
+ "data-slot": "breadcrumb-separator",
68
+ role: "presentation",
69
+ "aria-hidden": "true",
70
+ className: t("[&>svg]:size-3.5 text-stroke-solid-high", e),
71
+ ...o,
72
+ children: r ?? /* @__PURE__ */ a(l, {})
73
+ }
74
+ );
75
+ }
76
+ function k({ className: r, ...e }) {
77
+ return /* @__PURE__ */ s(
78
+ "span",
79
+ {
80
+ "data-slot": "breadcrumb-ellipsis",
81
+ role: "presentation",
82
+ "aria-hidden": "true",
83
+ className: t("flex size-9 items-center justify-center", r),
84
+ ...e,
85
+ children: [
86
+ /* @__PURE__ */ a(i, { className: "size-4" }),
87
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ export {
93
+ x as Z2Breadcrumb,
94
+ k as Z2BreadcrumbEllipsis,
95
+ g as Z2BreadcrumbItem,
96
+ N as Z2BreadcrumbLink,
97
+ h as Z2BreadcrumbList,
98
+ Z as Z2BreadcrumbPage,
99
+ B as Z2BreadcrumbSeparator
100
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
+ declare function Z2RadioGroup({ ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Z2RadioGroupItem({ className, children, size, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item> & {
5
+ size?: 'sm' | 'default' | 'lg';
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function Z2RadioGroupIndicator({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
8
+ export { Z2RadioGroup, Z2RadioGroupItem, Z2RadioGroupIndicator };
@@ -29,7 +29,7 @@ import "../../../stepper/stepper.js";
29
29
  import "../../../stepper-item/stepper-item.js";
30
30
  import "@radix-ui/react-tabs";
31
31
  import "../../table-provider.js";
32
- import { Avatar as p } from "../../../avatar/avatar.js";
32
+ import { Avatar as l } from "../../../avatar/avatar.js";
33
33
  import "../../table.context.js";
34
34
  import "../../../tooltip/tooltip.js";
35
35
  import "../../../table-filter/index.js";
@@ -38,13 +38,14 @@ import "../../../text-preset/text-preset.js";
38
38
  import "react-dom";
39
39
  import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js";
40
40
  import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
41
- const $ = ({
41
+ import "@radix-ui/react-slot";
42
+ const I = ({
42
43
  avatar: m,
43
44
  value: a,
44
45
  rightIcon: o,
45
46
  className: s,
46
47
  helperText: e,
47
- description: l
48
+ description: p
48
49
  }) => /* @__PURE__ */ i(
49
50
  "div",
50
51
  {
@@ -61,7 +62,7 @@ const $ = ({
61
62
  ),
62
63
  children: [
63
64
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 h-full", children: [
64
- /* @__PURE__ */ t(p.Root, { size: "xxs", color: m.color, children: /* @__PURE__ */ t(p.Label, { label: m.label }) }),
65
+ /* @__PURE__ */ t(l.Root, { size: "xxs", color: m.color, children: /* @__PURE__ */ t(l.Label, { label: m.label }) }),
65
66
  a
66
67
  ] }),
67
68
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2.5", children: [
@@ -71,10 +72,10 @@ const $ = ({
71
72
  ]
72
73
  }
73
74
  ),
74
- l && /* @__PURE__ */ t("div", { className: "text-text-neutral-secondary w-full", children: l })
75
+ p && /* @__PURE__ */ t("div", { className: "text-text-neutral-secondary w-full", children: p })
75
76
  ]
76
77
  }
77
78
  );
78
79
  export {
79
- $ as AvatarCell
80
+ I as AvatarCell
80
81
  };
@@ -43,6 +43,7 @@ import "../text-preset/text-preset.js";
43
43
  import "react-dom";
44
44
  import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js";
45
45
  import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
46
+ import "@radix-ui/react-slot";
46
47
  import { TableHeaderWrapper as T } from "./components/table-header-wrapper.js";
47
48
  import { TableHeaderContent as b } from "./components/table-header-content.js";
48
49
  import { TableFooter as s } from "./components/table-footer.js";
@@ -38,8 +38,9 @@ import "../text-preset/text-preset.js";
38
38
  import "react-dom";
39
39
  import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js";
40
40
  import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
41
+ import "@radix-ui/react-slot";
41
42
  import "../table/table.context.js";
42
- const fe = ({
43
+ const Fe = ({
43
44
  dataSource: w,
44
45
  schema: B,
45
46
  loading: b,
@@ -193,5 +194,5 @@ const fe = ({
193
194
  ] });
194
195
  };
195
196
  export {
196
- fe as default
197
+ Fe as default
197
198
  };