@ztwoint/z-ui 0.1.114 → 0.1.116

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.
Files changed (51) hide show
  1. package/dist/components/assets/icons/eraser.d.ts +7 -0
  2. package/dist/components/assets/icons/eraser.js +61 -0
  3. package/dist/components/assets/icons/index.d.ts +1 -0
  4. package/dist/components/chart/chart.d.ts +4 -0
  5. package/dist/components/chart/chart.js +25 -0
  6. package/dist/components/chart/index.d.ts +2 -0
  7. package/dist/components/chart-card/builders/bar-chart-builder.d.ts +3 -0
  8. package/dist/components/chart-card/builders/bar-chart-builder.js +43 -0
  9. package/dist/components/chart-card/builders/chart-builder-factory.d.ts +5 -0
  10. package/dist/components/chart-card/builders/chart-builder-factory.js +23 -0
  11. package/dist/components/chart-card/builders/line-chart-builder.d.ts +3 -0
  12. package/dist/components/chart-card/builders/line-chart-builder.js +53 -0
  13. package/dist/components/chart-card/builders/pie-chart-builder.d.ts +3 -0
  14. package/dist/components/chart-card/builders/pie-chart-builder.js +71 -0
  15. package/dist/components/chart-card/chart-card-states.d.ts +10 -0
  16. package/dist/components/chart-card/chart-card-states.js +93 -0
  17. package/dist/components/chart-card/chart-card.config.types.d.ts +99 -0
  18. package/dist/components/chart-card/chart-card.d.ts +2 -0
  19. package/dist/components/chart-card/chart-card.js +72 -0
  20. package/dist/components/chart-card/chart-card.types.d.ts +12 -0
  21. package/dist/components/chart-card/config/colors.d.ts +29 -0
  22. package/dist/components/chart-card/config/colors.js +49 -0
  23. package/dist/components/chart-card/config/defaults.d.ts +164 -0
  24. package/dist/components/chart-card/config/defaults.js +156 -0
  25. package/dist/components/chart-card/index.d.ts +10 -0
  26. package/dist/components/chart-card/validators/config-validator.d.ts +7 -0
  27. package/dist/components/chart-card/validators/config-validator.js +40 -0
  28. package/dist/components/table/components/cell/avatar-cell.js +5 -2
  29. package/dist/components/table/table-provider.js +3 -0
  30. package/dist/components/table-card/table-card.js +11 -8
  31. package/dist/css/styles/tailwind.css +1 -1
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +170 -145
  34. package/dist/types/components/assets/icons/eraser.d.ts +7 -0
  35. package/dist/types/components/assets/icons/index.d.ts +1 -0
  36. package/dist/types/components/chart/chart.d.ts +4 -0
  37. package/dist/types/components/chart/index.d.ts +2 -0
  38. package/dist/types/components/chart-card/builders/bar-chart-builder.d.ts +3 -0
  39. package/dist/types/components/chart-card/builders/chart-builder-factory.d.ts +5 -0
  40. package/dist/types/components/chart-card/builders/line-chart-builder.d.ts +3 -0
  41. package/dist/types/components/chart-card/builders/pie-chart-builder.d.ts +3 -0
  42. package/dist/types/components/chart-card/chart-card-states.d.ts +10 -0
  43. package/dist/types/components/chart-card/chart-card.config.types.d.ts +99 -0
  44. package/dist/types/components/chart-card/chart-card.d.ts +2 -0
  45. package/dist/types/components/chart-card/chart-card.types.d.ts +12 -0
  46. package/dist/types/components/chart-card/config/colors.d.ts +29 -0
  47. package/dist/types/components/chart-card/config/defaults.d.ts +164 -0
  48. package/dist/types/components/chart-card/index.d.ts +10 -0
  49. package/dist/types/components/chart-card/validators/config-validator.d.ts +7 -0
  50. package/dist/types/index.d.ts +2 -0
  51. package/package.json +3 -1
package/dist/index.d.ts CHANGED
@@ -27,6 +27,8 @@ export * from './components/assets/icons';
27
27
  export * from './components/segmented-control';
28
28
  export * from './components/popover/popover';
29
29
  export * from './components/dynamic-table';
30
+ export * from './components/chart';
31
+ export * from './components/chart-card';
30
32
  export * from './components/radio-card/radio-card';
31
33
  export * from './lib/theme.hook';
32
34
  export * from './lib/utils';
package/dist/index.js CHANGED
@@ -4,29 +4,29 @@ import { AlertCirclesIcon as m } from "./components/alert/icons/circles-icon.js"
4
4
  import { Button as x, buttonVariants as i } from "./components/button/button.js";
5
5
  import { Z2SideNavBarProvider as Z } from "./components/collapsible-side-nav-bar/side-nav-bar-provider.js";
6
6
  import { Z2SideNavBar as s, Z2SidebarVariants as b } from "./components/collapsible-side-nav-bar/side-nav-bar.js";
7
- import { Z2SideNavBarHeader as I } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
8
- import { Z2SideNavBarContent as C } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
7
+ import { Z2SideNavBarHeader as S } from "./components/collapsible-side-nav-bar/side-nav-bar-header.js";
8
+ import { Z2SideNavBarContent as I } from "./components/collapsible-side-nav-bar/side-nav-bar-content.js";
9
9
  import { Z2SideNavBarFooter as g } from "./components/collapsible-side-nav-bar/side-nav-bar-footer.js";
