@northslopetech/altitude-ui 2.1.2 → 2.4.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/README.md +0 -16
- package/dist/index.d.mts +118 -28
- package/dist/index.d.ts +118 -28
- package/dist/index.js +563 -329
- package/dist/index.mjs +564 -333
- package/dist/pdf.worker.min.mjs +28 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -232,22 +232,6 @@ function Example() {
|
|
|
232
232
|
}
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
### FormField
|
|
236
|
-
|
|
237
|
-
A form field wrapper that provides consistent styling and error handling:
|
|
238
|
-
|
|
239
|
-
```tsx
|
|
240
|
-
import { FormField, Input } from "@northslopetech/altitude-ui";
|
|
241
|
-
|
|
242
|
-
function Example() {
|
|
243
|
-
return (
|
|
244
|
-
<FormField label="Email Address" error="Please enter a valid email">
|
|
245
|
-
<Input type="email" placeholder="Enter your email" />
|
|
246
|
-
</FormField>
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
```
|
|
250
|
-
|
|
251
235
|
### Badge
|
|
252
236
|
|
|
253
237
|
Small status and informational labels:
|
package/dist/index.d.mts
CHANGED
|
@@ -87,31 +87,6 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
87
87
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
88
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* @fileoverview FormField component for Altitude UI.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
interface FormFieldProps {
|
|
95
|
-
label?: string;
|
|
96
|
-
helperText?: string;
|
|
97
|
-
error?: boolean;
|
|
98
|
-
required?: boolean;
|
|
99
|
-
children: React$1.ReactNode;
|
|
100
|
-
className?: string;
|
|
101
|
-
id?: string;
|
|
102
|
-
compact?: boolean;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* FormField wrapper component for consistent form input styling.
|
|
106
|
-
* @param {string} [props.label] - Field label text
|
|
107
|
-
* @param {string} [props.helperText] - Helper or error message text
|
|
108
|
-
* @param {boolean} [props.error] - Whether field has an error
|
|
109
|
-
* @param {boolean} [props.required] - Whether field is required
|
|
110
|
-
* @param {React.ReactNode} props.children - Form input element
|
|
111
|
-
* @param {boolean} [props.compact] - Use compact layout with floating label
|
|
112
|
-
*/
|
|
113
|
-
declare const FormField: React$1.ForwardRefExoticComponent<FormFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
114
|
-
|
|
115
90
|
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
116
91
|
|
|
117
92
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
@@ -230,8 +205,9 @@ interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>,
|
|
|
230
205
|
*/
|
|
231
206
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
232
207
|
|
|
233
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
234
|
-
|
|
208
|
+
interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "style"> {
|
|
209
|
+
className?: string;
|
|
210
|
+
style?: React$1.CSSProperties;
|
|
235
211
|
}
|
|
236
212
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
237
213
|
|
|
@@ -249,6 +225,112 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantPro
|
|
|
249
225
|
*/
|
|
250
226
|
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
251
227
|
|
|
228
|
+
/**
|
|
229
|
+
* @fileoverview Shared TypeScript types for PDF viewer components.
|
|
230
|
+
*/
|
|
231
|
+
/**
|
|
232
|
+
* PDF file input type - can be a URL string or File object.
|
|
233
|
+
*/
|
|
234
|
+
type PdfFile = string | File;
|
|
235
|
+
/**
|
|
236
|
+
* Props for PDF viewer components.
|
|
237
|
+
*/
|
|
238
|
+
interface PdfViewerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onError"> {
|
|
239
|
+
/**
|
|
240
|
+
* The PDF file to display. Can be a URL string or a File object.
|
|
241
|
+
*/
|
|
242
|
+
file?: PdfFile;
|
|
243
|
+
/**
|
|
244
|
+
* Document title to display in the header.
|
|
245
|
+
*/
|
|
246
|
+
title?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Optional custom page width in pixels. If not provided, pages will auto-fit to container width.
|
|
249
|
+
*/
|
|
250
|
+
pageWidth?: number;
|
|
251
|
+
/**
|
|
252
|
+
* Callback when download button is clicked.
|
|
253
|
+
*/
|
|
254
|
+
onDownload?: () => void;
|
|
255
|
+
/**
|
|
256
|
+
* Callback when print button is clicked.
|
|
257
|
+
*/
|
|
258
|
+
onPrint?: () => void;
|
|
259
|
+
/**
|
|
260
|
+
* Callback when the PDF document loads successfully.
|
|
261
|
+
*/
|
|
262
|
+
onLoadSuccess?: (numPages: number) => void;
|
|
263
|
+
/**
|
|
264
|
+
* Callback when there's an error loading or rendering the PDF.
|
|
265
|
+
*/
|
|
266
|
+
onError?: (error: Error) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Enable text layer for text selection. Defaults to false for performance.
|
|
269
|
+
*/
|
|
270
|
+
enableTextLayer?: boolean;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @fileoverview PDF.js worker configuration.
|
|
275
|
+
*/
|
|
276
|
+
/**
|
|
277
|
+
* Initialize PDF.js worker with a custom URL.
|
|
278
|
+
*
|
|
279
|
+
* The worker file is bundled with @northslopetech/altitude-ui at:
|
|
280
|
+
* @northslopetech/altitude-ui/pdf.worker.min.mjs
|
|
281
|
+
*
|
|
282
|
+
* **IMPORTANT**: You must call this function once at application startup before
|
|
283
|
+
* using the PdfViewer component.
|
|
284
|
+
*
|
|
285
|
+
* @param workerUrl - The URL where the PDF.js worker can be accessed
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* ```tsx
|
|
289
|
+
* // For Vite/Webpack - import directly from the package (recommended):
|
|
290
|
+
* import workerUrl from '@northslopetech/altitude-ui/pdf.worker.min.mjs?url';
|
|
291
|
+
* import { initializePdfWorker } from '@northslopetech/altitude-ui';
|
|
292
|
+
*
|
|
293
|
+
* // Call once at app startup (e.g., in main.tsx, _app.tsx, or layout.tsx)
|
|
294
|
+
* initializePdfWorker(workerUrl);
|
|
295
|
+
*
|
|
296
|
+
* // Or if you've copied the worker to your public folder:
|
|
297
|
+
* initializePdfWorker('/pdf.worker.min.mjs');
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
declare function initializePdfWorker(workerUrl: string): void;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @fileoverview PDF viewer component for Altitude UI.
|
|
304
|
+
*/
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* PDF document viewer component with multi-page support.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```tsx
|
|
311
|
+
* // Simple usage
|
|
312
|
+
* <PdfViewer file="/document.pdf" />
|
|
313
|
+
*
|
|
314
|
+
* // With title and callbacks
|
|
315
|
+
* <PdfViewer
|
|
316
|
+
* file={pdfFile}
|
|
317
|
+
* title="Invoice_2024.pdf"
|
|
318
|
+
* onDownload={() => console.log('Download clicked')}
|
|
319
|
+
* onPrint={() => console.log('Print clicked')}
|
|
320
|
+
* onLoadSuccess={(pages) => console.log(`Loaded ${pages} pages`)}
|
|
321
|
+
* onError={(error) => console.error(error)}
|
|
322
|
+
* />
|
|
323
|
+
*
|
|
324
|
+
* // With custom width and text layer
|
|
325
|
+
* <PdfViewer
|
|
326
|
+
* file="/document.pdf"
|
|
327
|
+
* pageWidth={800}
|
|
328
|
+
* enableTextLayer
|
|
329
|
+
* />
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
declare const PdfViewer: React$1.ForwardRefExoticComponent<PdfViewerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
+
|
|
252
334
|
/**
|
|
253
335
|
* Tabs trigger variant styles.
|
|
254
336
|
*/
|
|
@@ -401,6 +483,14 @@ declare const UserMulti: React$1.FC<IconProps>;
|
|
|
401
483
|
declare const Warning: React$1.FC<IconProps>;
|
|
402
484
|
declare const Wrench: React$1.FC<IconProps>;
|
|
403
485
|
declare const Logout: React$1.FC<IconProps>;
|
|
486
|
+
/**
|
|
487
|
+
* Print icon component.
|
|
488
|
+
*/
|
|
489
|
+
declare const Print: React$1.FC<IconProps>;
|
|
490
|
+
/**
|
|
491
|
+
* Download icon component.
|
|
492
|
+
*/
|
|
493
|
+
declare const Download: React$1.FC<IconProps>;
|
|
404
494
|
|
|
405
495
|
/**
|
|
406
496
|
* @fileoverview Chart utilities for Altitude UI chart components.
|
|
@@ -911,4 +1001,4 @@ interface TableProps<T> {
|
|
|
911
1001
|
*/
|
|
912
1002
|
declare function Table<T>({ table, className, showPagination, paginationClassName, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
913
1003
|
|
|
914
|
-
export { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, Bell, Bookmark, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, Calendar, CaretDown, CaretLeft, CaretRight, CaretUp, type ChartColorScheme, ChartLegend, type ChartLegendProps, Chat, Check, CheckIcon, Checkbox, type CheckboxProps, CheckmarkCircle, CheckmarkSquare, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, CloseSmall, Cog, Credentials, DatePicker, type DatePickerProps, Doc, Dollar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, Edit, Envelope, Exclamation, EyeClosed, EyeOpen, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterDescending,
|
|
1004
|
+
export { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, Bell, Bookmark, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, Calendar, CaretDown, CaretLeft, CaretRight, CaretUp, type ChartColorScheme, ChartLegend, type ChartLegendProps, Chat, Check, CheckIcon, Checkbox, type CheckboxProps, CheckmarkCircle, CheckmarkSquare, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, CloseSmall, Cog, Credentials, DatePicker, type DatePickerProps, Doc, Dollar, Download, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, Edit, Envelope, Exclamation, EyeClosed, EyeOpen, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterDescending, GenericTooltip, type GenericTooltipProps, GraphBar, GraphDonut, GraphLine, GraphPie, HamburgerMenu, Home, type IconProps, type IconVariant, Information, Input, type InputProps, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, Location, Lock, Logout, MagnifyingGlass, Minus, MoreMenu, type PdfFile, PdfViewer, type PdfViewerProps, Phone, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, Plus, Print, QuestionCircle, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Share, Star, Statement, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TickProps, TooltipContainer, type TooltipContainerProps, TooltipItem, type TooltipItemProps, Trash, Typography, type TypographyProps, Upload, type UploadProps, User, UserMulti, Warning, Wrench, X, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, selectTriggerVariants, tabsVariants, typographyVariants, uploadVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -87,31 +87,6 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
87
87
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
88
88
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* @fileoverview FormField component for Altitude UI.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
interface FormFieldProps {
|
|
95
|
-
label?: string;
|
|
96
|
-
helperText?: string;
|
|
97
|
-
error?: boolean;
|
|
98
|
-
required?: boolean;
|
|
99
|
-
children: React$1.ReactNode;
|
|
100
|
-
className?: string;
|
|
101
|
-
id?: string;
|
|
102
|
-
compact?: boolean;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* FormField wrapper component for consistent form input styling.
|
|
106
|
-
* @param {string} [props.label] - Field label text
|
|
107
|
-
* @param {string} [props.helperText] - Helper or error message text
|
|
108
|
-
* @param {boolean} [props.error] - Whether field has an error
|
|
109
|
-
* @param {boolean} [props.required] - Whether field is required
|
|
110
|
-
* @param {React.ReactNode} props.children - Form input element
|
|
111
|
-
* @param {boolean} [props.compact] - Use compact layout with floating label
|
|
112
|
-
*/
|
|
113
|
-
declare const FormField: React$1.ForwardRefExoticComponent<FormFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
114
|
-
|
|
115
90
|
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
116
91
|
|
|
117
92
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
@@ -230,8 +205,9 @@ interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>,
|
|
|
230
205
|
*/
|
|
231
206
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
232
207
|
|
|
233
|
-
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
234
|
-
|
|
208
|
+
interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "style"> {
|
|
209
|
+
className?: string;
|
|
210
|
+
style?: React$1.CSSProperties;
|
|
235
211
|
}
|
|
236
212
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
237
213
|
|
|
@@ -249,6 +225,112 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantPro
|
|
|
249
225
|
*/
|
|
250
226
|
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
251
227
|
|
|
228
|
+
/**
|
|
229
|
+
* @fileoverview Shared TypeScript types for PDF viewer components.
|
|
230
|
+
*/
|
|
231
|
+
/**
|
|
232
|
+
* PDF file input type - can be a URL string or File object.
|
|
233
|
+
*/
|
|
234
|
+
type PdfFile = string | File;
|
|
235
|
+
/**
|
|
236
|
+
* Props for PDF viewer components.
|
|
237
|
+
*/
|
|
238
|
+
interface PdfViewerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onError"> {
|
|
239
|
+
/**
|
|
240
|
+
* The PDF file to display. Can be a URL string or a File object.
|
|
241
|
+
*/
|
|
242
|
+
file?: PdfFile;
|
|
243
|
+
/**
|
|
244
|
+
* Document title to display in the header.
|
|
245
|
+
*/
|
|
246
|
+
title?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Optional custom page width in pixels. If not provided, pages will auto-fit to container width.
|
|
249
|
+
*/
|
|
250
|
+
pageWidth?: number;
|
|
251
|
+
/**
|
|
252
|
+
* Callback when download button is clicked.
|
|
253
|
+
*/
|
|
254
|
+
onDownload?: () => void;
|
|
255
|
+
/**
|
|
256
|
+
* Callback when print button is clicked.
|
|
257
|
+
*/
|
|
258
|
+
onPrint?: () => void;
|
|
259
|
+
/**
|
|
260
|
+
* Callback when the PDF document loads successfully.
|
|
261
|
+
*/
|
|
262
|
+
onLoadSuccess?: (numPages: number) => void;
|
|
263
|
+
/**
|
|
264
|
+
* Callback when there's an error loading or rendering the PDF.
|
|
265
|
+
*/
|
|
266
|
+
onError?: (error: Error) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Enable text layer for text selection. Defaults to false for performance.
|
|
269
|
+
*/
|
|
270
|
+
enableTextLayer?: boolean;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @fileoverview PDF.js worker configuration.
|
|
275
|
+
*/
|
|
276
|
+
/**
|
|
277
|
+
* Initialize PDF.js worker with a custom URL.
|
|
278
|
+
*
|
|
279
|
+
* The worker file is bundled with @northslopetech/altitude-ui at:
|
|
280
|
+
* @northslopetech/altitude-ui/pdf.worker.min.mjs
|
|
281
|
+
*
|
|
282
|
+
* **IMPORTANT**: You must call this function once at application startup before
|
|
283
|
+
* using the PdfViewer component.
|
|
284
|
+
*
|
|
285
|
+
* @param workerUrl - The URL where the PDF.js worker can be accessed
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* ```tsx
|
|
289
|
+
* // For Vite/Webpack - import directly from the package (recommended):
|
|
290
|
+
* import workerUrl from '@northslopetech/altitude-ui/pdf.worker.min.mjs?url';
|
|
291
|
+
* import { initializePdfWorker } from '@northslopetech/altitude-ui';
|
|
292
|
+
*
|
|
293
|
+
* // Call once at app startup (e.g., in main.tsx, _app.tsx, or layout.tsx)
|
|
294
|
+
* initializePdfWorker(workerUrl);
|
|
295
|
+
*
|
|
296
|
+
* // Or if you've copied the worker to your public folder:
|
|
297
|
+
* initializePdfWorker('/pdf.worker.min.mjs');
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
declare function initializePdfWorker(workerUrl: string): void;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @fileoverview PDF viewer component for Altitude UI.
|
|
304
|
+
*/
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* PDF document viewer component with multi-page support.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```tsx
|
|
311
|
+
* // Simple usage
|
|
312
|
+
* <PdfViewer file="/document.pdf" />
|
|
313
|
+
*
|
|
314
|
+
* // With title and callbacks
|
|
315
|
+
* <PdfViewer
|
|
316
|
+
* file={pdfFile}
|
|
317
|
+
* title="Invoice_2024.pdf"
|
|
318
|
+
* onDownload={() => console.log('Download clicked')}
|
|
319
|
+
* onPrint={() => console.log('Print clicked')}
|
|
320
|
+
* onLoadSuccess={(pages) => console.log(`Loaded ${pages} pages`)}
|
|
321
|
+
* onError={(error) => console.error(error)}
|
|
322
|
+
* />
|
|
323
|
+
*
|
|
324
|
+
* // With custom width and text layer
|
|
325
|
+
* <PdfViewer
|
|
326
|
+
* file="/document.pdf"
|
|
327
|
+
* pageWidth={800}
|
|
328
|
+
* enableTextLayer
|
|
329
|
+
* />
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
declare const PdfViewer: React$1.ForwardRefExoticComponent<PdfViewerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
+
|
|
252
334
|
/**
|
|
253
335
|
* Tabs trigger variant styles.
|
|
254
336
|
*/
|
|
@@ -401,6 +483,14 @@ declare const UserMulti: React$1.FC<IconProps>;
|
|
|
401
483
|
declare const Warning: React$1.FC<IconProps>;
|
|
402
484
|
declare const Wrench: React$1.FC<IconProps>;
|
|
403
485
|
declare const Logout: React$1.FC<IconProps>;
|
|
486
|
+
/**
|
|
487
|
+
* Print icon component.
|
|
488
|
+
*/
|
|
489
|
+
declare const Print: React$1.FC<IconProps>;
|
|
490
|
+
/**
|
|
491
|
+
* Download icon component.
|
|
492
|
+
*/
|
|
493
|
+
declare const Download: React$1.FC<IconProps>;
|
|
404
494
|
|
|
405
495
|
/**
|
|
406
496
|
* @fileoverview Chart utilities for Altitude UI chart components.
|
|
@@ -911,4 +1001,4 @@ interface TableProps<T> {
|
|
|
911
1001
|
*/
|
|
912
1002
|
declare function Table<T>({ table, className, showPagination, paginationClassName, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
913
1003
|
|
|
914
|
-
export { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, Bell, Bookmark, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, Calendar, CaretDown, CaretLeft, CaretRight, CaretUp, type ChartColorScheme, ChartLegend, type ChartLegendProps, Chat, Check, CheckIcon, Checkbox, type CheckboxProps, CheckmarkCircle, CheckmarkSquare, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, CloseSmall, Cog, Credentials, DatePicker, type DatePickerProps, Doc, Dollar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, Edit, Envelope, Exclamation, EyeClosed, EyeOpen, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterDescending,
|
|
1004
|
+
export { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, Bell, Bookmark, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, Calendar, CaretDown, CaretLeft, CaretRight, CaretUp, type ChartColorScheme, ChartLegend, type ChartLegendProps, Chat, Check, CheckIcon, Checkbox, type CheckboxProps, CheckmarkCircle, CheckmarkSquare, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Close, CloseSmall, Cog, Credentials, DatePicker, type DatePickerProps, Doc, Dollar, Download, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, Edit, Envelope, Exclamation, EyeClosed, EyeOpen, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterDescending, GenericTooltip, type GenericTooltipProps, GraphBar, GraphDonut, GraphLine, GraphPie, HamburgerMenu, Home, type IconProps, type IconVariant, Information, Input, type InputProps, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, Location, Lock, Logout, MagnifyingGlass, Minus, MoreMenu, type PdfFile, PdfViewer, type PdfViewerProps, Phone, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, Plus, Print, QuestionCircle, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Share, Star, Statement, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TickProps, TooltipContainer, type TooltipContainerProps, TooltipItem, type TooltipItemProps, Trash, Typography, type TypographyProps, Upload, type UploadProps, User, UserMulti, Warning, Wrench, X, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, selectTriggerVariants, tabsVariants, typographyVariants, uploadVariants };
|