@nswds/app 1.31.0 → 1.33.0

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/index.d.cts CHANGED
@@ -38,6 +38,9 @@ import { ThemeProviderProps } from 'next-themes';
38
38
  import * as TogglePrimitive from '@radix-ui/react-toggle';
39
39
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
40
40
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
41
+ import * as RechartsPrimitive from 'recharts';
42
+ import * as tailwind_variants from 'tailwind-variants';
43
+ import { VariantProps as VariantProps$1 } from 'tailwind-variants';
41
44
  import { ClassValue } from 'clsx';
42
45
  import * as _sindresorhus_slugify from '@sindresorhus/slugify';
43
46
 
@@ -287,7 +290,7 @@ type NavigationLink = {
287
290
  type NavigationSection = {
288
291
  title: string;
289
292
  href?: string;
290
- links: NavigationLink[];
293
+ links?: NavigationLink[];
291
294
  };
292
295
  interface PrevNextLinksProps {
293
296
  navigation: NavigationSection[];
@@ -668,7 +671,8 @@ type HeadingProps = ({
668
671
  } & BaseProps$1);
669
672
  declare function Heading({ className, trim, size, level, display, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
670
673
 
671
- declare function Header({ sitename, navigation, version, hide, }: {
674
+ declare function Header({ children, sitename, navigation, version, hide, }: {
675
+ children?: React.ReactNode;
672
676
  sitename?: string;
673
677
  navigation: NavigationSection[];
674
678
  version?: boolean;
@@ -676,6 +680,7 @@ declare function Header({ sitename, navigation, version, hide, }: {
676
680
  search?: boolean;
677
681
  themeSwitcher?: boolean;
678
682
  github?: boolean;
683
+ shadow?: boolean;
679
684
  };
680
685
  }): react_jsx_runtime.JSX.Element;
681
686
 
@@ -1064,21 +1069,649 @@ declare function ToggleGroup({ className, variant, size, children, ...props }: R
1064
1069
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
1065
1070
 
1066
1071
  declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
1067
- declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1072
+ declare function Tooltip$1({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
1068
1073
  declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
1069
1074
  declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
1070
1075
 
1071
1076
  declare function ViewToggle({ viewMode, setViewMode }: ViewToggleProps): react_jsx_runtime.JSX.Element;
1072
1077
 
1078
+ declare const THEMES: {
1079
+ readonly light: "";
1080
+ readonly dark: ".dark";
1081
+ };
1082
+ type ChartConfig = {
1083
+ [k in string]: {
1084
+ label?: React$1.ReactNode;
1085
+ icon?: React$1.ComponentType;
1086
+ } & ({
1087
+ color?: string;
1088
+ theme?: never;
1089
+ } | {
1090
+ color?: never;
1091
+ theme: Record<keyof typeof THEMES, string>;
1092
+ });
1093
+ };
1094
+ declare function ChartContainer({ id, className, children, config, ...props }: React$1.ComponentProps<'div'> & {
1095
+ config: ChartConfig;
1096
+ children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
1097
+ }): react_jsx_runtime.JSX.Element;
1098
+ declare const ChartStyle: ({ id, config }: {
1099
+ id: string;
1100
+ config: ChartConfig;
1101
+ }) => react_jsx_runtime.JSX.Element | null;
1102
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
1103
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & React$1.ComponentProps<'div'> & {
1104
+ hideLabel?: boolean;
1105
+ hideIndicator?: boolean;
1106
+ indicator?: 'line' | 'dot' | 'dashed';
1107
+ nameKey?: string;
1108
+ labelKey?: string;
1109
+ }): react_jsx_runtime.JSX.Element | null;
1110
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
1111
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
1112
+ hideIcon?: boolean;
1113
+ nameKey?: string;
1114
+ }): react_jsx_runtime.JSX.Element | null;
1115
+
1116
+ type ColorUtility = 'bg' | 'stroke' | 'fill' | 'text';
1117
+ declare const chartColors: {
1118
+ readonly blue: {
1119
+ readonly bg: "bg-blue-500";
1120
+ readonly stroke: "stroke-blue-500";
1121
+ readonly fill: "fill-blue-500";
1122
+ readonly text: "text-blue-500";
1123
+ };
1124
+ readonly emerald: {
1125
+ readonly bg: "bg-emerald-500";
1126
+ readonly stroke: "stroke-emerald-500";
1127
+ readonly fill: "fill-emerald-500";
1128
+ readonly text: "text-emerald-500";
1129
+ };
1130
+ readonly violet: {
1131
+ readonly bg: "bg-violet-500";
1132
+ readonly stroke: "stroke-violet-500";
1133
+ readonly fill: "fill-violet-500";
1134
+ readonly text: "text-violet-500";
1135
+ };
1136
+ readonly amber: {
1137
+ readonly bg: "bg-amber-500";
1138
+ readonly stroke: "stroke-amber-500";
1139
+ readonly fill: "fill-amber-500";
1140
+ readonly text: "text-amber-500";
1141
+ };
1142
+ readonly gray: {
1143
+ readonly bg: "bg-gray-500";
1144
+ readonly stroke: "stroke-gray-500";
1145
+ readonly fill: "fill-gray-500";
1146
+ readonly text: "text-gray-500";
1147
+ };
1148
+ readonly cyan: {
1149
+ readonly bg: "bg-cyan-500";
1150
+ readonly stroke: "stroke-cyan-500";
1151
+ readonly fill: "fill-cyan-500";
1152
+ readonly text: "text-cyan-500";
1153
+ };
1154
+ readonly pink: {
1155
+ readonly bg: "bg-pink-500";
1156
+ readonly stroke: "stroke-pink-500";
1157
+ readonly fill: "fill-pink-500";
1158
+ readonly text: "text-pink-500";
1159
+ };
1160
+ readonly lime: {
1161
+ readonly bg: "bg-lime-500";
1162
+ readonly stroke: "stroke-lime-500";
1163
+ readonly fill: "fill-lime-500";
1164
+ readonly text: "text-lime-500";
1165
+ };
1166
+ readonly fuchsia: {
1167
+ readonly bg: "bg-fuchsia-500";
1168
+ readonly stroke: "stroke-fuchsia-500";
1169
+ readonly fill: "fill-fuchsia-500";
1170
+ readonly text: "text-fuchsia-500";
1171
+ };
1172
+ };
1173
+ type AvailableChartColorsKeys = keyof typeof chartColors;
1174
+ declare const AvailableChartColors: AvailableChartColorsKeys[];
1175
+ declare const constructCategoryColors: (categories: string[], colors: AvailableChartColorsKeys[]) => Map<string, AvailableChartColorsKeys>;
1176
+ declare const getColorClassName: (color: AvailableChartColorsKeys, type: ColorUtility) => string;
1177
+ declare const getYAxisDomain: (autoMinValue: boolean, minValue: number | undefined, maxValue: number | undefined) => (string | number)[];
1178
+ declare function hasOnlyOneValueForKey(array: any[], keyToCheck: string): boolean;
1179
+
1180
+ type TooltipProps$5 = Pick<ChartTooltipProps$4, 'active' | 'payload' | 'label'>;
1181
+ type PayloadItem$4 = {
1182
+ category: string;
1183
+ value: number;
1184
+ index: string;
1185
+ color: AvailableChartColorsKeys;
1186
+ type?: string;
1187
+ payload: any;
1188
+ };
1189
+ interface ChartTooltipProps$4 {
1190
+ active: boolean | undefined;
1191
+ payload: PayloadItem$4[];
1192
+ label: string;
1193
+ valueFormatter: (value: number) => string;
1194
+ }
1195
+ type BaseEventProps$4 = {
1196
+ eventType: 'dot' | 'category';
1197
+ categoryClicked: string;
1198
+ [key: string]: number | string;
1199
+ };
1200
+ type AreaChartEventProps = BaseEventProps$4 | null | undefined;
1201
+ interface AreaChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1202
+ data: Record<string, any>[];
1203
+ index: string;
1204
+ categories: string[];
1205
+ colors?: AvailableChartColorsKeys[];
1206
+ valueFormatter?: (value: number) => string;
1207
+ startEndOnly?: boolean;
1208
+ showXAxis?: boolean;
1209
+ showYAxis?: boolean;
1210
+ showGridLines?: boolean;
1211
+ yAxisWidth?: number;
1212
+ intervalType?: 'preserveStartEnd' | 'equidistantPreserveStart';
1213
+ showTooltip?: boolean;
1214
+ showLegend?: boolean;
1215
+ autoMinValue?: boolean;
1216
+ minValue?: number;
1217
+ maxValue?: number;
1218
+ allowDecimals?: boolean;
1219
+ onValueChange?: (value: AreaChartEventProps) => void;
1220
+ enableLegendSlider?: boolean;
1221
+ tickGap?: number;
1222
+ connectNulls?: boolean;
1223
+ xAxisLabel?: string;
1224
+ yAxisLabel?: string;
1225
+ type?: 'default' | 'stacked' | 'percent';
1226
+ legendPosition?: 'left' | 'center' | 'right';
1227
+ fill?: 'gradient' | 'solid' | 'none';
1228
+ tooltipCallback?: (tooltipCallbackContent: TooltipProps$5) => void;
1229
+ customTooltip?: React__default.ComponentType<TooltipProps$5>;
1230
+ }
1231
+ declare const AreaChart: React__default.ForwardRefExoticComponent<AreaChartProps & React__default.RefAttributes<HTMLDivElement>>;
1232
+
1233
+ type TooltipProps$4 = Pick<ChartTooltipProps$3, 'active' | 'payload' | 'label'>;
1234
+ type PayloadItem$3 = {
1235
+ category: string;
1236
+ value: number;
1237
+ index: string;
1238
+ color: AvailableChartColorsKeys;
1239
+ type?: string;
1240
+ payload: any;
1241
+ };
1242
+ interface ChartTooltipProps$3 {
1243
+ active: boolean | undefined;
1244
+ payload: PayloadItem$3[];
1245
+ label: string;
1246
+ valueFormatter: (value: number) => string;
1247
+ }
1248
+ type BaseEventProps$3 = {
1249
+ eventType: 'category' | 'bar';
1250
+ categoryClicked: string;
1251
+ [key: string]: number | string;
1252
+ };
1253
+ type BarChartEventProps = BaseEventProps$3 | null | undefined;
1254
+ interface BarChartProps$1 extends React__default.HTMLAttributes<HTMLDivElement> {
1255
+ data: Record<string, any>[];
1256
+ index: string;
1257
+ categories: string[];
1258
+ colors?: AvailableChartColorsKeys[];
1259
+ valueFormatter?: (value: number) => string;
1260
+ startEndOnly?: boolean;
1261
+ showXAxis?: boolean;
1262
+ showYAxis?: boolean;
1263
+ showGridLines?: boolean;
1264
+ yAxisWidth?: number;
1265
+ intervalType?: 'preserveStartEnd' | 'equidistantPreserveStart';
1266
+ showTooltip?: boolean;
1267
+ showLegend?: boolean;
1268
+ autoMinValue?: boolean;
1269
+ minValue?: number;
1270
+ maxValue?: number;
1271
+ allowDecimals?: boolean;
1272
+ onValueChange?: (value: BarChartEventProps) => void;
1273
+ enableLegendSlider?: boolean;
1274
+ tickGap?: number;
1275
+ barCategoryGap?: string | number;
1276
+ xAxisLabel?: string;
1277
+ yAxisLabel?: string;
1278
+ layout?: 'vertical' | 'horizontal';
1279
+ type?: 'default' | 'stacked' | 'percent';
1280
+ legendPosition?: 'left' | 'center' | 'right';
1281
+ tooltipCallback?: (tooltipCallbackContent: TooltipProps$4) => void;
1282
+ customTooltip?: React__default.ComponentType<TooltipProps$4>;
1283
+ }
1284
+ declare const BarChart: React__default.ForwardRefExoticComponent<BarChartProps$1 & React__default.RefAttributes<HTMLDivElement>>;
1285
+
1286
+ type Bar<T> = T & {
1287
+ key?: string;
1288
+ href?: string;
1289
+ value: number;
1290
+ name: string;
1291
+ };
1292
+ interface BarListProps<T = unknown> extends React__default.HTMLAttributes<HTMLDivElement> {
1293
+ data: Bar<T>[];
1294
+ valueFormatter?: (value: number) => string;
1295
+ showAnimation?: boolean;
1296
+ onValueChange?: (payload: Bar<T>) => void;
1297
+ sortOrder?: 'ascending' | 'descending' | 'none';
1298
+ }
1299
+ declare function BarListInner<T>({ data, valueFormatter, showAnimation, onValueChange, sortOrder, className, ...props }: BarListProps<T>, forwardedRef: React__default.ForwardedRef<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1300
+ declare namespace BarListInner {
1301
+ var displayName: string;
1302
+ }
1303
+ declare const BarList: <T>(p: BarListProps<T> & {
1304
+ ref?: React__default.ForwardedRef<HTMLDivElement>;
1305
+ }) => ReturnType<typeof BarListInner>;
1306
+
1307
+ interface CategoryBarProps extends React__default.HTMLAttributes<HTMLDivElement> {
1308
+ values: number[];
1309
+ colors?: AvailableChartColorsKeys[];
1310
+ marker?: {
1311
+ value: number;
1312
+ tooltip?: string;
1313
+ showAnimation?: boolean;
1314
+ };
1315
+ showLabels?: boolean;
1316
+ }
1317
+ declare const CategoryBar: React__default.ForwardRefExoticComponent<CategoryBarProps & React__default.RefAttributes<HTMLDivElement>>;
1318
+
1319
+ type TooltipProps$3 = Pick<ChartTooltipProps$2, 'active' | 'payload' | 'label'>;
1320
+ type PayloadItem$2 = {
1321
+ category: string;
1322
+ value: number;
1323
+ index: string;
1324
+ barColor: AvailableChartColorsKeys;
1325
+ lineColor: AvailableChartColorsKeys;
1326
+ chartType: 'bar' | 'line';
1327
+ type: string;
1328
+ payload: any;
1329
+ };
1330
+ interface ChartTooltipProps$2 {
1331
+ active: boolean | undefined;
1332
+ payload: PayloadItem$2[];
1333
+ label: string;
1334
+ barValueFormatter?: (value: number) => string;
1335
+ lineValueFormatter?: (value: number) => string;
1336
+ }
1337
+ type BaseEventProps$2 = {
1338
+ eventType: 'category' | 'bar' | 'dot';
1339
+ categoryClicked: string;
1340
+ [key: string]: number | string;
1341
+ };
1342
+ type ComboChartEventProps = BaseEventProps$2 | null | undefined;
1343
+ type ChartSeries = {
1344
+ categories: string[];
1345
+ colors?: AvailableChartColorsKeys[];
1346
+ valueFormatter?: (value: number) => string;
1347
+ showYAxis?: boolean;
1348
+ yAxisWidth?: number;
1349
+ allowDecimals?: boolean;
1350
+ yAxisLabel?: string;
1351
+ autoMinValue?: boolean;
1352
+ minValue?: number;
1353
+ maxValue?: number;
1354
+ };
1355
+ interface ComboChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1356
+ data: Record<string, any>[];
1357
+ index: string;
1358
+ startEndOnly?: boolean;
1359
+ showXAxis?: boolean;
1360
+ xAxisLabel?: string;
1361
+ showGridLines?: boolean;
1362
+ intervalType?: 'preserveStartEnd' | 'equidistantPreserveStart';
1363
+ showLegend?: boolean;
1364
+ showTooltip?: boolean;
1365
+ onValueChange?: (value: ComboChartEventProps) => void;
1366
+ enableLegendSlider?: boolean;
1367
+ legendPosition?: 'left' | 'center' | 'right';
1368
+ tickGap?: number;
1369
+ enableBiaxial?: boolean;
1370
+ tooltipCallback?: (tooltipCallbackContent: TooltipProps$3) => void;
1371
+ customTooltip?: React__default.ComponentType<TooltipProps$3>;
1372
+ barSeries: ChartSeries & {
1373
+ type?: 'default' | 'stacked';
1374
+ };
1375
+ lineSeries?: ChartSeries & {
1376
+ connectNulls?: boolean;
1377
+ };
1378
+ }
1379
+ declare const ComboChart: React__default.ForwardRefExoticComponent<ComboChartProps & React__default.RefAttributes<HTMLDivElement>>;
1380
+
1381
+ type TooltipProps$2 = Pick<ChartTooltipProps$1, 'active' | 'payload'>;
1382
+ type PayloadItem$1 = {
1383
+ category: string;
1384
+ value: number;
1385
+ color: AvailableChartColorsKeys;
1386
+ };
1387
+ interface ChartTooltipProps$1 {
1388
+ active: boolean | undefined;
1389
+ payload: PayloadItem$1[];
1390
+ valueFormatter: (value: number) => string;
1391
+ }
1392
+ type DonutChartVariant = 'donut' | 'pie';
1393
+ type BaseEventProps$1 = {
1394
+ eventType: 'sector';
1395
+ categoryClicked: string;
1396
+ [key: string]: number | string;
1397
+ };
1398
+ type DonutChartEventProps = BaseEventProps$1 | null | undefined;
1399
+ interface DonutChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1400
+ data: Record<string, any>[];
1401
+ category: string;
1402
+ value: string;
1403
+ colors?: AvailableChartColorsKeys[];
1404
+ variant?: DonutChartVariant;
1405
+ valueFormatter?: (value: number) => string;
1406
+ label?: string;
1407
+ showLabel?: boolean;
1408
+ showTooltip?: boolean;
1409
+ onValueChange?: (value: DonutChartEventProps) => void;
1410
+ tooltipCallback?: (tooltipCallbackContent: TooltipProps$2) => void;
1411
+ customTooltip?: React__default.ComponentType<TooltipProps$2>;
1412
+ }
1413
+ declare const DonutChart: React__default.ForwardRefExoticComponent<DonutChartProps & React__default.RefAttributes<HTMLDivElement>>;
1414
+
1415
+ type TooltipProps$1 = Pick<ChartTooltipProps, 'active' | 'payload' | 'label'>;
1416
+ type PayloadItem = {
1417
+ category: string;
1418
+ value: number;
1419
+ index: string;
1420
+ color: AvailableChartColorsKeys;
1421
+ type?: string;
1422
+ payload: any;
1423
+ };
1424
+ interface ChartTooltipProps {
1425
+ active: boolean | undefined;
1426
+ payload: PayloadItem[];
1427
+ label: string;
1428
+ valueFormatter: (value: number) => string;
1429
+ }
1430
+ type BaseEventProps = {
1431
+ eventType: 'dot' | 'category';
1432
+ categoryClicked: string;
1433
+ [key: string]: number | string;
1434
+ };
1435
+ type LineChartEventProps = BaseEventProps | null | undefined;
1436
+ interface LineChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1437
+ data: Record<string, any>[];
1438
+ index: string;
1439
+ categories: string[];
1440
+ colors?: AvailableChartColorsKeys[];
1441
+ valueFormatter?: (value: number) => string;
1442
+ startEndOnly?: boolean;
1443
+ showXAxis?: boolean;
1444
+ showYAxis?: boolean;
1445
+ showGridLines?: boolean;
1446
+ yAxisWidth?: number;
1447
+ intervalType?: 'preserveStartEnd' | 'equidistantPreserveStart';
1448
+ showTooltip?: boolean;
1449
+ showLegend?: boolean;
1450
+ autoMinValue?: boolean;
1451
+ minValue?: number;
1452
+ maxValue?: number;
1453
+ allowDecimals?: boolean;
1454
+ onValueChange?: (value: LineChartEventProps) => void;
1455
+ enableLegendSlider?: boolean;
1456
+ tickGap?: number;
1457
+ connectNulls?: boolean;
1458
+ xAxisLabel?: string;
1459
+ yAxisLabel?: string;
1460
+ legendPosition?: 'left' | 'center' | 'right';
1461
+ tooltipCallback?: (tooltipCallbackContent: TooltipProps$1) => void;
1462
+ customTooltip?: React__default.ComponentType<TooltipProps$1>;
1463
+ }
1464
+ declare const LineChart: React__default.ForwardRefExoticComponent<LineChartProps & React__default.RefAttributes<HTMLDivElement>>;
1465
+
1466
+ declare const progressBarVariants: tailwind_variants.TVReturnType<{
1467
+ variant: {
1468
+ default: {
1469
+ background: string;
1470
+ bar: string;
1471
+ };
1472
+ neutral: {
1473
+ background: string;
1474
+ bar: string;
1475
+ };
1476
+ warning: {
1477
+ background: string;
1478
+ bar: string;
1479
+ };
1480
+ error: {
1481
+ background: string;
1482
+ bar: string;
1483
+ };
1484
+ success: {
1485
+ background: string;
1486
+ bar: string;
1487
+ };
1488
+ };
1489
+ }, {
1490
+ background: string;
1491
+ bar: string;
1492
+ }, undefined, {
1493
+ variant: {
1494
+ default: {
1495
+ background: string;
1496
+ bar: string;
1497
+ };
1498
+ neutral: {
1499
+ background: string;
1500
+ bar: string;
1501
+ };
1502
+ warning: {
1503
+ background: string;
1504
+ bar: string;
1505
+ };
1506
+ error: {
1507
+ background: string;
1508
+ bar: string;
1509
+ };
1510
+ success: {
1511
+ background: string;
1512
+ bar: string;
1513
+ };
1514
+ };
1515
+ }, {
1516
+ background: string;
1517
+ bar: string;
1518
+ }, tailwind_variants.TVReturnType<{
1519
+ variant: {
1520
+ default: {
1521
+ background: string;
1522
+ bar: string;
1523
+ };
1524
+ neutral: {
1525
+ background: string;
1526
+ bar: string;
1527
+ };
1528
+ warning: {
1529
+ background: string;
1530
+ bar: string;
1531
+ };
1532
+ error: {
1533
+ background: string;
1534
+ bar: string;
1535
+ };
1536
+ success: {
1537
+ background: string;
1538
+ bar: string;
1539
+ };
1540
+ };
1541
+ }, {
1542
+ background: string;
1543
+ bar: string;
1544
+ }, undefined, unknown, unknown, undefined>>;
1545
+ interface ProgressBarProps extends React__default.HTMLProps<HTMLDivElement>, VariantProps$1<typeof progressBarVariants> {
1546
+ value?: number;
1547
+ max?: number;
1548
+ showAnimation?: boolean;
1549
+ label?: string;
1550
+ }
1551
+ declare const ProgressBar: React__default.ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
1552
+
1553
+ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
1554
+ variant: {
1555
+ default: {
1556
+ background: string;
1557
+ circle: string;
1558
+ };
1559
+ neutral: {
1560
+ background: string;
1561
+ circle: string;
1562
+ };
1563
+ warning: {
1564
+ background: string;
1565
+ circle: string;
1566
+ };
1567
+ error: {
1568
+ background: string;
1569
+ circle: string;
1570
+ };
1571
+ success: {
1572
+ background: string;
1573
+ circle: string;
1574
+ };
1575
+ };
1576
+ }, {
1577
+ background: string;
1578
+ circle: string;
1579
+ }, undefined, {
1580
+ variant: {
1581
+ default: {
1582
+ background: string;
1583
+ circle: string;
1584
+ };
1585
+ neutral: {
1586
+ background: string;
1587
+ circle: string;
1588
+ };
1589
+ warning: {
1590
+ background: string;
1591
+ circle: string;
1592
+ };
1593
+ error: {
1594
+ background: string;
1595
+ circle: string;
1596
+ };
1597
+ success: {
1598
+ background: string;
1599
+ circle: string;
1600
+ };
1601
+ };
1602
+ }, {
1603
+ background: string;
1604
+ circle: string;
1605
+ }, tailwind_variants.TVReturnType<{
1606
+ variant: {
1607
+ default: {
1608
+ background: string;
1609
+ circle: string;
1610
+ };
1611
+ neutral: {
1612
+ background: string;
1613
+ circle: string;
1614
+ };
1615
+ warning: {
1616
+ background: string;
1617
+ circle: string;
1618
+ };
1619
+ error: {
1620
+ background: string;
1621
+ circle: string;
1622
+ };
1623
+ success: {
1624
+ background: string;
1625
+ circle: string;
1626
+ };
1627
+ };
1628
+ }, {
1629
+ background: string;
1630
+ circle: string;
1631
+ }, undefined, unknown, unknown, undefined>>;
1632
+ interface ProgressCircleProps extends Omit<React__default.SVGProps<SVGSVGElement>, 'value'>, VariantProps$1<typeof progressCircleVariants> {
1633
+ value?: number;
1634
+ max?: number;
1635
+ showAnimation?: boolean;
1636
+ radius?: number;
1637
+ strokeWidth?: number;
1638
+ children?: React__default.ReactNode;
1639
+ }
1640
+ declare const ProgressCircle: React__default.ForwardRefExoticComponent<Omit<ProgressCircleProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
1641
+
1642
+ interface SparkAreaChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1643
+ data: Record<string, any>[];
1644
+ categories: string[];
1645
+ index: string;
1646
+ colors?: AvailableChartColorsKeys[];
1647
+ autoMinValue?: boolean;
1648
+ minValue?: number;
1649
+ maxValue?: number;
1650
+ connectNulls?: boolean;
1651
+ type?: 'default' | 'stacked' | 'percent';
1652
+ fill?: 'gradient' | 'solid' | 'none';
1653
+ }
1654
+ declare const SparkAreaChart: React__default.ForwardRefExoticComponent<SparkAreaChartProps & React__default.RefAttributes<HTMLDivElement>>;
1655
+ interface SparkLineChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1656
+ data: Record<string, any>[];
1657
+ categories: string[];
1658
+ index: string;
1659
+ colors?: AvailableChartColorsKeys[];
1660
+ autoMinValue?: boolean;
1661
+ minValue?: number;
1662
+ maxValue?: number;
1663
+ connectNulls?: boolean;
1664
+ }
1665
+ declare const SparkLineChart: React__default.ForwardRefExoticComponent<SparkLineChartProps & React__default.RefAttributes<HTMLDivElement>>;
1666
+ interface BarChartProps extends React__default.HTMLAttributes<HTMLDivElement> {
1667
+ data: Record<string, any>[];
1668
+ index: string;
1669
+ categories: string[];
1670
+ colors?: AvailableChartColorsKeys[];
1671
+ autoMinValue?: boolean;
1672
+ minValue?: number;
1673
+ maxValue?: number;
1674
+ barCategoryGap?: string | number;
1675
+ type?: 'default' | 'stacked' | 'percent';
1676
+ }
1677
+ declare const SparkBarChart: React__default.ForwardRefExoticComponent<BarChartProps & React__default.RefAttributes<HTMLDivElement>>;
1678
+
1679
+ interface TrackerBlockProps {
1680
+ key?: string | number;
1681
+ color?: string;
1682
+ tooltip?: string;
1683
+ hoverEffect?: boolean;
1684
+ defaultBackgroundColor?: string;
1685
+ }
1686
+ interface TrackerProps extends React__default.HTMLAttributes<HTMLDivElement> {
1687
+ data: TrackerBlockProps[];
1688
+ defaultBackgroundColor?: string;
1689
+ hoverEffect?: boolean;
1690
+ }
1691
+ declare const Tracker: React__default.ForwardRefExoticComponent<TrackerProps & React__default.RefAttributes<HTMLDivElement>>;
1692
+
1693
+ interface TooltipProps extends Omit<TooltipPrimitive.TooltipContentProps, 'content' | 'onClick'>, Pick<TooltipPrimitive.TooltipProps, 'open' | 'defaultOpen' | 'onOpenChange' | 'delayDuration'> {
1694
+ content: React__default.ReactNode;
1695
+ onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
1696
+ side?: 'bottom' | 'left' | 'top' | 'right';
1697
+ showArrow?: boolean;
1698
+ }
1699
+ declare const Tooltip: React__default.ForwardRefExoticComponent<TooltipProps & React__default.RefAttributes<HTMLDivElement>>;
1700
+
1073
1701
  declare function useIsMobile(): boolean;
1074
1702
 
1075
1703
  declare function useDisableToc(): void;
1076
1704
 
1705
+ declare const useOnWindowResize: (handler: () => void) => void;
1706
+
1077
1707
  declare function cn(...inputs: ClassValue[]): string;
1078
1708
  declare function truncate(text: string, maxLength: number): string;
1079
1709
  declare function kebabCase(str: string): string;
1080
1710
  declare function camelCase(str: string): string;
1081
1711
  declare function humaniseVariant(key: string): string;
1712
+ declare const focusInput: string[];
1713
+ declare const hasErrorInput: string[];
1714
+ declare const focusRing: string[];
1082
1715
 
1083
1716
  declare function getNodeText(node: HTMLElement | SimpleNode): string;
1084
1717
  declare function domToSimple(node: Node): SimpleNode;
@@ -1125,4 +1758,4 @@ declare const allPalettes: Palette[];
1125
1758
  declare const colors: ColorThemes;
1126
1759
  declare const colorThemes: ColorThemes;
1127
1760
 
1128
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus$1 as FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, Label, type Language, type LayoutProps, Link, _List as List, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, cn, type colorCategories, colorDataArray, colorThemes, colors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, generateColorThemes, getColorValue, getHeadings, getNodeText, getSurroundingColors, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useDisableToc, useFormField, useIsMobile, useToc };
1761
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AreaChart, type AreaChartEventProps, AspectRatio, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus$1 as FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, Label, type Language, type LayoutProps, LineChart, type LineChartEventProps, Link, _List as List, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useDisableToc, useFormField, useIsMobile, useOnWindowResize, useToc };