@mlw-packages/react-components 1.9.1 → 1.9.3

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/README.md CHANGED
@@ -123,117 +123,6 @@ Use **Controls** para testar props dinamicamente e **Docs** para copiar snippets
123
123
 
124
124
  ---
125
125
 
126
- ### Lista completa de componentes
127
-
128
- Abaixo está a lista completa de componentes :
129
-
130
- - AlertDialog
131
-
132
- - Avatar
133
-
134
- - Badge
135
-
136
- - BarChart
137
-
138
- - Breadcrumb
139
-
140
- - Button
141
-
142
- - Calendar
143
-
144
- - Card
145
-
146
- - Carousel
147
-
148
- - Chart
149
-
150
- - CheckBox
151
-
152
- - Collapsible
153
-
154
- - Combobox
155
-
156
- - ComboboxBase
157
-
158
- - Command
159
-
160
- - ContextMenu
161
-
162
- - DateTimePicker
163
-
164
- - DebouncedInput
165
-
166
- - DestructiveDialog
167
-
168
- - Dialog
169
-
170
- - DraggableTooltip
171
-
172
- - Drawer
173
-
174
- - DropDownMenu
175
-
176
- - FileUploader
177
-
178
- - Filter
179
-
180
- - Home
181
-
182
- - HoverCard
183
-
184
- - Input
185
-
186
- - Input-OTP
187
-
188
- - Label
189
-
190
- - LineChart
191
-
192
- - Loading
193
-
194
- - Modal
195
-
196
- - ModeToggle
197
-
198
- - MultiCombobox
199
-
200
- - NavigationMenu
201
-
202
- - PieChart
203
-
204
- - Popover
205
-
206
- - rogress
207
-
208
- - RangePicker
209
-
210
- - Scrollarea
211
-
212
- - Select
213
-
214
- - Separator
215
-
216
- - Sheet
217
-
218
- - Sidebar
219
-
220
- - Skeleton
221
-
222
- - Slider
223
-
224
- - Sonner
225
-
226
- - Switch
227
-
228
- - Table
229
-
230
- - Tabs
231
-
232
- - TextArea
233
-
234
- - Tooltip
235
-
236
- ---
237
126
 
238
127
  ## Desenvolvimento local
239
128
 