10
- import { Z2SideNavBarGroup as B } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
11
- import { Z2SideNavBarItem as L } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
12
- import { Z2SideNavBarSeparator as M } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
13
- import { useZ2SideNavBar as h } from "./components/collapsible-side-nav-bar/context.js";
10
+ import { Z2SideNavBarGroup as v } from "./components/collapsible-side-nav-bar/side-nav-bar-group.js";
11
+ import { Z2SideNavBarItem as h } from "./components/collapsible-side-nav-bar/side-nav-bar-item.js";
12
+ import { Z2SideNavBarSeparator as R } from "./components/collapsible-side-nav-bar/side-nav-bar-separator.js";
13
+ import { useZ2SideNavBar as M } from "./components/collapsible-side-nav-bar/context.js";
14
14
  import { Z2Popover as y } from "./components/collapsible-side-nav-bar/popover/popover.js";
15
15
  import "react/jsx-runtime";
16
- import { default as H, default as E } from "./components/assets/icons/sub-nav-indicator.js";
17
- import { default as F } from "./components/assets/icons/circles-icon.js";
18
- import { default as W, default as _ } from "./components/assets/icons/database-copy.js";
19
- import { default as U, default as O } from "./components/assets/icons/window-left-copy.js";
16
+ import { default as k, default as H } from "./components/assets/icons/sub-nav-indicator.js";
17
+ import { default as O } from "./components/assets/icons/circles-icon.js";
18
+ import { default as _, default as G } from "./components/assets/icons/database-copy.js";
19
+ import { default as V, default as U } from "./components/assets/icons/window-left-copy.js";
20
20
  import { default as z, 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 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 lo, Z2DialogHeader as no, Z2DialogOverlay as fo, Z2DialogPortal as mo, Z2DialogTitle as xo, Z2DialogTrigger as io } from "./components/dialog/dialog.js";
25
- import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as bo, Z2DropdownItem as To, Z2DropdownSub as Io, Z2DropdownSubContent as So, Z2DropdownSubItem as Co, Z2DropdownSubTrigger as Do } from "./components/dropdown/z2-dropdown.js";
26
- import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as Bo, Z2DropdownMenuContent as vo, Z2DropdownMenuGroup as Lo, Z2DropdownMenuItem as Ro, Z2DropdownMenuLabel as Mo, Z2DropdownMenuPortal as Po, Z2DropdownMenuRadioGroup as ho, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as yo, Z2DropdownMenuShortcut as ko, Z2DropdownMenuSub as Ho, Z2DropdownMenuSubContent as Eo, Z2DropdownMenuSubTrigger as No, Z2DropdownMenuTrigger as Fo } from "./components/dropdown-menu/z2-dropdown-menu.js";
27
- import { FileUploadArea as Wo } from "./components/file-upload-area/file-upload-area.js";
28
- import { DEFAULT_ACCEPT as Vo } from "./components/file-upload-area/file-upload-area.const.js";
29
- import { Input as Oo } from "./components/input/input.js";
25
+ import { DropdownContext as Zo, Z2Dropdown as co, Z2DropdownContent as so, Z2DropdownInput as bo, Z2DropdownItem as Co, Z2DropdownSub as So, Z2DropdownSubContent as To, Z2DropdownSubItem as Io, Z2DropdownSubTrigger as Do } from "./components/dropdown/z2-dropdown.js";
26
+ import { Z2DropdownMenu as wo, Z2DropdownMenuCheckboxItem as vo, Z2DropdownMenuContent as Bo, Z2DropdownMenuGroup as ho, Z2DropdownMenuItem as Lo, Z2DropdownMenuLabel as Ro, Z2DropdownMenuPortal as Po, Z2DropdownMenuRadioGroup as Mo, Z2DropdownMenuRadioItem as Ao, Z2DropdownMenuSeparator as yo, Z2DropdownMenuShortcut as Eo, Z2DropdownMenuSub as ko, Z2DropdownMenuSubContent as Ho, Z2DropdownMenuSubTrigger as No, Z2DropdownMenuTrigger as Oo } from "./components/dropdown-menu/z2-dropdown-menu.js";
27
+ import { FileUploadArea as _o } from "./components/file-upload-area/file-upload-area.js";
28
+ import { DEFAULT_ACCEPT as Wo } from "./components/file-upload-area/file-upload-area.const.js";
29
+ import { Input as Uo } from "./components/input/input.js";
30
30
  import { NavHeader as zo } from "./components/nav-header/nav-header.js";
31
31
  import { NavItem as Qo } from "./components/nav-header/nav-item/nav-item.js";
32
32
  import { Z2Select as jo, Z2SelectContent as qo, Z2SelectGroup as Ko, Z2SelectItem as $o, Z2SelectLabel as oe, Z2SelectScrollDownButton as ee, Z2SelectScrollUpButton as re, Z2SelectSeparator as te, Z2SelectTrigger as ae, Z2SelectValue as pe } from "./components/select/z2-select.js";
@@ -34,18 +34,18 @@ import { Z2Stepper as ne } 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 ie, Z2TabsList as ue, Z2TabsTrigger as Ze } from "./components/tab/tab.js";
36
36
  import { Table as se, TableProvider as be } from "./components/table/table-provider.js";
