@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 @@
|
|
|
1
|
+
export { Navigation } from './navigation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Navigation: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,47 @@
|
|
|
1
1
|
export * from './components/alert';
|
|
2
2
|
export * from './components/button/button';
|
|
3
|
-
export * from './components/nav-header';
|
|
4
|
-
export * from './components/input/input';
|
|
5
|
-
export * from './components/country-flags/country-flags';
|
|
6
3
|
export * from './components/collapsible-side-nav-bar';
|
|
7
|
-
export * from './components/
|
|
8
|
-
export * from './components/tooltip/tooltip';
|
|
9
|
-
export * from './components/dialog/dialog';
|
|
4
|
+
export * from './components/country-flags/country-flags';
|
|
10
5
|
export * from './components/dialog/dialog';
|
|
6
|
+
export * from './components/dropdown/z2-dropdown';
|
|
7
|
+
export * from './components/dropdown-menu/z2-dropdown-menu';
|
|
11
8
|
export * from './components/file-upload-area';
|
|
12
|
-
export * from './components/
|
|
9
|
+
export * from './components/input/input';
|
|
10
|
+
export * from './components/nav-header';
|
|
13
11
|
export * from './components/select/z2-select';
|
|
14
|
-
export * from './components/
|
|
12
|
+
export * from './components/stepper';
|
|
13
|
+
export * from './components/stepper-item/stepper-item';
|
|
14
|
+
export * from './components/tab/tab';
|
|
15
|
+
export * from './components/table';
|
|
16
|
+
export * from './components/tooltip/tooltip';
|
|
17
|
+
export * from './components/assets/icons/apartment-building';
|
|
18
|
+
export * from './components/assets/icons/chevron-down';
|
|
19
|
+
export * from './components/assets/icons/chevron-left';
|
|
20
|
+
export * from './components/assets/icons/chevron-right';
|
|
21
|
+
export * from './components/assets/icons/chevron-up-icon';
|
|
22
|
+
export * from './components/assets/icons/circle-check-filled';
|
|
23
|
+
export * from './components/assets/icons/circle-check';
|
|
24
|
+
export * from './components/assets/icons/circles-icon';
|
|
25
|
+
export * from './components/assets/icons/database-copy';
|
|
26
|
+
export * from './components/assets/icons/dots';
|
|
27
|
+
export * from './components/assets/icons/double-chevron-left';
|
|
28
|
+
export * from './components/assets/icons/double-chevron-right';
|
|
29
|
+
export * from './components/assets/icons/home';
|
|
30
|
+
export * from './components/assets/icons/info-icon';
|
|
31
|
+
export * from './components/assets/icons/left-arrow';
|
|
32
|
+
export * from './components/assets/icons/link';
|
|
33
|
+
export * from './components/assets/icons/list-tree';
|
|
34
|
+
export * from './components/assets/icons/magnifier-icon';
|
|
35
|
+
export * from './components/assets/icons/media-record';
|
|
36
|
+
export * from './components/assets/icons/octagon-warning-Copy';
|
|
37
|
+
export * from './components/assets/icons/pin';
|
|
38
|
+
export * from './components/assets/icons/sidebar-left-show-copy';
|
|
39
|
+
export * from './components/assets/icons/slider';
|
|
40
|
+
export * from './components/assets/icons/sub-nav-indicator';
|
|
41
|
+
export * from './components/assets/icons/upload';
|
|
42
|
+
export * from './components/assets/icons/vector';
|
|
43
|
+
export * from './components/assets/icons/window-left-copy';
|
|
44
|
+
export * from './components/assets/icons/x';
|
|
45
|
+
export * from './components/assets/icons/z2-icon';
|
|
46
|
+
export * from './lib/theme.hook';
|
|
47
|
+
export * from './lib/utils';
|
package/dist/index.js
CHANGED
|
@@ -1,105 +1,179 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Alert as
|
|
3
|
-
import { AlertCirclesIcon as
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { default as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
2
|
+
import { Alert as a, AlertDescription as n, AlertTitle as l } from "./components/alert/alert.js";
|
|
3
|
+
import { AlertCirclesIcon as f } from "./components/alert/icons/circles-icon.js";
|
|
4
|
+
import { Button as i, buttonVariants as Z } from "./components/button/button.js";
|
|
5
|
+
import { Z2SideNavBarProvider as S } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
6
|
+
import { Z2SideNavBar as D, Z2SidebarVariants as T } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
|
|
7
|
+
import { Z2SideNavBarHeader as C } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
8
|
+
import { Z2SideNavBarContent as w } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
9
|
+
import { Z2SideNavBarFooter as s } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
10
|
+
import { Z2SideNavBarGroup as v } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
11
|
+
import { Z2SideNavBarItem as B } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
12
|
+
import { Z2SideNavBarSeparator as N } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
13
|
+
import { useZ2SideNavBar as E } from "./components/collapsible-side-nav-bar/context.js";
|
|
14
|
+
import { Z2Popover as F } from "./components/collapsible-side-nav-bar/popover/popover.js";
|
|
15
|
+
import { ChevronUpIcon as _ } from "./components/assets/icons/chevron-up-icon.js";
|
|
16
|
+
import { default as h } from "./components/assets/icons/sub-nav-indicator.js";
|
|
17
|
+
import { default as R } from "./components/assets/icons/circles-icon.js";
|
|
18
|
+
import { default as V } from "./components/assets/icons/database-copy.js";
|
|
19
|
+
import { default as k } from "./components/assets/icons/window-left-copy.js";
|
|
20
|
+
import { default as J } from "./components/assets/icons/sidebar-left-show-copy.js";
|
|
21
|
+
import { SIDEBAR_WIDTH as Y, SIDEBAR_WIDTH_COLLAPSED as j } from "./components/collapsible-side-nav-bar/constants.js";
|
|
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 po, Z2DialogPortal as ao, Z2DialogTitle as no, Z2DialogTrigger as lo } from "./components/dialog/dialog.js";
|
|
24
|
+
import { DropdownContext as fo, Z2Dropdown as xo, Z2DropdownContent as io, Z2DropdownInput as Zo, Z2DropdownItem as So, Z2DropdownSub as uo, Z2DropdownSubContent as Do, Z2DropdownSubItem as To, Z2DropdownSubTrigger as bo } from "./components/dropdown/z2-dropdown.js";
|
|
25
|
+
import { Z2DropdownMenu as go, Z2DropdownMenuCheckboxItem as wo, Z2DropdownMenuContent as co, Z2DropdownMenuGroup as so, Z2DropdownMenuItem as Io, Z2DropdownMenuLabel as vo, Z2DropdownMenuPortal as Mo, Z2DropdownMenuRadioGroup as Bo, 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
|
+
import { FileUploadArea as yo } from "./components/file-upload-area/file-upload-area.js";
|
|
27
|
+
import { DEFAULT_ACCEPT as Go } from "./components/file-upload-area/file-upload-area.const.js";
|
|
28
|
+
import { Input as Uo } from "./components/input/input.js";
|
|
29
|
+
import { NavHeader as Wo } from "./components/nav-header/nav-header.js";
|
|
30
|
+
import { NavItem as Oo } from "./components/nav-header/nav-item/nav-item.js";
|
|
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
|
+
import { Z2Stepper as te } from "./components/stepper/stepper.js";
|
|
33
|
+
import { Z2StepperItem as ae } from "./components/stepper-item/stepper-item.js";
|
|
34
|
+
import { Z2Tabs as le, Z2TabsContent as me, Z2TabsList as fe, Z2TabsTrigger as xe } from "./components/tab/tab.js";
|
|
35
|
+
import { Table as Ze, TableProvider as de } from "./components/table/table-provider.js";
|
|
36
|
+
import { TableBody as ue } from "./components/table/table.js";
|
|
37
|
+
import { extractCellValue as Te, getNestedValue as be } from "./components/table/table.utils.js";
|
|
38
|
+
import { DEFAULT_EMPTY_MESSAGE as ge, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
|
|
39
|
+
import { TableContext as se, useTableContext as Ie } from "./components/table/table.context.js";
|
|
40
|
+
import { TableCell as Me } from "./components/table/components/table-cell.js";
|
|
41
|
+
import { TableHeader as Ae } from "./components/table/components/table-header/table-header.js";
|
|
42
|
+
import "react/jsx-runtime";
|
|
43
|
+
import { TableRow as Pe } from "./components/table/components/table-row.js";
|
|
44
|
+
import { TableEmptyState as Le } from "./components/table/components/table-empty-state.js";
|
|
45
|
+
import { TableLoadingState as He } from "./components/table/components/table-loading-state.js";
|
|
46
|
+
import { Pagination as ye } from "./components/table/components/pagination/pagination.js";
|
|
47
|
+
import "react";
|
|
48
|
+
import { TableHeaderWrapper as Ge } from "./components/table/components/table-header-wrapper.js";
|
|
49
|
+
import { TableHeaderContent as Ue } from "./components/table/components/table-header-content.js";
|
|
50
|
+
import { TableFooter as We } from "./components/table/components/table-footer.js";
|
|
51
|
+
import { TableFooterContent as Oe } from "./components/table/components/table-footer-content.js";
|
|
52
|
+
import { TextCell as Qe } from "./components/table/components/cell/text-cell.js";
|
|
53
|
+
import { NumberCell as je } from "./components/table/components/cell/number-cell.js";
|
|
54
|
+
import { BooleanCell as ze } from "./components/table/components/cell/boolean-cell.js";
|
|
55
|
+
import { TableFilter as Xe } from "./components/table/components/table-filter/table-filter.js";
|
|
56
|
+
import { PaginationInfo as or } from "./components/table/components/pagination/components/pagination-info.js";
|
|
57
|
+
import { PaginationQuickJumper as rr } from "./components/table/components/pagination/components/pagination-quick-jumper.js";
|
|
58
|
+
import { Z2Tooltip as pr } from "./components/tooltip/tooltip.js";
|
|
59
|
+
import { InfoIcon as nr } from "./components/assets/icons/info-icon.js";
|
|
60
|
+
import { MagnifierIcon as mr } from "./components/assets/icons/magnifier-icon.js";
|
|
61
|
+
import { useTheme as xr } from "./lib/theme.hook.js";
|
|
62
|
+
import { cn as Zr } from "./lib/utils.js";
|
|
63
|
+
import { Z2PopoverTrigger as Sr } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
|
|
64
|
+
import { Z2PopoverContent as Dr } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
|
|
36
65
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
66
|
+
a as Alert,
|
|
67
|
+
f as AlertCirclesIcon,
|
|
68
|
+
n as AlertDescription,
|
|
69
|
+
l as AlertTitle,
|
|
70
|
+
ze as BooleanCell,
|
|
71
|
+
i as Button,
|
|
72
|
+
_ as ChevronUpIcon,
|
|
73
|
+
R as CirclesIcon,
|
|
74
|
+
z as CountryFlags,
|
|
75
|
+
Go as DEFAULT_ACCEPT,
|
|
76
|
+
ge as DEFAULT_EMPTY_MESSAGE,
|
|
77
|
+
V as DatabaseCopy,
|
|
78
|
+
fo as DropdownContext,
|
|
79
|
+
yo as FileUploadArea,
|
|
80
|
+
nr as InfoIcon,
|
|
81
|
+
Uo as Input,
|
|
82
|
+
mr as MagnifierIcon,
|
|
83
|
+
Wo as NavHeader,
|
|
84
|
+
Oo as NavItem,
|
|
85
|
+
je as NumberCell,
|
|
86
|
+
or as PaginationInfo,
|
|
87
|
+
rr as PaginationQuickJumper,
|
|
88
|
+
Y as SIDEBAR_WIDTH,
|
|
89
|
+
j as SIDEBAR_WIDTH_COLLAPSED,
|
|
90
|
+
J as SidebarLeftShowCopy,
|
|
91
|
+
h as SubNavIndicator,
|
|
92
|
+
we as TABLE_CSS_CLASSES,
|
|
93
|
+
Ze as Table,
|
|
94
|
+
ue as TableBody,
|
|
95
|
+
Me as TableCell,
|
|
96
|
+
se as TableContext,
|
|
97
|
+
Le as TableEmptyState,
|
|
98
|
+
Xe as TableFilter,
|
|
99
|
+
We as TableFooter,
|
|
100
|
+
Oe as TableFooterContent,
|
|
101
|
+
Ae as TableHeader,
|
|
102
|
+
Ue as TableHeaderContent,
|
|
103
|
+
Ge as TableHeaderWrapper,
|
|
104
|
+
He as TableLoadingState,
|
|
105
|
+
ye as TablePagination,
|
|
106
|
+
de as TableProvider,
|
|
107
|
+
Pe as TableRow,
|
|
108
|
+
Qe as TextCell,
|
|
109
|
+
k as WindowLeftCopy,
|
|
110
|
+
X as Z2Dialog,
|
|
111
|
+
$ as Z2DialogClose,
|
|
112
|
+
oo as Z2DialogContent,
|
|
113
|
+
eo as Z2DialogDescription,
|
|
114
|
+
ro as Z2DialogFooter,
|
|
115
|
+
to as Z2DialogHeader,
|
|
116
|
+
po as Z2DialogOverlay,
|
|
117
|
+
ao as Z2DialogPortal,
|
|
118
|
+
no as Z2DialogTitle,
|
|
119
|
+
lo as Z2DialogTrigger,
|
|
120
|
+
xo as Z2Dropdown,
|
|
121
|
+
io as Z2DropdownContent,
|
|
122
|
+
Zo as Z2DropdownInput,
|
|
123
|
+
So as Z2DropdownItem,
|
|
124
|
+
go as Z2DropdownMenu,
|
|
125
|
+
wo as Z2DropdownMenuCheckboxItem,
|
|
126
|
+
co as Z2DropdownMenuContent,
|
|
127
|
+
so as Z2DropdownMenuGroup,
|
|
128
|
+
Io as Z2DropdownMenuItem,
|
|
129
|
+
vo as Z2DropdownMenuLabel,
|
|
130
|
+
Mo as Z2DropdownMenuPortal,
|
|
131
|
+
Bo as Z2DropdownMenuRadioGroup,
|
|
132
|
+
Ao as Z2DropdownMenuRadioItem,
|
|
133
|
+
No as Z2DropdownMenuSeparator,
|
|
134
|
+
Po as Z2DropdownMenuShortcut,
|
|
135
|
+
Eo as Z2DropdownMenuSub,
|
|
136
|
+
Lo as Z2DropdownMenuSubContent,
|
|
137
|
+
Fo as Z2DropdownMenuSubTrigger,
|
|
138
|
+
Ho as Z2DropdownMenuTrigger,
|
|
139
|
+
uo as Z2DropdownSub,
|
|
140
|
+
Do as Z2DropdownSubContent,
|
|
141
|
+
To as Z2DropdownSubItem,
|
|
142
|
+
bo as Z2DropdownSubTrigger,
|
|
143
|
+
F as Z2Popover,
|
|
144
|
+
Dr as Z2PopoverContent,
|
|
145
|
+
Sr as Z2PopoverTrigger,
|
|
146
|
+
Qo as Z2Select,
|
|
147
|
+
Yo as Z2SelectContent,
|
|
148
|
+
jo as Z2SelectGroup,
|
|
149
|
+
qo as Z2SelectItem,
|
|
150
|
+
zo as Z2SelectLabel,
|
|
151
|
+
Ko as Z2SelectScrollDownButton,
|
|
152
|
+
Xo as Z2SelectScrollUpButton,
|
|
153
|
+
$o as Z2SelectSeparator,
|
|
154
|
+
oe as Z2SelectTrigger,
|
|
155
|
+
ee as Z2SelectValue,
|
|
156
|
+
D as Z2SideNavBar,
|
|
157
|
+
w as Z2SideNavBarContent,
|
|
158
|
+
s as Z2SideNavBarFooter,
|
|
159
|
+
v as Z2SideNavBarGroup,
|
|
160
|
+
C as Z2SideNavBarHeader,
|
|
161
|
+
B as Z2SideNavBarItem,
|
|
162
|
+
S as Z2SideNavBarProvider,
|
|
163
|
+
N as Z2SideNavBarSeparator,
|
|
164
|
+
T as Z2SidebarVariants,
|
|
165
|
+
te as Z2Stepper,
|
|
166
|
+
ae as Z2StepperItem,
|
|
167
|
+
le as Z2Tabs,
|
|
168
|
+
me as Z2TabsContent,
|
|
169
|
+
fe as Z2TabsList,
|
|
170
|
+
xe as Z2TabsTrigger,
|
|
171
|
+
pr as Z2Tooltip,
|
|
172
|
+
Z as buttonVariants,
|
|
173
|
+
Zr as cn,
|
|
174
|
+
Te as extractCellValue,
|
|
175
|
+
be as getNestedValue,
|
|
176
|
+
Ie as useTableContext,
|
|
177
|
+
xr as useTheme,
|
|
178
|
+
E as useZ2SideNavBar
|
|
105
179
|
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useState as f, useEffect as c } from "react";
|
|
2
|
+
const a = "ui-library-theme", T = () => {
|
|
3
|
+
const m = () => typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", o = () => {
|
|
4
|
+
if (typeof window < "u") {
|
|
5
|
+
const e = localStorage.getItem(a);
|
|
6
|
+
if (e === "dark" || e === "light")
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
return null;
|
|
10
|
+
}, i = () => {
|
|
11
|
+
const e = o();
|
|
12
|
+
if (e)
|
|
13
|
+
return e;
|
|
14
|
+
const t = window.document.getElementById("root");
|
|
15
|
+
return t != null && t.classList.contains("dark") ? "dark" : m();
|
|
16
|
+
}, [n, s] = f(() => typeof window < "u" ? i() : "light"), d = (e) => {
|
|
17
|
+
const t = window.document.getElementById("root");
|
|
18
|
+
t && (t.classList.remove("dark", "light"), t.classList.add(e), localStorage.setItem(a, e));
|
|
19
|
+
}, r = (e) => {
|
|
20
|
+
s(e), d(e);
|
|
21
|
+
}, h = () => {
|
|
22
|
+
r(n === "dark" ? "light" : "dark");
|
|
23
|
+
};
|
|
24
|
+
return c(() => {
|
|
25
|
+
if (typeof window > "u") return;
|
|
26
|
+
const e = window.matchMedia("(prefers-color-scheme: dark)"), t = (u) => {
|
|
27
|
+
if (!o()) {
|
|
28
|
+
const l = u.matches ? "dark" : "light";
|
|
29
|
+
r(l);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return e.addEventListener("change", t), () => {
|
|
33
|
+
e.removeEventListener("change", t);
|
|
34
|
+
};
|
|
35
|
+
}, []), c(() => {
|
|
36
|
+
if (typeof window < "u") {
|
|
37
|
+
const e = i();
|
|
38
|
+
s(e), d(e);
|
|
39
|
+
}
|
|
40
|
+
}, []), {
|
|
41
|
+
currentTheme: n,
|
|
42
|
+
setTheme: r,
|
|
43
|
+
toggleTheme: h,
|
|
44
|
+
isDark: n === "dark",
|
|
45
|
+
isLight: n === "light"
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
T as useTheme
|
|
50
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function n({
|
|
3
|
+
title: l,
|
|
4
|
+
titleId: a,
|
|
5
|
+
...r
|
|
6
|
+
}, t) {
|
|
7
|
+
return /* @__PURE__ */ e.createElement("svg", Object.assign({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
"data-slot": "icon",
|
|
13
|
+
ref: t,
|
|
14
|
+
"aria-labelledby": a
|
|
15
|
+
}, r), l ? /* @__PURE__ */ e.createElement("title", {
|
|
16
|
+
id: a
|
|
17
|
+
}, l) : null, /* @__PURE__ */ e.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
20
|
+
clipRule: "evenodd"
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
const o = /* @__PURE__ */ e.forwardRef(n);
|
|
24
|
+
export {
|
|
25
|
+
o as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function n({
|
|
3
|
+
title: l,
|
|
4
|
+
titleId: a,
|
|
5
|
+
...r
|
|
6
|
+
}, t) {
|
|
7
|
+
return /* @__PURE__ */ e.createElement("svg", Object.assign({
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
"data-slot": "icon",
|
|
13
|
+
ref: t,
|
|
14
|
+
"aria-labelledby": a
|
|
15
|
+
}, r), l ? /* @__PURE__ */ e.createElement("title", {
|
|
16
|
+
id: a
|
|
17
|
+
}, l) : null, /* @__PURE__ */ e.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",
|
|
20
|
+
clipRule: "evenodd"
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
const o = /* @__PURE__ */ e.forwardRef(n);
|
|
24
|
+
export {
|
|
25
|
+
o as default
|
|
26
|
+
};
|
|
@@ -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,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,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;
|
|
@@ -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;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Z2SideNavBarProps } from './types';
|
|
3
3
|
export declare const Z2SidebarVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "floating" | "inset" | null | undefined;
|
|
5
5
|
side?: "left" | "right" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const Z2SideNavBar: React.ForwardRefExoticComponent<Z2SideNavBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { TableCell } from './table-cell';
|
|
2
|
+
export { TableHeader, TableSortIcon } from './table-header';
|
|
3
|
+
export { TableRow } from './table-row';
|
|
4
|
+
export { TableEmptyState } from './table-empty-state';
|
|
5
|
+
export { TableLoadingState } from './table-loading-state';
|
|
6
|
+
export { Pagination as TablePagination } from './pagination';
|
|
7
|
+
export { TableHeaderWrapper } from './table-header-wrapper';
|
|
8
|
+
export { TableHeaderContent } from './table-header-content';
|
|
9
|
+
export { TableFooter } from './table-footer';
|
|
10
|
+
export { TableFooterContent } from './table-footer-content';
|
|
11
|
+
export * from './cell';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const usePaginationQuickJumper: (currentPage: number, totalPage: number, onPageChange: (page: number) => void) => {
|
|
2
|
+
inputValue: string;
|
|
3
|
+
handleInputChange: (value: string) => void;
|
|
4
|
+
handleInputSubmit: () => void;
|
|
5
|
+
handleKeyPress: (event: React.KeyboardEvent) => void;
|
|
6
|
+
};
|