@economic/taco 0.0.1-alpha.1543 → 0.0.2-alpha.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.
Files changed (108) hide show
  1. package/dist/components/Backdrop/Backdrop.d.ts +3 -0
  2. package/dist/components/Button/Button.d.ts +39 -1
  3. package/dist/components/Button/util.d.ts +2 -0
  4. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  5. package/dist/components/Combobox/useCombobox.d.ts +3 -3
  6. package/dist/components/Dialog/Context.d.ts +1 -0
  7. package/dist/components/Dialog/Dialog.d.ts +14 -12
  8. package/dist/components/Hanger/Hanger.d.ts +4 -9
  9. package/dist/components/IconButton/IconButton.d.ts +38 -1
  10. package/dist/components/Listbox/Listbox.d.ts +0 -1
  11. package/dist/components/Navigation/Navigation.d.ts +4 -4
  12. package/dist/components/Popover/Popover.d.ts +5 -9
  13. package/dist/components/RadioGroup/RadioGroup.d.ts +5 -5
  14. package/dist/components/Select/Select.d.ts +0 -1
  15. package/dist/components/Select/useSelect.d.ts +5 -4
  16. package/dist/components/Table/Table.storyexample.d.ts +1 -1
  17. package/dist/components/Table/components/PaginatedTable.d.ts +2 -2
  18. package/dist/components/Table/components/Table.d.ts +2 -2
  19. package/dist/components/Table/components/WindowedTable.d.ts +2 -2
  20. package/dist/components/Table/types.d.ts +2 -2
  21. package/dist/components/Tabs/Tabs.d.ts +2 -2
  22. package/dist/components/Tooltip/Tooltip.d.ts +11 -1
  23. package/dist/components/Treeview/Treeview.d.ts +2 -2
  24. package/dist/esm/index.css +75 -170
  25. package/dist/esm/src/components/Backdrop/Backdrop.js +12 -0
  26. package/dist/esm/src/components/Backdrop/Backdrop.js.map +1 -0
  27. package/dist/esm/src/components/Button/Button.js +6 -9
  28. package/dist/esm/src/components/Button/Button.js.map +1 -1
  29. package/dist/esm/src/components/Button/util.js +42 -1
  30. package/dist/esm/src/components/Button/util.js.map +1 -1
  31. package/dist/esm/src/components/Calendar/Calendar.js +1 -1
  32. package/dist/esm/src/components/Checkbox/Checkbox.js +9 -1
  33. package/dist/esm/src/components/Checkbox/Checkbox.js.map +1 -1
  34. package/dist/esm/src/components/Combobox/Combobox.js +28 -24
  35. package/dist/esm/src/components/Combobox/Combobox.js.map +1 -1
  36. package/dist/esm/src/components/Combobox/useCombobox.js +32 -38
  37. package/dist/esm/src/components/Combobox/useCombobox.js.map +1 -1
  38. package/dist/esm/src/components/Datepicker/Datepicker.js +2 -2
  39. package/dist/esm/src/components/Dialog/Context.js +1 -0
  40. package/dist/esm/src/components/Dialog/Context.js.map +1 -1
  41. package/dist/esm/src/components/Dialog/Dialog.js +5 -4
  42. package/dist/esm/src/components/Dialog/Dialog.js.map +1 -1
  43. package/dist/esm/src/components/Dialog/components/Content.js +13 -13
  44. package/dist/esm/src/components/Dialog/components/Content.js.map +1 -1
  45. package/dist/esm/src/components/Dialog/components/Drawer.js +2 -1
  46. package/dist/esm/src/components/Dialog/components/Drawer.js.map +1 -1
  47. package/dist/esm/src/components/Dialog/components/Extra.js +2 -1
  48. package/dist/esm/src/components/Dialog/components/Extra.js.map +1 -1
  49. package/dist/esm/src/components/Dialog/components/Trigger.js +2 -1
  50. package/dist/esm/src/components/Dialog/components/Trigger.js.map +1 -1
  51. package/dist/esm/src/components/Hanger/Hanger.js +12 -9
  52. package/dist/esm/src/components/Hanger/Hanger.js.map +1 -1
  53. package/dist/esm/src/components/IconButton/IconButton.js +9 -11
  54. package/dist/esm/src/components/IconButton/IconButton.js.map +1 -1
  55. package/dist/esm/src/components/Input/util.js +6 -6
  56. package/dist/esm/src/components/Input/util.js.map +1 -1
  57. package/dist/esm/src/components/Listbox/Listbox.js +21 -5
  58. package/dist/esm/src/components/Listbox/Listbox.js.map +1 -1
  59. package/dist/esm/src/components/Listbox/ScrollableList.js +7 -5
  60. package/dist/esm/src/components/Listbox/ScrollableList.js.map +1 -1
  61. package/dist/esm/src/components/Navigation/Navigation.js +5 -4
  62. package/dist/esm/src/components/Navigation/Navigation.js.map +1 -1
  63. package/dist/esm/src/components/Pagination/PageNumbers.js +1 -1
  64. package/dist/esm/src/components/Pagination/Pagination.js +2 -1
  65. package/dist/esm/src/components/Pagination/Pagination.js.map +1 -1
  66. package/dist/esm/src/components/Popover/Popover.js +9 -6
  67. package/dist/esm/src/components/Popover/Popover.js.map +1 -1
  68. package/dist/esm/src/components/RadioGroup/RadioGroup.js +17 -16
  69. package/dist/esm/src/components/RadioGroup/RadioGroup.js.map +1 -1
  70. package/dist/esm/src/components/SearchInput/SearchInput.js +8 -7
  71. package/dist/esm/src/components/SearchInput/SearchInput.js.map +1 -1
  72. package/dist/esm/src/components/Select/Select.js +27 -25
  73. package/dist/esm/src/components/Select/Select.js.map +1 -1
  74. package/dist/esm/src/components/Select/useSelect.js +77 -37
  75. package/dist/esm/src/components/Select/useSelect.js.map +1 -1
  76. package/dist/esm/src/components/Table/components/PaginatedTable.js.map +1 -1
  77. package/dist/esm/src/components/Table/components/Table.js.map +1 -1
  78. package/dist/esm/src/components/Table/components/WindowedTable.js.map +1 -1
  79. package/dist/esm/src/components/Table/hooks/plugins/useRowActions.js +11 -5
  80. package/dist/esm/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
  81. package/dist/esm/src/components/Table/hooks/plugins/useRowSelect.js +3 -3
  82. package/dist/esm/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
  83. package/dist/esm/src/components/Table/util/renderColumn.js +4 -3
  84. package/dist/esm/src/components/Table/util/renderColumn.js.map +1 -1
  85. package/dist/esm/src/components/Table/util/renderRow.js +4 -3
  86. package/dist/esm/src/components/Table/util/renderRow.js.map +1 -1
  87. package/dist/esm/src/components/Tabs/Tabs.js.map +1 -1
  88. package/dist/esm/src/components/Toast/Toast.js +1 -1
  89. package/dist/esm/src/components/Tooltip/Tooltip.js +11 -10
  90. package/dist/esm/src/components/Tooltip/Tooltip.js.map +1 -1
  91. package/dist/esm/src/components/Tour/Tour.js +2 -2
  92. package/dist/esm/src/components/Treeview/Treeview.js.map +1 -1
  93. package/dist/esm/src/index.js +8 -7
  94. package/dist/esm/src/index.js.map +1 -1
  95. package/dist/esm/src/primitives/Button.js +2 -12
  96. package/dist/esm/src/primitives/Button.js.map +1 -1
  97. package/dist/esm/src/utils/mergeRefs.js +14 -0
  98. package/dist/esm/src/utils/mergeRefs.js.map +1 -0
  99. package/dist/index.css +75 -170
  100. package/dist/index.d.ts +1 -0
  101. package/dist/primitives/Button.d.ts +0 -4
  102. package/dist/taco.cjs.development.js +1688 -1561
  103. package/dist/taco.cjs.development.js.map +1 -1
  104. package/dist/taco.cjs.production.min.js +1 -1
  105. package/dist/taco.cjs.production.min.js.map +1 -1
  106. package/dist/utils/mergeRefs.d.ts +2 -0
  107. package/package.json +4 -4
  108. package/types.json +7297 -0
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare type BackdropProps = React.HTMLAttributes<HTMLDivElement>;
3
+ export declare const Backdrop: (props: BackdropProps) => JSX.Element;
@@ -1,21 +1,59 @@
1
1
  import * as React from 'react';