37
- import { TableBody as Ie } from "./components/table/table.js";
38
- import { extractCellValue as Ce } from "./components/table/table.utils.js";
37
+ import { TableBody as Se } from "./components/table/table.js";
38
+ import { extractCellValue as Ie } from "./components/table/table.utils.js";
39
39
  import { DEFAULT_EMPTY_MESSAGE as ge, TABLE_CSS_CLASSES as we } from "./components/table/table.const.js";
40
- import { TableContext as ve, useTableContext as Le } from "./components/table/table.context.js";
41
- import { TableCell as Me } from "./components/table/components/table-cell.js";
42
- import { NumberCell as he } from "./components/table/components/cell/number-cell.js";
40
+ import { TableContext as Be, useTableContext as he } from "./components/table/table.context.js";
41
+ import { TableCell as Re } from "./components/table/components/table-cell.js";
42
+ import { NumberCell as Me } from "./components/table/components/cell/number-cell.js";
43
43
  import { BooleanCell as ye } from "./components/table/components/cell/boolean-cell.js";
44
- import { LinkCell as He } from "./components/table/components/cell/link-cell.js";
44
+ import { LinkCell as ke } from "./components/table/components/cell/link-cell.js";
45
45
  import { DescriptionCell as Ne } from "./components/table/components/cell/description-cell.js";
46
- import { AvatarCell as Ge } from "./components/table/components/cell/avatar-cell.js";
47
- import { LabelCell as _e } from "./components/table/components/cell/label-cell.js";
48
- import { TableHeader as Ue } from "./components/table/components/table-header/table-header.js";
46
+ import { AvatarCell as Fe } from "./components/table/components/cell/avatar-cell.js";
47
+ import { LabelCell as Ge } from "./components/table/components/cell/label-cell.js";
48
+ import { TableHeader as Ve } from "./components/table/components/table-header/table-header.js";
49
49
  import { default as Xe } from "./components/assets/icons/chevron-down.js";
50
50
  import { TableRow as Je } from "./components/table/components/table-row.js";
51
51
  import { TableMessageState as Ye } from "./components/table/components/table-message-state.js";
@@ -61,14 +61,14 @@ import { PaginationQuickJumper as ur } from "./components/table/components/pagin
61
61
  import "react";
62
62
  import { Z2Tooltip as cr } from "./components/tooltip/tooltip.js";
63
63
  import { default as br } from "./components/table-card/table-card.js";
64
- import { Badge as Ir, badgeVariants as Sr } from "./components/badge/badge.js";
64
+ import { Badge as Sr, badgeVariants as Tr } from "./components/badge/badge.js";
65
65
  import { Avatar as Dr, AvatarWithLabel as gr } from "./components/avatar/avatar.js";
