@ztwoint/z-ui 0.1.95 → 0.1.97
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/arrow-left.d.ts +8 -0
- package/dist/components/assets/icons/arrow-left.js +53 -0
- package/dist/components/assets/icons/index.d.ts +1 -0
- package/dist/components/segmented-control/controller.d.ts +1 -1
- package/dist/components/segmented-control/controller.js +22 -0
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/item.js +39 -0
- package/dist/components/segmented-control/use-segmented-control.hook.js +23 -0
- package/dist/components/table/components/cell/avatar-cell.js +3 -2
- package/dist/components/table/table-provider.js +1 -0
- package/dist/components/table-card/table-card.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -20
- package/dist/types/components/assets/icons/arrow-left.d.ts +8 -0
- package/dist/types/components/assets/icons/index.d.ts +1 -0
- package/dist/types/components/segmented-control/controller.d.ts +1 -1
- package/dist/types/components/segmented-control/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
strokewidth?: number;
|
|
5
|
+
title?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function ArrowLeft({ fill, secondaryfill, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArrowLeft;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
function u({
|
|
3
|
+
fill: e = "currentColor",
|
|
4
|
+
secondaryfill: o,
|
|
5
|
+
width: t = "1em",
|
|
6
|
+
height: i = "1em",
|
|
7
|
+
title: s = "badge 13",
|
|
8
|
+
...d
|
|
9
|
+
}) {
|
|
10
|
+
return o = o || e, /* @__PURE__ */ n(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
height: i,
|
|
14
|
+
width: t,
|
|
15
|
+
viewBox: "0 0 20 20",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...d,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r("title", { children: s }),
|
|
20
|
+
/* @__PURE__ */ n("g", { fill: e, children: [
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
"line",
|
|
23
|
+
{
|
|
24
|
+
fill: "none",
|
|
25
|
+
stroke: o,
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
strokeWidth: "2",
|
|
29
|
+
x1: "17",
|
|
30
|
+
x2: "3",
|
|
31
|
+
y1: "10",
|
|
32
|
+
y2: "10"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ r(
|
|
36
|
+
"polyline",
|
|
37
|
+
{
|
|
38
|
+
fill: "none",
|
|
39
|
+
points: "8 5 3 10 8 15",
|
|
40
|
+
stroke: e,
|
|
41
|
+
strokeLinecap: "round",
|
|
42
|
+
strokeLinejoin: "round",
|
|
43
|
+
strokeWidth: "2"
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
u as default
|
|
53
|
+
};
|
|
@@ -37,3 +37,4 @@ export { default as Z2DataIcon } from './z2data';
|
|
|
37
37
|
export { default as Vector3Icon } from './vector_3';
|
|
38
38
|
export { default as TableCols2Icon } from './table-cols-2';
|
|
39
39
|
export { default as TriangleWarningIcon } from './triangle-warning';
|
|
40
|
+
export { default as ArrowLeftIcon } from './arrow-left';
|
|
@@ -4,4 +4,4 @@ interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare function SegmentedControl({ handleOnClick, className, children, ...props }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { SegmentedControl };
|
|
7
|
+
export { SegmentedControl, type SegmentedControlProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../lib/utils.js";
|
|
3
|
+
import { useSegmentedControl as l } from "./use-segmented-control.hook.js";
|
|
4
|
+
function a({ handleOnClick: e, className: o, children: r, ...n }) {
|
|
5
|
+
const { containerRef: t, handleClick: i } = l({ onSelect: e });
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
ref: t,
|
|
10
|
+
onClick: i,
|
|
11
|
+
className: d(
|
|
12
|
+
"inline-flex items-start bg-background-neutral-medium rounded-lg border-2 border-stroke-solid-medium",
|
|
13
|
+
o
|
|
14
|
+
),
|
|
15
|
+
...n,
|
|
16
|
+
children: r
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
a as SegmentedControl
|
|
22
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cva as m } from "class-variance-authority";
|
|
3
|
+
import { cn as o } from "../../lib/utils.js";
|
|
4
|
+
const c = m(
|
|
5
|
+
o(
|
|
6
|
+
"inline-flex items-center justify-center rounded-lg text-neutral-secondary hover:text-neutral-primary hover:cursor-pointer leading-none-medium-sm",
|
|
7
|
+
"data-[selected=true]:text-neutral-primary",
|
|
8
|
+
"data-[selected=true]:bg-neutral-default",
|
|
9
|
+
"data-[selected=true]:box-shadow-button-default"
|
|
10
|
+
),
|
|
11
|
+
{
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
medium: "p-2 gap-1",
|
|
15
|
+
small: "p-1.5 gap-0.5"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "small"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
), n = "w-4 h-4";
|
|
23
|
+
function x({
|
|
24
|
+
leftIcon: t,
|
|
25
|
+
rightIcon: a,
|
|
26
|
+
id: s,
|
|
27
|
+
label: r,
|
|
28
|
+
size: l = "small",
|
|
29
|
+
...i
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ d("div", { "data-id": s, className: c({ size: l }), ...i, children: [
|
|
32
|
+
t && /* @__PURE__ */ e("span", { className: n, children: t }),
|
|
33
|
+
r && /* @__PURE__ */ e("span", { children: r }),
|
|
34
|
+
a && /* @__PURE__ */ e("span", { className: n, children: a })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
x as SegmentedControlItem
|
|
39
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useRef as u, useEffect as c, useCallback as n } from "react";
|
|
2
|
+
function o(d = {}) {
|
|
3
|
+
const { onSelect: t } = d, r = u(null);
|
|
4
|
+
c(() => {
|
|
5
|
+
if (!r.current) return;
|
|
6
|
+
const e = r.current.querySelector("[data-id]");
|
|
7
|
+
e && !e.hasAttribute("data-selected") && (e.setAttribute("data-selected", "true"), e.dataset.id && (t == null || t(e.dataset.id)));
|
|
8
|
+
}, [t]);
|
|
9
|
+
const s = n(
|
|
10
|
+
(e) => {
|
|
11
|
+
if (!r.current) return;
|
|
12
|
+
const a = e.target.closest("[data-id]");
|
|
13
|
+
a && (Array.from(r.current.children).forEach((i) => {
|
|
14
|
+
i.removeAttribute("data-selected");
|
|
15
|
+
}), a.setAttribute("data-selected", "true"), a.dataset.id && (t == null || t(a.dataset.id)));
|
|
16
|
+
},
|
|
17
|
+
[t]
|
|
18
|
+
);
|
|
19
|
+
return { containerRef: r, handleClick: s };
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
o as useSegmentedControl
|
|
23
|
+
};
|
|
@@ -40,7 +40,8 @@ import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util
|
|
|
40
40
|
import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
|
|
41
41
|
import "@radix-ui/react-slot";
|
|
42
42
|
import "@radix-ui/react-radio-group";
|
|
43
|
-
|
|
43
|
+
import "../../../segmented-control/item.js";
|
|
44
|
+
const tt = ({
|
|
44
45
|
avatar: m,
|
|
45
46
|
value: a,
|
|
46
47
|
rightIcon: o,
|
|
@@ -78,5 +79,5 @@ const T = ({
|
|
|
78
79
|
}
|
|
79
80
|
);
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
tt as AvatarCell
|
|
82
83
|
};
|
|
@@ -45,6 +45,7 @@ import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/chang
|
|
|
45
45
|
import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
|
|
46
46
|
import "@radix-ui/react-slot";
|
|
47
47
|
import "@radix-ui/react-radio-group";
|
|
48
|
+
import "../segmented-control/item.js";
|
|
48
49
|
import { TableHeaderWrapper as T } from "./components/table-header-wrapper.js";
|
|
49
50
|
import { TableHeaderContent as b } from "./components/table-header-content.js";
|
|
50
51
|
import { TableFooter as s } from "./components/table-footer.js";
|
|
@@ -40,8 +40,9 @@ import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/chang
|
|
|
40
40
|
import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
|
|
41
41
|
import "@radix-ui/react-slot";
|
|
42
42
|
import "@radix-ui/react-radio-group";
|
|
43
|
+
import "../segmented-control/item.js";
|
|
43
44
|
import "../table/table.context.js";
|
|
44
|
-
const
|
|
45
|
+
const Be = ({
|
|
45
46
|
dataSource: w,
|
|
46
47
|
schema: B,
|
|
47
48
|
loading: b,
|
|
@@ -197,5 +198,5 @@ const we = ({
|
|
|
197
198
|
] });
|
|
198
199
|
};
|
|
199
200
|
export {
|
|
200
|
-
|
|
201
|
+
Be as default
|
|
201
202
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ export * from './components/tree-checkbox-select';
|
|
|
24
24
|
export * from './components/breadcrumb/z2-breadcrumb';
|
|
25
25
|
export * from './components/radio/z2-radio';
|
|
26
26
|
export * from './components/assets/icons';
|
|
27
|
+
export * from './components/segmented-control';
|
|
27
28
|
export * from './lib/theme.hook';
|
|
28
29
|
export * from './lib/utils';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { AlertCirclesIcon as m } from "./components/alert/icons/circles-icon.js"
|
|
|
4
4
|
import { Button as x, buttonVariants as u } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as c } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
6
|
import { Z2SideNavBar as s, Z2SidebarVariants as I } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
|
-
import { Z2SideNavBarHeader as
|
|
7
|
+
import { Z2SideNavBarHeader as C } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
8
|
import { Z2SideNavBarContent as D } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as T } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
10
10
|
import { Z2SideNavBarGroup as v } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
@@ -22,7 +22,7 @@ import { SIDEBAR_WIDTH as j, SIDEBAR_WIDTH_COLLAPSED as q } from "./components/c
|
|
|
22
22
|
import { CountryFlags as K } from "./components/country-flags/country-flags.js";
|
|
23
23
|
import { Z2Checkbox as oo } from "./components/checkbox/checkbox.js";
|
|
24
24
|
import { Z2Dialog as ro, Z2DialogClose as to, Z2DialogContent as ao, Z2DialogDescription as po, Z2DialogFooter as no, Z2DialogHeader as fo, Z2DialogOverlay as lo, Z2DialogPortal as mo, Z2DialogTitle as xo, Z2DialogTrigger as uo } from "./components/dialog/dialog.js";
|
|
25
|
-
import { DropdownContext as co, Z2Dropdown as Zo, Z2DropdownContent as so, Z2DropdownInput as Io, Z2DropdownItem as So, Z2DropdownSub as
|
|
25
|
+
import { DropdownContext as co, Z2Dropdown as Zo, Z2DropdownContent as so, Z2DropdownInput as Io, Z2DropdownItem as So, Z2DropdownSub as Co, Z2DropdownSubContent as bo, Z2DropdownSubItem as Do, Z2DropdownSubTrigger as go } from "./components/dropdown/z2-dropdown.js";
|
|
26
26
|
import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as vo, Z2DropdownMenuContent as Bo, Z2DropdownMenuGroup as Lo, Z2DropdownMenuItem as Mo, Z2DropdownMenuLabel as ho, Z2DropdownMenuPortal as Ao, Z2DropdownMenuRadioGroup as Po, Z2DropdownMenuRadioItem as No, Z2DropdownMenuSeparator as ko, Z2DropdownMenuShortcut as Eo, Z2DropdownMenuSub as Ro, Z2DropdownMenuSubContent as Ho, Z2DropdownMenuSubTrigger as yo, Z2DropdownMenuTrigger as Fo } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
27
27
|
import { FileUploadArea as Wo } from "./components/file-upload-area/file-upload-area.js";
|
|
28
28
|
import { DEFAULT_ACCEPT as Vo } from "./components/file-upload-area/file-upload-area.const.js";
|
|
@@ -34,7 +34,7 @@ import { Z2Stepper as fe } from "./components/stepper/stepper.js";
|
|
|
34
34
|
import { Z2StepperItem as me } from "./components/stepper-item/stepper-item.js";
|
|
35
35
|
import { Z2Tabs as xe, Z2TabsContent as ue, Z2TabsList as ie, Z2TabsTrigger as ce } from "./components/tab/tab.js";
|
|
36
36
|
import { Table as se, TableProvider as Ie } from "./components/table/table-provider.js";
|
|
37
|
-
import { TableBody as
|
|
37
|
+
import { TableBody as Ce } from "./components/table/table.js";
|
|
38
38
|
import { extractCellValue as De } from "./components/table/table.utils.js";
|
|
39
39
|
import { DEFAULT_EMPTY_MESSAGE as Te, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
40
40
|
import { TableContext as Be, useTableContext as Le } from "./components/table/table.context.js";
|
|
@@ -61,7 +61,7 @@ import { PaginationQuickJumper as ir } from "./components/table/components/pagin
|
|
|
61
61
|
import "react";
|
|
62
62
|
import { Z2Tooltip as Zr } from "./components/tooltip/tooltip.js";
|
|
63
63
|
import { default as Ir } from "./components/table-card/table-card.js";
|
|
64
|
-
import { Badge as
|
|
64
|
+
import { Badge as Cr, badgeVariants as br } from "./components/badge/badge.js";
|
|
65
65
|
import { Avatar as gr, AvatarWithLabel as Tr } from "./components/avatar/avatar.js";
|
|
66
66
|
import { Z2TextPreset as vr } from "./components/text-preset/text-preset.js";
|
|
67
67
|
import { ColumnReOrder as Lr } from "./components/column-reorder/column-reorder.js";
|
|
@@ -83,7 +83,7 @@ import { InfoIcon as xt } from "./components/assets/icons/info-icon.js";
|
|
|
83
83
|
import { default as it } from "./components/assets/icons/left-arrow.js";
|
|
84
84
|
import { default as Zt } from "./components/assets/icons/link.js";
|
|
85
85
|
import { default as It } from "./components/assets/icons/list-tree.js";
|
|
86
|
-
import { default as
|
|
86
|
+
import { default as Ct } from "./components/assets/icons/media-record.js";
|
|
87
87
|
import { Minus as Dt } from "./components/assets/icons/minus.js";
|
|
88
88
|
import { default as Tt } from "./components/assets/icons/octagon-warning-Copy.js";
|
|
89
89
|
import { default as vt } from "./components/assets/icons/pin.js";
|
|
@@ -99,20 +99,24 @@ import { default as Ut } from "./components/assets/icons/z2data.js";
|
|
|
99
99
|
import { default as Xt } from "./components/assets/icons/vector_3.js";
|
|
100
100
|
import { default as Qt } from "./components/assets/icons/table-cols-2.js";
|
|
101
101
|
import { default as jt } from "./components/assets/icons/triangle-warning.js";
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
102
|
+
import { default as zt } from "./components/assets/icons/arrow-left.js";
|
|
103
|
+
import { SegmentedControl as $t } from "./components/segmented-control/controller.js";
|
|
104
|
+
import { SegmentedControlItem as ea } from "./components/segmented-control/item.js";
|
|
105
|
+
import { useTheme as ta } from "./lib/theme.hook.js";
|
|
106
|
+
import { cn as pa } from "./lib/utils.js";
|
|
107
|
+
import { Z2PopoverTrigger as fa } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
108
|
+
import { Z2PopoverContent as ma } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
106
109
|
export {
|
|
107
110
|
p as Alert,
|
|
108
111
|
m as AlertCirclesIcon,
|
|
109
112
|
n as AlertDescription,
|
|
110
113
|
f as AlertTitle,
|
|
111
114
|
Ur as ApartmentBuildingIcon,
|
|
115
|
+
zt as ArrowLeftIcon,
|
|
112
116
|
gr as Avatar,
|
|
113
117
|
Ge as AvatarCell,
|
|
114
118
|
Tr as AvatarWithLabel,
|
|
115
|
-
|
|
119
|
+
Cr as Badge,
|
|
116
120
|
ke as BooleanCell,
|
|
117
121
|
x as Button,
|
|
118
122
|
Xr as CheckIcon,
|
|
@@ -144,7 +148,7 @@ export {
|
|
|
144
148
|
Zt as LinkIcon,
|
|
145
149
|
It as ListTreeIcon,
|
|
146
150
|
mr as MagnifierIcon,
|
|
147
|
-
|
|
151
|
+
Ct as MediaRecordIcon,
|
|
148
152
|
Dt as MinusIcon,
|
|
149
153
|
Jo as NavHeader,
|
|
150
154
|
Yo as NavItem,
|
|
@@ -155,6 +159,8 @@ export {
|
|
|
155
159
|
vt as PinIcon,
|
|
156
160
|
j as SIDEBAR_WIDTH,
|
|
157
161
|
q as SIDEBAR_WIDTH_COLLAPSED,
|
|
162
|
+
$t as SegmentedControl,
|
|
163
|
+
ea as SegmentedControlItem,
|
|
158
164
|
J as SidebarLeftShowCopy,
|
|
159
165
|
Q as SidebarLeftShowCopyIcon,
|
|
160
166
|
Lt as SitemapIcon,
|
|
@@ -163,7 +169,7 @@ export {
|
|
|
163
169
|
H as SubNavIndicatorIcon,
|
|
164
170
|
we as TABLE_CSS_CLASSES,
|
|
165
171
|
se as Table,
|
|
166
|
-
|
|
172
|
+
Ce as TableBody,
|
|
167
173
|
Ir as TableCard,
|
|
168
174
|
he as TableCell,
|
|
169
175
|
Qt as TableCols2Icon,
|
|
@@ -225,14 +231,14 @@ export {
|
|
|
225
231
|
Ho as Z2DropdownMenuSubContent,
|
|
226
232
|
yo as Z2DropdownMenuSubTrigger,
|
|
227
233
|
Fo as Z2DropdownMenuTrigger,
|
|
228
|
-
|
|
229
|
-
|
|
234
|
+
Co as Z2DropdownSub,
|
|
235
|
+
bo as Z2DropdownSubContent,
|
|
230
236
|
Do as Z2DropdownSubItem,
|
|
231
237
|
go as Z2DropdownSubTrigger,
|
|
232
238
|
Gt as Z2Icon,
|
|
233
239
|
k as Z2Popover,
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
ma as Z2PopoverContent,
|
|
241
|
+
fa as Z2PopoverTrigger,
|
|
236
242
|
Gr as Z2RadioGroup,
|
|
237
243
|
Wr as Z2RadioGroupIndicator,
|
|
238
244
|
_r as Z2RadioGroupItem,
|
|
@@ -250,7 +256,7 @@ export {
|
|
|
250
256
|
D as Z2SideNavBarContent,
|
|
251
257
|
T as Z2SideNavBarFooter,
|
|
252
258
|
v as Z2SideNavBarGroup,
|
|
253
|
-
|
|
259
|
+
C as Z2SideNavBarHeader,
|
|
254
260
|
L as Z2SideNavBarItem,
|
|
255
261
|
c as Z2SideNavBarProvider,
|
|
256
262
|
h as Z2SideNavBarSeparator,
|
|
@@ -264,11 +270,11 @@ export {
|
|
|
264
270
|
ce as Z2TabsTrigger,
|
|
265
271
|
vr as Z2TextPreset,
|
|
266
272
|
Zr as Z2Tooltip,
|
|
267
|
-
|
|
273
|
+
br as badgeVariants,
|
|
268
274
|
u as buttonVariants,
|
|
269
|
-
|
|
275
|
+
pa as cn,
|
|
270
276
|
De as extractCellValue,
|
|
271
277
|
Le as useTableContext,
|
|
272
|
-
|
|
278
|
+
ta as useTheme,
|
|
273
279
|
P as useZ2SideNavBar
|
|
274
280
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
secondaryfill?: string;
|
|
4
|
+
strokewidth?: number;
|
|
5
|
+
title?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function ArrowLeft({ fill, secondaryfill, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArrowLeft;
|
|
@@ -37,3 +37,4 @@ export { default as Z2DataIcon } from './z2data';
|
|
|
37
37
|
export { default as Vector3Icon } from './vector_3';
|
|
38
38
|
export { default as TableCols2Icon } from './table-cols-2';
|
|
39
39
|
export { default as TriangleWarningIcon } from './triangle-warning';
|
|
40
|
+
export { default as ArrowLeftIcon } from './arrow-left';
|
|
@@ -4,4 +4,4 @@ interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare function SegmentedControl({ handleOnClick, className, children, ...props }: SegmentedControlProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { SegmentedControl };
|
|
7
|
+
export { SegmentedControl, type SegmentedControlProps };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -25,5 +25,6 @@ export * from './components/tree-checkbox-select';
|
|
|
25
25
|
export * from './components/breadcrumb/z2-breadcrumb';
|
|
26
26
|
export * from './components/radio/z2-radio';
|
|
27
27
|
export * from './components/assets/icons';
|
|
28
|
+
export * from './components/segmented-control';
|
|
28
29
|
export * from './lib/theme.hook';
|
|
29
30
|
export * from './lib/utils';
|