2
2
  import { Appearance } from '../../types';
3
3
  import * as ButtonPrimitive from '../../primitives/Button';
4
+ import { HangerProps } from '../Hanger/Hanger';
5
+ import { DialogProps } from '../Dialog/Dialog';
6
+ import { PopoverProps } from '../Popover/Popover';
4
7
  import './Button.css';
5
8
  export declare type ButtonProps = ButtonPrimitive.ButtonProps & {
6
9
  /** Appearance will change the style of the button */
7
10
  appearance?: Appearance;
11
+ /**
12
+ * Dialog component associated with the button, clicking the button will open the dialog.
13
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
14
+ * the button should be only to open the associated dialog when clicked.
15
+ */
16
+ dialog?: React.ReactElement<DialogProps>;
8
17
  /** If fluid, button expands to the width of it's container */
9
18
  fluid?: boolean;
19
+ /** Hanger component associated with the button. */
20
+ hanger?: React.ReactElement<HangerProps>;
21
+ /**
22
+ * Popover component associated with the button, clicking the button will open the popover.
23
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
24
+ * the button should be only to open the associated popover when clicked.
25
+ */
26
+ popover?: React.ReactElement<PopoverProps>;
27
+ /** A tooltip to show when hovering over the button */
28
+ tooltip?: string;
10
29
  };
