@ztwoint/z-ui 0.1.38 → 0.1.40
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-up-icon.d.ts +1 -1
- package/dist/components/assets/icons/chevron-up-icon.js +6 -5
- package/dist/components/assets/icons/info-icon.d.ts +1 -1
- package/dist/components/assets/icons/info-icon.js +5 -4
- package/dist/components/badge/badge.d.ts +11 -0
- package/dist/components/badge/badge.js +121 -0
- package/dist/components/icon-showcase/icon-showcase.d.ts +2 -0
- package/dist/components/icon-showcase/icon-showcase.hook.d.ts +8 -0
- package/dist/components/icon-showcase/icon-showcase.type.d.ts +11 -0
- package/dist/components/icon-showcase/icons-list.d.ts +1 -0
- package/dist/css/config/colors/surfaces.css +54 -0
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -45
- package/dist/types/components/assets/icons/chevron-up-icon.d.ts +1 -1
- package/dist/types/components/assets/icons/info-icon.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +11 -0
- package/dist/types/components/icon-showcase/icon-showcase.d.ts +2 -0
- package/dist/types/components/icon-showcase/icon-showcase.hook.d.ts +8 -0
- package/dist/types/components/icon-showcase/icon-showcase.type.d.ts +11 -0
- package/dist/types/components/icon-showcase/icons-list.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './components/tab/tab';
|
|
|
15
15
|
export * from './components/table';
|
|
16
16
|
export * from './components/tooltip/tooltip';
|
|
17
17
|
export * from './components/table-card';
|
|
18
|
+
export * from './components/badge/badge';
|
|
18
19
|
export * from './components/assets/icons/apartment-building';
|
|
19
20
|
export * from './components/assets/icons/chevron-down';
|
|
20
21
|
export * from './components/assets/icons/chevron-left';
|
package/dist/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Alert as
|
|
2
|
+
import { Alert as p, AlertDescription as n, AlertTitle as l } from "./components/alert/alert.js";
|
|
3
3
|
import { AlertCirclesIcon as f } from "./components/alert/icons/circles-icon.js";
|
|
4
4
|
import { Button as i, buttonVariants as Z } from "./components/button/button.js";
|
|
5
5
|
import { Z2SideNavBarProvider as u } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
6
|
import { Z2SideNavBar as D, Z2SidebarVariants as T } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
|
-
import { Z2SideNavBarHeader as
|
|
7
|
+
import { Z2SideNavBarHeader as g } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
8
|
import { Z2SideNavBarContent as w } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
9
|
import { Z2SideNavBarFooter as s } 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";
|
|
11
|
-
import { Z2SideNavBarItem as
|
|
11
|
+
import { Z2SideNavBarItem as M } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
12
|
import { Z2SideNavBarSeparator as N } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
13
13
|
import { useZ2SideNavBar as E } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
14
|
import { Z2Popover as F } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
15
|
import { ChevronUpIcon as _ } from "./components/assets/icons/chevron-up-icon.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
16
|
+
import { default as V } from "./components/assets/icons/sub-nav-indicator.js";
|
|
17
|
+
import { default as G } from "./components/assets/icons/circles-icon.js";
|
|
18
|
+
import { default as U } from "./components/assets/icons/database-copy.js";
|
|
19
19
|
import { default as k } from "./components/assets/icons/window-left-copy.js";
|
|
20
20
|
import { default as J } from "./components/assets/icons/sidebar-left-show-copy.js";
|
|
21
21
|
import { SIDEBAR_WIDTH as Y, SIDEBAR_WIDTH_COLLAPSED as j } from "./components/collapsible-side-nav-bar/constants.js";
|
|
22
22
|
import { CountryFlags as z } from "./components/country-flags/country-flags.js";
|
|
23
|
-
import { Z2Dialog as X, Z2DialogClose as $, Z2DialogContent as oo, Z2DialogDescription as eo, Z2DialogFooter as ro, Z2DialogHeader as to, Z2DialogOverlay as
|
|
23
|
+
import { Z2Dialog as X, Z2DialogClose as $, Z2DialogContent as oo, Z2DialogDescription as eo, Z2DialogFooter as ro, Z2DialogHeader as to, Z2DialogOverlay as ao, Z2DialogPortal as po, Z2DialogTitle as no, Z2DialogTrigger as lo } from "./components/dialog/dialog.js";
|
|
24
24
|
import { DropdownContext as fo, Z2Dropdown as xo, Z2DropdownContent as io, Z2DropdownInput as Zo, Z2DropdownItem as uo, Z2DropdownSub as So, Z2DropdownSubContent as Do, Z2DropdownSubItem as To, Z2DropdownSubTrigger as bo } from "./components/dropdown/z2-dropdown.js";
|
|
25
|
-
import { Z2DropdownMenu as
|
|
25
|
+
import { Z2DropdownMenu as Co, Z2DropdownMenuCheckboxItem as wo, Z2DropdownMenuContent as co, Z2DropdownMenuGroup as so, Z2DropdownMenuItem as Io, Z2DropdownMenuLabel as vo, Z2DropdownMenuPortal as Bo, Z2DropdownMenuRadioGroup as Mo, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as No, Z2DropdownMenuShortcut as Po, Z2DropdownMenuSub as Eo, Z2DropdownMenuSubContent as Lo, Z2DropdownMenuSubTrigger as Fo, Z2DropdownMenuTrigger as Ho } from "./components/dropdown-menu/z2-dropdown-menu.js";
|
|
26
26
|
import { FileUploadArea as yo } from "./components/file-upload-area/file-upload-area.js";
|
|
27
|
-
import { DEFAULT_ACCEPT as
|
|
28
|
-
import { Input as
|
|
27
|
+
import { DEFAULT_ACCEPT as ho } from "./components/file-upload-area/file-upload-area.const.js";
|
|
28
|
+
import { Input as Ro } from "./components/input/input.js";
|
|
29
29
|
import { NavHeader as Wo } from "./components/nav-header/nav-header.js";
|
|
30
30
|
import { NavItem as Oo } from "./components/nav-header/nav-item/nav-item.js";
|
|
31
31
|
import { Z2Select as Qo, Z2SelectContent as Yo, Z2SelectGroup as jo, Z2SelectItem as qo, Z2SelectLabel as zo, Z2SelectScrollDownButton as Ko, Z2SelectScrollUpButton as Xo, Z2SelectSeparator as $o, Z2SelectTrigger as oe, Z2SelectValue as ee } from "./components/select/z2-select.js";
|
|
32
32
|
import { Z2Stepper as te } from "./components/stepper/stepper.js";
|
|
33
|
-
import { Z2StepperItem as
|
|
33
|
+
import { Z2StepperItem as pe } from "./components/stepper-item/stepper-item.js";
|
|
34
34
|
import { Z2Tabs as le, Z2TabsContent as me, Z2TabsList as fe, Z2TabsTrigger as xe } from "./components/tab/tab.js";
|
|
35
35
|
import { Table as Ze, TableProvider as de } from "./components/table/table-provider.js";
|
|
36
36
|
import { TableBody as Se } from "./components/table/table.js";
|
|
37
37
|
import { extractCellValue as Te, getNestedValue as be } from "./components/table/table.utils.js";
|
|
38
|
-
import { DEFAULT_EMPTY_MESSAGE as
|
|
38
|
+
import { DEFAULT_EMPTY_MESSAGE as Ce, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
39
39
|
import { TableContext as se, useTableContext as Ie } from "./components/table/table.context.js";
|
|
40
|
-
import { TableCell as
|
|
40
|
+
import { TableCell as Be } from "./components/table/components/table-cell.js";
|
|
41
41
|
import { TextCell as Ae } from "./components/table/components/cell/text-cell.js";
|
|
42
42
|
import { NumberCell as Pe } from "./components/table/components/cell/number-cell.js";
|
|
43
43
|
import { BooleanCell as Le } from "./components/table/components/cell/boolean-cell.js";
|
|
44
44
|
import { TableHeader as He } from "./components/table/components/table-header/table-header.js";
|
|
45
45
|
import "react/jsx-runtime";
|
|
46
46
|
import { TableRow as ye } from "./components/table/components/table-row.js";
|
|
47
|
-
import { TableEmptyState as
|
|
48
|
-
import { TableLoadingState as
|
|
47
|
+
import { TableEmptyState as he } from "./components/table/components/table-empty-state.js";
|
|
48
|
+
import { TableLoadingState as Re } from "./components/table/components/table-loading-state.js";
|
|
49
49
|
import { Pagination as We } from "./components/table/components/pagination/pagination.js";
|
|
50
50
|
import { TableHeaderWrapper as Oe } from "./components/table/components/table-header-wrapper.js";
|
|
51
51
|
import { TableHeaderContent as Qe } from "./components/table/components/table-header-content.js";
|
|
@@ -54,56 +54,58 @@ import { TableFooterContent as ze } from "./components/table/components/table-fo
|
|
|
54
54
|
import { MagnifierIcon as Xe } from "./components/assets/icons/magnifier-icon.js";
|
|
55
55
|
import { TableFilter as or } from "./components/table/components/table-filter/table-filter.js";
|
|
56
56
|
import { PaginationInfo as rr } from "./components/table/components/pagination/components/pagination-info.js";
|
|
57
|
-
import { PaginationQuickJumper as
|
|
57
|
+
import { PaginationQuickJumper as ar } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
58
58
|
import "react";
|
|
59
59
|
import { Z2Tooltip as nr } from "./components/tooltip/tooltip.js";
|
|
60
60
|
import { default as mr } from "./components/table-card/table-card.js";
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
61
|
+
import { Badge as xr, badgeVariants as ir } from "./components/badge/badge.js";
|
|
62
|
+
import { InfoIcon as dr } from "./components/assets/icons/info-icon.js";
|
|
63
|
+
import { useTheme as Sr } from "./lib/theme.hook.js";
|
|
64
|
+
import { cn as Tr } from "./lib/utils.js";
|
|
65
|
+
import { Z2PopoverTrigger as gr } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
66
|
+
import { Z2PopoverContent as wr } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
p as Alert,
|
|
68
69
|
f as AlertCirclesIcon,
|
|
69
70
|
n as AlertDescription,
|
|
70
71
|
l as AlertTitle,
|
|
72
|
+
xr as Badge,
|
|
71
73
|
Le as BooleanCell,
|
|
72
74
|
i as Button,
|
|
73
75
|
_ as ChevronUpIcon,
|
|
74
|
-
|
|
76
|
+
G as CirclesIcon,
|
|
75
77
|
z as CountryFlags,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
ho as DEFAULT_ACCEPT,
|
|
79
|
+
Ce as DEFAULT_EMPTY_MESSAGE,
|
|
80
|
+
U as DatabaseCopy,
|
|
79
81
|
fo as DropdownContext,
|
|
80
82
|
yo as FileUploadArea,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
dr as InfoIcon,
|
|
84
|
+
Ro as Input,
|
|
83
85
|
Xe as MagnifierIcon,
|
|
84
86
|
Wo as NavHeader,
|
|
85
87
|
Oo as NavItem,
|
|
86
88
|
Pe as NumberCell,
|
|
87
89
|
rr as PaginationInfo,
|
|
88
|
-
|
|
90
|
+
ar as PaginationQuickJumper,
|
|
89
91
|
Y as SIDEBAR_WIDTH,
|
|
90
92
|
j as SIDEBAR_WIDTH_COLLAPSED,
|
|
91
93
|
J as SidebarLeftShowCopy,
|
|
92
|
-
|
|
94
|
+
V as SubNavIndicator,
|
|
93
95
|
we as TABLE_CSS_CLASSES,
|
|
94
96
|
Ze as Table,
|
|
95
97
|
Se as TableBody,
|
|
96
98
|
mr as TableCard,
|
|
97
|
-
|
|
99
|
+
Be as TableCell,
|
|
98
100
|
se as TableContext,
|
|
99
|
-
|
|
101
|
+
he as TableEmptyState,
|
|
100
102
|
or as TableFilter,
|
|
101
103
|
je as TableFooter,
|
|
102
104
|
ze as TableFooterContent,
|
|
103
105
|
He as TableHeader,
|
|
104
106
|
Qe as TableHeaderContent,
|
|
105
107
|
Oe as TableHeaderWrapper,
|
|
106
|
-
|
|
108
|
+
Re as TableLoadingState,
|
|
107
109
|
We as TablePagination,
|
|
108
110
|
de as TableProvider,
|
|
109
111
|
ye as TableRow,
|
|
@@ -115,22 +117,22 @@ export {
|
|
|
115
117
|
eo as Z2DialogDescription,
|
|
116
118
|
ro as Z2DialogFooter,
|
|
117
119
|
to as Z2DialogHeader,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
ao as Z2DialogOverlay,
|
|
121
|
+
po as Z2DialogPortal,
|
|
120
122
|
no as Z2DialogTitle,
|
|
121
123
|
lo as Z2DialogTrigger,
|
|
122
124
|
xo as Z2Dropdown,
|
|
123
125
|
io as Z2DropdownContent,
|
|
124
126
|
Zo as Z2DropdownInput,
|
|
125
127
|
uo as Z2DropdownItem,
|
|
126
|
-
|
|
128
|
+
Co as Z2DropdownMenu,
|
|
127
129
|
wo as Z2DropdownMenuCheckboxItem,
|
|
128
130
|
co as Z2DropdownMenuContent,
|
|
129
131
|
so as Z2DropdownMenuGroup,
|
|
130
132
|
Io as Z2DropdownMenuItem,
|
|
131
133
|
vo as Z2DropdownMenuLabel,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
Bo as Z2DropdownMenuPortal,
|
|
135
|
+
Mo as Z2DropdownMenuRadioGroup,
|
|
134
136
|
Ao as Z2DropdownMenuRadioItem,
|
|
135
137
|
No as Z2DropdownMenuSeparator,
|
|
136
138
|
Po as Z2DropdownMenuShortcut,
|
|
@@ -143,8 +145,8 @@ export {
|
|
|
143
145
|
To as Z2DropdownSubItem,
|
|
144
146
|
bo as Z2DropdownSubTrigger,
|
|
145
147
|
F as Z2Popover,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
wr as Z2PopoverContent,
|
|
149
|
+
gr as Z2PopoverTrigger,
|
|
148
150
|
Qo as Z2Select,
|
|
149
151
|
Yo as Z2SelectContent,
|
|
150
152
|
jo as Z2SelectGroup,
|
|
@@ -159,23 +161,24 @@ export {
|
|
|
159
161
|
w as Z2SideNavBarContent,
|
|
160
162
|
s as Z2SideNavBarFooter,
|
|
161
163
|
v as Z2SideNavBarGroup,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
g as Z2SideNavBarHeader,
|
|
165
|
+
M as Z2SideNavBarItem,
|
|
164
166
|
u as Z2SideNavBarProvider,
|
|
165
167
|
N as Z2SideNavBarSeparator,
|
|
166
168
|
T as Z2SidebarVariants,
|
|
167
169
|
te as Z2Stepper,
|
|
168
|
-
|
|
170
|
+
pe as Z2StepperItem,
|
|
169
171
|
le as Z2Tabs,
|
|
170
172
|
me as Z2TabsContent,
|
|
171
173
|
fe as Z2TabsList,
|
|
172
174
|
xe as Z2TabsTrigger,
|
|
173
175
|
nr as Z2Tooltip,
|
|
176
|
+
ir as badgeVariants,
|
|
174
177
|
Z as buttonVariants,
|
|
175
|
-
|
|
178
|
+
Tr as cn,
|
|
176
179
|
Te as extractCellValue,
|
|
177
180
|
be as getNestedValue,
|
|
178
181
|
Ie as useTableContext,
|
|
179
|
-
|
|
182
|
+
Sr as useTheme,
|
|
180
183
|
E as useZ2SideNavBar
|
|
181
184
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "xs" | "lg" | null | undefined;
|
|
6
|
+
color?: "default" | "success" | "warning" | "destructive" | "primary" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare function Badge({ className, variant, size, color, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconInfo } from './icon-showcase.type';
|
|
2
|
+
export declare function useIconShowcase(icons: IconInfo[], controlledSearchValue?: string): {
|
|
3
|
+
searchValue: string;
|
|
4
|
+
setSearchValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
5
|
+
filteredIcons: IconInfo[];
|
|
6
|
+
totalCount: number;
|
|
7
|
+
filteredCount: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IconInfo {
|
|
2
|
+
name: string;
|
|
3
|
+
component: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4
|
+
fileName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IconShowcaseProps {
|
|
7
|
+
searchValue?: string;
|
|
8
|
+
onSearchChange?: (value: string) => void;
|
|
9
|
+
iconSize?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconFilenames: string[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './components/tab/tab';
|
|
|
16
16
|
export * from './components/table';
|
|
17
17
|
export * from './components/tooltip/tooltip';
|
|
18
18
|
export * from './components/table-card';
|
|
19
|
+
export * from './components/badge/badge';
|
|
19
20
|
export * from './components/assets/icons/apartment-building';
|
|
20
21
|
export * from './components/assets/icons/chevron-down';
|
|
21
22
|
export * from './components/assets/icons/chevron-left';
|