66
- import { Z2TextPreset as Br } from "./components/text-preset/text-preset.js";
67
- import { ColumnReOrder as Lr } from "./components/column-reorder/column-reorder.js";
68
- import { default as Mr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
69
- import { Z2Breadcrumb as hr, Z2BreadcrumbEllipsis as Ar, Z2BreadcrumbItem as yr, Z2BreadcrumbLink as kr, Z2BreadcrumbList as Hr, Z2BreadcrumbPage as Er, Z2BreadcrumbSeparator as Nr } from "./components/breadcrumb/z2-breadcrumb.js";
70
- import { Z2RadioGroup as Gr, Z2RadioGroupIndicator as Wr, Z2RadioGroupItem as _r } from "./components/radio/z2-radio.js";
71
- import { default as Ur } from "./components/assets/icons/apartment-building.js";
66
+ import { Z2TextPreset as vr } from "./components/text-preset/text-preset.js";
67
+ import { ColumnReOrder as hr } from "./components/column-reorder/column-reorder.js";
68
+ import { default as Rr } from "./components/tree-checkbox-select/TreeCheckboxSelect.js";
69
+ import { Z2Breadcrumb as Mr, Z2BreadcrumbEllipsis as Ar, Z2BreadcrumbItem as yr, Z2BreadcrumbLink as Er, Z2BreadcrumbList as kr, Z2BreadcrumbPage as Hr, Z2BreadcrumbSeparator as Nr } from "./components/breadcrumb/z2-breadcrumb.js";
70
+ import { Z2RadioGroup as Fr, Z2RadioGroupIndicator as _r, Z2RadioGroupItem as Gr } from "./components/radio/z2-radio.js";
71
+ import { default as Vr } from "./components/assets/icons/apartment-building.js";
72
72
  import { Check as Xr } from "./components/assets/icons/check.js";
73
73
  import { default as Jr } from "./components/assets/icons/chevron-left.js";
74
74
  import { default as Yr } from "./components/assets/icons/chevron-right.js";
@@ -83,19 +83,19 @@ import { InfoIcon as xt } from "./components/assets/icons/info-icon.js";
83
83
  import { default as ut } from "./components/assets/icons/left-arrow.js";
84
84
  import { default as ct } from "./components/assets/icons/link.js";
85
85
  import { default as bt } from "./components/assets/icons/list-tree.js";
86
- import { default as It } from "./components/assets/icons/media-record.js";
87
- import { Minus as Ct } from "./components/assets/icons/minus.js";
86
+ import { default as St } from "./components/assets/icons/media-record.js";
87
+ import { Minus as It } from "./components/assets/icons/minus.js";
88
88
  import { default as gt } from "./components/assets/icons/octagon-warning-Copy.js";
89
- import { default as Bt } from "./components/assets/icons/pin.js";
90
- import { default as Lt } from "./components/assets/icons/sitemap.js";
91
- import { default as Mt } from "./components/assets/icons/slider.js";
92
- import { default as ht } from "./components/assets/icons/upload.js";
89
+ import { default as vt } from "./components/assets/icons/pin.js";
90
+ import { default as ht } from "./components/assets/icons/sitemap.js";
91
+ import { default as Rt } from "./components/assets/icons/slider.js";
92
+ import { default as Mt } from "./components/assets/icons/upload.js";
93
93
  import { default as yt } from "./components/assets/icons/vector.js";
94
- import { XMark as Ht } from "./components/assets/icons/x-mark.js";
94
+ import { XMark as kt } from "./components/assets/icons/x-mark.js";
95
95
  import { default as Nt } from "./components/assets/icons/x.js";
96
- import { default as Gt } from "./components/assets/icons/z2-icon.js";
97
- import { default as _t } from "./components/assets/icons/z2-slash.js";
98
- import { default as Ut } from "./components/assets/icons/z2data.js";
96
+ import { default as Ft } from "./components/assets/icons/z2-icon.js";
97
+ import { default as Gt } from "./components/assets/icons/z2-slash.js";
98
+ import { default as Vt } from "./components/assets/icons/z2data.js";
99
99
  import { default as Xt } from "./components/assets/icons/vector_3.js";
100
100
  import { default as Jt } from "./components/assets/icons/table-cols-2.js";
101
101
  import { default as Yt } from "./components/assets/icons/triangle-warning.js";
@@ -103,45 +103,57 @@ import { default as qt } from "./components/assets/icons/arrow-left.js";
103
103
  import { default as $t } from "./components/assets/icons/filter-icon.js";
104
104
  import { default as ea } from "./components/assets/icons/descending.js";
105
105
  import { default as ta } from "./components/assets/icons/chain.js";
106
- import { SegmentedControl as pa } from "./components/segmented-control/controller.js";
107
- import { SegmentedControlItem as na } from "./components/segmented-control/item.js";
108
- import { Popover as ma, PopoverAnchor as da, PopoverContent as xa, PopoverTrigger as ia } from "./components/popover/popover.js";
109
- import { Z2Table as Za, Z2TableBase as ca, Z2TableBody as sa, Z2TableBodyRow as ba, Z2TableBodyRowCell as Ta, Z2TableBodyRowExpandded as Ia, Z2TableBodyRowSkeleton as Sa, Z2TableBodyRowSkeletonCell as Ca, Z2TableEmpty as Da, Z2TableHead as ga, Z2TableHeadRow as wa, Z2TableHeadRowCell as Ba, Z2TableHeadRowCellResize as va, Z2TableLoader as La, Z2TableRowSelect as Ra, Z2TableRowSelectAll as Ma, Z2TableRowSpacer as Pa } from "./components/dynamic-table/z2-table.js";
110
- import { Z2TableContainer as Aa, Z2TableProvider as ya, Z2TableRoot as ka, useZ2Table as Ha } from "./components/dynamic-table/z2-table-context.js";
111
- import { Z2TablePagination as Na } from "./components/dynamic-table/z2-table-pagination.js";
106
+ import { default as pa } from "./components/assets/icons/eraser.js";
107
+ import { SegmentedControl as na } from "./components/segmented-control/controller.js";
108
+ import { SegmentedControlItem as ma } from "./components/segmented-control/item.js";
109
+ import { Popover as xa, PopoverAnchor as ia, PopoverContent as ua, PopoverTrigger as Za } from "./components/popover/popover.js";
110
+ import { Z2Table as sa, Z2TableBase as ba, Z2TableBody as Ca, Z2TableBodyRow as Sa, Z2TableBodyRowCell as Ta, Z2TableBodyRowExpandded as Ia, Z2TableBodyRowSkeleton as Da, Z2TableBodyRowSkeletonCell as ga, Z2TableEmpty as wa, Z2TableHead as va, Z2TableHeadRow as Ba, Z2TableHeadRowCell as ha, Z2TableHeadRowCellResize as La, Z2TableLoader as Ra, Z2TableRowSelect as Pa, Z2TableRowSelectAll as Ma, Z2TableRowSpacer as Aa } from "./components/dynamic-table/z2-table.js";
111
+ import { Z2TableContainer as Ea, Z2TableProvider as ka, Z2TableRoot as Ha, useZ2Table as Na } from "./components/dynamic-table/z2-table-context.js";
112
+ import { Z2TablePagination as Fa } from "./components/dynamic-table/z2-table-pagination.js";
112
113
  import { Z2TableColumnHeader as Ga } from "./components/dynamic-table/z2-column-header.js";
113
- import { Z2RadioCard as _a } from "./components/radio-card/radio-card.js";
114
- import { useTheme as Ua } from "./lib/theme.hook.js";
115
- import { cn as Xa } from "./lib/utils.js";
116
- import { Z2PopoverTrigger as Ja } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
117
- import { Z2PopoverContent as Ya } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
114
+ import { Chart as Va } from "./components/chart/chart.js";
115
+ import { ChartCard as Xa } from "./components/chart-card/chart-card.js";
116
+ import { EmptyState as Ja, ErrorState as Qa, LoadingState as Ya } from "./components/chart-card/chart-card-states.js";
117
+ import { COLOR_PALETTES as qa, UI_COLORS as Ka, getThemePalette as $a } from "./components/chart-card/config/colors.js";
118
+ import { validateChartConfig as ep, validateChartData as rp } from "./components/chart-card/validators/config-validator.js";
119
+ import { buildBarChartOptions as ap } from "./components/chart-card/builders/bar-chart-builder.js";
120
+ import { buildLineChartOptions as lp } from "./components/chart-card/builders/line-chart-builder.js";
121
+ import { buildChartOptions as fp, isChartTypeSupported as mp, registeredChartTypes as dp } from "./components/chart-card/builders/chart-builder-factory.js";
122
+ import { Z2RadioCard as ip } from "./components/radio-card/radio-card.js";
123
+ import { useTheme as Zp } from "./lib/theme.hook.js";
124
+ import { cn as sp } from "./lib/utils.js";
125
+ import { Z2PopoverTrigger as Cp } from "./components/collapsible-side-nav-bar/popover/popover-trigger.js";
126
+ import { Z2PopoverContent as Tp } from "./components/collapsible-side-nav-bar/popover/popover-content.js";
118
127
  export {
119
128
  p as Alert,
120
129
  m as AlertCirclesIcon,
121
130
  l as AlertDescription,
122
131
  n as AlertTitle,
123
- Ur as ApartmentBuildingIcon,
132
+ Vr as ApartmentBuildingIcon,
124
133
  qt as ArrowLeftIcon,
125
134
  Dr as Avatar,
126
- Ge as AvatarCell,
135
+ Fe as AvatarCell,
127
136
  gr as AvatarWithLabel,
128
- Ir as Badge,
137
+ Sr as Badge,
129
138
  ye as BooleanCell,
130
139
  x as Button,
140
+ qa as COLOR_PALETTES,
131
141
  ta as ChainIcon,
142
+ Va as Chart,
143
+ Xa as ChartCard,
132
144
  Xr as CheckIcon,
133
145
  Xe as ChevronDownIcon,
134
146
  Jr as ChevronLeftIcon,
135
147
  Yr as ChevronRightIcon,
136
148
  qr as CircleCheckFilledIcon,
137
149
  $r as CircleCheckIcon,
138
- F as CirclesIcon,
139
- Lr as ColumnReOrder,
150
+ O as CirclesIcon,
151
+ hr as ColumnReOrder,
140
152
  K as CountryFlags,
141
- Vo as DEFAULT_ACCEPT,
153
+ Wo as DEFAULT_ACCEPT,
142
154
  ge as DEFAULT_EMPTY_MESSAGE,
143
- W as DatabaseCopy,
144
- _ as DatabaseCopyIcon,
155
+ _ as DatabaseCopy,
156
+ G as DatabaseCopyIcon,
145
157
  ea as DescendingSortingIcon,
146
158
  Ne as DescriptionCell,
147
159
  et as DotsIcon,
@@ -149,50 +161,54 @@ export {
149
161
  pt as DoubleChevronRightIcon,
150
162
  nt as DragHandleIcon,
151
163
  Zo as DropdownContext,
152
- Wo as FileUploadArea,
164
+ Ja as EmptyState,
165
+ pa as EraserIcon,
166
+ Qa as ErrorState,
167
+ _o as FileUploadArea,
153
168
  $t as FilterIcon,
154
169
  mt as HomeIcon,
155
170
  xt as InfoIcon,
156
- Oo as Input,
157
- _e as LabelCell,
171
+ Uo as Input,
172
+ Ge as LabelCell,
158
173
  ut as LeftArrowIcon,
159
- He as LinkCell,
174
+ ke as LinkCell,
160
175
  ct as LinkIcon,
161
176
  bt as ListTreeIcon,
177
+ Ya as LoadingState,
162
178
  mr as MagnifierIcon,
163
- It as MediaRecordIcon,
164
- Ct as MinusIcon,
179
+ St as MediaRecordIcon,
180
+ It as MinusIcon,
165
181
  zo as NavHeader,
166
182
  Qo as NavItem,
167
- he as NumberCell,
183
+ Me as NumberCell,
168
184
  gt as OctagonWarningIcon,
169
185
  xr as PaginationInfo,
170
186
  ur as PaginationQuickJumper,
171
- Bt as PinIcon,
172
- ma as Popover,
173
- da as PopoverAnchor,
174
- xa as PopoverContent,
175
- ia as PopoverTrigger,
187
+ vt as PinIcon,
188
+ xa as Popover,
189
+ ia as PopoverAnchor,
190
+ ua as PopoverContent,
191
+ Za as PopoverTrigger,
176
192
  Y as SIDEBAR_WIDTH,
177
193
  j as SIDEBAR_WIDTH_COLLAPSED,
178
- pa as SegmentedControl,
179
- na as SegmentedControlItem,
194
+ na as SegmentedControl,
195
+ ma as SegmentedControlItem,
180
196
  z as SidebarLeftShowCopy,
181
197
  J as SidebarLeftShowCopyIcon,
182
- Lt as SitemapIcon,
183
- Mt as SliderIcon,
184
- H as SubNavIndicator,
185
- E as SubNavIndicatorIcon,
198
+ ht as SitemapIcon,
199
+ Rt as SliderIcon,
200
+ k as SubNavIndicator,
201
+ H as SubNavIndicatorIcon,
186
202
  we as TABLE_CSS_CLASSES,
187
203
  se as Table,
188
- Ie as TableBody,
204
+ Se as TableBody,
189
205
  br as TableCard,
190
- Me as TableCell,
206
+ Re as TableCell,
191
207
  Jt as TableCols2Icon,
192
- ve as TableContext,
208
+ Be as TableContext,
193
209
  pr as TableFooter,
194
210
  nr as TableFooterContent,
195
- Ue as TableHeader,
211
+ Ve as TableHeader,
196
212
  tr as TableHeaderContent,
197
213
  er as TableHeaderWrapper,
198
214
  qe as TableLoadingState,
@@ -200,24 +216,25 @@ export {
200
216
  $e as TablePagination,
201
217
  be as TableProvider,
202
218
  Je as TableRow,
203
- Mr as TreeCheckboxSelect,
219
+ Rr as TreeCheckboxSelect,
204
220
  Yt as TriangleWarningIcon,
205
- ht as UploadIcon,
221
+ Ka as UI_COLORS,
222
+ Mt as UploadIcon,
206
223
  Xt as Vector3Icon,
207
224
  yt as VectorIcon,
208
- U as WindowLeftCopy,
209
- O as WindowLeftCopyIcon,
225
+ V as WindowLeftCopy,
226
+ U as WindowLeftCopyIcon,
210
227
  Nt as XIcon,
211
- Ht as XMarkIcon,
212
- hr as Z2Breadcrumb,
228
+ kt as XMarkIcon,
229
+ Mr as Z2Breadcrumb,
213
230
  Ar as Z2BreadcrumbEllipsis,
214
231
  yr as Z2BreadcrumbItem,
215
- kr as Z2BreadcrumbLink,
216
- Hr as Z2BreadcrumbList,
217
- Er as Z2BreadcrumbPage,
232
+ Er as Z2BreadcrumbLink,
233
+ kr as Z2BreadcrumbList,
234
+ Hr as Z2BreadcrumbPage,
218
235
  Nr as Z2BreadcrumbSeparator,
219
236
  oo as Z2Checkbox,
220
- Ut as Z2DataIcon,
237
+ Vt as Z2DataIcon,
221
238
  ro as Z2Dialog,
222
239
  to as Z2DialogClose,
223
240
  ao as Z2DialogContent,
@@ -231,34 +248,34 @@ export {
231
248
  co as Z2Dropdown,
232
249
  so as Z2DropdownContent,
233
250
  bo as Z2DropdownInput,
234
- To as Z2DropdownItem,
251
+ Co as Z2DropdownItem,
235
252
  wo as Z2DropdownMenu,
236
- Bo as Z2DropdownMenuCheckboxItem,
237
- vo as Z2DropdownMenuContent,
238
- Lo as Z2DropdownMenuGroup,
239
- Ro as Z2DropdownMenuItem,
240
- Mo as Z2DropdownMenuLabel,
253
+ vo as Z2DropdownMenuCheckboxItem,
254
+ Bo as Z2DropdownMenuContent,
255
+ ho as Z2DropdownMenuGroup,
256
+ Lo as Z2DropdownMenuItem,
257
+ Ro as Z2DropdownMenuLabel,
241
258
  Po as Z2DropdownMenuPortal,
242
- ho as Z2DropdownMenuRadioGroup,
259
+ Mo as Z2DropdownMenuRadioGroup,
243
260
  Ao as Z2DropdownMenuRadioItem,
244
261
  yo as Z2DropdownMenuSeparator,
245
- ko as Z2DropdownMenuShortcut,
246
- Ho as Z2DropdownMenuSub,
247
- Eo as Z2DropdownMenuSubContent,
262
+ Eo as Z2DropdownMenuShortcut,
263
+ ko as Z2DropdownMenuSub,
264
+ Ho as Z2DropdownMenuSubContent,
248
265
  No as Z2DropdownMenuSubTrigger,
249
- Fo as Z2DropdownMenuTrigger,
250
- Io as Z2DropdownSub,
251
- So as Z2DropdownSubContent,
252
- Co as Z2DropdownSubItem,
266
+ Oo as Z2DropdownMenuTrigger,
267
+ So as Z2DropdownSub,
268
+ To as Z2DropdownSubContent,
269
+ Io as Z2DropdownSubItem,
253
270
  Do as Z2DropdownSubTrigger,
254
- Gt as Z2Icon,
271
+ Ft as Z2Icon,
255
272
  y as Z2Popover,
256
- Ya as Z2PopoverContent,
257
- Ja as Z2PopoverTrigger,
258
- _a as Z2RadioCard,
259
- Gr as Z2RadioGroup,
260
- Wr as Z2RadioGroupIndicator,
261
- _r as Z2RadioGroupItem,
273
+ Tp as Z2PopoverContent,
274
+ Cp as Z2PopoverTrigger,
275
+ ip as Z2RadioCard,
276
+ Fr as Z2RadioGroup,
277
+ _r as Z2RadioGroupIndicator,
278
+ Gr as Z2RadioGroupItem,
262
279
  jo as Z2Select,
263
280
  qo as Z2SelectContent,
264
281
  Ko as Z2SelectGroup,
@@ -270,51 +287,59 @@ export {
270
287
  ae as Z2SelectTrigger,
271
288
  pe as Z2SelectValue,
272
289
  s as Z2SideNavBar,
273
- C as Z2SideNavBarContent,
290
+ I as Z2SideNavBarContent,
274
291
  g as Z2SideNavBarFooter,
275
- B as Z2SideNavBarGroup,
276
- I as Z2SideNavBarHeader,
277
- L as Z2SideNavBarItem,
292
+ v as Z2SideNavBarGroup,
293
+ S as Z2SideNavBarHeader,
294
+ h as Z2SideNavBarItem,
278
295
  Z as Z2SideNavBarProvider,
279
- M as Z2SideNavBarSeparator,
296
+ R as Z2SideNavBarSeparator,
280
297
  b as Z2SidebarVariants,
281
- _t as Z2SlashIcon,
298
+ Gt as Z2SlashIcon,
282
299
  ne as Z2Stepper,
283
300
  me as Z2StepperItem,
284
- Za as Z2Table,
285
- ca as Z2TableBase,
286
- sa as Z2TableBody,
287
- ba as Z2TableBodyRow,
301
+ sa as Z2Table,
302
+ ba as Z2TableBase,
303
+ Ca as Z2TableBody,
304
+ Sa as Z2TableBodyRow,
288
305
  Ta as Z2TableBodyRowCell,
289
306
  Ia as Z2TableBodyRowExpandded,
290
- Sa as Z2TableBodyRowSkeleton,
291
- Ca as Z2TableBodyRowSkeletonCell,
307
+ Da as Z2TableBodyRowSkeleton,
308
+ ga as Z2TableBodyRowSkeletonCell,
292
309
  Ga as Z2TableColumnHeader,
293
- Aa as Z2TableContainer,
294
- Da as Z2TableEmpty,
295
- ga as Z2TableHead,
296
- wa as Z2TableHeadRow,
297
- Ba as Z2TableHeadRowCell,
298
- va as Z2TableHeadRowCellResize,
299
- La as Z2TableLoader,
300
- Na as Z2TablePagination,
301
- ya as Z2TableProvider,
302
- ka as Z2TableRoot,
303
- Ra as Z2TableRowSelect,
310
+ Ea as Z2TableContainer,
311
+ wa as Z2TableEmpty,
312
+ va as Z2TableHead,
313
+ Ba as Z2TableHeadRow,
314
+ ha as Z2TableHeadRowCell,
315
+ La as Z2TableHeadRowCellResize,
316
+ Ra as Z2TableLoader,
317
+ Fa as Z2TablePagination,
318
+ ka as Z2TableProvider,
319
+ Ha as Z2TableRoot,
320
+ Pa as Z2TableRowSelect,
304
321
  Ma as Z2TableRowSelectAll,
305
- Pa as Z2TableRowSpacer,
322
+ Aa as Z2TableRowSpacer,
306
323
  xe as Z2Tabs,
307
324
  ie as Z2TabsContent,
308
325
  ue as Z2TabsList,
309
326
  Ze as Z2TabsTrigger,
310
- Br as Z2TextPreset,
327
+ vr as Z2TextPreset,
311
328
  cr as Z2Tooltip,
312
- Sr as badgeVariants,
329
+ Tr as badgeVariants,
330
+ ap as buildBarChartOptions,
331
+ fp as buildChartOptions,
332
+ lp as buildLineChartOptions,
313
333
  i as buttonVariants,
314
- Xa as cn,
315
- Ce as extractCellValue,
316
- Le as useTableContext,
317
- Ua as useTheme,
318
- h as useZ2SideNavBar,
319
- Ha as useZ2Table
334
+ sp as cn,
335
+ Ie as extractCellValue,
336
+ $a as getThemePalette,
337
+ mp as isChartTypeSupported,
338
+ dp as registeredChartTypes,
339
+ he as useTableContext,
340
+ Zp as useTheme,
341
+ M as useZ2SideNavBar,
342
+ Na as useZ2Table,
343
+ ep as validateChartConfig,
344
+ rp as validateChartData
320
345
  };
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ title?: string;
5
+ };
6
+ declare function Eraser({ fill, secondaryfill, width, height, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export default Eraser;
@@ -41,3 +41,4 @@ export { default as ArrowLeftIcon } from './arrow-left';
41
41
  export { default as FilterIcon } from './filter-icon';
42
42
  export { default as DescendingSortingIcon } from './descending';
43
43
  export { default as ChainIcon } from './chain';
44
+ export { default as EraserIcon } from './eraser';
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { EChartsReactProps } from 'echarts-for-react';
3
+ export type ChartProps = EChartsReactProps;
4
+ export declare const Chart: React.ForwardRefExoticComponent<EChartsReactProps & React.RefAttributes<any>>;
@@ -0,0 +1,2 @@
1
+ export { Chart } from './chart';
2
+ export type { ChartProps } from './chart';
@@ -0,0 +1,3 @@
1
+ import type { EChartsOption } from 'echarts';
2
+ import type { BarChartConfig, ChartData } from '../chart-card.config.types';
3
+ export declare function buildBarChartOptions(config: BarChartConfig, data: ChartData): EChartsOption;
@@ -0,0 +1,5 @@
1
+ import type { EChartsOption } from 'echarts';
2
+ import type { ChartConfig, ChartData, ChartType } from '../chart-card.config.types';
3
+ export declare function buildChartOptions(config: ChartConfig, data: ChartData): EChartsOption;
4
+ export declare function isChartTypeSupported(type: string): type is ChartType;
5
+ export declare const registeredChartTypes: readonly ChartType[];
@@ -0,0 +1,3 @@
1
+ import type { EChartsOption } from 'echarts';
2
+ import type { ChartData, LineChartConfig } from '../chart-card.config.types';
3
+ export declare function buildLineChartOptions(config: LineChartConfig, data: ChartData): EChartsOption;
@@ -0,0 +1,3 @@
1
+ import type { EChartsOption } from 'echarts';
2
+ import type { ChartData, PieChartConfig } from '../chart-card.config.types';
3
+ export declare function buildPieChartOptions(config: PieChartConfig, data: ChartData): EChartsOption;
@@ -0,0 +1,10 @@
1
+ export declare function LoadingState({ height }: {
2
+ height: number;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export declare function EmptyState({ height }: {
5
+ height: number;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function ErrorState({ height, message }: {
8
+ height: number;
9
+ message: string;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,99 @@
1
+ export type ChartType = 'line' | 'bar' | 'pie';
2
+ export type LineChartTheme = 'basic' | 'smooth';
3
+ export type BarChartTheme = 'basic' | 'stacked';
4
+ export type PieChartTheme = 'basic' | 'donut';
5
+ export type ChartTheme = LineChartTheme | BarChartTheme | PieChartTheme;
6
+ export interface SeriesStyleConfig {
7
+ color?: string;
8
+ lineWidth?: number;
9
+ pointSize?: number;
10
+ smooth?: boolean;
11
+ barWidth?: number;
12
+ areaStyle?: boolean;
13
+ opacity?: number;
14
+ pieRadius?: [string | number, string | number];
15
+ pieLabelPosition?: 'inside' | 'outside';
16
+ pieLabelRotate?: boolean;
17
+ }
18
+ export interface ChartOptions {
19
+ seriesStyles?: Record<string, SeriesStyleConfig>;
20
+ defaultSeriesStyle?: SeriesStyleConfig;
21
+ title?: {
22
+ show?: boolean;
23
+ position?: 'left' | 'center' | 'right';
24
+ fontSize?: number;
25
+ color?: string;
26
+ };
27
+ legend?: {
28
+ show?: boolean;
29
+ position?: 'top' | 'bottom' | 'left' | 'right';
30
+ align?: 'left' | 'center' | 'right';
31
+ orient?: 'horizontal' | 'vertical';
32
+ };
33
+ tooltip?: {
34
+ show?: boolean;
35
+ trigger?: 'axis' | 'item';
36
+ };
37
+ xAxis?: {
38
+ show?: boolean;
39
+ name?: string;
40
+ nameLocation?: 'start' | 'middle' | 'end';
41
+ gridLines?: boolean;
42
+ labelRotate?: number;
43
+ };
44
+ yAxis?: {
45
+ show?: boolean;
46
+ name?: string;
47
+ nameLocation?: 'start' | 'middle' | 'end';
48
+ min?: number | 'auto';
49
+ max?: number | 'auto';
50
+ gridLines?: boolean;
51
+ };
52
+ grid?: {
53
+ top?: number | string;
54
+ bottom?: number | string;
55
+ left?: number | string;
56
+ right?: number | string;
57
+ };
58
+ animation?: {
59
+ enabled?: boolean;
60
+ duration?: number;
61
+ };
62
+ pie?: {
63
+ center?: [string | number, string | number];
64
+ radius?: [string | number, string | number];
65
+ labelPosition?: 'inside' | 'outside';
66
+ labelRotate?: boolean;
67
+ showLabel?: boolean;
68
+ showLabelLine?: boolean;
69
+ };
70
+ }
71
+ interface BaseChartConfig {
72
+ name: string;
73
+ height?: number;
74
+ width?: string | number;
75
+ ariaLabel?: string;
76
+ options?: ChartOptions;
77
+ }
78
+ export interface LineChartConfig extends BaseChartConfig {
79
+ type: 'line';
80
+ theme: LineChartTheme;
81
+ }
82
+ export interface BarChartConfig extends BaseChartConfig {
83
+ type: 'bar';
84
+ theme: BarChartTheme;
85
+ }
86
+ export interface PieChartConfig extends BaseChartConfig {
87
+ type: 'pie';
88
+ theme: PieChartTheme;
89
+ }
90
+ export type ChartConfig = LineChartConfig | BarChartConfig | PieChartConfig;
91
+ export interface ChartSeries {
92
+ name: string;
93
+ values: number[];
94
+ }
95
+ export interface ChartData {
96
+ labels: string[];
97
+ series: ChartSeries[];
98
+ }
99
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ChartCardProps } from './chart-card.types';
2
+ export declare function ChartCard({ config, data, loading, error, className, style, chartProps, }: ChartCardProps): import("react/jsx-runtime").JSX.Element;