11
30
  export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement | HTMLAnchorElement> & {
12
31
  children: React.ReactNode;
13
32
  href?: string | undefined;
14
33
  target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
15
- tooltip?: string | undefined;
16
34
  } & {
17
35
  /** Appearance will change the style of the button */
18
36
  appearance?: "default" | "primary" | "danger" | "ghost" | "discrete" | undefined;
37
+ /**
38
+ * Dialog component associated with the button, clicking the button will open the dialog.
39
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
40
+ * the button should be only to open the associated dialog when clicked.
41
+ */
42
+ dialog?: React.ReactElement<DialogProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
19
43
  /** If fluid, button expands to the width of it's container */
20
44
  fluid?: boolean | undefined;
45
+ /** Hanger component associated with the button. */
46
+ hanger?: React.ReactElement<{
47
+ children?: React.ReactNode;
48
+ }, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
49
+ /**
50
+ * Popover component associated with the button, clicking the button will open the popover.
51
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
52
+ * the button should be only to open the associated popover when clicked.
53
+ */
54
+ popover?: React.ReactElement<{
55
+ children?: React.ReactNode;
56
+ }, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
57
+ /** A tooltip to show when hovering over the button */
58
+ tooltip?: string | undefined;
21
59
  } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -1,3 +1,5 @@
1
+ import React from 'react';
1
2
  import { Appearance } from '../../types';
2
3
  export declare const getButtonClasses: () => string;
3
4
  export declare const getAppearanceClasses: (value: Appearance | undefined, icon?: boolean) => string;
5
+ export declare const createButton: (props: any, className: string, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
@@ -19,7 +19,7 @@ interface UncontrolledCheckboxProps extends CheckboxBaseProps {
19
19
  interface ControlledCheckboxProps extends CheckboxBaseProps {
20
20
  defaultChecked?: never;
21
21
  checked: boolean;
22
- onChange: (checked: boolean | 'indeterminate') => void;
22
+ onChange: (checked: boolean) => void;
23
23
  }
24
24
  export declare type CheckboxProps = UncontrolledCheckboxProps | ControlledCheckboxProps;
25
25
  export declare const Checkbox: React.ForwardRefExoticComponent<(UncontrolledCheckboxProps & React.RefAttributes<HTMLButtonElement>) | (ControlledCheckboxProps & React.RefAttributes<HTMLButtonElement>)>;
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PopoverHTMLProps, PopoverStateReturn } from 'reakit/Popover';
3
2
  import { ComboboxProps } from './Combobox';
4
3
  import { ScrollableListPropsWithRef } from '../Listbox/ScrollableList';
5
4
  declare type useCombobox = React.HTMLAttributes<HTMLDivElement> & {
@@ -8,8 +7,9 @@ declare type useCombobox = React.HTMLAttributes<HTMLDivElement> & {
8
7
  ref: React.RefObject<HTMLInputElement>;
9
8
  };
10
9
  list: ScrollableListPropsWithRef;
11
- popover: PopoverStateReturn & {
12
- container: PopoverHTMLProps;
10
+ popover: {
11
+ open: boolean;
12
+ onOpenChange: (open: boolean) => void;
13
13
  };
14
14
  };
15
15
  export declare const useCombobox: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, data: unfilteredData, defaultValue, disabled, id: nativeId, inline, loading: __, onChange, onClick, onKeyDown, readOnly, value, ...props }: ComboboxProps, ref: React.Ref<HTMLInputElement>) => useCombobox;
