@texturehq/edges 0.0.14 → 0.0.18

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.ts CHANGED
@@ -1,9 +1,63 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps as ButtonProps$1, TextProps, TextFieldProps as TextFieldProps$1, ValidationResult, ListBoxProps as ListBoxProps$1, SelectProps as SelectProps$1, Key, NumberFieldProps as NumberFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, DateValue, DateFieldProps as DateFieldProps$1, TooltipProps as TooltipProps$1, PopoverProps as PopoverProps$1, SwitchProps as SwitchProps$1, ProgressBarProps as ProgressBarProps$1, RangeCalendarProps as RangeCalendarProps$1, ListBoxItemProps, FormProps, DateRangePickerProps as DateRangePickerProps$1, DialogProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps } from 'react-aria-components';
3
2
  import * as React$1 from 'react';
4
- import React__default, { ComponentProps, ReactNode } from 'react';
3
+ import React__default, { ComponentProps, ReactNode, Component, ErrorInfo } from 'react';
4
+ import { Key, ValidationResult, ButtonProps as ButtonProps$1, DateValue, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, DateFieldProps as DateFieldProps$1, DateRangePickerProps as DateRangePickerProps$1, DialogProps, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, NumberFieldProps as NumberFieldProps$1, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RangeCalendarProps as RangeCalendarProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TabProps as TabProps$1, TabListProps, TabPanelProps, TabsProps, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
5
5
  import * as _phosphor_icons_react from '@phosphor-icons/react';
6
6
 
7
+ interface Item {
8
+ id: string;
9
+ name: string;
10
+ }
11
+ interface Section {
12
+ name: string;
13
+ items: Item[];
14
+ }
15
+ type RequestMethod = "GET" | "POST";
16
+ interface BaseRequestConfig {
17
+ url: string;
18
+ headers?: Record<string, string>;
19
+ transformResponse: (data: unknown) => Item[];
20
+ }
21
+ interface RestRequestConfig extends BaseRequestConfig {
22
+ requestType: "REST";
23
+ method?: RequestMethod;
24
+ queryKey?: string;
25
+ extraParams?: Record<string, string>;
26
+ shouldLoad?: (filterText: string) => boolean;
27
+ }
28
+ interface GraphQLRequestConfig extends BaseRequestConfig {
29
+ requestType: "GraphQL";
30
+ graphqlQuery: string;
31
+ variableKey?: string;
32
+ responsePath?: string;
33
+ shouldLoad?: (filterText: string) => boolean;
34
+ }
35
+ type AutocompleteRequestConfig = RestRequestConfig | GraphQLRequestConfig;
36
+ interface AutocompleteProps {
37
+ label?: string;
38
+ staticItems?: Item[];
39
+ sections?: Section[];
40
+ selectedKey?: Key | null;
41
+ defaultSelectedKey?: Key | null;
42
+ onSelectionChange?: (key: Key | null) => void;
43
+ requestConfig?: AutocompleteRequestConfig;
44
+ defaultFilter?: (textValue: string, inputValue: string) => boolean;
45
+ placeholder?: string;
46
+ renderItem?: (item: Item) => React__default.ReactNode;
47
+ renderLeftIcon?: (isLoading: boolean) => React__default.ReactNode;
48
+ errorMessage?: string | ((validation: ValidationResult) => string);
49
+ description?: string;
50
+ size?: "sm" | "md" | "lg" | "xl";
51
+ tooltip?: string;
52
+ isRequired?: boolean;
53
+ isDisabled?: boolean;
54
+ validationResult?: ValidationResult;
55
+ showErrors?: boolean;
56
+ autoFocus?: boolean;
57
+ onLoadError?: (error: Error) => void;
58
+ }
59
+ declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, errorMessage, size, tooltip, isRequired, isDisabled, renderLeftIcon, autoFocus, onLoadError, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
60
+
7
61
  declare const iconMapping: {
8
62
  readonly AppWindow: _phosphor_icons_react.Icon;
9
63
  readonly ArrowCircleUp: _phosphor_icons_react.Icon;
@@ -24,6 +78,7 @@ declare const iconMapping: {
24
78
  readonly BookOpen: _phosphor_icons_react.Icon;
25
79
  readonly BookmarkSimple: _phosphor_icons_react.Icon;
26
80
  readonly BracketsCurly: _phosphor_icons_react.Icon;
81
+ readonly Broadcast: _phosphor_icons_react.Icon;
27
82
  readonly Buildings: _phosphor_icons_react.Icon;
28
83
  readonly CalendarBlank: _phosphor_icons_react.Icon;
29
84
  readonly CaretDown: _phosphor_icons_react.Icon;
@@ -68,6 +123,7 @@ declare const iconMapping: {
68
123
  readonly Gauge: _phosphor_icons_react.Icon;
69
124
  readonly GearSix: _phosphor_icons_react.Icon;
70
125
  readonly HandPointing: _phosphor_icons_react.Icon;
126
+ readonly Handshake: _phosphor_icons_react.Icon;
71
127
  readonly Info: _phosphor_icons_react.Icon;
72
128
  readonly IntersectSquare: _phosphor_icons_react.Icon;
73
129
  readonly Lightning: _phosphor_icons_react.Icon;
@@ -179,6 +235,120 @@ interface ButtonProps extends BaseButtonProps {
179
235
  }
180
236
  declare function Button(props: ButtonProps): react_jsx_runtime.JSX.Element;
181
237
 
238
+ interface CalendarProps<T extends DateValue> extends Omit<CalendarProps$1<T>, "visibleDuration"> {
239
+ errorMessage?: string;
240
+ }
241
+ declare function Calendar<T extends DateValue>({ errorMessage, ...props }: CalendarProps<T>): react_jsx_runtime.JSX.Element;
242
+
243
+ interface CardProps {
244
+ heading?: React__default.ReactNode;
245
+ upperRightText?: React__default.ReactNode;
246
+ withPadding?: boolean;
247
+ isGhost?: boolean;
248
+ children?: React__default.ReactNode;
249
+ className?: string;
250
+ isLoading?: boolean;
251
+ }
252
+ declare const Card: React__default.FC<CardProps>;
253
+
254
+ interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
255
+ children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
256
+ }
257
+ declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
258
+
259
+ interface CopyToClipboardProps {
260
+ /**
261
+ * The value to copy to clipboard. If not provided, will use the text content of children
262
+ */
263
+ value?: string;
264
+ /**
265
+ * The content to display
266
+ */
267
+ children: React__default.ReactNode;
268
+ /**
269
+ * Optional className for the container
270
+ */
271
+ className?: string;
272
+ /**
273
+ * Size of the copy button, defaults to "sm"
274
+ */
275
+ size?: "sm" | "md";
276
+ }
277
+ declare function CopyToClipboard({ value, children, className, size }: CopyToClipboardProps): react_jsx_runtime.JSX.Element;
278
+
279
+ interface DateFieldProps<T extends DateValue> extends DateFieldProps$1<T> {
280
+ label?: string;
281
+ description?: string;
282
+ errorMessage?: string | ((validation: ValidationResult) => string);
283
+ }
284
+ declare function DateField<T extends DateValue>({ label, description, errorMessage, ...props }: DateFieldProps<T>): react_jsx_runtime.JSX.Element;
285
+
286
+ interface DateRangePickerProps<T extends DateValue> extends DateRangePickerProps$1<T> {
287
+ label?: string;
288
+ description?: string;
289
+ errorMessage?: string | ((validation: ValidationResult) => string);
290
+ }
291
+ declare function DateRangePicker<T extends DateValue>({ label, description, errorMessage, ...props }: DateRangePickerProps<T>): react_jsx_runtime.JSX.Element;
292
+
293
+ declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
294
+
295
+ type BaseDialogHeaderProps = {
296
+ title?: string;
297
+ onClose: () => void;
298
+ titleAlign?: "left" | "center";
299
+ headerContent?: React__default.ReactNode;
300
+ };
301
+ type WithBackArrow = BaseDialogHeaderProps & {
302
+ hasBackArrow: true;
303
+ onBack: () => void;
304
+ };
305
+ type WithoutBackArrow = BaseDialogHeaderProps & {
306
+ hasBackArrow?: false;
307
+ onBack?: never;
308
+ };
309
+ type DialogHeaderProps = WithBackArrow | WithoutBackArrow;
310
+ declare const DialogHeader: React__default.FC<DialogHeaderProps>;
311
+
312
+ interface DrawerAction {
313
+ label: string;
314
+ onPress: () => void;
315
+ variant?: "default" | "primary" | "secondary" | "destructive" | "icon" | "link" | "unstyled" | "ghost";
316
+ size?: "sm" | "md" | "lg";
317
+ isLoading?: boolean;
318
+ isDisabled?: boolean;
319
+ }
320
+ interface DrawerProps {
321
+ title?: string;
322
+ headerContent?: React__default.ReactNode;
323
+ children?: React__default.ReactNode;
324
+ isOpen: boolean;
325
+ slideInFrom?: "left" | "right";
326
+ transparentOverlay?: boolean;
327
+ onClose?: () => void;
328
+ className?: string;
329
+ primaryAction?: DrawerAction;
330
+ secondaryAction?: DrawerAction;
331
+ footerContent?: React__default.ReactNode;
332
+ }
333
+ declare const Drawer: React__default.FC<DrawerProps>;
334
+
335
+ interface Props {
336
+ children: ReactNode;
337
+ fallback?: ReactNode;
338
+ title?: string;
339
+ }
340
+ interface State {
341
+ hasError: boolean;
342
+ error?: Error;
343
+ }
344
+ declare class ErrorBoundary extends Component<Props, State> {
345
+ state: State;
346
+ static getDerivedStateFromError(error: Error): State;
347
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
348
+ private handleRetry;
349
+ render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | null | undefined;
350
+ }
351
+
182
352
  interface InputStyleProps {
183
353
  /** Whether the input is in an invalid state */
184
354
  isInvalid?: boolean;
@@ -288,7 +458,7 @@ declare function getInputStateStyles(props: {
288
458
  declare function getInputBackgroundStyles(props: {
289
459
  transparent?: boolean;
290
460
  isDisabled?: boolean;
291
- }): "bg-transparent" | "bg-background-muted" | "bg-background-input";
461
+ }): "bg-background-muted" | "bg-transparent" | "bg-background-input";
292
462
  /**
293
463
  * Generates the complete set of base styles for input components.
294
464
  * This includes state styles, background, sizing, and custom classes.
@@ -378,32 +548,130 @@ declare function Input({ size, isInvalid, isDisabled, isFocused, transparent, cl
378
548
  */
379
549
  declare function FieldGroup(props: FieldGroupProps): react_jsx_runtime.JSX.Element;
380
550
 
381
- interface TextFieldProps extends Omit<TextFieldProps$1, "isRequired" | "size" | "className">, BaseInputProps {
551
+ declare function Form(props: FormProps): react_jsx_runtime.JSX.Element;
552
+
553
+ declare const sizeVariants: {
554
+ readonly xs: "text-lg font-semibold";
555
+ readonly sm: "text-xl font-semibold";
556
+ readonly md: "text-2xl font-semibold";
557
+ readonly lg: "text-3xl font-semibold";
558
+ readonly xl: "text-4xl font-semibold";
559
+ };
560
+ declare const heightVariants: {
561
+ readonly page: "h-16 leading-[62px]";
562
+ };
563
+ type HeadingSize = keyof typeof sizeVariants;
564
+ type HeadingHeight = keyof typeof heightVariants;
565
+ interface HeadingProps {
566
+ tag?: keyof JSX.IntrinsicElements;
567
+ size?: HeadingSize;
568
+ height?: HeadingHeight;
569
+ className?: string;
570
+ children?: React__default.ReactNode;
571
+ }
572
+ declare function Heading({ tag: Tag, size, height, className, children }: HeadingProps): react_jsx_runtime.JSX.Element;
573
+
574
+ interface ListBoxProps<T> extends Omit<ListBoxProps$1<T>, "layout" | "orientation"> {
575
+ }
576
+ declare function ListBox<T extends object>({ children, ...props }: ListBoxProps<T>): react_jsx_runtime.JSX.Element;
577
+
578
+ interface ExtendedListBoxItemProps extends Omit<ListBoxItemProps, "className"> {
579
+ size?: "sm" | "md" | "lg" | "xl";
580
+ className?: string;
581
+ }
582
+ declare function ListBoxItem({ size, className, ...props }: ExtendedListBoxItemProps): react_jsx_runtime.JSX.Element;
583
+
584
+ interface LoaderProps {
585
+ /**
586
+ * Optional className for custom styling
587
+ */
588
+ className?: string;
589
+ /**
590
+ * Size of the loader in pixels
591
+ * @default 24
592
+ */
593
+ size?: number;
594
+ /**
595
+ * Color of the loader
596
+ * @default "text-action-primary"
597
+ */
598
+ color?: string;
599
+ }
600
+ declare const Loader: ({ className, size, color }: LoaderProps) => react_jsx_runtime.JSX.Element;
601
+
602
+ interface LogoProps {
603
+ className?: string;
604
+ showWordmark?: boolean;
605
+ }
606
+ declare const Logo: ({ className, showWordmark }: LogoProps) => react_jsx_runtime.JSX.Element;
607
+
608
+ interface NumberFieldProps extends Omit<NumberFieldProps$1, "size" | "className">, BaseInputProps {
609
+ value?: number;
610
+ defaultValue?: number;
611
+ onChange?: (value: number) => void;
612
+ minValue?: number;
613
+ maxValue?: number;
614
+ step?: number;
615
+ formatOptions?: Intl.NumberFormatOptions;
616
+ id?: string;
382
617
  label?: string;
383
618
  description?: string;
384
619
  errorMessage?: string | ((validation: ValidationResult) => string);
385
- placeholder?: string;
386
620
  tooltip?: string;
387
621
  isRequired?: boolean;
388
622
  className?: string;
389
623
  validationResult?: ValidationResult;
390
624
  }
391
- declare function TextField({ label, description, errorMessage, size, tooltip, isRequired, transparent, showSearchIcon, isClearable, onClear, type, validationResult, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
625
+ declare function NumberField({ label, description, errorMessage, size, tooltip, isRequired, transparent, validationResult, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
392
626
 
393
- interface TextAreaProps extends Omit<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "size">, BaseInputProps {
627
+ interface Place {
628
+ id: string;
629
+ place_name: string;
630
+ place_type: string[];
631
+ center: [number, number];
632
+ }
633
+ type SearchType = "country" | "region" | "district" | "place" | "locality" | "neighborhood" | "address" | "street";
634
+ interface PlaceSearchProps {
394
635
  label?: string;
395
- description?: string;
636
+ selectedKey?: Key | null;
637
+ defaultSelectedKey?: Key | null;
638
+ onSelectionChange?: (key: Key | null) => void;
639
+ placeholder?: string;
396
640
  errorMessage?: string | ((validation: ValidationResult) => string);
641
+ description?: string;
642
+ size?: "sm" | "md" | "lg" | "xl";
397
643
  tooltip?: string;
398
- size?: Size;
399
- isInvalid?: boolean;
644
+ isRequired?: boolean;
645
+ isDisabled?: boolean;
646
+ showErrors?: boolean;
647
+ autoFocus?: boolean;
648
+ onSelect: (place: Place) => void;
649
+ searchTypes?: SearchType[];
650
+ defaultFilter?: (textValue: string, inputValue: string) => boolean;
400
651
  validationResult?: ValidationResult;
652
+ countryRestrictions?: string[];
653
+ proximity?: "ip" | [number, number];
401
654
  }
402
- declare function TextArea({ label, description, errorMessage, size, tooltip, required, transparent, isInvalid, className, validationResult, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
655
+ declare function PlaceSearch({ label, selectedKey, defaultSelectedKey, onSelectionChange, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, showErrors, autoFocus, onSelect, searchTypes, defaultFilter, validationResult, countryRestrictions, proximity, }: PlaceSearchProps): react_jsx_runtime.JSX.Element;
403
656
 
404
- interface ListBoxProps<T> extends Omit<ListBoxProps$1<T>, "layout" | "orientation"> {
657
+ interface PopoverProps extends Omit<PopoverProps$1, "children"> {
658
+ showArrow?: boolean;
659
+ children: React__default.ReactNode;
405
660
  }
406
- declare function ListBox<T extends object>({ children, ...props }: ListBoxProps<T>): react_jsx_runtime.JSX.Element;
661
+ declare function Popover({ children, showArrow, className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
662
+
663
+ interface ProgressBarProps extends ProgressBarProps$1 {
664
+ label?: string;
665
+ rightLabel?: string;
666
+ progressWidth?: number;
667
+ hideLabels?: boolean;
668
+ }
669
+ declare function ProgressBar({ label, rightLabel, progressWidth, hideLabels, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
670
+
671
+ interface RangeCalendarProps<T extends DateValue> extends Omit<RangeCalendarProps$1<T>, "visibleDuration"> {
672
+ errorMessage?: string;
673
+ }
674
+ declare function RangeCalendar<T extends DateValue>({ errorMessage, ...props }: RangeCalendarProps<T>): react_jsx_runtime.JSX.Element;
407
675
 
408
676
  /**
409
677
  * Interface defining the shape of items in the Select component
@@ -452,26 +720,49 @@ interface SelectProps<T extends SelectItem> extends Omit<SelectProps$1<T>, "chil
452
720
  }
453
721
  declare function Select<T extends SelectItem>({ label, description, errorMessage, children, items, size, selectedKey: controlledSelectedKey, defaultSelectedKey, onSelectionChange, placeholder, showErrors, tooltip, isRequired, transparent, ...props }: SelectProps<T>): react_jsx_runtime.JSX.Element;
454
722
 
455
- interface NumberFieldProps extends Omit<NumberFieldProps$1, "size" | "className">, BaseInputProps {
456
- value?: number;
457
- defaultValue?: number;
458
- onChange?: (value: number) => void;
459
- minValue?: number;
460
- maxValue?: number;
461
- step?: number;
462
- formatOptions?: Intl.NumberFormatOptions;
463
- id?: string;
464
- label?: string;
465
- description?: string;
466
- errorMessage?: string | ((validation: ValidationResult) => string);
467
- tooltip?: string;
468
- isRequired?: boolean;
723
+ interface SkeletonProps {
724
+ width?: number | string;
725
+ height?: number | string;
726
+ variant?: "text" | "rect" | "circle";
727
+ animation?: "pulse" | "wave" | "none";
728
+ gradient?: boolean;
729
+ flex?: boolean;
730
+ stack?: (number | string)[];
731
+ responsive?: Record<string, string | number>;
732
+ delay?: number;
733
+ adjustAnimationSpeedBasedOnWidth?: boolean;
734
+ ariaLabel?: string;
469
735
  className?: string;
736
+ "data-testid"?: string;
737
+ }
738
+ declare const Skeleton: React__default.FC<SkeletonProps>;
739
+
740
+ interface SwitchProps extends Omit<SwitchProps$1, "children"> {
741
+ children: React__default.ReactNode;
742
+ }
743
+ declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
744
+
745
+ type TabProps = TabProps$1 & {
746
+ isSelected?: boolean;
747
+ id?: string;
748
+ };
749
+ declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
750
+ declare function TabList<T extends object>(props: TabListProps<T>): react_jsx_runtime.JSX.Element;
751
+ declare function Tab(props: TabProps): react_jsx_runtime.JSX.Element;
752
+ declare function TabPanel(props: TabPanelProps): react_jsx_runtime.JSX.Element;
753
+
754
+ interface TextAreaProps extends Omit<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "size">, BaseInputProps {
755
+ label?: string;
756
+ description?: string;
757
+ errorMessage?: string | ((validation: ValidationResult) => string);
758
+ tooltip?: string;
759
+ size?: Size;
760
+ isInvalid?: boolean;
470
761
  validationResult?: ValidationResult;
471
762
  }
472
- declare function NumberField({ label, description, errorMessage, size, tooltip, isRequired, transparent, validationResult, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
763
+ declare function TextArea({ label, description, errorMessage, size, tooltip, required, transparent, isInvalid, className, validationResult, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
473
764
 
474
- interface TimeFieldProps extends Omit<TimeFieldProps$1<TimeValue>, "size" | "className">, BaseInputProps {
765
+ interface TextFieldProps extends Omit<TextFieldProps$1, "isRequired" | "size" | "className">, BaseInputProps {
475
766
  label?: string;
476
767
  description?: string;
477
768
  errorMessage?: string | ((validation: ValidationResult) => string);
@@ -481,14 +772,33 @@ interface TimeFieldProps extends Omit<TimeFieldProps$1<TimeValue>, "size" | "cla
481
772
  className?: string;
482
773
  validationResult?: ValidationResult;
483
774
  }
484
- declare function TimeField({ label, description, errorMessage, size, tooltip, isRequired, transparent, validationResult, ...props }: TimeFieldProps): react_jsx_runtime.JSX.Element;
775
+ declare function TextField({ label, description, errorMessage, size, tooltip, isRequired, transparent, showSearchIcon, isClearable, onClear, type, validationResult, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
485
776
 
486
- interface DateFieldProps<T extends DateValue> extends DateFieldProps$1<T> {
777
+ interface TextLinkProps {
778
+ href?: string;
779
+ children: ReactNode;
780
+ className?: string;
781
+ external?: boolean;
782
+ title?: string;
783
+ variant?: "default" | "primary" | "muted";
784
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
785
+ asButton?: boolean;
786
+ onPress?: () => void;
787
+ showArrow?: boolean;
788
+ }
789
+ declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
790
+
791
+ interface TimeFieldProps extends Omit<TimeFieldProps$1<TimeValue>, "size" | "className">, BaseInputProps {
487
792
  label?: string;
488
793
  description?: string;
489
794
  errorMessage?: string | ((validation: ValidationResult) => string);
795
+ placeholder?: string;
796
+ tooltip?: string;
797
+ isRequired?: boolean;
798
+ className?: string;
799
+ validationResult?: ValidationResult;
490
800
  }
491
- declare function DateField<T extends DateValue>({ label, description, errorMessage, ...props }: DateFieldProps<T>): react_jsx_runtime.JSX.Element;
801
+ declare function TimeField({ label, description, errorMessage, size, tooltip, isRequired, transparent, validationResult, ...props }: TimeFieldProps): react_jsx_runtime.JSX.Element;
492
802
 
493
803
  type IconName = ComponentProps<typeof Icon>["name"];
494
804
  interface ToggleButtonProps {
@@ -523,235 +833,4 @@ interface TooltipProps extends Omit<TooltipProps$1, "children"> {
523
833
  }
524
834
  declare function Tooltip({ children, content, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
525
835
 
526
- interface TextLinkProps {
527
- href?: string;
528
- children: ReactNode;
529
- className?: string;
530
- external?: boolean;
531
- title?: string;
532
- variant?: "default" | "primary" | "muted";
533
- onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
534
- asButton?: boolean;
535
- onPress?: () => void;
536
- showArrow?: boolean;
537
- }
538
- declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
539
-
540
- interface SkeletonProps {
541
- width?: number | string;
542
- height?: number | string;
543
- variant?: "text" | "rect" | "circle";
544
- animation?: "pulse" | "wave" | "none";
545
- gradient?: boolean;
546
- flex?: boolean;
547
- stack?: (number | string)[];
548
- responsive?: Record<string, string | number>;
549
- delay?: number;
550
- adjustAnimationSpeedBasedOnWidth?: boolean;
551
- ariaLabel?: string;
552
- className?: string;
553
- "data-testid"?: string;
554
- }
555
- declare const Skeleton: React__default.FC<SkeletonProps>;
556
-
557
- interface LogoProps {
558
- className?: string;
559
- showWordmark?: boolean;
560
- }
561
- declare const Logo: ({ className, showWordmark }: LogoProps) => react_jsx_runtime.JSX.Element;
562
-
563
- interface PopoverProps extends Omit<PopoverProps$1, "children"> {
564
- showArrow?: boolean;
565
- children: React__default.ReactNode;
566
- }
567
- declare function Popover({ children, showArrow, className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
568
-
569
- interface LoaderProps {
570
- /**
571
- * Optional className for custom styling
572
- */
573
- className?: string;
574
- /**
575
- * Size of the loader in pixels
576
- * @default 24
577
- */
578
- size?: number;
579
- /**
580
- * Color of the loader
581
- * @default "text-action-primary"
582
- */
583
- color?: string;
584
- }
585
- declare const Loader: ({ className, size, color }: LoaderProps) => react_jsx_runtime.JSX.Element;
586
-
587
- declare const sizeVariants: {
588
- readonly xs: "text-lg font-semibold";
589
- readonly sm: "text-xl font-semibold";
590
- readonly md: "text-2xl font-semibold";
591
- readonly lg: "text-3xl font-semibold";
592
- readonly xl: "text-4xl font-semibold";
593
- };
594
- declare const heightVariants: {
595
- readonly page: "h-16 leading-[62px]";
596
- };
597
- type HeadingSize = keyof typeof sizeVariants;
598
- type HeadingHeight = keyof typeof heightVariants;
599
- interface HeadingProps {
600
- tag?: keyof JSX.IntrinsicElements;
601
- size?: HeadingSize;
602
- height?: HeadingHeight;
603
- className?: string;
604
- children?: React__default.ReactNode;
605
- }
606
- declare function Heading({ tag: Tag, size, height, className, children }: HeadingProps): react_jsx_runtime.JSX.Element;
607
-
608
- interface CopyToClipboardProps {
609
- /**
610
- * The value to copy to clipboard. If not provided, will use the text content of children
611
- */
612
- value?: string;
613
- /**
614
- * The content to display
615
- */
616
- children: React__default.ReactNode;
617
- /**
618
- * Optional className for the container
619
- */
620
- className?: string;
621
- /**
622
- * Size of the copy button, defaults to "sm"
623
- */
624
- size?: "sm" | "md";
625
- }
626
- declare function CopyToClipboard({ value, children, className, size }: CopyToClipboardProps): react_jsx_runtime.JSX.Element;
627
-
628
- interface SwitchProps extends Omit<SwitchProps$1, "children"> {
629
- children: React__default.ReactNode;
630
- }
631
- declare function Switch({ children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
632
-
633
- interface ProgressBarProps extends ProgressBarProps$1 {
634
- label?: string;
635
- rightLabel?: string;
636
- progressWidth?: number;
637
- hideLabels?: boolean;
638
- }
639
- declare function ProgressBar({ label, rightLabel, progressWidth, hideLabels, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
640
-
641
- interface RangeCalendarProps<T extends DateValue> extends Omit<RangeCalendarProps$1<T>, "visibleDuration"> {
642
- errorMessage?: string;
643
- }
644
- declare function RangeCalendar<T extends DateValue>({ errorMessage, ...props }: RangeCalendarProps<T>): react_jsx_runtime.JSX.Element;
645
-
646
- interface Place {
647
- id: string;
648
- place_name: string;
649
- place_type: string[];
650
- center: [number, number];
651
- }
652
- type SearchType = "country" | "region" | "district" | "place" | "locality" | "neighborhood" | "address" | "street";
653
- interface PlaceSearchProps {
654
- label?: string;
655
- selectedKey?: Key | null;
656
- defaultSelectedKey?: Key | null;
657
- onSelectionChange?: (key: Key | null) => void;
658
- placeholder?: string;
659
- errorMessage?: string | ((validation: ValidationResult) => string);
660
- description?: string;
661
- size?: "sm" | "md" | "lg" | "xl";
662
- tooltip?: string;
663
- isRequired?: boolean;
664
- isDisabled?: boolean;
665
- showErrors?: boolean;
666
- autoFocus?: boolean;
667
- onSelect: (place: Place) => void;
668
- searchTypes?: SearchType[];
669
- defaultFilter?: (textValue: string, inputValue: string) => boolean;
670
- validationResult?: ValidationResult;
671
- countryRestrictions?: string[];
672
- proximity?: "ip" | [number, number];
673
- }
674
- declare function PlaceSearch({ label, selectedKey, defaultSelectedKey, onSelectionChange, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, showErrors, autoFocus, onSelect, searchTypes, defaultFilter, validationResult, countryRestrictions, proximity, }: PlaceSearchProps): react_jsx_runtime.JSX.Element;
675
-
676
- interface ExtendedListBoxItemProps extends Omit<ListBoxItemProps, "className"> {
677
- size?: "sm" | "md" | "lg" | "xl";
678
- className?: string;
679
- }
680
- declare function ListBoxItem({ size, className, ...props }: ExtendedListBoxItemProps): react_jsx_runtime.JSX.Element;
681
-
682
- declare function Form(props: FormProps): react_jsx_runtime.JSX.Element;
683
-
684
- interface DateRangePickerProps<T extends DateValue> extends DateRangePickerProps$1<T> {
685
- label?: string;
686
- description?: string;
687
- errorMessage?: string | ((validation: ValidationResult) => string);
688
- }
689
- declare function DateRangePicker<T extends DateValue>({ label, description, errorMessage, ...props }: DateRangePickerProps<T>): react_jsx_runtime.JSX.Element;
690
-
691
- declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
692
-
693
- interface CalendarProps<T extends DateValue> extends Omit<CalendarProps$1<T>, "visibleDuration"> {
694
- errorMessage?: string;
695
- }
696
- declare function Calendar<T extends DateValue>({ errorMessage, ...props }: CalendarProps<T>): react_jsx_runtime.JSX.Element;
697
-
698
- interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
699
- children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
700
- }
701
- declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
702
-
703
- interface Item {
704
- id: string;
705
- name: string;
706
- }
707
- interface Section {
708
- name: string;
709
- items: Item[];
710
- }
711
- type RequestMethod = "GET" | "POST";
712
- interface BaseRequestConfig {
713
- url: string;
714
- headers?: Record<string, string>;
715
- transformResponse: (data: unknown) => Item[];
716
- }
717
- interface RestRequestConfig extends BaseRequestConfig {
718
- requestType: "REST";
719
- method?: RequestMethod;
720
- queryKey?: string;
721
- extraParams?: Record<string, string>;
722
- shouldLoad?: (filterText: string) => boolean;
723
- }
724
- interface GraphQLRequestConfig extends BaseRequestConfig {
725
- requestType: "GraphQL";
726
- graphqlQuery: string;
727
- variableKey?: string;
728
- responsePath?: string;
729
- shouldLoad?: (filterText: string) => boolean;
730
- }
731
- type AutocompleteRequestConfig = RestRequestConfig | GraphQLRequestConfig;
732
- interface AutocompleteProps {
733
- label?: string;
734
- staticItems?: Item[];
735
- sections?: Section[];
736
- selectedKey?: Key | null;
737
- defaultSelectedKey?: Key | null;
738
- onSelectionChange?: (key: Key | null) => void;
739
- requestConfig?: AutocompleteRequestConfig;
740
- defaultFilter?: (textValue: string, inputValue: string) => boolean;
741
- placeholder?: string;
742
- renderItem?: (item: Item) => React__default.ReactNode;
743
- renderLeftIcon?: (isLoading: boolean) => React__default.ReactNode;
744
- errorMessage?: string | ((validation: ValidationResult) => string);
745
- description?: string;
746
- size?: "sm" | "md" | "lg" | "xl";
747
- tooltip?: string;
748
- isRequired?: boolean;
749
- isDisabled?: boolean;
750
- validationResult?: ValidationResult;
751
- showErrors?: boolean;
752
- autoFocus?: boolean;
753
- onLoadError?: (error: Error) => void;
754
- }
755
- declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, errorMessage, size, tooltip, isRequired, isDisabled, renderLeftIcon, autoFocus, onLoadError, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
756
-
757
- export { Autocomplete, type BaseInputProps, type BaseProps, Button, Calendar, Checkbox, ClearButton, CopyToClipboard, DateField, DateRangePicker, Description, type DescriptionProps, Dialog, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, Form, Heading, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Label, type LabelProps, ListBox, ListBoxItem, Loader, Logo, NumberField, PlaceSearch, Popover, ProgressBar, RangeCalendar, Select, Skeleton, Switch, TextArea, TextField, TextLink, TimeField, ToggleButton, Tooltip, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, useInputFocus };
836
+ export { Autocomplete, type BaseInputProps, type BaseProps, Button, Calendar, Card, Checkbox, ClearButton, CopyToClipboard, DateField, DateRangePicker, Description, type DescriptionProps, Dialog, DialogHeader, Drawer, ErrorBoundary, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, Form, Heading, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Label, type LabelProps, ListBox, ListBoxItem, Loader, Logo, NumberField, PlaceSearch, Popover, ProgressBar, RangeCalendar, Select, Skeleton, Switch, Tab, TabList, TabPanel, Tabs, TextArea, TextField, TextLink, TimeField, ToggleButton, Tooltip, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, useInputFocus };