@livechat/design-system-react-components 1.0.0-refresh-ui.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dsrc.cjs.js +10 -10
- package/dist/dsrc.es.js +2822 -2428
- package/dist/preview-stats.json +2131 -598
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/components/ActionMenu/ActionMenu.d.ts +0 -35
- package/dist/components/ActionMenu/ActionMenu.spec.d.ts +0 -1
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +0 -11
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -16
- package/dist/components/ActionMenu/constants.d.ts +0 -21
- package/dist/components/ActionMenu/index.d.ts +0 -2
- package/dist/components/Alert/Alert.d.ts +0 -32
- package/dist/components/Alert/Alert.spec.d.ts +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -9
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -49
- package/dist/components/Avatar/Avatar.helpers.d.ts +0 -2
- package/dist/components/Avatar/Avatar.spec.d.ts +0 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -22
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -24
- package/dist/components/Badge/Badge.helpers.d.ts +0 -1
- package/dist/components/Badge/Badge.spec.d.ts +0 -1
- package/dist/components/Badge/Badge.stories.d.ts +0 -12
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -63
- package/dist/components/Button/Button.spec.d.ts +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -42
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -30
- package/dist/components/Card/Card.spec.d.ts +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -11
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -16
- package/dist/components/Checkbox/Checkbox.spec.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -13
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
- package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
- package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/helpers.d.ts +0 -16
- package/dist/components/DatePicker/hooks.d.ts +0 -6
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/types.d.ts +0 -100
- package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
- package/dist/components/FieldDescription/index.d.ts +0 -1
- package/dist/components/FieldError/FieldError.d.ts +0 -3
- package/dist/components/FieldError/index.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup/FieldGroup.spec.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +0 -10
- package/dist/components/FieldGroup/index.d.ts +0 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +0 -7
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
- package/dist/components/FileUploadProgress/index.d.ts +0 -2
- package/dist/components/Form/Form.d.ts +0 -16
- package/dist/components/Form/Form.spec.d.ts +0 -1
- package/dist/components/Form/Form.stories.d.ts +0 -8
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/FormField/FormField.d.ts +0 -40
- package/dist/components/FormField/FormField.spec.d.ts +0 -1
- package/dist/components/FormField/FormField.stories.d.ts +0 -9
- package/dist/components/FormField/index.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.d.ts +0 -16
- package/dist/components/FormGroup/FormGroup.spec.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.stories.d.ts +0 -10
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -32
- package/dist/components/Icon/Icon.stories.d.ts +0 -15
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Input/Input.d.ts +0 -25
- package/dist/components/Input/Input.spec.d.ts +0 -1
- package/dist/components/Input/Input.stories.d.ts +0 -10
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/Link.stories.d.ts +0 -12
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -20
- package/dist/components/Loader/Loader.spec.d.ts +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -10
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -21
- package/dist/components/Modal/Modal.spec.d.ts +0 -1
- package/dist/components/Modal/Modal.stories.d.ts +0 -14
- package/dist/components/Modal/ModalBase.d.ts +0 -20
- package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
- package/dist/components/Modal/ModalCloseButton.d.ts +0 -6
- package/dist/components/Modal/ModalHeader.d.ts +0 -9
- package/dist/components/Modal/ModalPortal.d.ts +0 -7
- package/dist/components/Modal/StoriesComponents.d.ts +0 -4
- package/dist/components/Modal/index.d.ts +0 -10
- package/dist/components/NumericInput/NumericInput.d.ts +0 -12
- package/dist/components/NumericInput/NumericInput.spec.d.ts +0 -1
- package/dist/components/NumericInput/NumericInput.stories.d.ts +0 -20
- package/dist/components/NumericInput/index.d.ts +0 -1
- package/dist/components/Picker/Picker.d.ts +0 -84
- package/dist/components/Picker/Picker.spec.d.ts +0 -1
- package/dist/components/Picker/Picker.stories.d.ts +0 -10
- package/dist/components/Picker/PickerList.d.ts +0 -14
- package/dist/components/Picker/PickerList.spec.d.ts +0 -1
- package/dist/components/Picker/PickerListItem.d.ts +0 -10
- package/dist/components/Picker/Trigger.d.ts +0 -17
- package/dist/components/Picker/Trigger.spec.d.ts +0 -1
- package/dist/components/Picker/TriggerBody.d.ts +0 -19
- package/dist/components/Picker/TriggerBody.spec.d.ts +0 -1
- package/dist/components/Picker/constants.d.ts +0 -22
- package/dist/components/Picker/index.d.ts +0 -3
- package/dist/components/Picker/types.d.ts +0 -11
- package/dist/components/Popover/Popover.d.ts +0 -34
- package/dist/components/Popover/Popover.spec.d.ts +0 -1
- package/dist/components/Popover/Popover.stories.d.ts +0 -13
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/Progress/ProgressBar.d.ts +0 -21
- package/dist/components/Progress/ProgressBar.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +0 -12
- package/dist/components/Progress/ProgressCircle.d.ts +0 -21
- package/dist/components/Progress/ProgressCircle.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +0 -12
- package/dist/components/Progress/constants.d.ts +0 -4
- package/dist/components/Progress/helpers.d.ts +0 -3
- package/dist/components/Progress/index.d.ts +0 -2
- package/dist/components/PromoBanner/PromoBanner.d.ts +0 -40
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +0 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +0 -11
- package/dist/components/PromoBanner/index.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton/RadioButton.spec.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -13
- package/dist/components/RadioButton/index.d.ts +0 -1
- package/dist/components/Search/Search.d.ts +0 -36
- package/dist/components/Search/Search.spec.d.ts +0 -1
- package/dist/components/Search/Search.stories.d.ts +0 -19
- package/dist/components/Search/index.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +0 -9
- package/dist/components/SegmentedControl/index.d.ts +0 -2
- package/dist/components/Switch/Switch.d.ts +0 -47
- package/dist/components/Switch/Switch.spec.d.ts +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -11
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -15
- package/dist/components/Tab/Tab.spec.d.ts +0 -1
- package/dist/components/Tab/Tab.stories.d.ts +0 -29
- package/dist/components/Tab/TabsWrapper.d.ts +0 -3
- package/dist/components/Tab/TabsWrapper.spec.d.ts +0 -1
- package/dist/components/Tab/TabsWrapper.stories.d.ts +0 -18
- package/dist/components/Tab/index.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -41
- package/dist/components/Tag/Tag.spec.d.ts +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -24
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/TagInput/EditableTag.d.ts +0 -11
- package/dist/components/TagInput/EditableTagContent.d.ts +0 -11
- package/dist/components/TagInput/EmailTagInput.d.ts +0 -5
- package/dist/components/TagInput/TagInput.d.ts +0 -32
- package/dist/components/TagInput/TagInput.spec.d.ts +0 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +0 -10
- package/dist/components/TagInput/index.d.ts +0 -4
- package/dist/components/Textarea/Textarea.d.ts +0 -6
- package/dist/components/Textarea/Textarea.spec.d.ts +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -16
- package/dist/components/Toast/Toast.spec.d.ts +0 -1
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/ToastWrapper.d.ts +0 -20
- package/dist/components/Toast/ToastWrapper.spec.d.ts +0 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +0 -40
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.spec.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -41
- package/dist/components/Tooltip/components/FloatingComponent.d.ts +0 -18
- package/dist/components/Tooltip/components/Info.d.ts +0 -8
- package/dist/components/Tooltip/components/Interactive.d.ts +0 -23
- package/dist/components/Tooltip/components/Reports.d.ts +0 -7
- package/dist/components/Tooltip/components/Simple.d.ts +0 -4
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -15
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
- package/dist/components/Tooltip/components/index.d.ts +0 -5
- package/dist/components/Tooltip/helpers.d.ts +0 -3
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/Tooltip/types.d.ts +0 -22
- package/dist/components/Typography/Heading.d.ts +0 -11
- package/dist/components/Typography/Text.d.ts +0 -15
- package/dist/components/Typography/index.d.ts +0 -2
- package/dist/components/UploadBar/UploadBar.d.ts +0 -49
- package/dist/components/UploadBar/UploadBar.stories.d.ts +0 -7
- package/dist/components/UploadBar/index.d.ts +0 -1
- package/dist/dsrc.umd.js +0 -18
- package/dist/foundations/radius-token.d.ts +0 -6
- package/dist/foundations/shadow-token.d.ts +0 -6
- package/dist/foundations/spacing-token.d.ts +0 -17
- package/dist/index.d.ts +0 -42
- package/dist/stories/components/BlockColumns.d.ts +0 -8
- package/dist/stories/components/ColorTokens.d.ts +0 -2
- package/dist/stories/components/IconsShowcase.d.ts +0 -6
- package/dist/stories/components/Spacing.d.ts +0 -2
- package/dist/stories/components/SpacingExamples.d.ts +0 -2
- package/dist/stories/components/StoryDescriptor.d.ts +0 -6
- package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/utils.d.ts +0 -3
- package/dist/themes/design-token.d.ts +0 -228
- package/dist/utils/PdfIcon.d.ts +0 -2
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/keyCodes.d.ts +0 -12
- package/dist/utils/noop.d.ts +0 -1
- package/dist/utils/story-parameters.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/design-system-react-components",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"main": "./dist/dsrc.cjs.js",
|
|
11
11
|
"module": "./dist/dsrc.es.js",
|
|
12
|
-
"unpkg": "./dist/dsrc.umd.js",
|
|
13
12
|
"types": "./dist/index.d.ts",
|
|
14
13
|
"files": [
|
|
15
14
|
"dist"
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
"@floating-ui/react-dom": "^0.7.0",
|
|
75
74
|
"@floating-ui/react-dom-interactions": "^0.6.1",
|
|
76
75
|
"@livechat/data-utils": "^0.2.16",
|
|
77
|
-
"@livechat/design-system-icons": "
|
|
76
|
+
"@livechat/design-system-icons": "^1.0.0",
|
|
78
77
|
"@popperjs/core": "^2.11.2",
|
|
79
78
|
"clsx": "^1.1.1",
|
|
80
79
|
"date-fns": "^2.28.0",
|
|
@@ -84,5 +83,5 @@
|
|
|
84
83
|
"react-day-picker": "^7.4.10",
|
|
85
84
|
"react-transition-group": "^4.4.2"
|
|
86
85
|
},
|
|
87
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "b9ba660417e9cc0be271c49d8b02626b60a465f0"
|
|
88
87
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react-dom';
|
|
3
|
-
export interface ActionMenuProps {
|
|
4
|
-
/**
|
|
5
|
-
* The CSS class for menu container
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Array of menu options
|
|
10
|
-
*/
|
|
11
|
-
options: Array<{
|
|
12
|
-
key: string;
|
|
13
|
-
element: React.ReactNode;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
withDivider?: boolean;
|
|
16
|
-
onClick: () => void;
|
|
17
|
-
}>;
|
|
18
|
-
/**
|
|
19
|
-
* Trigger element
|
|
20
|
-
*/
|
|
21
|
-
triggerRenderer: React.ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* The menu placement
|
|
24
|
-
*/
|
|
25
|
-
placement?: Placement;
|
|
26
|
-
/**
|
|
27
|
-
* Will open menu on component initialization
|
|
28
|
-
*/
|
|
29
|
-
openedOnInit?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Menu will stay open after option click
|
|
32
|
-
*/
|
|
33
|
-
keepOpenOnClick?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const ActionMenu: React.FC<ActionMenuProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: React.FC<import("./ActionMenu").ActionMenuProps>;
|
|
5
|
-
subcomponents: {
|
|
6
|
-
ActionMenuItem: React.FC<React.PropsWithChildren<import("./ActionMenuItem").ActionMenuItemProps>>;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export declare const Default: () => React.ReactElement;
|
|
11
|
-
export declare const KeepOpenOnItemClick: () => React.ReactElement;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface ActionMenuItemProps {
|
|
3
|
-
/**
|
|
4
|
-
* Renders given element on the left of element
|
|
5
|
-
*/
|
|
6
|
-
leftNode?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Renders given element on the right of element
|
|
9
|
-
*/
|
|
10
|
-
rightNode?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Specify the kind of menu item
|
|
13
|
-
*/
|
|
14
|
-
kind?: 'warning' | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare const ActionMenuItem: React.FC<React.PropsWithChildren<ActionMenuItemProps>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import noop from '../../utils/noop';
|
|
3
|
-
export declare const exampleOptions: ({
|
|
4
|
-
key: string;
|
|
5
|
-
element: React.JSX.Element;
|
|
6
|
-
onClick: typeof noop;
|
|
7
|
-
disabled?: undefined;
|
|
8
|
-
withDivider?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
key: string;
|
|
11
|
-
element: React.JSX.Element;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
onClick: typeof noop;
|
|
14
|
-
withDivider?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
key: string;
|
|
17
|
-
element: React.JSX.Element;
|
|
18
|
-
onClick: typeof noop;
|
|
19
|
-
withDivider: boolean;
|
|
20
|
-
disabled?: undefined;
|
|
21
|
-
})[];
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type AlertKind = 'info' | 'warning' | 'success' | 'error';
|
|
3
|
-
export interface AlertProps {
|
|
4
|
-
/**
|
|
5
|
-
* The CSS class for container
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Specify the kind of Alert
|
|
10
|
-
*/
|
|
11
|
-
kind?: AlertKind;
|
|
12
|
-
/**
|
|
13
|
-
* Shows the primary CTA button
|
|
14
|
-
*/
|
|
15
|
-
primaryButton?: {
|
|
16
|
-
handleClick: () => void;
|
|
17
|
-
label: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Shows the secondary CTA button
|
|
21
|
-
*/
|
|
22
|
-
secondaryButton?: {
|
|
23
|
-
handleClick: () => void;
|
|
24
|
-
label: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The optional event handler for close button
|
|
28
|
-
*/
|
|
29
|
-
onClose?: () => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const Alert: React.FC<React.PropsWithChildren<AlertProps>>;
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AlertProps } from './Alert';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, AlertProps & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: (args: AlertProps) => React.ReactElement;
|
|
8
|
-
export declare const Kinds: () => React.ReactElement;
|
|
9
|
-
export declare const WithCTA: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Alert } from './Alert';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type AvatarShape = 'circle' | 'rounded-square';
|
|
3
|
-
type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
|
|
4
|
-
type AvatarStatus = 'available' | 'unavailable' | 'unknown';
|
|
5
|
-
type AvatarType = 'image' | 'text';
|
|
6
|
-
export interface AvatarProps {
|
|
7
|
-
/**
|
|
8
|
-
* Alternate text for an image avatar
|
|
9
|
-
*/
|
|
10
|
-
alt?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The CSS class for container
|
|
13
|
-
*/
|
|
14
|
-
className?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Specify the background color
|
|
17
|
-
*/
|
|
18
|
-
color?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Specify the avatar shape
|
|
21
|
-
*/
|
|
22
|
-
shape?: AvatarShape;
|
|
23
|
-
/**
|
|
24
|
-
* Specify the avatar size
|
|
25
|
-
*/
|
|
26
|
-
size?: AvatarSize;
|
|
27
|
-
/**
|
|
28
|
-
* Image source for the image avatar
|
|
29
|
-
*/
|
|
30
|
-
src?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Displays status dot
|
|
33
|
-
*/
|
|
34
|
-
status?: AvatarStatus;
|
|
35
|
-
/**
|
|
36
|
-
* Text for an text avatar
|
|
37
|
-
*/
|
|
38
|
-
text?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Specify the avatar type
|
|
41
|
-
*/
|
|
42
|
-
type: AvatarType;
|
|
43
|
-
/**
|
|
44
|
-
* Displays rim
|
|
45
|
-
*/
|
|
46
|
-
withRim?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare const Avatar: React.FC<AvatarProps>;
|
|
49
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AvatarProps } from './Avatar';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, AvatarProps & {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const Default: {
|
|
8
|
-
(args: AvatarProps): React.ReactElement;
|
|
9
|
-
args: {
|
|
10
|
-
type: string;
|
|
11
|
-
text: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare const Types: () => React.ReactElement;
|
|
15
|
-
export declare const Shapes: () => React.ReactElement;
|
|
16
|
-
export declare const Sizes: () => React.ReactElement;
|
|
17
|
-
export declare const Statuses: () => React.ReactElement;
|
|
18
|
-
export declare const Colors: () => React.ReactElement;
|
|
19
|
-
export declare const FallbackAvatar: () => React.ReactElement;
|
|
20
|
-
export declare const Rim: () => React.ReactElement;
|
|
21
|
-
export declare const SizesWithStatus: () => React.ReactElement;
|
|
22
|
-
export declare const SizesWithRim: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Avatar } from './Avatar';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
/**
|
|
4
|
-
* Value to display
|
|
5
|
-
*/
|
|
6
|
-
count?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Specify the badge kind
|
|
9
|
-
*/
|
|
10
|
-
kind?: 'primary' | 'secondary' | 'tertiary';
|
|
11
|
-
/**
|
|
12
|
-
* The maximum value after which a "+" will be displayed next to the number
|
|
13
|
-
*/
|
|
14
|
-
max?: number;
|
|
15
|
-
/**
|
|
16
|
-
* Specify the badge size
|
|
17
|
-
*/
|
|
18
|
-
size?: 'large' | 'medium' | 'compact';
|
|
19
|
-
/**
|
|
20
|
-
* Specify the badge type
|
|
21
|
-
*/
|
|
22
|
-
type?: 'counter' | 'alert' | 'dot';
|
|
23
|
-
}
|
|
24
|
-
export declare const Badge: React.FC<BadgeProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatCount(count: number, max: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { BadgeProps } from './Badge';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<BadgeProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: Story<BadgeProps>;
|
|
10
|
-
export declare const Sizes: () => React.ReactElement;
|
|
11
|
-
export declare const Kinds: () => React.ReactElement;
|
|
12
|
-
export declare const Types: () => React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Badge } from './Badge';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Size } from 'utils';
|
|
3
|
-
export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'text' | 'plain' | 'plain-light' | 'subtle' | 'float' | 'dotted';
|
|
4
|
-
export type ButtonProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Specify the button kind
|
|
7
|
-
*/
|
|
8
|
-
kind?: ButtonKind;
|
|
9
|
-
/**
|
|
10
|
-
* Specify the button size
|
|
11
|
-
*/
|
|
12
|
-
size?: Size;
|
|
13
|
-
/**
|
|
14
|
-
* Set the loading state
|
|
15
|
-
*/
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Set the button for full width
|
|
19
|
-
*/
|
|
20
|
-
fullWidth?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Text displayed in loading state
|
|
23
|
-
*/
|
|
24
|
-
loaderLabel?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Renders given element
|
|
27
|
-
*/
|
|
28
|
-
icon?: React.ReactElement;
|
|
29
|
-
/**
|
|
30
|
-
* Specify the place to render element given in `icon` prop
|
|
31
|
-
*/
|
|
32
|
-
iconPosition?: 'left' | 'right';
|
|
33
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
34
|
-
export declare const Button: React.ForwardRefExoticComponent<{
|
|
35
|
-
/**
|
|
36
|
-
* Specify the button kind
|
|
37
|
-
*/
|
|
38
|
-
kind?: ButtonKind | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Specify the button size
|
|
41
|
-
*/
|
|
42
|
-
size?: Size | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Set the loading state
|
|
45
|
-
*/
|
|
46
|
-
loading?: boolean | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Set the button for full width
|
|
49
|
-
*/
|
|
50
|
-
fullWidth?: boolean | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Text displayed in loading state
|
|
53
|
-
*/
|
|
54
|
-
loaderLabel?: string | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Renders given element
|
|
57
|
-
*/
|
|
58
|
-
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Specify the place to render element given in `icon` prop
|
|
61
|
-
*/
|
|
62
|
-
iconPosition?: "right" | "left" | undefined;
|
|
63
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
4
|
-
kind?: import("./Button").ButtonKind | undefined;
|
|
5
|
-
size?: import("../..").Size | undefined;
|
|
6
|
-
loading?: boolean | undefined;
|
|
7
|
-
fullWidth?: boolean | undefined;
|
|
8
|
-
loaderLabel?: string | undefined;
|
|
9
|
-
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
10
|
-
iconPosition?: "right" | "left" | undefined;
|
|
11
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const Default: {
|
|
14
|
-
(args: ButtonProps): React.ReactElement;
|
|
15
|
-
argTypes: {
|
|
16
|
-
icon: {
|
|
17
|
-
options: string[];
|
|
18
|
-
mapping: {
|
|
19
|
-
[k: string]: React.JSX.Element;
|
|
20
|
-
} & {
|
|
21
|
-
None: null;
|
|
22
|
-
};
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
labels: string[];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
args: {
|
|
30
|
-
loading: boolean;
|
|
31
|
-
disabled: boolean;
|
|
32
|
-
size: string;
|
|
33
|
-
kind: string;
|
|
34
|
-
children: string;
|
|
35
|
-
fullWidth: boolean;
|
|
36
|
-
iconPosition: string;
|
|
37
|
-
icon: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare const KindsAndStates: () => React.ReactElement;
|
|
41
|
-
export declare const Sizes: () => React.ReactElement;
|
|
42
|
-
export declare const ButtonAsLink: () => React.ReactElement;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonProps } from '../Button';
|
|
3
|
-
export type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
|
|
4
|
-
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/**
|
|
6
|
-
* Alternate text for an image card
|
|
7
|
-
*/
|
|
8
|
-
alt?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Array of card buttons
|
|
11
|
-
*/
|
|
12
|
-
buttonsOptions?: CardButtonOptions[];
|
|
13
|
-
/**
|
|
14
|
-
* Card description
|
|
15
|
-
*/
|
|
16
|
-
description?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Element to display in the expandable area
|
|
19
|
-
*/
|
|
20
|
-
expandableContent?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Image source for the image card
|
|
23
|
-
*/
|
|
24
|
-
src?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Card title
|
|
27
|
-
*/
|
|
28
|
-
title?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare const Card: React.FC<CardProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Story } from '@storybook/react';
|
|
3
|
-
import { CardProps } from '../Card';
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, CardProps & {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare const Default: Story<CardProps>;
|
|
9
|
-
export declare const Expandable: Story;
|
|
10
|
-
export declare const WithButtons: Story;
|
|
11
|
-
export declare const ExpandableWithButtons: Story;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface CheckboxProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
-
/**
|
|
4
|
-
* Specify whether the checkbox should be disabled
|
|
5
|
-
*/
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Specify whether the checkbox should be checked
|
|
9
|
-
*/
|
|
10
|
-
checked?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Set the checkbox description
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CheckboxProps } from './Checkbox';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Checkbox: {
|
|
6
|
-
(args: CheckboxProps): React.ReactElement;
|
|
7
|
-
args: {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
checked: boolean;
|
|
10
|
-
description: string;
|
|
11
|
-
children: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Checkbox } from './Checkbox';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IDatePickerProps } from './types';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps & React.RefAttributes<import("react-day-picker").default>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const DatePicker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
|
|
6
|
-
export declare const DatePickerWithDatesBetweenTwoMonths: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
|
|
7
|
-
export declare const DatePickerWithCustomFirstDayOfWeek: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IRangeDatePickerProps } from './types';
|
|
3
|
-
export declare const RangeDatePicker: {
|
|
4
|
-
({ options, initialSelectedItemKey, initialFromDate, initialToDate, toMonth, onChange, children, }: IRangeDatePickerProps): ReactElement;
|
|
5
|
-
defaultProps: {
|
|
6
|
-
options: {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
isManual: boolean;
|
|
10
|
-
value: {
|
|
11
|
-
from: undefined;
|
|
12
|
-
to: undefined;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IRangeDatePickerProps } from './types';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IRangeDatePickerProps>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const RangeDatePicker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IRangeDatePickerProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Modifiers } from 'react-day-picker';
|
|
2
|
-
import { ClassNames } from 'react-day-picker/types/ClassNames';
|
|
3
|
-
import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
|
|
4
|
-
export declare const isDateWithinRange: (date: Date, range: {
|
|
5
|
-
from?: Date;
|
|
6
|
-
to?: Date;
|
|
7
|
-
}) => boolean;
|
|
8
|
-
export declare const calculateDatePickerMonth: (initialFromDate?: Date, initialToDate?: Date, toMonth?: Date) => Date;
|
|
9
|
-
export declare const getRangeDatePickerModifiers: (from?: Date, to?: Date) => Partial<Modifiers>;
|
|
10
|
-
export declare const getSelectedOption: (itemId: string | null, options: IRangeDatePickerOption[]) => IRangeDatePickerOption | undefined;
|
|
11
|
-
export declare const isSelectingFirstDay: (from?: Date, to?: Date) => boolean;
|
|
12
|
-
export declare const getInitialStateFromProps: (props: IRangeDatePickerProps) => Partial<IRangeDatePickerState>;
|
|
13
|
-
export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => ClassNames & {
|
|
14
|
-
start: string;
|
|
15
|
-
end: string;
|
|
16
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Dispatch, ReducerAction, ReducerState } from 'react';
|
|
2
|
-
import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
|
|
3
|
-
export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
|
|
4
|
-
ReducerState<RangeDatePickerReducer>,
|
|
5
|
-
Dispatch<ReducerAction<RangeDatePickerReducer>>
|
|
6
|
-
];
|