@@ -13,6 +13,7 @@ export declare type DialogContext = {
13
13
  close: () => void;
14
14
  onClose?: () => void;
15
15
  props: {};
16
+ ref: React.Ref<HTMLElement>;
16
17
  size: DialogSize;
17
18
  };
18
19
  export declare const DialogContext: React.Context<DialogContext>;
@@ -1,6 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import './Dialog.css';
3
+ import { DialogTriggerProps } from './components/Trigger';
4
+ import { DialogContentProps, DialogTitleProps, DialogFooterProps, DialogCloseProps } from './components/Content';
5
+ import { DialogDrawerProps } from './components/Drawer';
6
+ import { DialogExtraProps } from './components/Extra';
3
7
  import { DialogSize } from './types';
8
+ export { DialogContentProps, DialogTitleProps, DialogFooterProps, DialogCloseProps };
4
9
  export declare type DialogTexts = {
5
10
  /**
6
11
  * Aria-label for close icon button in dialog.
@@ -20,16 +25,13 @@ export declare type DialogProps = {
20
25
  /** Size of the dialog. This is the recommended way to set a size for dialog component. */
21
26
  size?: DialogSize;
22
27
  };
23
- export declare const Dialog: {
24
- (props: DialogProps): JSX.Element;
25
- Trigger: React.ForwardRefExoticComponent<import("./components/Trigger").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
26
- Content: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
27
- 'aria-describedby': string;
28
- children: Pick<React.ReactNode, never> | ((props: import("./components/Content").DialogContentRenderProps) => JSX.Element);
29
- } & React.RefAttributes<HTMLDivElement>>;
30
- Title: React.ForwardRefExoticComponent<import("./components/Content").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
31
- Footer: React.ForwardRefExoticComponent<import("./components/Content").DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
32
- Extra: React.ForwardRefExoticComponent<import("./components/Extra").DialogExtraProps & React.RefAttributes<HTMLDivElement>>;
33
- Drawer: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
34
- Close: React.ForwardRefExoticComponent<import("./components/Content").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
28
+ export declare type ForwardedDialogWithStatics = React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLElement>> & {
29
+ Trigger: React.ForwardRefExoticComponent<DialogTriggerProps>;
30
+ Content: React.ForwardRefExoticComponent<DialogContentProps>;
31
+ Title: React.ForwardRefExoticComponent<DialogTitleProps>;
32
+ Footer: React.ForwardRefExoticComponent<DialogFooterProps>;
33
+ Extra: React.ForwardRefExoticComponent<DialogExtraProps>;
34
+ Drawer: React.ForwardRefExoticComponent<DialogDrawerProps>;
35
+ Close: React.ForwardRefExoticComponent<DialogCloseProps>;
35
36
  };
37
+ export declare const Dialog: ForwardedDialogWithStatics;
@@ -14,13 +14,8 @@ export declare type HangerContentProps = React.HTMLAttributes<HTMLDivElement> &
14
14
  placement?: Placement;
15
15
  };
16
16
  export declare type HangerProps = React.PropsWithChildren<{}>;