package/dist/index.css CHANGED
@@ -579,6 +579,9 @@ body {
579
579
  .z-50 {
580
580
  z-index: 50;
581
581
  }
582
+ .z-\[100\] {
583
+ z-index: 100;
584
+ }
582
585
  .z-\[1\] {
583
586
  z-index: 1;
584
587
  }
@@ -1049,8 +1052,8 @@ body {
1049
1052
  .max-h-\[300px\] {
1050
1053
  max-height: 300px;
1051
1054
  }
1052
- .max-h-\[65vh\] {
1053
- max-height: 65vh;
1055
+ .max-h-\[95vh\] {
1056
+ max-height: 95vh;
1054
1057
  }
1055
1058
  .max-h-\[calc\(100dvh-2rem\)\] {
1056
1059
  max-height: calc(100dvh - 2rem);
@@ -1151,6 +1154,9 @@ body {
1151
1154
  .w-3\/4 {
1152
1155
  width: 75%;
1153
1156
  }
1157
+ .w-3\/6 {
1158
+ width: 50%;
1159
+ }
1154
1160
  .w-32 {
1155
1161
  width: 8rem;
1156
1162
  }
@@ -1268,9 +1274,6 @@ body {
1268
1274
  .w-\[calc\(100\%-2rem\)\] {
1269
1275
  width: calc(100% - 2rem);
1270
1276
  }
1271
- .w-\[calc\(100vw-24px\)\] {
1272
- width: calc(100vw - 24px);
1273
- }
1274
1277
  .w-auto {
1275
1278
  width: auto;
1276
1279
  }
@@ -1294,6 +1297,9 @@ body {
1294
1297
  .min-w-0 {
1295
1298
  min-width: 0px;
1296
1299
  }
1300
+ .min-w-24 {
1301
+ min-width: 6rem;
1302
+ }
1297
1303
  .min-w-28 {
1298
1304
  min-width: 7rem;
1299
1305
  }
@@ -1376,6 +1382,9 @@ body {
1376
1382
  .max-w-\[1100px\] {
1377
1383
  max-width: 1100px;
1378
1384
  }
1385
+ .max-w-\[120px\] {
1386
+ max-width: 120px;
1387
+ }
1379
1388
  .max-w-\[210px\] {
1380
1389
  max-width: 210px;
1381
1390
  }
@@ -2716,9 +2725,6 @@ body {
2716
2725
  .bg-gradient-to-r {
2717
2726
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
2718
2727
  }
2719
- .bg-gradient-to-t {
2720
- background-image: linear-gradient(to top, var(--tw-gradient-stops));
2721
- }
2722
2728
  .from-background {
2723
2729
  --tw-gradient-from: hsl(var(--background)) var(--tw-gradient-from-position);
2724
2730
  --tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);
@@ -2754,13 +2760,6 @@ body {
2754
2760
  --tw-gradient-to: hsl(var(--ring) / 0) var(--tw-gradient-to-position);
2755
2761
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2756
2762
  }
2757
- .via-background\/80 {
2758
- --tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);
2759
- --tw-gradient-stops:
2760
- var(--tw-gradient-from),
2761
- hsl(var(--background) / 0.8) var(--tw-gradient-via-position),
2762
- var(--tw-gradient-to);
2763
- }
2764
2763
  .via-ring\/10 {
2765
2764
  --tw-gradient-to: hsl(var(--ring) / 0) var(--tw-gradient-to-position);
2766
2765
  --tw-gradient-stops:
@@ -2786,9 +2785,6 @@ body {
2786
2785
  .to-ring\/20 {
2787
2786
  --tw-gradient-to: hsl(var(--ring) / 0.2) var(--tw-gradient-to-position);
2788
2787
  }
2789
- .to-transparent {
2790
- --tw-gradient-to: transparent var(--tw-gradient-to-position);
2791
- }
2792
2788
  .bg-clip-text {
2793
2789
  -webkit-background-clip: text;
2794
2790
  background-clip: text;
@@ -4118,6 +4114,34 @@ body {
4118
4114
  [data-theme-transition=true]::view-transition-new(root) {
4119
4115
  animation: none;
4120
4116
  }
4117
+ @supports (-webkit-overflow-scrolling: touch) {
4118
+ [cmdk-list] {
4119
+ -webkit-overflow-scrolling: touch !important;
4120
+ overflow-y: auto !important;
4121
+ overscroll-behavior: contain !important;
4122
+ touch-action: pan-y !important;
4123
+ transform: translateZ(0) !important;
4124
+ will-change: scroll-position !important;
4125
+ }
4126
+ }
4127
+ @media only screen and (min-device-width: 744px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
4128
+ [cmdk-list] {
4129
+ -webkit-overflow-scrolling: touch !important;
4130
+ overflow-y: auto !important;
4131
+ overscroll-behavior: contain !important;
4132
+ touch-action: pan-y !important;
4133
+ transform: translateZ(0) !important;
4134
+ will-change: scroll-position !important;
4135
+ position: relative !important;
4136
+ }
4137
+ [cmdk-group] {
4138
+ position: relative !important;
4139
+ }
4140
+ }
4141
+ [cmdk-list] {
4142
+ -webkit-tap-highlight-color: transparent;
4143
+ -webkit-touch-callout: none;
4144
+ }
4121
4145
  .selection\:bg-primary *::-moz-selection {
4122
4146
  background-color: hsl(var(--primary));
4123
4147
  }
@@ -6191,6 +6215,12 @@ body {
6191
6215
  .sm\:mb-2 {
6192
6216
  margin-bottom: 0.5rem;
6193
6217
  }
6218
+ .sm\:ml-3 {
6219
+ margin-left: 0.75rem;
6220
+ }
6221
+ .sm\:mt-0 {
6222
+ margin-top: 0px;
6223
+ }
6194
6224
  .sm\:inline {
6195
6225
  display: inline;
6196
6226
  }
@@ -6206,6 +6236,9 @@ body {
6206
6236
  .sm\:h-12 {
6207
6237
  height: 3rem;
6208
6238
  }
6239
+ .sm\:h-3 {
6240
+ height: 0.75rem;
6241
+ }
6209
6242
  .sm\:h-4 {
6210
6243
  height: 1rem;
6211
6244
  }
@@ -6227,15 +6260,15 @@ body {
6227
6260
  .sm\:w-20 {
6228
6261
  width: 5rem;
6229
6262
  }
6263
+ .sm\:w-3 {
6264
+ width: 0.75rem;
6265
+ }
6230
6266
  .sm\:w-4 {
6231
6267
  width: 1rem;
6232
6268
  }
6233
6269
  .sm\:w-7 {
6234
6270
  width: 1.75rem;
6235
6271
  }
6236
- .sm\:w-\[calc\(100vw-32px\)\] {
6237
- width: calc(100vw - 32px);
6238
- }
6239
6272
  .sm\:w-auto {
6240
6273
  width: auto;
6241
6274
  }
@@ -6248,6 +6281,9 @@ body {
6248
6281
  .sm\:max-w-md {
6249
6282
  max-width: 28rem;
6250
6283
  }
6284
+ .sm\:max-w-none {
6285
+ max-width: none;
6286
+ }
6251
6287
  .sm\:max-w-sm {
6252
6288
  max-width: 24rem;
6253
6289
  }
@@ -6282,6 +6318,9 @@ body {
6282
6318
  .sm\:gap-0 {
6283
6319
  gap: 0px;
6284
6320
  }
6321
+ .sm\:gap-1\.5 {
6322
+ gap: 0.375rem;
6323
+ }
6285
6324
  .sm\:gap-2 {
6286
6325
  gap: 0.5rem;
6287
6326
  }
@@ -6329,6 +6368,9 @@ body {
6329
6368
  border-top-right-radius: 0px;
6330
6369
  border-bottom-right-radius: 0px;
6331
6370
  }
6371
+ .sm\:border-l {
6372
+ border-left-width: 1px;
6373
+ }
6332
6374
  .sm\:p-1\.5 {
6333
6375
  padding: 0.375rem;
6334
6376
  }
@@ -6363,6 +6405,9 @@ body {
6363
6405
  .sm\:pe-4 {
6364
6406
  padding-inline-end: 1rem;
6365
6407
  }
6408
+ .sm\:pl-3 {
6409
+ padding-left: 0.75rem;
6410
+ }
6366
6411
  .sm\:pr-0 {
6367
6412
  padding-right: 0px;
6368
6413
  }
@@ -6425,6 +6470,9 @@ body {
6425
6470
  margin-left: 0px;
6426
6471
  margin-right: 0px;
6427
6472
  }
6473
+ .md\:ml-4 {
6474
+ margin-left: 1rem;
6475
+ }
6428
6476
  .md\:block {
6429
6477
  display: block;
6430
6478
  }
@@ -6470,6 +6518,9 @@ body {
6470
6518
  .md\:gap-1\.5 {
6471
6519
  gap: 0.375rem;
6472
6520
  }
6521
+ .md\:gap-4 {
6522
+ gap: 1rem;
6523
+ }
6473
6524
  .md\:space-x-44 > :not([hidden]) ~ :not([hidden]) {
6474
6525
  --tw-space-x-reverse: 0;
6475
6526
  margin-right: calc(11rem * var(--tw-space-x-reverse));
@@ -6491,6 +6542,9 @@ body {
6491
6542
  padding-top: 1rem;
6492
6543
  padding-bottom: 1rem;
6493
6544
  }
6545
+ .md\:pl-4 {
6546
+ padding-left: 1rem;
6547
+ }
6494
6548
  .md\:text-left {
6495
6549
  text-align: left;
6496
6550
  }
@@ -6596,6 +6650,9 @@ body {
6596
6650
  .\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted-foreground\/20::-webkit-scrollbar-thumb {
6597
6651
  background-color: hsl(var(--muted-foreground) / 0.2);
6598
6652
  }
6653
+ .\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted-foreground\/30::-webkit-scrollbar-thumb {
6654
+ background-color: hsl(var(--muted-foreground) / 0.3);
6655
+ }
6599
6656
  .hover\:\[\&\:\:-webkit-scrollbar-thumb\]\:bg-muted-foreground\/40::-webkit-scrollbar-thumb:hover {
6600
6657
  background-color: hsl(var(--muted-foreground) / 0.4);
6601
6658
  }
@@ -6608,6 +6665,9 @@ body {
6608
6665
  .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
6609
6666
  display: none;
6610
6667
  }
6668
+ .\[\&\:\:-webkit-scrollbar\]\:h-1\.5::-webkit-scrollbar {
6669
+ height: 0.375rem;
6670
+ }
6611
6671
  .\[\&\:\:-webkit-scrollbar\]\:w-1\.5::-webkit-scrollbar {
6612
6672
  width: 0.375rem;
6613
6673
  }
package/dist/index.d.mts CHANGED
@@ -422,7 +422,7 @@ declare const TableHeadBase: React$1.ForwardRefExoticComponent<React$1.ThHTMLAtt
422
422
  declare const TableCellBase: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
423
423
  declare const TableCaptionBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
424
424
 
425
- declare const TabsBase: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
425
+ declare const TabsBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
426
426
  declare const TabsListBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
427
427
  type TabsTriggerAnimation = "default" | "none" | "scale" | "underline" | string;
428
428
  declare const TabsTriggerBase: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
@@ -1674,61 +1674,6 @@ interface LegendItem {
1674
1674
  };
1675
1675
  }
1676
1676
 
1677
- declare const formatFieldName: (fieldName: string) => string;
1678
- declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1679
- declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1680
- declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1681
- declare const niceCeil: (value: number) => number;
1682
- declare const compactTick: (value: number) => string;
1683
- declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1684
- declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1685
- top: number;
1686
- right: number;
1687
- left: number;
1688
- bottom: number;
1689
- };
1690
- declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1691
- color?: string;
1692
- }>) => Record<string, string>;
1693
- declare const computeNiceMax: (maxValue: number) => number;
1694
- declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1695
- declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1696
- declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1697
- declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1698
- name: string;
1699
- [key: string]: string | number;
1700
- };
1701
- declare const createValueFormatter: (customFormatter: ValueFormatterType | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1702
- declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1703
- declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1704
-
1705
- type Variant = "filled" | "outline" | "soft";
1706
- type LabelRendererProps = {
1707
- x?: number | string;
1708
- y?: number | string;
1709
- value?: number | string;
1710
- index?: number;
1711
- payload?: unknown;
1712
- width?: number | string;
1713
- height?: number | string;
1714
- viewBox?: {
1715
- x?: number;
1716
- y?: number;
1717
- width?: number;
1718
- height?: number;
1719
- } | Record<string, unknown> | undefined;
1720
- cx?: number | string;
1721
- cy?: number | string;
1722
- };
1723
- type valueFormatter = (props: {
1724
- value: number | string | undefined;
1725
- formattedValue: string;
1726
- [key: string]: unknown;
1727
- }) => string;
1728
- declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1729
-
1730
- declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1731
-
1732
1677
  interface ChartData$3 {
1733
1678
  [key: string]: string | number | boolean | null | undefined;
1734
1679
  }
@@ -1750,8 +1695,8 @@ type SeriesProp = {
1750
1695
  line?: string[];
1751
1696
  area?: string[];
1752
1697
  };
1753
- interface ChartProps {
1754
- data: ChartData$3[];
1698
+ interface ChartProps<T extends ChartData$3 = ChartData$3> {
1699
+ data: T[];
1755
1700
  series?: SeriesProp;
1756
1701
  className?: string;
1757
1702
  chartMargin?: Partial<{
@@ -1771,7 +1716,7 @@ interface ChartProps {
1771
1716
  titlePosition?: "left" | "center" | "right";
1772
1717
  showLabels?: boolean;
1773
1718
  labelMap?: Record<string, string>;
1774
- valueFormatter?: valueFormatter;
1719
+ valueFormatter?: ValueFormatterConfig | ValueFormatterMap<T>;
1775
1720
  categoryFormatter?: (value: string | number) => string;
1776
1721
  periodLabel?: string;
1777
1722
  xAxisLabel?: string;
@@ -1795,6 +1740,8 @@ interface ChartProps {
1795
1740
  line: boolean;
1796
1741
  area: boolean;
1797
1742
  };
1743
+ horizontal?: boolean;
1744
+ orderBy?: string;
1798
1745
  }
1799
1746
  interface SeriesConfig {
1800
1747
  bar?: string[];
@@ -1806,6 +1753,12 @@ type ValueFormatterType = (props: {
1806
1753
  formattedValue: string;
1807
1754
  [key: string]: unknown;
1808
1755
  }) => string;
1756
+ type PredefinedFormat = "R$" | "$" | "€" | "£" | "%" | "kg" | "km" | "m" | "L" | "un" | "t" | "h" | "min" | "s";
1757
+ type ExtractStringKeys<T> = {
1758
+ [K in keyof T]: T[K] extends string | number ? K : never;
1759
+ }[keyof T];
1760
+ type ValueFormatterMap<T extends Record<string, unknown>> = Partial<Record<ExtractStringKeys<T>, PredefinedFormat | string>>;
1761
+ type ValueFormatterConfig = ValueFormatterType | Record<string, PredefinedFormat | string>;
1809
1762
  type Padding = number | Partial<{
1810
1763
  left: number;
1811
1764
  right: number;
@@ -1907,6 +1860,61 @@ interface CloseAllButtonProps {
1907
1860
  }
1908
1861
  declare const CloseAllButton: React__default.FC<CloseAllButtonProps>;
1909
1862
 
1863
+ declare const formatFieldName: (fieldName: string) => string;
1864
+ declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
1865
+ declare const detectXAxis: (data: Record<string, unknown>[]) => string;
1866
+ declare const generateAdditionalColors: (baseColors: string[], count: number) => string[];
1867
+ declare const niceCeil: (value: number) => number;
1868
+ declare const compactTick: (value: number) => string;
1869
+ declare const resolveContainerPaddingLeft: (padding?: Padding, containerPaddingLeft?: number, defaultLeft?: number) => number;
1870
+ declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, showLabels?: boolean) => {
1871
+ top: number;
1872
+ right: number;
1873
+ left: number;
1874
+ bottom: number;
1875
+ };
1876
+ declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
1877
+ color?: string;
1878
+ }>) => Record<string, string>;
1879
+ declare const computeNiceMax: (maxValue: number) => number;
1880
+ declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1881
+ declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
1882
+ declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
1883
+ declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
1884
+ name: string;
1885
+ [key: string]: string | number;
1886
+ };
1887
+ declare const createValueFormatter: (customFormatter: ValueFormatterType | Record<string, string> | undefined, formatBR: boolean) => ValueFormatterType | undefined;
1888
+ declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
1889
+ declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
1890
+
1891
+ type Variant = "filled" | "outline" | "soft";
1892
+ type LabelRendererProps = {
1893
+ x?: number | string;
1894
+ y?: number | string;
1895
+ value?: number | string;
1896
+ index?: number;
1897
+ payload?: unknown;
1898
+ width?: number | string;
1899
+ height?: number | string;
1900
+ viewBox?: {
1901
+ x?: number;
1902
+ y?: number;
1903
+ width?: number;
1904
+ height?: number;
1905
+ } | Record<string, unknown> | undefined;
1906
+ cx?: number | string;
1907
+ cy?: number | string;
1908
+ };
1909
+ type valueFormatter = (props: {
1910
+ value: number | string | undefined;
1911
+ formattedValue: string;
1912
+ [key: string]: unknown;
1913
+ }) => string;
1914
+ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1915
+
1916
+ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
1917
+
1910
1918
  interface TooltipData {
1911
1919
  name: string;
1912
1920
  [key: string]: string | number;
@@ -2039,6 +2047,21 @@ interface ChartTotalLegendProps {
2039
2047
  }
2040
2048
  declare const ChartTotalLegend: React__default.FC<ChartTotalLegendProps>;
2041
2049
 
2050
+ interface HorizontalLegendProps {
2051
+ allKeys: string[];
2052
+ mapperConfig: Record<string, {
2053
+ label?: string;
2054
+ }>;
2055
+ finalColors: Record<string, string>;
2056
+ labelMap?: Record<string, string>;
2057
+ legendUppercase?: boolean;
2058
+ orderBy?: string;
2059
+ maxPeriodLabel?: string;
2060
+ minPeriodLabel?: string;
2061
+ className?: string;
2062
+ }
2063
+ declare const HorizontalLegend: React__default.FC<HorizontalLegendProps>;
2064
+
2042
2065
  interface UseChartHighlightsReturn {
2043
2066
  highlightedSeries: Set<string>;
2044
2067
  showOnlyHighlighted: boolean;
@@ -2121,6 +2144,18 @@ declare function useTimeSeriesRange({ dataLength, defaultStartIndex, defaultEndI
2121
2144
  handleMouseDown: (e: React.MouseEvent | React.TouchEvent, type: "start" | "end" | "middle") => void;
2122
2145
  };
2123
2146
 
2147
+ interface UseChartMinMaxProps {
2148
+ processedData: ChartData$3[];
2149
+ orderBy?: string;
2150
+ xAxisDataKey: string;
2151
+ categoryFormatter?: (value: string) => string;
2152
+ }
2153
+ interface ChartMinMaxResult {
2154
+ maxPeriodLabel: string;
2155
+ minPeriodLabel: string;
2156
+ }
2157
+ declare const useChartMinMax: ({ processedData, orderBy, xAxisDataKey, categoryFormatter, }: UseChartMinMaxProps) => ChartMinMaxResult;
2158
+
2124
2159
  interface NoDataProps {
2125
2160
  paddingLeft?: number;
2126
2161
  height?: number | string;
@@ -2181,4 +2216,4 @@ declare const useDrag: (options?: UseDragOptions) => {
2181
2216
  isDragging: boolean;
2182
2217
  };
2183
2218
 
2184
- export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
2219
+ export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, NumericInput, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };