@ztwoint/z-ui 0.1.129 → 0.1.130
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.
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +30 -12
- package/dist/components/column-reorder/column-reorder.js +14 -14
- package/dist/components/dropdown/z2-dropdown.js +3 -3
- package/dist/components/input/input.js +1 -1
- package/dist/components/number-badge/index.d.ts +2 -0
- package/dist/components/number-badge/number-badge.d.ts +10 -0
- package/dist/components/number-badge/number-badge.js +27 -0
- package/dist/components/primitives/table-card/table-card.js +1 -1
- package/dist/components/tab/tab.js +57 -27
- package/dist/components/table/components/cell/avatar-cell.js +1 -1
- package/dist/components/table/components/cell/description-cell.js +3 -3
- package/dist/components/table/components/cell/label-cell.js +9 -9
- package/dist/components/table/components/cell/link-cell.js +17 -17
- package/dist/components/table/components/cell/number-cell.js +17 -17
- package/dist/components/table/table.const.d.ts +1 -1
- package/dist/components/table/table.const.js +1 -1
- package/dist/components/table-filter/table-filter-button.js +46 -45
- package/dist/components/table-filter/table-filter-column-button.js +49 -49
- package/dist/css/config/colors/semantic/base.css +6 -6
- package/dist/css/config/config.css +2 -1
- package/dist/css/config/other-variables.css +1 -1
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/number-badge/index.d.ts +2 -0
- package/dist/types/components/number-badge/number-badge.d.ts +10 -0
- package/dist/types/components/table/table.const.d.ts +1 -1
- package/package.json +1 -1
- package/dist/css/config/colors/backgrounds.css +0 -32
- package/dist/css/config/colors/components/avatar.css +0 -53
- package/dist/css/config/colors/components/badge.css +0 -137
- package/dist/css/config/colors/components/checkbox.css +0 -7
- package/dist/css/config/colors/components/featured-icon.css +0 -80
- package/dist/css/config/colors/components/progress-bar.css +0 -7
- package/dist/css/config/colors/components/radio-button.css +0 -7
- package/dist/css/config/colors/components/scroll-overlay.css +0 -17
- package/dist/css/config/colors/components/tab.css +0 -59
- package/dist/css/config/colors/components/toggle-switch.css +0 -3
- package/dist/css/config/colors/components/toggle.css +0 -25
- package/dist/css/config/colors/icons.css +0 -81
- package/dist/css/config/colors/overlay.css +0 -3
- package/dist/css/config/colors/shape.css +0 -163
- package/dist/css/config/colors/stroke.css +0 -79
- package/dist/css/config/colors/surfaces.css +0 -199
- package/dist/css/config/colors/text.css +0 -160
- package/dist/css/config/config-deprecated.css +0 -39
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "stroke" | "filled" | "ghost" | null | undefined;
|
|
4
|
+
variant?: "stroke" | "filled" | "colored-stroke" | "ghost" | null | undefined;
|
|
5
5
|
shade?: "danger" | "neutral" | "brand" | null | undefined;
|
|
6
6
|
size?: "small" | "large" | "medium" | null | undefined;
|
|
7
7
|
iconOnly?: boolean | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as f, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import k from "react";
|
|
3
3
|
import { Slot as w } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as N } from "class-variance-authority";
|
|
@@ -10,9 +10,12 @@ const C = N(
|
|
|
10
10
|
variant: {
|
|
11
11
|
filled: [""],
|
|
12
12
|
stroke: [
|
|
13
|
-
"ring-[
|
|
13
|
+
"ring-[1px] ring-btn-secondary-stroke-default hover:ring-btn-secondary-stroke-hover active:ring-btn-secondary-stroke-pressed disabled:ring-btn-secondary-stroke-disabled",
|
|
14
14
|
"bg-btn-secondary-surface-default hover:bg-btn-secondary-surface-hover active:bg-btn-secondary-surface-pressed disabled:bg-btn-secondary-surface-disabled"
|
|
15
15
|
],
|
|
16
|
+
"colored-stroke": [
|
|
17
|
+
"ring-[1px] bg-btn-secondary-surface-default hover:bg-btn-secondary-surface-hover active:bg-btn-secondary-surface-pressed disabled:bg-btn-secondary-surface-disabled"
|
|
18
|
+
],
|
|
16
19
|
ghost: [
|
|
17
20
|
"hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted"
|
|
18
21
|
]
|
|
@@ -35,17 +38,17 @@ const C = N(
|
|
|
35
38
|
{
|
|
36
39
|
variant: "filled",
|
|
37
40
|
shade: "brand",
|
|
38
|
-
class: "bg-btn-primary-brand-surface-default hover:bg-btn-primary-brand-surface-hover active:bg-btn-primary-brand-surface-pressed disabled:bg-btn-primary-brand-surface-disabled ring-[
|
|
41
|
+
class: "bg-btn-primary-brand-surface-default hover:bg-btn-primary-brand-surface-hover active:bg-btn-primary-brand-surface-pressed disabled:bg-btn-primary-brand-surface-disabled ring-[1px] ring-btn-primary-brand-stroke-default hover:ring-btn-primary-brand-stroke-hover active:ring-btn-primary-brand-stroke-pressed disabled:ring-btn-primary-brand-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
|
|
39
42
|
},
|
|
40
43
|
{
|
|
41
44
|
variant: "filled",
|
|
42
45
|
shade: "neutral",
|
|
43
|
-
class: "bg-btn-primary-neutral-surface-default hover:bg-btn-primary-neutral-surface-hover active:bg-btn-primary-neutral-surface-pressed disabled:bg-btn-primary-neutral-surface-disabled ring-[
|
|
46
|
+
class: "bg-btn-primary-neutral-surface-default hover:bg-btn-primary-neutral-surface-hover active:bg-btn-primary-neutral-surface-pressed disabled:bg-btn-primary-neutral-surface-disabled ring-[1px] ring-btn-primary-neutral-stroke-default hover:ring-btn-primary-neutral-stroke-hover active:ring-btn-primary-neutral-stroke-pressed disabled:ring-btn-primary-neutral-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
|
|
44
47
|
},
|
|
45
48
|
{
|
|
46
49
|
variant: "filled",
|
|
47
50
|
shade: "danger",
|
|
48
|
-
class: "bg-btn-primary-danger-surface-default hover:bg-btn-primary-danger-surface-hover active:bg-btn-primary-danger-surface-pressed disabled:bg-btn-primary-danger-surface-disabled ring-[
|
|
51
|
+
class: "bg-btn-primary-danger-surface-default hover:bg-btn-primary-danger-surface-hover active:bg-btn-primary-danger-surface-pressed disabled:bg-btn-primary-danger-surface-disabled ring-[1px] ring-btn-primary-danger-stroke-default hover:ring-btn-primary-danger-stroke-hover active:ring-btn-primary-danger-stroke-pressed disabled:ring-btn-primary-danger-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
|
|
49
52
|
},
|
|
50
53
|
{
|
|
51
54
|
variant: "stroke",
|
|
@@ -62,6 +65,21 @@ const C = N(
|
|
|
62
65
|
shade: "danger",
|
|
63
66
|
class: "text-text-danger-secondary disabled:text-text-neutral-muted"
|
|
64
67
|
},
|
|
68
|
+
{
|
|
69
|
+
variant: "colored-stroke",
|
|
70
|
+
shade: "neutral",
|
|
71
|
+
class: "text-text-neutral-primary ring-text-neutral-primary hover:ring-text-neutral-primary active:ring-text-neutral-primary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
variant: "colored-stroke",
|
|
75
|
+
shade: "brand",
|
|
76
|
+
class: "text-text-neutral-primary ring-text-brand-secondary hover:ring-text-brand-secondary active:ring-text-brand-secondary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
variant: "colored-stroke",
|
|
80
|
+
shade: "danger",
|
|
81
|
+
class: "text-text-neutral-primary ring-text-danger-secondary hover:ring-text-danger-secondary active:ring-text-danger-secondary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
|
|
82
|
+
},
|
|
65
83
|
{
|
|
66
84
|
variant: "ghost",
|
|
67
85
|
shade: "neutral",
|
|
@@ -90,19 +108,19 @@ const C = N(
|
|
|
90
108
|
className: b,
|
|
91
109
|
shade: u = "neutral",
|
|
92
110
|
size: c,
|
|
93
|
-
variant:
|
|
111
|
+
variant: g = "filled",
|
|
94
112
|
asChild: i = !1,
|
|
95
113
|
leftIcon: r,
|
|
96
114
|
rightIcon: t,
|
|
97
|
-
label:
|
|
115
|
+
label: m,
|
|
98
116
|
children: l,
|
|
99
|
-
...
|
|
100
|
-
},
|
|
101
|
-
const
|
|
102
|
-
C({ shade: u, size: c, variant:
|
|
117
|
+
...p
|
|
118
|
+
}, x) => {
|
|
119
|
+
const y = i ? w : "button", a = m || l, n = !a && !!(r || t), o = n ? r || t : null, v = d(
|
|
120
|
+
C({ shade: u, size: c, variant: g, iconOnly: n }),
|
|
103
121
|
b
|
|
104
122
|
), s = "w-3.5 h-3.5 min-w-max";
|
|
105
|
-
return /* @__PURE__ */ e(
|
|
123
|
+
return /* @__PURE__ */ e(y, { className: v, ref: x, ...p, children: i ? l : n ? o ? /* @__PURE__ */ e("span", { className: s, children: o }) : null : /* @__PURE__ */ f(h, { children: [
|
|
106
124
|
r && /* @__PURE__ */ e("span", { className: d(s), children: r }),
|
|
107
125
|
a && /* @__PURE__ */ e("span", { children: a }),
|
|
108
126
|
t && /* @__PURE__ */ e("span", { className: d(s), children: t })
|
|
@@ -4,35 +4,35 @@ import { cn as f } from "../../lib/utils.js";
|
|
|
4
4
|
import { ColumnItem as p } from "./components/column-item/column-item.js";
|
|
5
5
|
import { useColumnReorder as c } from "./column-reorder.hook.js";
|
|
6
6
|
const C = ({
|
|
7
|
-
columns:
|
|
7
|
+
columns: e,
|
|
8
8
|
onReorder: d,
|
|
9
9
|
onRemove: i,
|
|
10
10
|
onEdit: l,
|
|
11
|
-
renderAction:
|
|
12
|
-
className:
|
|
13
|
-
disabled:
|
|
14
|
-
editable:
|
|
11
|
+
renderAction: m,
|
|
12
|
+
className: t,
|
|
13
|
+
disabled: s = !1,
|
|
14
|
+
editable: n = !1
|
|
15
15
|
}) => {
|
|
16
|
-
const { internalColumns: a } = c({ columns:
|
|
16
|
+
const { internalColumns: a } = c({ columns: e, onReorder: d });
|
|
17
17
|
return /* @__PURE__ */ r(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: f(
|
|
21
|
-
"rounded-2xl border-[
|
|
22
|
-
|
|
21
|
+
"rounded-2xl border-[1px] border-stroke-solid-light bg-background-neutral-default overflow-hidden box-shadow-medium-10",
|
|
22
|
+
t
|
|
23
23
|
),
|
|
24
|
-
children: /* @__PURE__ */ r("div", { className: "divide-y divide-stroke-solid-light", children: a.map((
|
|
24
|
+
children: /* @__PURE__ */ r("div", { className: "divide-y divide-stroke-solid-light", children: a.map((o, u) => /* @__PURE__ */ r(
|
|
25
25
|
p,
|
|
26
26
|
{
|
|
27
|
-
column:
|
|
27
|
+
column: o,
|
|
28
28
|
index: u,
|
|
29
29
|
onRemove: i,
|
|
30
30
|
onEdit: l,
|
|
31
|
-
renderAction:
|
|
32
|
-
disabled:
|
|
33
|
-
editable:
|
|
31
|
+
renderAction: m,
|
|
32
|
+
disabled: s,
|
|
33
|
+
editable: n
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
o.id
|
|
36
36
|
)) })
|
|
37
37
|
}
|
|
38
38
|
);
|
|
@@ -71,7 +71,7 @@ function B({
|
|
|
71
71
|
"div",
|
|
72
72
|
{
|
|
73
73
|
className: d(
|
|
74
|
-
"flex items-center justify-center gap-1.5 p-2 self-stretch relative cursor-pointer rounded-lg bg-white border-[
|
|
74
|
+
"flex items-center justify-center gap-1.5 p-2 self-stretch relative cursor-pointer rounded-lg bg-white border-[1px] border-[#E0E0E0] shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] hover:border-neutral-300 ",
|
|
75
75
|
o
|
|
76
76
|
),
|
|
77
77
|
children: [
|
|
@@ -133,7 +133,7 @@ function F({
|
|
|
133
133
|
align: a,
|
|
134
134
|
sideOffset: 8,
|
|
135
135
|
className: d(
|
|
136
|
-
"bg-white max-w-fit w-[var(--radix-popover-trigger-width)] p-1 flex flex-col items-start rounded-2xl border-[
|
|
136
|
+
"bg-white max-w-fit w-[var(--radix-popover-trigger-width)] p-1 flex flex-col items-start rounded-2xl border-[1px] border-[#E0E0E0] shadow-lg min-w-fit",
|
|
137
137
|
e
|
|
138
138
|
),
|
|
139
139
|
...o
|
|
@@ -222,7 +222,7 @@ function L({
|
|
|
222
222
|
side: l,
|
|
223
223
|
className: d(
|
|
224
224
|
"min-w-md min-h-fit h-[var(--radix-popover-content-height)]",
|
|
225
|
-
"bg-white w-full p-1 flex flex-col items-start rounded-2xl border-[
|
|
225
|
+
"bg-white w-full p-1 flex flex-col items-start rounded-2xl border-[1px] border-[#E0E0E0] shadow-lg",
|
|
226
226
|
e
|
|
227
227
|
),
|
|
228
228
|
...r
|
|
@@ -15,7 +15,7 @@ const d = _("", {
|
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
className: e(
|
|
18
|
-
"rounded-lg bg-input-surface-default flex items-center shadow-[
|
|
18
|
+
"rounded-lg bg-input-surface-default flex items-center shadow-[inset_0_0_0_1px_theme(colors.input.stroke.default)] hover:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.hover)] focus-within:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] focus-within:hover:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] has-[:disabled]:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.disabled)]",
|
|
19
19
|
d({ size: s }),
|
|
20
20
|
o
|
|
21
21
|
),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const numberBadgeVariants: (props?: ({
|
|
4
|
+
textColor?: "danger" | "neutral" | "brand" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface NumberBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof numberBadgeVariants> {
|
|
7
|
+
number: number;
|
|
8
|
+
}
|
|
9
|
+
declare const NumberBadge: React.ForwardRefExoticComponent<NumberBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export { NumberBadge, numberBadgeVariants };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
|
+
import { cn as o } from "../../lib/utils.js";
|
|
5
|
+
const i = d("inline-flex items-center leading-none-medium-sm", {
|
|
6
|
+
variants: {
|
|
7
|
+
textColor: {
|
|
8
|
+
neutral: "text-text-neutral-primary",
|
|
9
|
+
brand: "text-text-brand-secondary",
|
|
10
|
+
danger: "text-text-danger-secondary"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
textColor: "neutral"
|
|
15
|
+
}
|
|
16
|
+
}), x = m.forwardRef(
|
|
17
|
+
({ className: t, textColor: r = "neutral", number: a, ...n }, s) => /* @__PURE__ */ l("span", { className: o(i({ textColor: r }), t), ref: s, ...n, children: [
|
|
18
|
+
/* @__PURE__ */ e("span", { className: "text-text-neutral-muted pr-[1px]", children: "[" }),
|
|
19
|
+
/* @__PURE__ */ e("span", { children: a }),
|
|
20
|
+
/* @__PURE__ */ e("span", { className: "text-text-neutral-muted pl-[1px]", children: "]" })
|
|
21
|
+
] })
|
|
22
|
+
);
|
|
23
|
+
x.displayName = "NumberBadge";
|
|
24
|
+
export {
|
|
25
|
+
x as NumberBadge,
|
|
26
|
+
i as numberBadgeVariants
|
|
27
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
function
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "@radix-ui/react-tabs";
|
|
3
|
+
import { cn as r } from "../../lib/utils.js";
|
|
4
|
+
function m({ className: a, ...t }) {
|
|
5
5
|
return /* @__PURE__ */ e(
|
|
6
|
-
|
|
6
|
+
s.Root,
|
|
7
7
|
{
|
|
8
8
|
"data-slot": "tabs",
|
|
9
|
-
className:
|
|
9
|
+
className: r(a),
|
|
10
10
|
orientation: "horizontal",
|
|
11
11
|
...t
|
|
12
12
|
}
|
|
@@ -14,67 +14,97 @@ function o({ className: a, ...t }) {
|
|
|
14
14
|
}
|
|
15
15
|
function c({ className: a, ...t }) {
|
|
16
16
|
return /* @__PURE__ */ e(
|
|
17
|
-
|
|
17
|
+
s.List,
|
|
18
18
|
{
|
|
19
19
|
"data-slot": "tabs-list",
|
|
20
|
-
className:
|
|
20
|
+
className: r(
|
|
21
21
|
"inline-flex items-center bg-transparent relative",
|
|
22
22
|
"w-full h-11",
|
|
23
23
|
"max-lg:w-full max-lg:max-w-[full] max-lg:overflow-x-auto max-lg:overflow-y-hidden",
|
|
24
24
|
"max-sm:w-full max-sm:px-2",
|
|
25
|
-
// 'after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-neutral-150',
|
|
26
25
|
a
|
|
27
26
|
),
|
|
28
27
|
...t
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function f({
|
|
33
32
|
className: a,
|
|
34
33
|
icon: t,
|
|
35
|
-
label:
|
|
36
|
-
...
|
|
34
|
+
label: n,
|
|
35
|
+
...i
|
|
37
36
|
}) {
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
37
|
+
return /* @__PURE__ */ o(
|
|
38
|
+
s.Trigger,
|
|
40
39
|
{
|
|
41
40
|
"data-slot": "tabs-trigger",
|
|
42
|
-
className:
|
|
41
|
+
className: r(
|
|
42
|
+
// Base positioning and layout
|
|
43
43
|
"flex h-11 p-2.5 justify-center items-center gap-1 relative cursor-pointer",
|
|
44
44
|
"max-lg:min-w-fit max-lg:flex-shrink-0",
|
|
45
45
|
"max-sm:px-1.5 max-sm:py-2 max-sm:gap-0.5",
|
|
46
46
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
|
|
47
47
|
"group",
|
|
48
|
+
// Underline pseudo-element using Tailwind's after: utilities
|
|
49
|
+
'after:content-[""] after:absolute after:left-1/2 after:bottom-0 after:-translate-x-1/2',
|
|
50
|
+
"after:w-[calc(100%-24px)] after:border-b after:border-stroke-solid-attention",
|
|
51
|
+
"after:opacity-0 after:transition-opacity after:duration-200 after:ease-linear after:z-10",
|
|
52
|
+
// Active state - show underline
|
|
53
|
+
"data-[state=active]:after:opacity-100",
|
|
48
54
|
a
|
|
49
55
|
),
|
|
50
|
-
...
|
|
56
|
+
...i,
|
|
51
57
|
children: [
|
|
52
|
-
t && /* @__PURE__ */ e(
|
|
53
|
-
|
|
58
|
+
t && /* @__PURE__ */ e(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: r(
|
|
62
|
+
"w-[14px] h-[14px] flex-shrink-0 flex items-center justify-center transition-colors duration-200",
|
|
63
|
+
// Icon colors based on state
|
|
64
|
+
"text-text-neutral-secondary",
|
|
65
|
+
// Default inactive color
|
|
66
|
+
"group-data-[state=active]:text-text-neutral-primary",
|
|
67
|
+
// Active color
|
|
68
|
+
"group-hover:text-text-neutral-primary",
|
|
69
|
+
// Hover color
|
|
70
|
+
// Force icon size
|
|
71
|
+
"[&>*]:!w-[14px] [&>*]:!h-[14px]"
|
|
72
|
+
),
|
|
73
|
+
children: t
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
n && /* @__PURE__ */ e("div", { className: "flex px-0.5 justify-center items-center gap-1.5 max-sm:px-0.25 max-sm:gap-1", children: /* @__PURE__ */ e(
|
|
54
77
|
"div",
|
|
55
78
|
{
|
|
56
|
-
className:
|
|
57
|
-
"text-center font-[450] transition-colors duration-200
|
|
79
|
+
className: r(
|
|
80
|
+
"text-center font-[450] transition-colors duration-200",
|
|
58
81
|
"text-sm leading-none tracking-[-0.2px]",
|
|
59
82
|
"max-lg:text-[13px]",
|
|
60
|
-
"max-sm:text-xs"
|
|
83
|
+
"max-sm:text-xs",
|
|
84
|
+
// Label colors based on state
|
|
85
|
+
"text-text-neutral-secondary",
|
|
86
|
+
// Default inactive color
|
|
87
|
+
"group-data-[state=active]:text-text-neutral-primary",
|
|
88
|
+
// Active color
|
|
89
|
+
"group-hover:text-text-neutral-primary"
|
|
90
|
+
// Hover color
|
|
61
91
|
),
|
|
62
|
-
children:
|
|
92
|
+
children: n
|
|
63
93
|
}
|
|
64
94
|
) })
|
|
65
95
|
]
|
|
66
96
|
}
|
|
67
97
|
);
|
|
68
98
|
}
|
|
69
|
-
function
|
|
99
|
+
function p({
|
|
70
100
|
className: a,
|
|
71
101
|
...t
|
|
72
102
|
}) {
|
|
73
|
-
return /* @__PURE__ */ e(
|
|
103
|
+
return /* @__PURE__ */ e(s.Content, { "data-slot": "tabs-content", className: r(a), ...t });
|
|
74
104
|
}
|
|
75
105
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
106
|
+
m as Z2Tabs,
|
|
107
|
+
p as Z2TabsContent,
|
|
78
108
|
c as Z2TabsList,
|
|
79
|
-
|
|
109
|
+
f as Z2TabsTrigger
|
|
80
110
|
};
|
|
@@ -66,7 +66,7 @@ const ft = ({
|
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
68
|
className: r(
|
|
69
|
-
"flex flex-col gap-2.5 items-center
|
|
69
|
+
"flex flex-col gap-2.5 items-center h-full min-w-full leading-none-medium-sm p-3",
|
|
70
70
|
s
|
|
71
71
|
),
|
|
72
72
|
children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as l } from "../../../../lib/utils.js";
|
|
3
|
-
const
|
|
3
|
+
const o = ({ value: e, className: t }) => /* @__PURE__ */ r(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
6
|
className: l(
|
|
7
|
-
"text-text-neutral-secondary p-3 w-full h-full items-center flex
|
|
7
|
+
"text-text-neutral-secondary p-3 w-full h-full items-center flex",
|
|
8
8
|
"leading-[24px] text-[14px]",
|
|
9
9
|
t
|
|
10
10
|
),
|
|
@@ -12,5 +12,5 @@ const i = ({ value: e, className: t }) => /* @__PURE__ */ r(
|
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
o as DescriptionCell
|
|
16
16
|
};
|
|
@@ -2,19 +2,19 @@ import { jsxs as e, jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { cn as a } from "../../../../lib/utils.js";
|
|
4
4
|
const u = ({
|
|
5
|
-
value:
|
|
5
|
+
value: r,
|
|
6
6
|
leftIcon: n,
|
|
7
|
-
rightIcon:
|
|
7
|
+
rightIcon: m,
|
|
8
8
|
className: c,
|
|
9
|
-
helperText:
|
|
9
|
+
helperText: t,
|
|
10
10
|
description: s
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const i = "min-h-max min-w-max";
|
|
13
13
|
return /* @__PURE__ */ e(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
16
|
className: a(
|
|
17
|
-
"flex flex-row gap-2.5 items-center
|
|
17
|
+
"flex flex-row gap-2.5 items-center h-full min-w-full leading-none-medium-sm p-3",
|
|
18
18
|
s && "flex-col",
|
|
19
19
|
c
|
|
20
20
|
),
|
|
@@ -27,12 +27,12 @@ const u = ({
|
|
|
27
27
|
),
|
|
28
28
|
children: [
|
|
29
29
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2.5 h-full", children: [
|
|
30
|
-
n && /* @__PURE__ */ l("span", { className: a(
|
|
31
|
-
|
|
30
|
+
n && /* @__PURE__ */ l("span", { className: a(i), children: n }),
|
|
31
|
+
r
|
|
32
32
|
] }),
|
|
33
33
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2.5", children: [
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
t && /* @__PURE__ */ l("span", { className: "text-text-neutral-secondary", children: t }),
|
|
35
|
+
m && /* @__PURE__ */ l("span", { className: a(i), children: m })
|
|
36
36
|
] })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
const
|
|
5
|
-
value:
|
|
6
|
-
href:
|
|
4
|
+
const d = ({
|
|
5
|
+
value: a,
|
|
6
|
+
href: i,
|
|
7
7
|
target: t = "_self",
|
|
8
8
|
leftIcon: n,
|
|
9
|
-
rightIcon:
|
|
10
|
-
className:
|
|
11
|
-
LinkComponent:
|
|
9
|
+
rightIcon: s,
|
|
10
|
+
className: c,
|
|
11
|
+
LinkComponent: o = "a"
|
|
12
12
|
}) => {
|
|
13
13
|
const l = "min-h-max min-w-max";
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
return /* @__PURE__ */ r(
|
|
15
|
+
o,
|
|
16
16
|
{
|
|
17
|
-
href:
|
|
17
|
+
href: i,
|
|
18
18
|
target: t,
|
|
19
19
|
rel: "noopener noreferrer",
|
|
20
20
|
className: e(
|
|
21
|
-
"text-text-brand-secondary p-3 leading-none-medium-sm flex flex-row justify-between
|
|
22
|
-
|
|
21
|
+
"text-text-brand-secondary p-3 leading-none-medium-sm flex flex-row justify-between gap-2.5 min-w-full min-h-full items-center",
|
|
22
|
+
c
|
|
23
23
|
),
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
n && /* @__PURE__ */
|
|
27
|
-
|
|
25
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-2.5 h-full", children: [
|
|
26
|
+
n && /* @__PURE__ */ m("span", { className: e(l), children: n }),
|
|
27
|
+
a
|
|
28
28
|
] }),
|
|
29
|
-
|
|
29
|
+
s && /* @__PURE__ */ m("span", { className: e(l), children: s })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
d as LinkCell
|
|
36
36
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
value:
|
|
6
|
-
leftIcon:
|
|
3
|
+
import { cn as s } from "../../../../lib/utils.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
value: t,
|
|
6
|
+
leftIcon: a,
|
|
7
7
|
rightIcon: n,
|
|
8
|
-
className:
|
|
8
|
+
className: r,
|
|
9
9
|
helperText: i
|
|
10
10
|
}) => {
|
|
11
11
|
const m = "min-h-max min-w-max";
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
16
|
-
"flex gap-2.5 items-center
|
|
17
|
-
|
|
15
|
+
className: s(
|
|
16
|
+
"flex gap-2.5 items-center h-full min-w-full leading-none-medium-sm p-3",
|
|
17
|
+
r
|
|
18
18
|
),
|
|
19
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ l(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: s(
|
|
23
23
|
"text-text-neutral-primary flex justify-between gap-2.5 min-w-full items-center"
|
|
24
24
|
),
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
26
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2.5 h-full", children: [
|
|
27
|
+
a && /* @__PURE__ */ e("span", { className: s(m), children: a }),
|
|
28
28
|
i && /* @__PURE__ */ e("span", { className: "text-text-neutral-secondary", children: i })
|
|
29
29
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
30
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2.5", children: [
|
|
31
|
+
t,
|
|
32
|
+
n && /* @__PURE__ */ e("span", { className: s(m), children: n })
|
|
33
33
|
] })
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -38,5 +38,5 @@ const u = ({
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
x as NumberCell
|
|
42
42
|
};
|
|
@@ -24,7 +24,7 @@ export declare const TABLE_CSS_CLASSES: {
|
|
|
24
24
|
readonly headerCellContent: "flex items-center justify-between";
|
|
25
25
|
readonly sortIcon: "ml-2 w-4 h-4 text-gray-400";
|
|
26
26
|
readonly sortIconActive: "ml-2 w-4 h-4 text-gray-600";
|
|
27
|
-
readonly row: " transition-colors duration-200 text-text-neutral-primary";
|
|
27
|
+
readonly row: " transition-colors duration-200 text-text-neutral-primary hover:bg-background-neutral-light";
|
|
28
28
|
readonly emptyState: "px-4 py-8 text-center text-gray-500";
|
|
29
29
|
readonly dataErrorState: "px-4 py-8 text-center text-text-danger-primary";
|
|
30
30
|
readonly loading: "px-4 py-8 text-center text-gray-500";
|
|
@@ -23,7 +23,7 @@ const t = "No data available", e = {
|
|
|
23
23
|
headerCellContent: "flex items-center justify-between",
|
|
24
24
|
sortIcon: "ml-2 w-4 h-4 text-gray-400",
|
|
25
25
|
sortIconActive: "ml-2 w-4 h-4 text-gray-600",
|
|
26
|
-
row: " transition-colors duration-200 text-text-neutral-primary",
|
|
26
|
+
row: " transition-colors duration-200 text-text-neutral-primary hover:bg-background-neutral-light",
|
|
27
27
|
emptyState: "px-4 py-8 text-center text-gray-500",
|
|
28
28
|
dataErrorState: "px-4 py-8 text-center text-text-danger-primary",
|
|
29
29
|
loading: "px-4 py-8 text-center text-gray-500"
|