17
- export declare const Hanger: {
18
- (props: HangerProps): JSX.Element;
19
- Anchor: React.ForwardRefExoticComponent<HangerAnchorProps & React.RefAttributes<HTMLDivElement>>;
20
- Content: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
21
- /** Handler called when user closes the hanger */
22
- onClose?: CloseHandler | undefined;
23
- /** Set the position of the Hanger relative to its achor. Default value is `bottom` */
24
- placement?: "right" | "left" | "top" | "bottom" | undefined;
25
- } & React.RefAttributes<HTMLDivElement>>;
17
+ export declare type ForwardedHangerWithStatics = React.ForwardRefExoticComponent<HangerProps & React.RefAttributes<HTMLElement>> & {
18
+ Anchor: React.ForwardRefExoticComponent<HangerAnchorProps>;
19
+ Content: React.ForwardRefExoticComponent<HangerContentProps>;
26
20
  };
21
+ export declare const Hanger: ForwardedHangerWithStatics;
@@ -2,25 +2,62 @@ import * as React from 'react';
2
2
  import * as ButtonPrimitive from '../../primitives/Button';
3
3
  import { IconName } from '../Icon/Icon';
4
4
  import { Appearance } from '../../types';
5
+ import { DialogProps, HangerProps, PopoverProps } from '../..';
5
6
  export declare type IconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {
6
7
  /** Appearance will change the style of the button */
7
8
  appearance?: Appearance;
9
+ /**
10
+ * Dialog component associated with the button, clicking the button will open the dialog.
11
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
12
+ * the button should be only to open the associated dialog when clicked.
13
+ */
14
+ dialog?: React.ReactElement<DialogProps>;
8
15
  /** Set which icon should be rendered within button */
9
16
  icon: IconName;
17
+ /** Hanger component associated with the button. */
18
+ hanger?: React.ReactElement<HangerProps>;
19
+ /**
20
+ * Popover component associated with the button, clicking the button will open the popover.
21
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
22
+ * the button should be only to open the associated popover when clicked.
23
+ */
24
+ popover?: React.ReactElement<PopoverProps>;
10
25
  /**
11
26
  * Set whether the button is rounded.
12
27
  * Default value is `false`
13
28
  */
14
29
  rounded?: boolean;
30
+ /** A tooltip to show when hovering over the button */
31
+ tooltip?: string;
15
32
  };
16
- export declare const IconButton: React.ForwardRefExoticComponent<Pick<ButtonPrimitive.ButtonProps, "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "target" | "tooltip"> & {
33
+ export declare const IconButton: React.ForwardRefExoticComponent<Pick<ButtonPrimitive.ButtonProps, "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "target"> & {
17
34
  /** Appearance will change the style of the button */
18
35
  appearance?: "default" | "primary" | "danger" | "ghost" | "discrete" | undefined;
36
+ /**
37
+ * Dialog component associated with the button, clicking the button will open the dialog.
38
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
39
+ * the button should be only to open the associated dialog when clicked.
40
+ */
41
+ dialog?: React.ReactElement<DialogProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
19
42
  /** Set which icon should be rendered within button */
20
43
  icon: IconName;
44
+ /** Hanger component associated with the button. */
45
+ hanger?: React.ReactElement<{
46
+ children?: React.ReactNode;
47
+ }, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
48
+ /**
49
+ * Popover component associated with the button, clicking the button will open the popover.
50
+ * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
51
+ * the button should be only to open the associated popover when clicked.
52
+ */
53
+ popover?: React.ReactElement<{
54
+ children?: React.ReactNode;
55
+ }, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
21
56
  /**
22
57
  * Set whether the button is rounded.
23
58
  * Default value is `false`
24
59
  */
25
60
  rounded?: boolean | undefined;
61
+ /** A tooltip to show when hovering over the button */
62
+ tooltip?: string | undefined;
26
63
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { ScrollableListItemValue, ScrollableListItem } from './ScrollableList';
3
- import './Listbox.css';
4
3
  import { State } from '../../types';
5
4
  export declare type ListboxItem = ScrollableListItem;
6
5
  export declare type ListboxValue = ScrollableListItemValue;
