@ztwoint/z-ui 0.1.27 → 0.1.29
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/assets/icons/chevron-left.d.ts +7 -0
- package/dist/components/assets/icons/chevron-left.js +20 -0
- package/dist/components/assets/icons/chevron-right.js +30 -0
- package/dist/components/assets/icons/double-chevron-left.d.ts +7 -0
- package/dist/components/assets/icons/double-chevron-left.js +24 -0
- package/dist/components/assets/icons/double-chevron-right.d.ts +7 -0
- package/dist/components/assets/icons/double-chevron-right.js +24 -0
- package/dist/components/assets/icons/info-icon.js +16 -0
- package/dist/components/assets/icons/magnifier-icon.js +16 -0
- package/dist/components/assets/icons/sub-nav-indicator.d.ts +3 -2
- package/dist/components/assets/icons/sub-nav-indicator.js +26 -41
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +45 -30
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-content.js +16 -16
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-footer.js +1 -1
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-group.js +24 -16
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-header.js +60 -54
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-item.js +61 -62
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-provider.js +23 -23
- package/dist/components/collapsible-side-nav-bar/side-nav-bar.d.ts +1 -1
- package/dist/components/collapsible-side-nav-bar/side-nav-bar.js +14 -14
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dropdown-menu/z2-dropdown-menu.js +255 -0
- package/dist/components/nav-header/nav-header.js +7 -7
- package/dist/components/table/components/cell/boolean-cell.d.ts +7 -0
- package/dist/components/table/components/cell/boolean-cell.js +7 -0
- package/dist/components/table/components/cell/index.d.ts +3 -0
- package/dist/components/table/components/cell/number-cell.d.ts +7 -0
- package/dist/components/table/components/cell/number-cell.js +5 -0
- package/dist/components/table/components/cell/text-cell.d.ts +7 -0
- package/dist/components/table/components/cell/text-cell.js +5 -0
- package/dist/components/table/components/index.d.ts +11 -0
- package/dist/components/table/components/pagination/components/index.d.ts +3 -0
- package/dist/components/table/components/pagination/components/pagination-info.d.ts +4 -0
- package/dist/components/table/components/pagination/components/pagination-info.js +27 -0
- package/dist/components/table/components/pagination/components/pagination-quick-jumper.d.ts +4 -0
- package/dist/components/table/components/pagination/components/pagination-quick-jumper.hook.d.ts +6 -0
- package/dist/components/table/components/pagination/components/pagination-quick-jumper.hook.js +24 -0
- package/dist/components/table/components/pagination/components/pagination-quick-jumper.js +35 -0
- package/dist/components/table/components/pagination/index.d.ts +6 -0
- package/dist/components/table/components/pagination/pagination.const.d.ts +26 -0
- package/dist/components/table/components/pagination/pagination.const.js +22 -0
- package/dist/components/table/components/pagination/pagination.d.ts +4 -0
- package/dist/components/table/components/pagination/pagination.hook.d.ts +5 -0
- package/dist/components/table/components/pagination/pagination.hook.js +22 -0
- package/dist/components/table/components/pagination/pagination.js +112 -0
- package/dist/components/table/components/pagination/pagination.type.d.ts +33 -0
- package/dist/components/table/components/pagination/pagination.utils.d.ts +7 -0
- package/dist/components/table/components/pagination/pagination.utils.js +35 -0
- package/dist/components/table/components/table-cell.d.ts +15 -0
- package/dist/components/table/components/table-cell.js +45 -0
- package/dist/components/table/components/table-empty-state.d.ts +7 -0
- package/dist/components/table/components/table-empty-state.js +6 -0
- package/dist/components/table/components/table-filter/filters/boolean.d.ts +3 -0
- package/dist/components/table/components/table-filter/filters/boolean.js +31 -0
- package/dist/components/table/components/table-filter/filters/index.d.ts +3 -0
- package/dist/components/table/components/table-filter/filters/number.d.ts +3 -0
- package/dist/components/table/components/table-filter/filters/number.js +28 -0
- package/dist/components/table/components/table-filter/filters/text.d.ts +3 -0
- package/dist/components/table/components/table-filter/filters/text.js +28 -0
- package/dist/components/table/components/table-filter/index.d.ts +1 -0
- package/dist/components/table/components/table-filter/table-filter.d.ts +9 -0
- package/dist/components/table/components/table-filter/table-filter.hook.d.ts +15 -0
- package/dist/components/table/components/table-filter/table-filter.hook.js +34 -0
- package/dist/components/table/components/table-filter/table-filter.js +105 -0
- package/dist/components/table/components/table-filter/table-filter.type.d.ts +18 -0
- package/dist/components/table/components/table-footer-content.d.ts +7 -0
- package/dist/components/table/components/table-footer-content.js +9 -0
- package/dist/components/table/components/table-footer.d.ts +7 -0
- package/dist/components/table/components/table-footer.js +6 -0
- package/dist/components/table/components/table-header/index.d.ts +2 -0
- package/dist/components/table/components/table-header/table-header.d.ts +9 -0
- package/dist/components/table/components/table-header/table-header.js +27 -0
- package/dist/components/table/components/table-header/table-header.utils.d.ts +5 -0
- package/dist/components/table/components/table-header/table-header.utils.js +15 -0
- package/dist/components/table/components/table-header/table-sort-icon.d.ts +8 -0
- package/dist/components/table/components/table-header/table-sort-icon.js +13 -0
- package/dist/components/table/components/table-header-content.d.ts +7 -0
- package/dist/components/table/components/table-header-content.js +9 -0
- package/dist/components/table/components/table-header-wrapper.d.ts +7 -0
- package/dist/components/table/components/table-header-wrapper.js +9 -0
- package/dist/components/table/components/table-loading-state.d.ts +7 -0
- package/dist/components/table/components/table-loading-state.js +9 -0
- package/dist/components/table/components/table-row.d.ts +11 -0
- package/dist/components/table/components/table-row.js +23 -0
- package/dist/components/table/index.d.ts +9 -0
- package/dist/components/table/table-provider.d.ts +26 -0
- package/dist/components/table/table-provider.js +45 -0
- package/dist/components/table/table.const.d.ts +24 -0
- package/dist/components/table/table.const.js +27 -0
- package/dist/components/table/table.context.d.ts +7 -0
- package/dist/components/table/table.context.js +11 -0
- package/dist/components/table/table.d.ts +4 -0
- package/dist/components/table/table.js +39 -0
- package/dist/components/table/table.type.d.ts +63 -0
- package/dist/components/table/table.utils.d.ts +3 -0
- package/dist/components/table/table.utils.js +5 -0
- package/dist/css/config/colors/components/select.css +1 -1
- package/dist/css/config/colors/defaults.css +378 -137
- package/dist/css/config/colors/semantic-colors.css +356 -0
- package/dist/css/config/components/button.css +152 -0
- package/dist/css/config/components/index.css +1 -0
- package/dist/css/config/config-deprecated.css +41 -0
- package/dist/css/config/config.css +4 -18
- package/dist/css/config/typography/2xl.css +7 -0
- package/dist/css/config/typography/3xl.css +7 -0
- package/dist/css/config/typography/4xl.css +7 -0
- package/dist/css/config/typography/base.css +7 -0
- package/dist/css/config/typography/lg.css +7 -0
- package/dist/css/config/typography/sm.css +7 -0
- package/dist/css/config/typography/xl.css +7 -0
- package/dist/css/config/typography/xs.css +7 -0
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/devComponents/navigation/index.d.ts +1 -0
- package/dist/devComponents/navigation/navigation.d.ts +1 -0
- package/dist/index.d.ts +41 -8
- package/dist/index.js +176 -102
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/theme.hook.d.ts +8 -0
- package/dist/lib/theme.hook.js +50 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/CheckCircleIcon.js +26 -0
- package/dist/node_modules/@heroicons/react/24/solid/esm/XCircleIcon.js +26 -0
- package/dist/routes/default.d.ts +2 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/table.d.ts +2 -0
- package/dist/sample/text-cell.d.ts +3 -0
- package/dist/types/components/assets/icons/chevron-left.d.ts +7 -0
- package/dist/types/components/assets/icons/double-chevron-left.d.ts +7 -0
- package/dist/types/components/assets/icons/double-chevron-right.d.ts +7 -0
- package/dist/types/components/assets/icons/sub-nav-indicator.d.ts +3 -2
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/collapsible-side-nav-bar/side-nav-bar.d.ts +1 -1
- package/dist/types/components/table/components/cell/boolean-cell.d.ts +7 -0
- package/dist/types/components/table/components/cell/index.d.ts +3 -0
- package/dist/types/components/table/components/cell/number-cell.d.ts +7 -0
- package/dist/types/components/table/components/cell/text-cell.d.ts +7 -0
- package/dist/types/components/table/components/index.d.ts +11 -0
- package/dist/types/components/table/components/pagination/components/index.d.ts +3 -0
- package/dist/types/components/table/components/pagination/components/pagination-info.d.ts +4 -0
- package/dist/types/components/table/components/pagination/components/pagination-quick-jumper.d.ts +4 -0
- package/dist/types/components/table/components/pagination/components/pagination-quick-jumper.hook.d.ts +6 -0
- package/dist/types/components/table/components/pagination/index.d.ts +6 -0
- package/dist/types/components/table/components/pagination/pagination.const.d.ts +26 -0
- package/dist/types/components/table/components/pagination/pagination.d.ts +4 -0
- package/dist/types/components/table/components/pagination/pagination.hook.d.ts +5 -0
- package/dist/types/components/table/components/pagination/pagination.type.d.ts +33 -0
- package/dist/types/components/table/components/pagination/pagination.utils.d.ts +7 -0
- package/dist/types/components/table/components/table-cell.d.ts +15 -0
- package/dist/types/components/table/components/table-empty-state.d.ts +7 -0
- package/dist/types/components/table/components/table-filter/filters/boolean.d.ts +3 -0
- package/dist/types/components/table/components/table-filter/filters/index.d.ts +3 -0
- package/dist/types/components/table/components/table-filter/filters/number.d.ts +3 -0
- package/dist/types/components/table/components/table-filter/filters/text.d.ts +3 -0
- package/dist/types/components/table/components/table-filter/index.d.ts +1 -0
- package/dist/types/components/table/components/table-filter/table-filter.d.ts +9 -0
- package/dist/types/components/table/components/table-filter/table-filter.hook.d.ts +15 -0
- package/dist/types/components/table/components/table-filter/table-filter.type.d.ts +18 -0
- package/dist/types/components/table/components/table-footer-content.d.ts +7 -0
- package/dist/types/components/table/components/table-footer.d.ts +7 -0
- package/dist/types/components/table/components/table-header/index.d.ts +2 -0
- package/dist/types/components/table/components/table-header/table-header.d.ts +10 -0
- package/dist/types/components/table/components/table-header/table-header.utils.d.ts +5 -0
- package/dist/types/components/table/components/table-header/table-sort-icon.d.ts +8 -0
- package/dist/types/components/table/components/table-header-content.d.ts +7 -0
- package/dist/types/components/table/components/table-header-wrapper.d.ts +7 -0
- package/dist/types/components/table/components/table-loading-state.d.ts +7 -0
- package/dist/types/components/table/components/table-row.d.ts +11 -0
- package/dist/types/components/table/index.d.ts +9 -0
- package/dist/types/components/table/table-provider.d.ts +26 -0
- package/dist/types/components/table/table.const.d.ts +24 -0
- package/dist/types/components/table/table.context.d.ts +7 -0
- package/dist/types/components/table/table.d.ts +4 -0
- package/dist/types/components/table/table.type.d.ts +63 -0
- package/dist/types/components/table/table.utils.d.ts +3 -0
- package/dist/types/devComponents/navigation/index.d.ts +1 -0
- package/dist/types/devComponents/navigation/navigation.d.ts +1 -0
- package/dist/types/index.d.ts +41 -8
- package/dist/types/lib/index.d.ts +3 -0
- package/dist/types/lib/theme.hook.d.ts +8 -0
- package/dist/types/routes/default.d.ts +2 -0
- package/dist/types/routes/index.d.ts +2 -0
- package/dist/types/routes/table.d.ts +2 -0
- package/dist/types/sample/text-cell.d.ts +3 -0
- package/package.json +3 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function ChevronLeft({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ChevronLeft;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function h({ fill: r = "currentColor", title: t = "chevron left", ...o }) {
|
|
3
|
+
return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...o, children: [
|
|
4
|
+
/* @__PURE__ */ e("title", { children: t }),
|
|
5
|
+
/* @__PURE__ */ e("g", { fill: r, children: /* @__PURE__ */ e(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
d: "M8.75 11.55L4.2 7l4.55-4.55",
|
|
9
|
+
fill: "none",
|
|
10
|
+
stroke: r,
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
strokeWidth: "2"
|
|
14
|
+
}
|
|
15
|
+
) })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
h as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
function h({
|
|
3
|
+
fill: o = "#5D5D5D",
|
|
4
|
+
secondaryfill: n,
|
|
5
|
+
strokewidth: s = 1,
|
|
6
|
+
width: r = "14",
|
|
7
|
+
height: e = "14",
|
|
8
|
+
...i
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ t(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
height: e,
|
|
14
|
+
width: r,
|
|
15
|
+
viewBox: "0 0 14 14",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...i,
|
|
18
|
+
children: /* @__PURE__ */ t(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
d: "M4.95778 2.41478C5.26089 2.11174 5.75228 2.11174 6.05539 2.41478L10.0919 6.45123C10.3948 6.75435 10.3949 7.24576 10.0919 7.54885L6.05539 11.5853C5.7523 11.8882 5.26087 11.8882 4.95778 11.5853C4.65477 11.2822 4.65483 10.7908 4.95778 10.4877L8.44543 7.00004L4.95778 3.51239C4.65472 3.20925 4.65467 2.71788 4.95778 2.41478Z",
|
|
22
|
+
fill: o
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
h as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function DoubleChevronLeft({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DoubleChevronLeft;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function l({
|
|
3
|
+
fill: o = "currentColor",
|
|
4
|
+
title: r = "double chevron left",
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
8
|
+
/* @__PURE__ */ e("title", { children: r }),
|
|
9
|
+
/* @__PURE__ */ e("g", { fill: o, children: /* @__PURE__ */ e(
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M6.75 11.55L2.2 7l4.55-4.55M11.75 11.55L7.2 7l4.55-4.55",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: o,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
strokeWidth: "2"
|
|
18
|
+
}
|
|
19
|
+
) })
|
|
20
|
+
] });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function DoubleChevronRight({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DoubleChevronRight;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function h({
|
|
3
|
+
fill: r = "currentColor",
|
|
4
|
+
title: o = "double chevron right",
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
8
|
+
/* @__PURE__ */ e("title", { children: o }),
|
|
9
|
+
/* @__PURE__ */ e("g", { fill: r, children: /* @__PURE__ */ e(
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M7.25 2.45L11.8 7l-4.55 4.55M2.25 2.45L6.8 7l-4.55 4.55",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: r,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
strokeWidth: "2"
|
|
18
|
+
}
|
|
19
|
+
) })
|
|
20
|
+
] });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
h as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const l = ({ fill: o = "currentColor", title: C = "Info", ...t }) => /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
3
|
+
/* @__PURE__ */ e("title", { children: C }),
|
|
4
|
+
/* @__PURE__ */ e(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
clipRule: "evenodd",
|
|
9
|
+
d: "M7 2.12695C10.0877 2.12696 12.6003 4.63964 12.6003 7.72729C12.6003 10.815 10.0877 13.3276 7 13.3276C3.9123 13.3276 1.39966 10.815 1.39966 7.72729C1.3997 4.63963 3.91233 2.12695 7 2.12695ZM7 6.67712C6.6129 6.67712 6.30017 6.99141 6.30017 7.37781V10.5275C6.30022 10.9138 6.61293 11.2273 7 11.2273C7.38706 11.2273 7.69978 10.9138 7.69983 10.5275V7.37781C7.69983 6.99142 7.38709 6.67714 7 6.67712ZM7 4.22729C6.51773 4.22729 6.12505 4.62003 6.125 5.10229C6.125 5.58459 6.5177 5.97729 7 5.97729C7.48229 5.97728 7.875 5.58459 7.875 5.10229C7.87495 4.62004 7.48226 4.22731 7 4.22729Z",
|
|
10
|
+
fill: o
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
l as InfoIcon
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const l = ({ fill: r = "currentColor", title: t = "Search", ...C }) => /* @__PURE__ */ i("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...C, children: [
|
|
3
|
+
/* @__PURE__ */ e("title", { children: t }),
|
|
4
|
+
/* @__PURE__ */ e(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
clipRule: "evenodd",
|
|
9
|
+
d: "M5.94971 1.93848C8.36588 1.93848 10.3246 3.89733 10.3247 6.31348C10.3247 7.20512 10.0573 8.0341 9.59924 8.72571L12.1687 11.2952L12.2285 11.361C12.5089 11.7046 12.4891 12.2121 12.1687 12.5325C11.8483 12.8529 11.3409 12.8727 10.9972 12.5923L10.9314 12.5325L8.36194 9.96301C7.67032 10.4211 6.84138 10.6885 5.94971 10.6885C3.53354 10.6884 1.57471 8.72967 1.57471 6.31348C1.57482 3.89738 3.53361 1.93856 5.94971 1.93848ZM5.94971 3.68848C4.5001 3.68856 3.32482 4.86388 3.32471 6.31348C3.32471 7.76317 4.50003 8.93839 5.94971 8.93848C7.39946 8.93848 8.57471 7.76322 8.57471 6.31348C8.57459 4.86383 7.39938 3.68848 5.94971 3.68848Z",
|
|
10
|
+
fill: r
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
] });
|
|
14
|
+
export {
|
|
15
|
+
l as MagnifierIcon
|
|
16
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
2
|
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
3
|
secondaryfill?: string;
|
|
4
|
+
strokewidth?: number;
|
|
4
5
|
title?: string;
|
|
5
6
|
};
|
|
6
|
-
declare function
|
|
7
|
-
export default
|
|
7
|
+
declare function SubNavIndicator({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubNavIndicator;
|
|
@@ -1,48 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
fill:
|
|
4
|
-
secondaryfill:
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
function l({
|
|
3
|
+
fill: t = "#5D5D5D",
|
|
4
|
+
secondaryfill: s,
|
|
5
|
+
strokewidth: o = 2,
|
|
6
|
+
width: e = "7",
|
|
7
|
+
height: i = "7",
|
|
8
|
+
...n
|
|
7
9
|
}) {
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
height: i,
|
|
14
|
+
width: e,
|
|
15
|
+
viewBox: "0 0 9 10",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...n,
|
|
18
|
+
children: /* @__PURE__ */ r("g", { fill: "none", children: /* @__PURE__ */ r(
|
|
12
19
|
"path",
|
|
13
20
|
{
|
|
14
|
-
d: "
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
d: "M1 1.36365V6.36365C1 7.46822 1.89543 8.36365 3 8.36365H8",
|
|
22
|
+
stroke: t,
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeOpacity: "1",
|
|
25
|
+
strokeWidth: o
|
|
17
26
|
}
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
d: "M4.23 7.44a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
|
|
23
|
-
fill: t,
|
|
24
|
-
fillOpacity: "0.000"
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ a(
|
|
28
|
-
"path",
|
|
29
|
-
{
|
|
30
|
-
d: "M6.01 8.62a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
|
|
31
|
-
fill: t,
|
|
32
|
-
fillOpacity: "0.000"
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ a(
|
|
36
|
-
"path",
|
|
37
|
-
{
|
|
38
|
-
d: "M7.19 10.39a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
|
|
39
|
-
fill: t,
|
|
40
|
-
fillOpacity: "0.000"
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
27
|
+
) })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
45
30
|
}
|
|
46
31
|
export {
|
|
47
|
-
|
|
32
|
+
l as default
|
|
48
33
|
};
|
|
@@ -6,7 +6,7 @@ declare const buttonVariants: (props?: ({
|
|
|
6
6
|
size?: "small" | "large" | null | undefined;
|
|
7
7
|
iconOnly?: boolean | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
9
|
-
export interface ButtonProps extends
|
|
9
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'iconOnly'> {
|
|
10
10
|
asChild?: boolean;
|
|
11
11
|
leftIcon?: React.ReactNode;
|
|
12
12
|
rightIcon?: React.ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as v, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import w from "react";
|
|
3
3
|
import { Slot as O } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as z } from "class-variance-authority";
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
5
|
+
import { cn as d } from "../../lib/utils.js";
|
|
6
|
+
const k = z(
|
|
7
7
|
"box-border h-7.5 leading-none-medium-sm flex items-center justify-center whitespace-nowrap rounded-lg select-none hover:cursor-pointer active:outline-none border-solid",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -15,10 +15,10 @@ const N = z(
|
|
|
15
15
|
ghost: [""]
|
|
16
16
|
},
|
|
17
17
|
shade: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
danger: "button-primary-danger-surface-default border-
|
|
21
|
-
neutralGhost: "text-neutral-primary hover:text-neutral-secondary active:text-neutral-muted disabled:text-neutral-muted"
|
|
18
|
+
brand: "bg-button-primary-brand-surface-default border-button-primary-brand-surface-default text-text-inverted-primary hover:bg-button-primary-brand-surface-hover active:bg-button-primary-brand-surface-pressed disabled:bg-button-primary-brand-surface-disabled disabled:text-text-neutral-muted disabled:border-button-primary-brand-surface-disabled",
|
|
19
|
+
neutral: "bg-button-primary-neutral-surface-default border-button-primary-neutral-surface-default disabled:border-none text-text-inverted-primary hover:bg-button-primary-neutral-surface-hover active:bg-button-primary-neutral-surface-pressed disabled:bg-button-primary-neutral-surface-disabled disabled:text-text-neutral-muted",
|
|
20
|
+
danger: "bg-button-primary-danger-surface-default border-button-primary-danger-stroke-default text-text-inverted-primary hover:bg-button-primary-danger-surface-hover active:bg-button-primary-danger-surface-pressed disabled:bg-button-primary-danger-surface-disabled disabled:text-text-neutral-muted",
|
|
21
|
+
neutralGhost: "border-none text-text-neutral-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent"
|
|
22
22
|
},
|
|
23
23
|
size: {
|
|
24
24
|
large: "gap-1",
|
|
@@ -37,7 +37,7 @@ const N = z(
|
|
|
37
37
|
{
|
|
38
38
|
iconOnly: !0,
|
|
39
39
|
size: "small",
|
|
40
|
-
class: "p-1.5"
|
|
40
|
+
class: "p-1.5 h-6.5"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
iconOnly: !1,
|
|
@@ -52,17 +52,32 @@ const N = z(
|
|
|
52
52
|
{
|
|
53
53
|
variant: "stroke",
|
|
54
54
|
shade: "neutral",
|
|
55
|
-
class: "border-none shadow-default button-secondary-surface-default text-
|
|
55
|
+
class: "border-none shadow-default dark:shadow-none bg-button-secondary-surface-default text-text-neutral-primary hover:bg-button-secondary-surface-hover hover:text-text-neutral-primary active:bg-button-secondary-surface-pressed active:text-text-neutral-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
variant: "stroke",
|
|
59
59
|
shade: "danger",
|
|
60
|
-
class: "border-none shadow-default button-secondary-surface-default text-
|
|
60
|
+
class: "border-none shadow-default bg-button-secondary-surface-default text-text-danger-secondary hover:bg-button-secondary-surface-hover hover:text-text-secondary active:bg-button-secondary-surface-pressed active:text-text-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
variant: "stroke",
|
|
64
|
+
shade: "brand",
|
|
65
|
+
class: "border-none shadow-default bg-button-secondary-surface-default text-text-brand-secondary hover:bg-button-secondary-surface-hover hover:text-text-secondary active:bg-button-secondary-surface-pressed active:text-text-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
|
|
61
66
|
},
|
|
62
67
|
{
|
|
63
68
|
variant: "ghost",
|
|
64
69
|
shade: "neutral",
|
|
65
|
-
class: "bg-transparent text-
|
|
70
|
+
class: "bg-transparent text-text-neutral-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
variant: "ghost",
|
|
74
|
+
shade: "brand",
|
|
75
|
+
class: "bg-transparent text-text-brand-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
variant: "ghost",
|
|
79
|
+
shade: "danger",
|
|
80
|
+
class: "bg-transparent text-text-danger-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
|
|
66
81
|
}
|
|
67
82
|
],
|
|
68
83
|
defaultVariants: {
|
|
@@ -72,31 +87,31 @@ const N = z(
|
|
|
72
87
|
iconOnly: !1
|
|
73
88
|
}
|
|
74
89
|
}
|
|
75
|
-
),
|
|
90
|
+
), N = w.forwardRef(
|
|
76
91
|
({
|
|
77
|
-
className:
|
|
78
|
-
shade:
|
|
79
|
-
size:
|
|
80
|
-
variant:
|
|
92
|
+
className: i,
|
|
93
|
+
shade: b = "neutral",
|
|
94
|
+
size: c,
|
|
95
|
+
variant: x = "filled",
|
|
81
96
|
asChild: o = !1,
|
|
82
|
-
leftIcon:
|
|
83
|
-
rightIcon:
|
|
84
|
-
label:
|
|
85
|
-
children:
|
|
86
|
-
...
|
|
97
|
+
leftIcon: t,
|
|
98
|
+
rightIcon: a,
|
|
99
|
+
label: p,
|
|
100
|
+
children: u,
|
|
101
|
+
...m
|
|
87
102
|
}, y) => {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
),
|
|
91
|
-
return /* @__PURE__ */ e(
|
|
92
|
-
|
|
103
|
+
const f = o ? O : "button", r = p || u, n = !r && !!(t || a), l = n ? t || a : null, g = d(
|
|
104
|
+
k({ shade: b, size: c, variant: x, iconOnly: n, className: i })
|
|
105
|
+
), s = "w-3.5 h-3.5";
|
|
106
|
+
return /* @__PURE__ */ e(f, { className: g, ref: y, ...m, children: o ? u : n ? l ? /* @__PURE__ */ e("span", { className: s, children: l }) : null : /* @__PURE__ */ v(h, { children: [
|
|
107
|
+
t && /* @__PURE__ */ e("span", { className: d(s), children: t }),
|
|
93
108
|
r && /* @__PURE__ */ e("span", { children: r }),
|
|
94
|
-
|
|
109
|
+
a && /* @__PURE__ */ e("span", { className: d(s), children: a })
|
|
95
110
|
] }) });
|
|
96
111
|
}
|
|
97
112
|
);
|
|
98
|
-
|
|
113
|
+
N.displayName = "Button";
|
|
99
114
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
115
|
+
N as Button,
|
|
116
|
+
k as buttonVariants
|
|
102
117
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cn as l } from "../../lib/utils.js";
|
|
4
4
|
import { useZ2SideNavBar as m } from "./context.js";
|
|
5
|
-
const s =
|
|
6
|
-
({ className: e, children:
|
|
7
|
-
const { isCollapsed:
|
|
8
|
-
return
|
|
5
|
+
const s = i.forwardRef(
|
|
6
|
+
({ className: e, children: o, ...r }, a) => {
|
|
7
|
+
const { isCollapsed: f } = m();
|
|
8
|
+
return f ? /* @__PURE__ */ t(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
ref:
|
|
12
|
-
className:
|
|
11
|
+
ref: a,
|
|
12
|
+
className: l(
|
|
13
13
|
"flex-1 overflow-y-auto flex flex-col items-start gap-2 relative w-10.5 max-w-10.5",
|
|
14
14
|
"border-b border-gray-200",
|
|
15
15
|
e
|
|
16
16
|
),
|
|
17
|
-
...
|
|
18
|
-
children:
|
|
17
|
+
...r,
|
|
18
|
+
children: o
|
|
19
19
|
}
|
|
20
|
-
) : /* @__PURE__ */
|
|
20
|
+
) : /* @__PURE__ */ t(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
24
|
-
className:
|
|
25
|
-
...
|
|
26
|
-
children:
|
|
23
|
+
ref: a,
|
|
24
|
+
className: l("flex flex-col flex-1 overflow-y-auto w-full", e),
|
|
25
|
+
...r,
|
|
26
|
+
children: o
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
@@ -16,7 +16,7 @@ const d = m.forwardRef(
|
|
|
16
16
|
...t,
|
|
17
17
|
children: e
|
|
18
18
|
}
|
|
19
|
-
) : /* @__PURE__ */ a("div", { ref: o, className: i("p-
|
|
19
|
+
) : /* @__PURE__ */ a("div", { ref: o, className: i("p-2 border-t border-gray-200", r), ...t, children: e });
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
d.displayName = "Z2SideNavBarFooter";
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
3
|
import { cn as m } from "../../lib/utils.js";
|
|
4
|
-
import { useZ2SideNavBar as
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
const { isCollapsed:
|
|
8
|
-
return
|
|
4
|
+
import { useZ2SideNavBar as c } from "./context.js";
|
|
5
|
+
const n = p.forwardRef(
|
|
6
|
+
({ className: e, children: r, title: a, ...s }, o) => {
|
|
7
|
+
const { isCollapsed: t } = c(), l = a && !t;
|
|
8
|
+
return t ? /* @__PURE__ */ i(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: o,
|
|
12
|
-
className: m("flex flex-col items-start gap-1.5 p-1.5 relative",
|
|
13
|
-
...
|
|
14
|
-
children:
|
|
12
|
+
className: m("flex flex-col items-start gap-1.5 p-1.5 relative", e),
|
|
13
|
+
...s,
|
|
14
|
+
children: r
|
|
15
15
|
}
|
|
16
|
-
) : /* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
) : /* @__PURE__ */ d(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref: o,
|
|
20
|
+
className: m("p-2 flex flex-col gap-1.5 items-stretch", e),
|
|
21
|
+
...s,
|
|
22
|
+
children: [
|
|
23
|
+
l && /* @__PURE__ */ i("div", { className: "leading-none-medium-sm text-neutral-secondary p-2 pb-1", children: a }),
|
|
24
|
+
r
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
20
28
|
}
|
|
21
29
|
);
|
|
22
|
-
|
|
30
|
+
n.displayName = "Z2SideNavBarGroup";
|
|
23
31
|
export {
|
|
24
|
-
|
|
32
|
+
n as Z2SideNavBarGroup
|
|
25
33
|
};
|