@economic/taco 1.23.1 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/components/DialogDrawer.d.ts +10 -0
- package/dist/components/Drawer/Context.d.ts +18 -0
- package/dist/components/Drawer/Drawer.d.ts +51 -0
- package/dist/components/Drawer/components/Content.d.ts +53 -0
- package/dist/components/Drawer/components/Trigger.d.ts +3 -0
- package/dist/components/Drawer/images.d.ts +1 -0
- package/dist/components/Drawer/types.d.ts +2 -0
- package/dist/components/Drawer/util.d.ts +7 -0
- package/dist/components/Header/Header.d.ts +28 -0
- package/dist/components/Header/components/AgreementSelector.d.ts +18 -0
- package/dist/components/Header/components/Agreements/AgreementDetails.d.ts +20 -0
- package/dist/components/Header/components/Button.d.ts +11 -0
- package/dist/components/Header/components/Link.d.ts +21 -0
- package/dist/components/Header/components/Logo.d.ts +3 -0
- package/dist/components/Header/components/MenuButton.d.ts +5 -0
- package/dist/components/Header/components/PrimaryNavigation.d.ts +3 -0
- package/dist/components/Header/components/SecondaryNavigation.d.ts +3 -0
- package/dist/components/Layout/Layout.d.ts +16 -0
- package/dist/components/Layout/components/Content.d.ts +3 -0
- package/dist/components/Layout/components/Context.d.ts +6 -0
- package/dist/components/Layout/components/Page.d.ts +3 -0
- package/dist/components/Layout/components/Sidebar.d.ts +3 -0
- package/dist/components/Layout/components/Top.d.ts +7 -0
- package/dist/components/Navigation2/Navigation2.d.ts +17 -0
- package/dist/components/Navigation2/components/Content.d.ts +3 -0
- package/dist/components/Navigation2/components/Group.d.ts +9 -0
- package/dist/components/Navigation2/components/Link.d.ts +24 -0
- package/dist/components/Navigation2/components/Section.d.ts +7 -0
- package/dist/components/Navigation2/components/util.d.ts +1 -0
- package/dist/components/Provider/Localization.d.ts +32 -16
- package/dist/esm/packages/taco/src/components/Button/Button.js +2 -0
- package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Button/util.js +5 -0
- package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Card/Card.js +1 -1
- package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js +3 -3
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/components/{Drawer.js → DialogDrawer.js} +4 -4
- package/dist/esm/packages/taco/src/components/Dialog/components/DialogDrawer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/Context.js +19 -0
- package/dist/esm/packages/taco/src/components/Drawer/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +102 -0
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +292 -0
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js +12 -0
- package/dist/esm/packages/taco/src/components/Drawer/components/Trigger.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/util.js +37 -0
- package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/Header.js +30 -0
- package/dist/esm/packages/taco/src/components/Header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +136 -0
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/Agreements/AgreementDetails.js +73 -0
- package/dist/esm/packages/taco/src/components/Header/components/Agreements/AgreementDetails.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/Button.js +24 -0
- package/dist/esm/packages/taco/src/components/Header/components/Button.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/Link.js +49 -0
- package/dist/esm/packages/taco/src/components/Header/components/Link.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js +73 -0
- package/dist/esm/packages/taco/src/components/Header/components/Logo.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js +17 -0
- package/dist/esm/packages/taco/src/components/Header/components/MenuButton.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js +134 -0
- package/dist/esm/packages/taco/src/components/Header/components/PrimaryNavigation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js +13 -0
- package/dist/esm/packages/taco/src/components/Header/components/SecondaryNavigation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/Layout.js +28 -0
- package/dist/esm/packages/taco/src/components/Layout/Layout.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js +13 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Context.js +9 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Context.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js +13 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Page.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js +83 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Sidebar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Top.js +15 -0
- package/dist/esm/packages/taco/src/components/Layout/components/Top.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Menu/Menu.js +2 -2
- package/dist/esm/packages/taco/src/components/Menu/components/Content.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Item.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Link.js +1 -1
- package/dist/esm/packages/taco/src/components/Menu/components/Trigger.js +1 -1
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js +31 -0
- package/dist/esm/packages/taco/src/components/Navigation2/Navigation2.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js +20 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Content.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js +46 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Group.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js +72 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Link.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js +25 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/Section.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js +12 -0
- package/dist/esm/packages/taco/src/components/Navigation2/components/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +20 -10
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +4 -1
- package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +1 -1
- package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/EditModeButton.js +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/Search.js +1 -1
- package/dist/esm/packages/taco/src/components/Table2/components/filters/FiltersButton.js +1 -1
- package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js +3 -1
- package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js.map +1 -1
- package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js +6 -0
- package/dist/esm/packages/taco/src/hooks/useIsLargeScreen.js.map +1 -0
- package/dist/esm/packages/taco/src/hooks/useMatchMedia.js +18 -0
- package/dist/esm/packages/taco/src/hooks/useMatchMedia.js.map +1 -0
- package/dist/esm/packages/taco/src/index.js +11 -1
- package/dist/esm/packages/taco/src/index.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Collection/Collection.js +3 -0
- package/dist/esm/packages/taco/src/primitives/Collection/Collection.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js +4 -1
- package/dist/esm/packages/taco/src/primitives/Collection/components/Root.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js +1 -0
- package/dist/esm/packages/taco/src/primitives/Listbox2/components/Root.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js +8 -1
- package/dist/esm/packages/taco/src/utils/hooks/useDraggable.js.map +1 -1
- package/dist/hooks/useIsLargeScreen.d.ts +1 -0
- package/dist/hooks/useMatchMedia.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/taco.cjs.development.js +1981 -737
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +3 -2
- package/tailwind.config.js +1 -0
- package/types.json +936 -182
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -26
- package/dist/components/Alert/Alert.stories.d.ts +0 -36
- package/dist/components/AlertDialog/AlertDialog.stories.d.ts +0 -10
- package/dist/components/Backdrop/Backdrop.stories.d.ts +0 -7
- package/dist/components/BadgeIcon/BadgeIcon.stories.d.ts +0 -12
- package/dist/components/Banner/Banner.stories.d.ts +0 -5
- package/dist/components/Button/Button.stories.d.ts +0 -77
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -13
- package/dist/components/Card/Card.stories.d.ts +0 -12
- package/dist/components/Datepicker/Datepicker.stories.d.ts +0 -43
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -57
- package/dist/components/Dialog/components/Drawer.d.ts +0 -10
- package/dist/components/Field/Field.stories.d.ts +0 -14
- package/dist/components/Form/Form.stories.d.ts +0 -14
- package/dist/components/Group/Group.stories.d.ts +0 -23
- package/dist/components/Hanger/Hanger.stories.d.ts +0 -11
- package/dist/components/HoverCard/HoverCard.stories.d.ts +0 -16
- package/dist/components/Icon/Icon.stories.d.ts +0 -8
- package/dist/components/IconButton/IconButton.stories.d.ts +0 -12
- package/dist/components/Input/Input.stories.d.ts +0 -17
- package/dist/components/Listbox/Listbox.stories.d.ts +0 -44
- package/dist/components/Menu/Menu.stories.d.ts +0 -73
- package/dist/components/Navigation/Navigation.stories.d.ts +0 -7
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -28
- package/dist/components/Popover/Popover.stories.d.ts +0 -29
- package/dist/components/Progress/Progress.stories.d.ts +0 -9
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +0 -49
- package/dist/components/ScrollArea/ScrollArea.stories.d.ts +0 -8
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -38
- package/dist/components/Select/Select.stories.d.ts +0 -35
- package/dist/components/Select2/Select2.stories.d.ts +0 -57
- package/dist/components/Spinner/Spinner.stories.d.ts +0 -15
- package/dist/components/Table/Table.stories.d.ts +0 -32
- package/dist/components/Table2/Table2.stories.d.ts +0 -48
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -19
- package/dist/components/Tag/Tag.stories.d.ts +0 -9
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -40
- package/dist/components/Toast/Toast.stories.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -26
- package/dist/components/Tour/Tour.stories.d.ts +0 -11
- package/dist/css/Typography.stories.d.ts +0 -6
- package/dist/esm/packages/taco/src/components/Dialog/components/Drawer.js.map +0 -1
- package/dist/hooks/useIsRefOverflowing.d.ts +0 -2
- package/dist/primitives/Collection/Collection.stories.d.ts +0 -8
- package/dist/primitives/Listbox2/Listbox2.stories.d.ts +0 -16
- package/dist/primitives/Sortable/Sortable.stories.d.ts +0 -14
@@ -6,6 +6,7 @@ import { MenuProps } from '../Menu/Menu';
|
|
6
6
|
import { DialogProps } from '../Dialog/Dialog';
|
7
7
|
import { PopoverProps } from '../Popover/Popover';
|
8
8
|
import './Button.css';
|
9
|
+
import { DrawerProps } from '../Drawer/Drawer';
|
9
10
|
export declare type ButtonProps = ButtonPrimitive.ButtonProps & {
|
10
11
|
/** Appearance will change the style of the button */
|
11
12
|
appearance?: Appearance;
|
@@ -15,6 +16,12 @@ export declare type ButtonProps = ButtonPrimitive.ButtonProps & {
|
|
15
16
|
* the button should be only to open the associated dialog when clicked.
|
16
17
|
*/
|
17
18
|
dialog?: (props: Partial<DialogProps>) => JSX.Element;
|
19
|
+
/**
|
20
|
+
* Drawer component associated with the button, clicking the button will open the drawer.
|
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 drawer when clicked.
|
23
|
+
*/
|
24
|
+
drawer?: (props: Partial<DrawerProps>) => JSX.Element;
|
18
25
|
/** If fluid, button expands to the width of it's container */
|
19
26
|
fluid?: boolean;
|
20
27
|
/** Hanger component associated with the button. */
|
@@ -43,6 +50,12 @@ export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAtt
|
|
43
50
|
* the button should be only to open the associated dialog when clicked.
|
44
51
|
*/
|
45
52
|
dialog?: ((props: Partial<DialogProps>) => JSX.Element) | undefined;
|
53
|
+
/**
|
54
|
+
* Drawer component associated with the button, clicking the button will open the drawer.
|
55
|
+
* *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
|
56
|
+
* the button should be only to open the associated drawer when clicked.
|
57
|
+
*/
|
58
|
+
drawer?: ((props: Partial<DrawerProps>) => JSX.Element) | undefined;
|
46
59
|
/** If fluid, button expands to the width of it's container */
|
47
60
|
fluid?: boolean | undefined;
|
48
61
|
/** Hanger component associated with the button. */
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import './Dialog.css';
|
3
3
|
import { DialogTriggerProps } from './components/Trigger';
|
4
4
|
import { DialogContentProps, DialogContentRenderProps, DialogContentDrawerRenderProps, DialogTitleProps, DialogFooterProps, DialogCloseProps } from './components/Content';
|
5
|
-
import { DialogDrawerProps, DialogDrawerRenderProps } from './components/
|
5
|
+
import { DialogDrawerProps, DialogDrawerRenderProps } from './components/DialogDrawer';
|
6
6
|
import { DialogExtraProps } from './components/Extra';
|
7
7
|
import { DialogSize } from './types';
|
8
8
|
export type { DialogCloseProps, DialogContentDrawerRenderProps, DialogContentProps, DialogContentRenderProps, DialogDrawerProps, DialogDrawerRenderProps, DialogFooterProps, DialogSize, DialogTitleProps, };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { DialogContext } from '../Context';
|
3
|
+
export declare type DialogDrawerRenderProps = DialogContext['drawer'];
|
4
|
+
export declare type DialogDrawerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onAnimationStart' | 'onDragStart' | 'onDragEnd' | 'onDrag'> & {
|
5
|
+
children: Omit<React.ReactNode, 'Function'> | ((props: DialogDrawerRenderProps) => React.ReactNode);
|
6
|
+
};
|
7
|
+
declare const DialogDrawer: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "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"> & {
|
8
|
+
children: Pick<React.ReactNode, never> | ((props: DialogDrawerRenderProps) => React.ReactNode);
|
9
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
10
|
+
export { DialogDrawer };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { DrawerSize, DrawerVariant } from './types';
|
3
|
+
export declare type DrawerContext = {
|
4
|
+
closeOnEscape: boolean;
|
5
|
+
showCloseButton: boolean;
|
6
|
+
onClose?: () => void;
|
7
|
+
onResize?: (delta: number) => void;
|
8
|
+
props: {};
|
9
|
+
ref: React.Ref<HTMLElement>;
|
10
|
+
size: DrawerSize;
|
11
|
+
open?: boolean;
|
12
|
+
setOpen?: (open: boolean) => void;
|
13
|
+
variant: DrawerVariant;
|
14
|
+
focusTrap?: boolean;
|
15
|
+
outlet?: HTMLElement;
|
16
|
+
};
|
17
|
+
export declare const DrawerContext: React.Context<DrawerContext>;
|
18
|
+
export declare const useCurrentDrawer: () => DrawerContext;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { DrawerInnerContentProps, DrawerFooterProps, DrawerTitleProps, DrawerContentProps, DrawerCloseProps } from './components/Content';
|
3
|
+
import { GroupProps } from '../Group/Group';
|
4
|
+
import { DialogProps } from '../Dialog/Dialog';
|
5
|
+
import { DrawerTriggerProps } from './components/Trigger';
|
6
|
+
import { DrawerSize, DrawerVariant } from './types';
|
7
|
+
export declare type DrawerTexts = {
|
8
|
+
/**
|
9
|
+
* Aria-label for close icon button in drawer.
|
10
|
+
*/
|
11
|
+
close: string;
|
12
|
+
};
|
13
|
+
export declare type DrawerProps = Omit<DialogProps, 'draggable' | 'size'> & {
|
14
|
+
children: React.ReactNode | React.ReactNode[];
|
15
|
+
/** Size of the drawer. This is the recommended way to set a size for drawer component. */
|
16
|
+
size?: DrawerSize;
|
17
|
+
/** When `true`, pressing escape will close the drawer */
|
18
|
+
closeOnEscape?: boolean;
|
19
|
+
/** Set whether the drawer is open by default or not, use when not providing a trigger */
|
20
|
+
defaultOpen?: boolean;
|
21
|
+
/** Handler called when drawer closes by user interaction */
|
22
|
+
onClose?: () => void;
|
23
|
+
/** Called when the drawer opens or closes, must be used in conjunction with open */
|
24
|
+
onChange?: (open: boolean | undefined) => void;
|
25
|
+
/** Control the open state of the drawer from outside the component */
|
26
|
+
open?: boolean;
|
27
|
+
/** A trigger to be used for the drawer, should not be set if `children` already contains a trigger */
|
28
|
+
trigger?: JSX.Element;
|
29
|
+
/** Triggers when resizing, can be throttled or debounced for better performances */
|
30
|
+
onResize?: (delta: number) => void;
|
31
|
+
/** Rendering variant of the drawer */
|
32
|
+
variant?: DrawerVariant;
|
33
|
+
/** className for children container, needed for embedded version, in cases where we might need to control children height */
|
34
|
+
className?: string;
|
35
|
+
/** When 'true' preventing focus from leaving drawer content */
|
36
|
+
focusTrap?: boolean;
|
37
|
+
/** When 'true' renders close button in topr right cornenr of drawer content */
|
38
|
+
showCloseButton?: boolean;
|
39
|
+
};
|
40
|
+
export declare type OutletProps = React.HTMLAttributes<HTMLDivElement>;
|
41
|
+
export declare type ForwardedDrawerWithStatics = React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLElement>> & {
|
42
|
+
Trigger: React.ForwardRefExoticComponent<DrawerTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
43
|
+
Content: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
44
|
+
InnerContent: React.ForwardRefExoticComponent<DrawerInnerContentProps & React.RefAttributes<HTMLDivElement>>;
|
45
|
+
Title: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
46
|
+
Footer: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
47
|
+
Close: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
48
|
+
Actions: React.ForwardRefExoticComponent<GroupProps & React.RefAttributes<HTMLDivElement>>;
|
49
|
+
Outlet: React.ForwardRefExoticComponent<OutletProps & React.RefAttributes<HTMLDivElement>>;
|
50
|
+
};
|
51
|
+
export declare const Drawer: ForwardedDrawerWithStatics;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type DrawerContentRenderProps = {
|
3
|
+
close: () => void;
|
4
|
+
};
|
5
|
+
export declare enum DrawerAnimationDefinition {
|
6
|
+
Visible = "visible",
|
7
|
+
Hidden = "hidden"
|
8
|
+
}
|
9
|
+
export declare type DrawerTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
10
|
+
export declare const Title: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
11
|
+
export declare type DrawerFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
12
|
+
export declare const Footer: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
13
|
+
export declare const Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
14
|
+
as?: "div" | "nav" | "span" | undefined;
|
15
|
+
children: React.ReactNode;
|
16
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
export declare type DrawerCloseProps = React.HTMLAttributes<HTMLButtonElement>;
|
19
|
+
export declare const Close: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
20
|
+
/**
|
21
|
+
* It is container component, needed to provide default scrolling behaviour and padding, to simplyfy usage, requested by feature devs.
|
22
|
+
* It is optional to use InnerContent component, if consumer need to implement custom behaviour or paddings for inner content,
|
23
|
+
* then it's simply enough to render children and wrap them in custom implementation.
|
24
|
+
*/
|
25
|
+
export declare type DrawerInnerContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
26
|
+
/**
|
27
|
+
* Consumer might want to use innerContent component to apply default paddings, but want to implement custom scrolling behaviour,
|
28
|
+
* default value - true
|
29
|
+
*/
|
30
|
+
isScrollable?: boolean;
|
31
|
+
};
|
32
|
+
export declare const InnerContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
33
|
+
/**
|
34
|
+
* Consumer might want to use innerContent component to apply default paddings, but want to implement custom scrolling behaviour,
|
35
|
+
* default value - true
|
36
|
+
*/
|
37
|
+
isScrollable?: boolean | undefined;
|
38
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
39
|
+
export declare type DrawerContentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
40
|
+
/** An accessible label to be announced when the side drawer is opened */
|
41
|
+
'aria-label': string;
|
42
|
+
children: Omit<React.ReactNode, 'Function'> | ((props: DrawerContentRenderProps) => JSX.Element);
|
43
|
+
};
|
44
|
+
export declare const DrawerContent: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "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" | "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"> & {
|
45
|
+
/** An accessible label to be announced when the side drawer is opened */
|
46
|
+
'aria-label': string;
|
47
|
+
children: Pick<React.ReactNode, never> | ((props: DrawerContentRenderProps) => JSX.Element);
|
48
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
49
|
+
export declare const Content: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<HTMLDivElement>, "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "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" | "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"> & {
|
50
|
+
/** An accessible label to be announced when the side drawer is opened */
|
51
|
+
'aria-label': string;
|
52
|
+
children: Pick<React.ReactNode, never> | ((props: DrawerContentRenderProps) => JSX.Element);
|
53
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const images: string[];
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DrawerSize, DrawerVariant } from './types';
|
2
|
+
export declare const getDrawerSizeClassnames: (size: DrawerSize) => string;
|
3
|
+
export declare const getDrawerPrimitiveContentClassNames: () => string;
|
4
|
+
export declare const getDrawerContentClassNames: (size: DrawerSize, variant: DrawerVariant, open: boolean) => string;
|
5
|
+
export declare const getDrawerContainerClassNames: (variant: DrawerVariant) => string;
|
6
|
+
export declare const getDrawerDragHandlerClassNames: () => string;
|
7
|
+
export declare const getBackdropClassNames: (open: boolean) => string;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Button } from './components/Button';
|
3
|
+
import { Link } from './components/Link';
|
4
|
+
import { Logo } from './components/Logo';
|
5
|
+
import { PrimaryNavigation } from './components/PrimaryNavigation';
|
6
|
+
import { SecondaryNavigation } from './components/SecondaryNavigation';
|
7
|
+
import { MenuButton } from './components/MenuButton';
|
8
|
+
import { AgreementDisplay, AgreementSelector } from './components/AgreementSelector';
|
9
|
+
export declare type HeaderTexts = {
|
10
|
+
addAgreement: string;
|
11
|
+
logout: string;
|
12
|
+
more: string;
|
13
|
+
new: string;
|
14
|
+
search: string;
|
15
|
+
};
|
16
|
+
declare type HeaderProps = React.HTMLAttributes<HTMLElement>;
|
17
|
+
export declare type ForwardedHeaderWithStatics = React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>> & {
|
18
|
+
AgreementDisplay: typeof AgreementDisplay;
|
19
|
+
AgreementSelector: typeof AgreementSelector;
|
20
|
+
Button: typeof Button;
|
21
|
+
Link: typeof Link;
|
22
|
+
Logo: typeof Logo;
|
23
|
+
PrimaryNavigation: typeof PrimaryNavigation;
|
24
|
+
SecondaryNavigation: typeof SecondaryNavigation;
|
25
|
+
MenuButton: typeof MenuButton;
|
26
|
+
};
|
27
|
+
export declare const Header: ForwardedHeaderWithStatics;
|
28
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Agreement } from './Agreements/AgreementDetails';
|
3
|
+
export declare type AgreementDisplayProps = React.HTMLAttributes<HTMLDivElement> & {
|
4
|
+
currentAgreement: Agreement;
|
5
|
+
fallbackImageSrc: string;
|
6
|
+
};
|
7
|
+
export declare function AgreementDisplay(props: AgreementDisplayProps): JSX.Element;
|
8
|
+
export declare type AgreementSelectorProps = AgreementDisplayProps & {
|
9
|
+
agreements: Agreement[];
|
10
|
+
filterAgreement: (agreement: Agreement, filter: (agreement: Agreement) => boolean) => void;
|
11
|
+
filterClientAgreement: (agreement: Agreement, filter: (agreement: Agreement) => boolean) => void;
|
12
|
+
onAddAgreement?: () => void;
|
13
|
+
onChangeAgreement: (agreement: Agreement) => void;
|
14
|
+
onLogout: () => void;
|
15
|
+
open?: boolean;
|
16
|
+
setOpen?: (open: boolean) => void;
|
17
|
+
};
|
18
|
+
export declare function AgreementSelector(props: AgreementSelectorProps): JSX.Element;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type Agreement = {
|
3
|
+
adminAgreementNumber?: number;
|
4
|
+
number: number;
|
5
|
+
name: string;
|
6
|
+
userId: string;
|
7
|
+
clients?: Agreement[];
|
8
|
+
favorite?: boolean;
|
9
|
+
imageSrc?: string;
|
10
|
+
isAdministrator?: boolean;
|
11
|
+
isDeveloper?: boolean;
|
12
|
+
statuses?: any[];
|
13
|
+
secure: boolean;
|
14
|
+
};
|
15
|
+
export declare type AgreementDetailsProps = Agreement & {
|
16
|
+
children?: JSX.Element | null;
|
17
|
+
className?: string;
|
18
|
+
fallbackImageSrc: string;
|
19
|
+
};
|
20
|
+
export declare const AgreementDetails: (props: AgreementDetailsProps) => JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IconButtonProps } from '../../IconButton/IconButton';
|
3
|
+
export declare type ButtonProps = Omit<IconButtonProps, 'appearance' | 'aria-label'> & {
|
4
|
+
as?: string;
|
5
|
+
'aria-label': string;
|
6
|
+
};
|
7
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<IconButtonProps, "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "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-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" | "dialog" | "hanger" | "icon" | "menu" | "popover" | "rounded" | "tooltip"> & {
|
8
|
+
as?: string | undefined;
|
9
|
+
'aria-label': string;
|
10
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
11
|
+
export declare const getButtonClasses: () => string;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IconName } from '../../Icon/Icon';
|
3
|
+
export declare type BaseLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
4
|
+
as?: string;
|
5
|
+
tooltip?: string;
|
6
|
+
};
|
7
|
+
interface LinkPropsWithoutIcon extends BaseLinkProps {
|
8
|
+
children: JSX.Element | string;
|
9
|
+
icon?: never;
|
10
|
+
isNew?: never;
|
11
|
+
}
|
12
|
+
interface LinkPropsWithIcon extends Omit<BaseLinkProps, 'aria-label'> {
|
13
|
+
'aria-label': string;
|
14
|
+
children?: never;
|
15
|
+
icon: IconName;
|
16
|
+
isNew?: boolean;
|
17
|
+
}
|
18
|
+
export declare type LinkProps = LinkPropsWithoutIcon | LinkPropsWithIcon;
|
19
|
+
export declare const Link: React.ForwardRefExoticComponent<(LinkPropsWithoutIcon & React.RefAttributes<HTMLAnchorElement>) | (LinkPropsWithIcon & React.RefAttributes<HTMLAnchorElement>)>;
|
20
|
+
export declare const getLinkClasses: (icon?: IconName | undefined) => string;
|
21
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Content } from './components/Content';
|
3
|
+
import { Sidebar } from './components/Sidebar';
|
4
|
+
import { Top } from './components/Top';
|
5
|
+
import { Page } from './components/Page';
|
6
|
+
export declare type LayoutProps = React.HTMLAttributes<HTMLDivElement>;
|
7
|
+
export declare const Layout: React.ForwardRefExoticComponent<LayoutProps> & {
|
8
|
+
Top: typeof Top;
|
9
|
+
Page: typeof Page;
|
10
|
+
Sidebar: typeof Sidebar;
|
11
|
+
Content: typeof Content;
|
12
|
+
};
|
13
|
+
export type { LayoutContentProps } from './components/Content';
|
14
|
+
export type { LayoutPageProps } from './components/Page';
|
15
|
+
export type { LayoutSidebarProps } from './components/Sidebar';
|
16
|
+
export type { LayoutTopProps } from './components/Top';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type LayoutTopProps = {
|
3
|
+
children: React.ReactNode | React.ReactNode[] | (({ toggleSidebar }: {
|
4
|
+
toggleSidebar: any;
|
5
|
+
}) => React.ReactNode | React.ReactNode[]);
|
6
|
+
};
|
7
|
+
export declare const Top: (props: LayoutTopProps) => any;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Group } from './components/Group';
|
3
|
+
import { Link } from './components/Link';
|
4
|
+
import { Section } from './components/Section';
|
5
|
+
import { Content } from './components/Content';
|
6
|
+
export declare type Navigation2Props = React.HTMLAttributes<HTMLUListElement>;
|
7
|
+
export declare const Navigation2: React.ForwardRefExoticComponent<Navigation2Props> & {
|
8
|
+
Group: typeof Group;
|
9
|
+
Link: typeof Link;
|
10
|
+
Section: typeof Section;
|
11
|
+
Content: typeof Content;
|
12
|
+
};
|
13
|
+
export { getNavigationLinkClasses } from './components/Link';
|
14
|
+
export type { Navigation2ContentProps } from './components/Content';
|
15
|
+
export type { Navigation2GroupProps } from './components/Group';
|
16
|
+
export type { Navigation2LinkProps } from './components/Link';
|
17
|
+
export type { Navigation2SectionProps } from './components/Section';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type Navigation2GroupProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
3
|
+
defaultExpanded?: boolean;
|
4
|
+
heading: string | JSX.Element;
|
5
|
+
};
|
6
|
+
export declare const Group: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
7
|
+
defaultExpanded?: boolean | undefined;
|
8
|
+
heading: string | JSX.Element;
|
9
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IconName } from '../../Icon/Icon';
|
3
|
+
import { MenuProps } from '../../Menu/Menu';
|
4
|
+
export declare const getNavigationLinkClasses: (isDraggedOver?: boolean) => string;
|
5
|
+
export declare type Navigation2LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
6
|
+
active?: boolean;
|
7
|
+
icon?: IconName;
|
8
|
+
/** Menu component associated with the button. */
|
9
|
+
menu?: (props: Partial<MenuProps>) => JSX.Element;
|
10
|
+
/** Handler to be used when dropping a dragged element over the Navigation2 link */
|
11
|
+
onDrop?: React.DragEventHandler;
|
12
|
+
/** Total shown inside a Badge component */
|
13
|
+
total?: number;
|
14
|
+
};
|
15
|
+
export declare const Link: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
16
|
+
active?: boolean | undefined;
|
17
|
+
icon?: "account-preview" | "accounting-year-cancel" | "accounting-year" | "accounting" | "arrow-bottom" | "arrow-down" | "arrow-end" | "arrow-left" | "arrow-right" | "arrow-start" | "arrow-top" | "arrow-up" | "attach-auto" | "attach-cancel" | "attach" | "autotext-insert" | "autotext" | "basic-tabs" | "basic" | "bell-solid" | "book" | "booking" | "budget" | "calendar" | "cash-account" | "cash-reports" | "chat-solid" | "chat" | "chevron-down-double" | "chevron-down-solid" | "chevron-down" | "chevron-left-double" | "chevron-left-solid" | "chevron-left" | "chevron-right-double" | "chevron-right-solid" | "chevron-right" | "chevron-up-double" | "chevron-up-solid" | "chevron-up" | "circle-close" | "circle-minus" | "circle-plus" | "circle-tick" | "clamp-open" | "clamp" | "close" | "columns" | "connection-enable" | "connection-revoke" | "contacts" | "copy" | "courses" | "credit" | "delete-permanently" | "delete" | "density-comfortable" | "density-compact" | "density-normal" | "density-spacious" | "depecriate" | "developer" | "distribution-template" | "document-approve" | "document-create-entry" | "document-cut" | "document-error" | "document-isolate-page" | "document-merge" | "document-move" | "document-preview" | "document-received" | "document-rejected-request" | "document-split" | "document-time" | "document" | "download" | "drag" | "e-copedia" | "e-signature" | "edit" | "ellipsis-horizontal" | "ellipsis-vertical" | "entries-on-account" | "entries-open" | "entries-warning" | "entry-type-customer-invoice" | "entry-type-customer-payment" | "entry-type-journal-entry" | "entry-type-manual-customer-invoice" | "entry-type-supplier-invoice" | "entry-type-supplier-payment" | "envelope-approved" | "envelope" | "expand-view" | "expenses" | "export-to-excel" | "export-to-pdf" | "export" | "filter-solid" | "filter" | "graph-solid" | "hash" | "home" | "images" | "import" | "inbox-einvoicing" | "inbox-scanning" | "inbox-smart" | "inbox" | "info" | "inventory-matrix" | "inventory" | "journal-pro" | "layout-both" | "layout-first" | "layout-last" | "layout-none" | "layout" | "ledger-card-customer-reminder" | "ledger-card-manual-customer-invoice" | "ledger-card-obsolete-stock" | "ledger-card-opening-entry" | "ledger-card-reserved-entry" | "ledger-card-shrinkage-pilferage" | "ledger-card-stock-adjustment" | "ledger-card-transferred-opening-entry" | "ledger-card" | "lightbulb" | "line" | "list-bulleted" | "list-search" | "list" | "lock-open" | "log-out" | "log" | "market" | "match-amount" | "match-entries" | "menu" | "mileage" | "modal-resize" | "modal-shrink" | "more-solid" | "more" | "move" | "navigation-list" | "note-follow-up" | "note-read" | "note" | "numbers" | "partner-api" | "period" | "person-change" | "person-minus" | "person-plus" | "person-tick" | "play" | "plus-minus" | "print" | "process-payment" | "product-ledger-card" | "profile" | "project-cards" | "projects" | "quicklinks" | "rating-bankruptcy" | "rating-payment-problems" | "reconciled" | "refresh" | "report-solid" | "report" | "restore" | "rotate-left" | "rotate-right" | "sales" | "search-bold" | "search" | "secure-tick" | "secure" | "settings-solid" | "settings" | "shortcuts" | "show-all" | "show-less" | "show-more" | "show-template" | "sliders" | "smartpay" | "sort-by" | "star-solid" | "star" | "subscriptions" | "system-entries" | "tag" | "template-override" | "templates" | "thumb-both" | "thumb-down-solid" | "thumb-down" | "thumb-up-solid" | "thumb-up" | "tick-bold" | "tick" | "time" | "transfer-cancel" | "transfer-locked" | "transfer" | "undo" | "undock" | "unreconciled" | "warning" | "webshop" | "website" | "workflow" | "zoom" | undefined;
|
18
|
+
/** Menu component associated with the button. */
|
19
|
+
menu?: ((props: Partial<MenuProps>) => JSX.Element) | undefined;
|
20
|
+
/** Handler to be used when dropping a dragged element over the Navigation2 link */
|
21
|
+
onDrop?: ((event: React.DragEvent<Element>) => void) | undefined;
|
22
|
+
/** Total shown inside a Badge component */
|
23
|
+
total?: number | undefined;
|
24
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type Navigation2SectionProps = React.LiHTMLAttributes<HTMLLIElement> & {
|
3
|
+
heading?: string;
|
4
|
+
};
|
5
|
+
export declare const Section: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & {
|
6
|
+
heading?: string | undefined;
|
7
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getAdjacentClasses: () => string;
|