@@ -26,12 +26,12 @@ export declare type NavigationItemProps = Omit<TreeviewItemProps, 'prefix'> & {
26
26
  export declare type NavigationPanelProps = React.HTMLAttributes<HTMLDivElement>;
27
27
  export declare type NavigationMenuGroupProps = TreeviewGroupProps;
28
28
  export declare type NavigationMenuProps = React.PropsWithChildren<TreeviewProps>;
29
- export declare type FowardedNavigationMenuWithStatics = React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLDivElement>> & {
29
+ export declare type ForwardedNavigationMenuWithStatics = React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLDivElement>> & {
30
30
  /** Expandable region reprezenting a group of related links */
31
31
  Group: React.ForwardRefExoticComponent<NavigationMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
32
32
  };
33
33
  export declare type NavigationProps = React.HTMLAttributes<HTMLDivElement>;
34
- export declare type FowardedNavigationWithStatics = React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>> & {
34
+ export declare type ForwardedNavigationWithStatics = React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>> & {
35
35
  /** Navigation link */
36
36
  Item: React.ForwardRefExoticComponent<NavigationItemProps & React.RefAttributes<HTMLAnchorElement>>;
37
37
  /**
@@ -39,7 +39,7 @@ export declare type FowardedNavigationWithStatics = React.ForwardRefExoticCompon
39
39
  * Should be used as a direct child of Navigation component, e.g. `Navigation.Menu`.
40
40
  * Should have the menu groups as a direct child, e.g. `Navigation.Menu.Group`
41
41
  */
42
- Menu: FowardedNavigationMenuWithStatics;
42
+ Menu: ForwardedNavigationMenuWithStatics;
43
43
  /**
44
44
  * Isolated container within the Navigation.
45
45
  * This can be used to create a region in the Navigation that is usually not scrollable, nor expandable,
@@ -47,4 +47,4 @@ export declare type FowardedNavigationWithStatics = React.ForwardRefExoticCompon
47
47
  */
48
48
  Panel: React.ForwardRefExoticComponent<NavigationPanelProps & React.RefAttributes<HTMLDivElement>>;
49
49
  };
50
- export declare const Navigation: FowardedNavigationWithStatics;
50
+ export declare const Navigation: ForwardedNavigationWithStatics;
@@ -11,13 +11,9 @@ export declare type PopoverContentProps = Omit<React.HTMLAttributes<HTMLDivEleme
11
11
  };
12
12
  export declare type PopoverCloseProps = React.HTMLAttributes<HTMLButtonElement>;
13
13
  export declare type PopoverProps = React.PropsWithChildren<{}>;
14
- export declare const Popover: {
15
- (props: PopoverProps): JSX.Element;
16
- Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
17
- Content: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
18
- children: string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | Iterable<React.ReactNode> | React.ReactPortal | ((props: PopoverContentRenderProps) => React.ReactNode) | null | undefined;
19
- /** Set the position of the Popover relative to its trigger. Default value is `bottom` */
20
- placement?: "right" | "left" | "top" | "bottom" | undefined;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
14
+ export declare type ForwardedPopoverWithStatics = React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLElement>> & {
15
+ Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps>;
16
+ Content: React.ForwardRefExoticComponent<PopoverContentProps>;
17
+ Close: React.ForwardRefExoticComponent<PopoverCloseProps>;
23
18
  };
19
+ export declare const Popover: ForwardedPopoverWithStatics;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { Orientation } from '../../types';
3
- export declare type RadioGroupItemValue = string | number | boolean | undefined;
3
+ export declare type RadioGroupItemValue = string | number | boolean | null;
4
4
  export declare const getRadioGroupItemValueAsString: (value: RadioGroupItemValue) => string;
5
- export declare const findByValue: (values: RadioGroupItemValue[], valueAsString: string) => RadioGroupItemValue | undefined;
5
+ export declare const findByValue: (values: RadioGroupItemValue[], valueAsString: string) => RadioGroupItemValue;
6
6
  export declare type RadioGroupItemProps<T = HTMLButtonElement> = Omit<React.ButtonHTMLAttributes<T>, 'children' | 'onSelect' | 'value'> & {
7
7
  /** Label for the radio group item */
8
8
  children: React.ReactNode;
@@ -33,10 +33,10 @@ interface ControlledRadioGroupProps extends RadioGroupBaseProps {
33
33
  /** Handler called when the value changes */
34
34
  onChange: (value: RadioGroupItemValue) => void;
35
35
  /** The current value (controlled) */
36
- value: RadioGroupItemValue;
36
+ value?: RadioGroupItemValue;
37
37
  }
38
38
  export declare type RadioGroupProps = UncontrolledRadioGroupProps | ControlledRadioGroupProps;
39
- export declare type FowardedRadioGroupWithStatics = React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>> & {
39
+ export declare type ForwardedRadioGroupWithStatics = React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>> & {
40
40
  /** Item component rendered in a `RadioGroup` component */
41
41
  Item: React.ForwardRefExoticComponent<RadioGroupItemProps>;
42
42
  };
@@ -47,5 +47,5 @@ export declare const useRadioGroup: (props: RadioGroupProps) => {
47
47
  };
48
48
  props: any;
49
49
  };
50
- export declare const RadioGroup: FowardedRadioGroupWithStatics;
50
+ export declare const RadioGroup: ForwardedRadioGroupWithStatics;
51
51
  export {};
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ListboxProps } from '../Listbox/Listbox';
3
3
  import { ComboboxProps } from '../Combobox/Combobox';
4
- import './Select.css';
5
4
  export declare type SelectTexts = {
6
5
  /**
7
6
  * The text displayed when all options are selected when multiselect mode in on.
@@ -1,15 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { SelectProps } from './Select';
3
3
  import { ListboxProps } from '../Listbox/Listbox';
4
- import { PopoverStateReturn, PopoverHTMLProps } from 'reakit/Popover';
5
4
  declare type useSelect = React.HtmlHTMLAttributes<HTMLDivElement> & {
6
5
  button: React.ButtonHTMLAttributes<HTMLButtonElement>;
7
6
  listbox: ListboxProps;
8
- popover: PopoverStateReturn & {
9
- container: PopoverHTMLProps;
7
+ input: any;
8
+ popover: {
9
+ open: boolean;
10
+ onOpenChange: (open: boolean) => void;
10
11
  };
11
12
  text: string | JSX.Element;
12
13
  more?: number;
13
14
  };
14
- export declare const useSelect: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, data, disabled, emptyValue, id: nativeId, multiselect, onClick, readOnly, value, ...otherProps }: SelectProps, ref: React.Ref<HTMLInputElement>) => useSelect;
15
+ export declare const useSelect: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, data, defaultValue, disabled, emptyValue, id: nativeId, multiselect, onClick, onChange, readOnly, value, ...otherProps }: SelectProps, ref: React.Ref<HTMLInputElement>) => useSelect;
15
16
  export {};
@@ -1,6 +1,6 @@
1
1
  export default function LocationsTable({ component: Table, allowNew, data: initialData, onRowSave, onReset, showAddress, ...props }: {
2
2
  [x: string]: any;
3
- component?: import("./types").FowardedGenericTableWithStatics | undefined;
3
+ component?: import("./types").ForwardedGenericTableWithStatics | undefined;
4
4
  allowNew?: boolean | undefined;
5
5
  data: any;
6
6
  onRowSave?: (() => undefined) | undefined;
@@ -1,2 +1,2 @@
1
- import { FowardedGenericTableWithStatics } from '../types';
2
- export declare const PaginatedTable: FowardedGenericTableWithStatics;
1
+ import { ForwardedGenericTableWithStatics } from '../types';
2
+ export declare const PaginatedTable: ForwardedGenericTableWithStatics;
@@ -1,2 +1,2 @@
1
- import { FowardedGenericTableWithStatics } from '../types';
2
- export declare const Table: FowardedGenericTableWithStatics;
1
+ import { ForwardedGenericTableWithStatics } from '../types';
2
+ export declare const Table: ForwardedGenericTableWithStatics;
@@ -1,2 +1,2 @@
1
- import { FowardedGenericTableWithStatics } from '../types';
2
- export declare const WindowedTable: FowardedGenericTableWithStatics;
1
+ import { ForwardedGenericTableWithStatics } from '../types';
2
+ export declare const WindowedTable: ForwardedGenericTableWithStatics;
@@ -136,7 +136,7 @@ export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
136
136
  autoFocus?: boolean;
137
137
  /**
138
138
  * Children should be one of the Table's components.
139
- * Read about `FowardedGenericTableWithStatics` for more details.
139
+ * Read about `ForwardedGenericTableWithStatics` for more details.
140
140
  * *Note* that there can also be children that are rendered conditionally
141
141
  */
142
142
  children: TableChildren<TRow>;
@@ -229,7 +229,7 @@ export declare type TableRef = HTMLDivElement & {
229
229
  toggleSortBy: any;
230
230
  };
231
231
  };
232
- export declare type FowardedGenericTableWithStatics = React.ForwardRefExoticComponent<TableProps<any> & React.RefAttributes<HTMLDivElement>> & {
232
+ export declare type ForwardedGenericTableWithStatics = React.ForwardRefExoticComponent<TableProps<any> & React.RefAttributes<HTMLDivElement>> & {
233
233
  /** Represents a column in your table */
234
234
  Column: <TRow>(props: TableColumnProps<TRow>) => JSX.Element | null;
235
235
  /**
@@ -44,7 +44,7 @@ export declare type TabContentProps = React.HTMLAttributes<HTMLDivElement> & {
44
44
  */
45
45
  id: string;
46
46
  };
47
- export declare type FowardedTabsWithStatics = React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>> & {
47
+ export declare type ForwardedTabsWithStatics = React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>> & {
48
48
  /** Tab list component containing all tab triggers, rendered in a `Tabs` group component */
49
49
  List: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
50
50
  /** Tab trigger component rendered in a `Tabs.List` component */
@@ -52,4 +52,4 @@ export declare type FowardedTabsWithStatics = React.ForwardRefExoticComponent<Ta
52
52
  /** Tab content component rendered in a `Tabs` group component */
53
53
  Content: React.ForwardRefExoticComponent<TabContentProps & React.RefAttributes<HTMLDivElement>>;
54
54
  };
55
- export declare const Tabs: FowardedTabsWithStatics;
55
+ export declare const Tabs: ForwardedTabsWithStatics;
@@ -10,4 +10,14 @@ export declare type TooltipProps = React.HTMLAttributes<HTMLDivElement> & {
10
10
  */
11
11
  placement?: 'top' | 'right' | 'bottom' | 'left';
12
12
  };
13
- export declare const Tooltip: ({ title, children, placement, ...otherProps }: TooltipProps) => JSX.Element;
13
+ export declare const Tooltip: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
14
+ /** The element which activates the tooltip when hovered. Should be a single React/HTML element */
15
+ children: React.ReactElement | any;
16
+ /** Text displayed in the tooltip */
17
+ title: string;
18
+ /**
19
+ * Placement of the tooltip relative to the reference element. Placement will be reversed if a collision occurs
20
+ * @defaultValue bottom
21
+ */
22
+ placement?: "top" | "right" | "bottom" | "left" | undefined;
23
+ } & React.RefAttributes<HTMLElement>>;
@@ -16,10 +16,10 @@ export declare type TreeviewGroupProps = Omit<React.LinkHTMLAttributes<HTMLDivEl
16
16
  title: React.ReactNode | ((expanded: boolean) => React.ReactNode);
17
17
  };
18
18
  export declare type TreeviewProps = React.HTMLAttributes<HTMLDivElement>;
19
- export declare type FowardedTreeviewWithStatics = React.ForwardRefExoticComponent<TreeviewProps & React.RefAttributes<HTMLDivElement>> & {
19
+ export declare type ForwardedTreeviewWithStatics = React.ForwardRefExoticComponent<TreeviewProps & React.RefAttributes<HTMLDivElement>> & {
20
20
  /** Navigable link */
21
21
  Item: React.ForwardRefExoticComponent<TreeviewItemProps & React.RefAttributes<HTMLAnchorElement>>;
22
22
  /** Container for a set of related links, usually expandable */
23
23
  Group: React.ForwardRefExoticComponent<TreeviewGroupProps & React.RefAttributes<HTMLDivElement>>;
24
24
  };
25
- export declare const Treeview: FowardedTreeviewWithStatics;
25
+ export declare const Treeview: ForwardedTreeviewWithStatics;