@appquality/unguess-design-system 2.8.3 → 2.8.6
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/.github/workflows/storybook.yml +37 -37
- package/.prettierrc +3 -3
- package/CHANGELOG.md +586 -550
- package/README.md +73 -73
- package/generate-story.sh +60 -60
- package/package.json +119 -119
- package/build/hooks/useWindowSize.d.ts +0 -4
- package/build/index.d.ts +0 -63
- package/build/index.js +0 -2135
- package/build/stories/accordions/_types.d.ts +0 -25
- package/build/stories/accordions/index.d.ts +0 -17
- package/build/stories/accordions/index.stories.d.ts +0 -21
- package/build/stories/avatar/_types.d.ts +0 -19
- package/build/stories/avatar/index.d.ts +0 -13
- package/build/stories/avatar/index.stories.d.ts +0 -10
- package/build/stories/breadcrumbs/_types.d.ts +0 -5
- package/build/stories/breadcrumbs/index.d.ts +0 -11
- package/build/stories/breadcrumbs/index.stories.d.ts +0 -6
- package/build/stories/buttons/anchor/_types.d.ts +0 -11
- package/build/stories/buttons/anchor/index.d.ts +0 -12
- package/build/stories/buttons/anchor/index.stories.d.ts +0 -8
- package/build/stories/buttons/button/_types.d.ts +0 -30
- package/build/stories/buttons/button/index.d.ts +0 -22
- package/build/stories/buttons/button/index.stories.d.ts +0 -19
- package/build/stories/buttons/button-group/_types.d.ts +0 -5
- package/build/stories/buttons/button-group/index.d.ts +0 -9
- package/build/stories/buttons/button-group/index.stories.d.ts +0 -15
- package/build/stories/buttons/icon-button/_types.d.ts +0 -19
- package/build/stories/buttons/icon-button/index.d.ts +0 -14
- package/build/stories/buttons/icon-button/index.stories.d.ts +0 -9
- package/build/stories/buttons/shared/_shared.d.ts +0 -2
- package/build/stories/buttons/split-button/_types.d.ts +0 -2
- package/build/stories/buttons/split-button/index.d.ts +0 -11
- package/build/stories/buttons/split-button/index.stories.d.ts +0 -6
- package/build/stories/buttons/utils/useButtonVariant.d.ts +0 -5
- package/build/stories/campaignCards/_types.d.ts +0 -43
- package/build/stories/campaignCards/index.d.ts +0 -4
- package/build/stories/campaignCards/index.stories.d.ts +0 -7
- package/build/stories/cards/_types.d.ts +0 -7
- package/build/stories/cards/index.d.ts +0 -10
- package/build/stories/cards/index.stories.d.ts +0 -11
- package/build/stories/close/_types.d.ts +0 -3
- package/build/stories/close/index.d.ts +0 -7
- package/build/stories/close/index.stories.d.ts +0 -6
- package/build/stories/counter/_types.d.ts +0 -5
- package/build/stories/counter/index.d.ts +0 -13
- package/build/stories/counter/index.stories.d.ts +0 -15
- package/build/stories/dropdowns/field/_types.d.ts +0 -2
- package/build/stories/dropdowns/field/index.d.ts +0 -4
- package/build/stories/dropdowns/item/_types.d.ts +0 -9
- package/build/stories/dropdowns/item/index.d.ts +0 -4
- package/build/stories/dropdowns/menu/_types.d.ts +0 -47
- package/build/stories/dropdowns/menu/index.d.ts +0 -14
- package/build/stories/dropdowns/menu/index.stories.d.ts +0 -6
- package/build/stories/dropdowns/multiselect/_types.d.ts +0 -17
- package/build/stories/dropdowns/multiselect/index.d.ts +0 -11
- package/build/stories/dropdowns/multiselect/index.stories.d.ts +0 -21
- package/build/stories/dropdowns/select/_types.d.ts +0 -31
- package/build/stories/dropdowns/select/index.d.ts +0 -16
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -20
- package/build/stories/forms/checkbox/_types.d.ts +0 -8
- package/build/stories/forms/checkbox/index.d.ts +0 -14
- package/build/stories/forms/checkbox/index.stories.d.ts +0 -6
- package/build/stories/forms/field/_types.d.ts +0 -3
- package/build/stories/forms/field/index.d.ts +0 -8
- package/build/stories/forms/field/index.stories.d.ts +0 -6
- package/build/stories/forms/input/_types.d.ts +0 -9
- package/build/stories/forms/input/index.d.ts +0 -11
- package/build/stories/forms/input/index.stories.d.ts +0 -9
- package/build/stories/forms/radio/_types.d.ts +0 -3
- package/build/stories/forms/radio/index.d.ts +0 -14
- package/build/stories/forms/radio/index.stories.d.ts +0 -7
- package/build/stories/forms/textarea/_types.d.ts +0 -15
- package/build/stories/forms/textarea/index.d.ts +0 -10
- package/build/stories/forms/textarea/index.stories.d.ts +0 -8
- package/build/stories/forms/toggle/_types.d.ts +0 -3
- package/build/stories/forms/toggle/index.d.ts +0 -13
- package/build/stories/forms/toggle/index.stories.d.ts +0 -10
- package/build/stories/grid/col/_types.d.ts +0 -77
- package/build/stories/grid/col/index.d.ts +0 -4
- package/build/stories/grid/col/index.stories.d.ts +0 -8
- package/build/stories/grid/grid/_types.d.ts +0 -9
- package/build/stories/grid/grid/index.d.ts +0 -10
- package/build/stories/grid/grid/index.stories.d.ts +0 -12
- package/build/stories/grid/row/_types.d.ts +0 -48
- package/build/stories/grid/row/index.d.ts +0 -4
- package/build/stories/grid/row/index.stories.d.ts +0 -10
- package/build/stories/icons/_types.d.ts +0 -7
- package/build/stories/icons/index.d.ts +0 -4
- package/build/stories/icons/index.stories.d.ts +0 -6
- package/build/stories/label/_types.d.ts +0 -5
- package/build/stories/label/index.d.ts +0 -8
- package/build/stories/label/index.stories.d.ts +0 -7
- package/build/stories/loaders/progress/_types.d.ts +0 -12
- package/build/stories/loaders/progress/index.d.ts +0 -14
- package/build/stories/loaders/progress/index.stories.d.ts +0 -6
- package/build/stories/loaders/skeleton/_types.d.ts +0 -9
- package/build/stories/loaders/skeleton/index.d.ts +0 -17
- package/build/stories/loaders/skeleton/index.stories.d.ts +0 -7
- package/build/stories/loaders/spinner/_types.d.ts +0 -19
- package/build/stories/loaders/spinner/index.d.ts +0 -11
- package/build/stories/loaders/spinner/index.stories.d.ts +0 -6
- package/build/stories/login-form/_types.d.ts +0 -29
- package/build/stories/login-form/index.d.ts +0 -10
- package/build/stories/login-form/index.stories.d.ts +0 -7
- package/build/stories/logo/_types.d.ts +0 -9
- package/build/stories/logo/index.d.ts +0 -13
- package/build/stories/logo/index.stories.d.ts +0 -6
- package/build/stories/modals/_types.d.ts +0 -34
- package/build/stories/modals/index.d.ts +0 -11
- package/build/stories/modals/index.stories.d.ts +0 -19
- package/build/stories/navigation/app-header/_types.d.ts +0 -18
- package/build/stories/navigation/app-header/index.d.ts +0 -8
- package/build/stories/navigation/app-header/index.stories.d.ts +0 -6
- package/build/stories/navigation/body/_types.d.ts +0 -5
- package/build/stories/navigation/body/index.d.ts +0 -7
- package/build/stories/navigation/chrome/_types.d.ts +0 -7
- package/build/stories/navigation/chrome/index.d.ts +0 -10
- package/build/stories/navigation/content/_types.d.ts +0 -2
- package/build/stories/navigation/content/index.d.ts +0 -7
- package/build/stories/navigation/header/_types.d.ts +0 -5
- package/build/stories/navigation/header/header-item/_types.d.ts +0 -32
- package/build/stories/navigation/header/header-item/brandItem.d.ts +0 -4
- package/build/stories/navigation/header/header-item/headerItem.d.ts +0 -4
- package/build/stories/navigation/header/header-item/headerItemIcon.d.ts +0 -4
- package/build/stories/navigation/header/header-item/headerItemText.d.ts +0 -4
- package/build/stories/navigation/header/header-item/index.d.ts +0 -5
- package/build/stories/navigation/header/header-item/utils.d.ts +0 -13
- package/build/stories/navigation/header/index.d.ts +0 -13
- package/build/stories/navigation/main/_types.d.ts +0 -2
- package/build/stories/navigation/main/index.d.ts +0 -7
- package/build/stories/navigation/nav/_types.d.ts +0 -5
- package/build/stories/navigation/nav/index.d.ts +0 -10
- package/build/stories/navigation/nav/nav-item/_types.d.ts +0 -29
- package/build/stories/navigation/nav/nav-item/index.d.ts +0 -7
- package/build/stories/navigation/nav/nav-item/navDivider.d.ts +0 -4
- package/build/stories/navigation/nav/nav-item/navItem.d.ts +0 -4
- package/build/stories/navigation/nav/nav-item/navItemIcon.d.ts +0 -4
- package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +0 -8
- package/build/stories/navigation/nav/nav-item/navItemText.d.ts +0 -4
- package/build/stories/navigation/nav/nav-item/navToggle.d.ts +0 -4
- package/build/stories/navigation/sidebar/_types.d.ts +0 -17
- package/build/stories/navigation/sidebar/index.d.ts +0 -10
- package/build/stories/navigation/sidebar/index.stories.d.ts +0 -9
- package/build/stories/notifications/_types.d.ts +0 -9
- package/build/stories/notifications/index.d.ts +0 -20
- package/build/stories/notifications/index.stories.d.ts +0 -10
- package/build/stories/page/index.d.ts +0 -8
- package/build/stories/page/index.stories.d.ts +0 -6
- package/build/stories/pagination/_types.d.ts +0 -34
- package/build/stories/pagination/index.d.ts +0 -17
- package/build/stories/pagination/index.stories.d.ts +0 -7
- package/build/stories/profile-modal/UserContainer.d.ts +0 -3
- package/build/stories/profile-modal/_types.d.ts +0 -41
- package/build/stories/profile-modal/helpMenuItem.d.ts +0 -18
- package/build/stories/profile-modal/index.d.ts +0 -11
- package/build/stories/profile-modal/index.stories.d.ts +0 -6
- package/build/stories/profile-modal/languageMenuItem.d.ts +0 -14
- package/build/stories/profile-modal/menuItem.d.ts +0 -11
- package/build/stories/profile-modal/menuItemIcon.d.ts +0 -9
- package/build/stories/profile-modal/previousMenuButton.d.ts +0 -3
- package/build/stories/profile-modal/userMenu.d.ts +0 -3
- package/build/stories/profile-modal/utils.d.ts +0 -1
- package/build/stories/shared/globalStyle.d.ts +0 -2
- package/build/stories/table/_types.d.ts +0 -83
- package/build/stories/table/grouped.d.ts +0 -5
- package/build/stories/table/index.d.ts +0 -21
- package/build/stories/table/index.stories.d.ts +0 -18
- package/build/stories/tags/_types.d.ts +0 -17
- package/build/stories/tags/index.d.ts +0 -22
- package/build/stories/tags/index.stories.d.ts +0 -19
- package/build/stories/theme/gradients.d.ts +0 -4
- package/build/stories/theme/index.d.ts +0 -244
- package/build/stories/theme/mixins.d.ts +0 -3
- package/build/stories/theme/palette.d.ts +0 -141
- package/build/stories/theme/palette.stories.d.ts +0 -15
- package/build/stories/theme/utils.d.ts +0 -3
- package/build/stories/tiles/_types.d.ts +0 -12
- package/build/stories/tiles/index.d.ts +0 -22
- package/build/stories/tiles/index.stories.d.ts +0 -25
- package/build/stories/title/_types.d.ts +0 -5
- package/build/stories/title/index.d.ts +0 -7
- package/build/stories/title/index.stories.d.ts +0 -6
- package/build/stories/trigger/_types.d.ts +0 -3
- package/build/stories/trigger/index.d.ts +0 -7
- package/build/stories/typography/block-quote/_types.d.ts +0 -5
- package/build/stories/typography/block-quote/index.d.ts +0 -7
- package/build/stories/typography/block-quote/index.stories.d.ts +0 -5
- package/build/stories/typography/code/_types.d.ts +0 -7
- package/build/stories/typography/code/index.d.ts +0 -7
- package/build/stories/typography/code/index.stories.d.ts +0 -8
- package/build/stories/typography/ellipsis/_types.d.ts +0 -9
- package/build/stories/typography/ellipsis/index.d.ts +0 -7
- package/build/stories/typography/ellipsis/index.stories.d.ts +0 -5
- package/build/stories/typography/lists/_types.d.ts +0 -17
- package/build/stories/typography/lists/index.d.ts +0 -16
- package/build/stories/typography/lists/ordered.stories.d.ts +0 -9
- package/build/stories/typography/lists/unordered.stories.d.ts +0 -9
- package/build/stories/typography/paragraph/_types.d.ts +0 -5
- package/build/stories/typography/paragraph/index.d.ts +0 -7
- package/build/stories/typography/paragraph/index.stories.d.ts +0 -6
- package/build/stories/typography/span/_types.d.ts +0 -13
- package/build/stories/typography/span/index.d.ts +0 -13
- package/build/stories/typography/span/index.stories.d.ts +0 -6
- package/build/stories/typography/typescale/_types.d.ts +0 -43
- package/build/stories/typography/typescale/index.d.ts +0 -12
- package/build/stories/typography/typescale/index.stories.d.ts +0 -5
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
-
import { PaginationProps } from "./_types";
|
|
4
|
-
export declare const CursorPagination: Story<PaginationProps>;
|
|
5
|
-
export declare const NumberedPagination: Story<PaginationProps>;
|
|
6
|
-
declare const _default: ComponentMeta<(props: PaginationProps) => JSX.Element>;
|
|
7
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { LiHTMLAttributes } from "react";
|
|
2
|
-
import { NextItemArgs } from "../dropdowns/menu/_types";
|
|
3
|
-
import { ModalArgs } from "../modals/_types";
|
|
4
|
-
export interface ProfileModalArgs extends ModalArgs {
|
|
5
|
-
menuArgs: UserMenuArgs;
|
|
6
|
-
}
|
|
7
|
-
export interface MenuItemProps extends NextItemArgs {
|
|
8
|
-
selectedItem?: string;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
content?: any;
|
|
11
|
-
setActive: (item: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export interface Language {
|
|
14
|
-
key: string;
|
|
15
|
-
label: string;
|
|
16
|
-
}
|
|
17
|
-
export interface UserProfileProps {
|
|
18
|
-
name: string;
|
|
19
|
-
email: string;
|
|
20
|
-
picture?: string;
|
|
21
|
-
company?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface UserMenuArgs extends LiHTMLAttributes<HTMLLIElement> {
|
|
24
|
-
user: UserProfileProps;
|
|
25
|
-
csm: UserProfileProps;
|
|
26
|
-
feedbackTitle?: string;
|
|
27
|
-
feedbackSubTitle?: string;
|
|
28
|
-
csmTitle?: string;
|
|
29
|
-
csmContactLabel?: string;
|
|
30
|
-
languageTitle?: string;
|
|
31
|
-
currentLanguageLabel?: string;
|
|
32
|
-
languages: {
|
|
33
|
-
[key: string]: Language;
|
|
34
|
-
};
|
|
35
|
-
currentLanguage: string;
|
|
36
|
-
logoutTitle?: string;
|
|
37
|
-
onSelectLanguage: (lang: string) => void;
|
|
38
|
-
onFeedbackClick: () => void;
|
|
39
|
-
onToggleChat: () => void;
|
|
40
|
-
onLogout: () => void;
|
|
41
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MenuItemProps } from "./_types";
|
|
3
|
-
interface HelpItemProps extends MenuItemProps {
|
|
4
|
-
title: string;
|
|
5
|
-
value: string;
|
|
6
|
-
contactLabel: string;
|
|
7
|
-
copyLabel?: string;
|
|
8
|
-
chatSupportLabel?: string;
|
|
9
|
-
/** Toggle Chat https://docs.customerly.io/api/is-it-possible-to-open-the-live-chat-directly-from-a-link-or-a-custom-button */
|
|
10
|
-
toggleChat: () => void;
|
|
11
|
-
csm: {
|
|
12
|
-
name: string;
|
|
13
|
-
email: string;
|
|
14
|
-
picture?: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare const HelpItem: (props: HelpItemProps) => JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ProfileModalArgs } from "./_types";
|
|
3
|
-
/**
|
|
4
|
-
* Profile Modal
|
|
5
|
-
|
|
6
|
-
* Used for this:
|
|
7
|
-
- Show user main infos and actions
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
declare const ProfileModal: ({ menuArgs, ...args }: ProfileModalArgs) => JSX.Element;
|
|
11
|
-
export { ProfileModal };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
-
import { ProfileModalArgs } from "./_types";
|
|
4
|
-
export declare const Default: Story<ProfileModalArgs>;
|
|
5
|
-
declare const _default: ComponentMeta<({ menuArgs, ...args }: ProfileModalArgs) => JSX.Element>;
|
|
6
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Language, MenuItemProps } from "./_types";
|
|
3
|
-
interface LanguagesProps extends MenuItemProps {
|
|
4
|
-
title: string;
|
|
5
|
-
value: string;
|
|
6
|
-
languages: {
|
|
7
|
-
[key: string]: Language;
|
|
8
|
-
};
|
|
9
|
-
currentLanguage: string;
|
|
10
|
-
currentLanguageLabel?: string;
|
|
11
|
-
onSelectLanguage: (lang: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const LanguageItem: (props: LanguagesProps) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MenuItemProps } from "./_types";
|
|
3
|
-
export interface IStyledItemProps {
|
|
4
|
-
isFocused?: boolean;
|
|
5
|
-
isCompact?: boolean;
|
|
6
|
-
isDanger?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const MenuItemBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const MenuItem: ({ children, selectedItem, content, ...props }: MenuItemProps) => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface IStyledItemIconProps {
|
|
3
|
-
isCompact?: boolean;
|
|
4
|
-
isVisible?: boolean;
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const StyledMenuItemIcon: import("styled-components").StyledComponent<"div", any, IStyledItemIconProps, never>;
|
|
8
|
-
export declare const MenuItemIcon: (props: IStyledItemIconProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getInitials: (name: string) => string;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ITableProps, IRowProps, ICellProps, IHeaderCellProps, ISortableCellProps } from "@zendeskgarden/react-tables";
|
|
2
|
-
import { SIZE, SORT } from "@zendeskgarden/react-tables/dist/typings/styled";
|
|
3
|
-
import { IconArgs } from "../icons/_types";
|
|
4
|
-
export interface TableProps extends ITableProps {
|
|
5
|
-
/** Sets the table size */
|
|
6
|
-
size?: SIZE;
|
|
7
|
-
/** Removes interactive styling from table rows */
|
|
8
|
-
isReadOnly?: boolean;
|
|
9
|
-
columns?: Array<{
|
|
10
|
-
name: string;
|
|
11
|
-
field: string;
|
|
12
|
-
}>;
|
|
13
|
-
items?: Array<IRow>;
|
|
14
|
-
groups?: Array<Group> | null;
|
|
15
|
-
isStriped?: boolean;
|
|
16
|
-
hasCaption?: boolean;
|
|
17
|
-
isTruncated?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface HeaderCellArgs extends IHeaderCellProps {
|
|
20
|
-
/** Applies striped styling */
|
|
21
|
-
isStriped?: boolean;
|
|
22
|
-
/** @ignore Applies focus styling */
|
|
23
|
-
isFocused?: boolean;
|
|
24
|
-
/** @ignore Applies hover styling */
|
|
25
|
-
isHovered?: boolean;
|
|
26
|
-
/** Applies selected styling */
|
|
27
|
-
isSelected?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface RowArgs extends IRowProps {
|
|
30
|
-
/** Applies striped styling */
|
|
31
|
-
isStriped?: boolean;
|
|
32
|
-
/** @ignore Applies focus styling */
|
|
33
|
-
isFocused?: boolean;
|
|
34
|
-
/** @ignore Applies hover styling */
|
|
35
|
-
isHovered?: boolean;
|
|
36
|
-
/** Applies selected styling */
|
|
37
|
-
isSelected?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface CellArgs extends ICellProps {
|
|
40
|
-
/**
|
|
41
|
-
* Applies minimum fixed width styling (e.g. for cells that contain
|
|
42
|
-
* checkboxes or icons)
|
|
43
|
-
*/
|
|
44
|
-
isMinimum?: boolean;
|
|
45
|
-
/** Truncates long text with an ellipsis */
|
|
46
|
-
isTruncated?: boolean;
|
|
47
|
-
/** Applies styling for a cell that contains an overflow menu */
|
|
48
|
-
hasOverflow?: boolean;
|
|
49
|
-
/** Adjusts the [width](https://developer.mozilla.org/en-US/docs/Web/CSS/width) of the cell */
|
|
50
|
-
width?: string | number;
|
|
51
|
-
}
|
|
52
|
-
export interface HeadArgs extends ICellProps {
|
|
53
|
-
/**
|
|
54
|
-
* Applies minimum fixed width styling (e.g. for cells that contain
|
|
55
|
-
* checkboxes or icons)
|
|
56
|
-
*/
|
|
57
|
-
isMinimum?: boolean;
|
|
58
|
-
/** Truncates long text with an ellipsis */
|
|
59
|
-
isTruncated?: boolean;
|
|
60
|
-
/** Applies styling for a cell that contains an overflow menu */
|
|
61
|
-
hasOverflow?: boolean;
|
|
62
|
-
/** Adjusts the [width](https://developer.mozilla.org/en-US/docs/Web/CSS/width) of the cell */
|
|
63
|
-
width?: string | number;
|
|
64
|
-
}
|
|
65
|
-
export interface SortableCellArgs extends ISortableCellProps {
|
|
66
|
-
/** Sets the sort order */
|
|
67
|
-
sort?: SORT;
|
|
68
|
-
/** Sets the width of the cell */
|
|
69
|
-
width?: string | number;
|
|
70
|
-
/** Passes props to the cell */
|
|
71
|
-
cellProps?: any;
|
|
72
|
-
}
|
|
73
|
-
export interface IRow {
|
|
74
|
-
id?: number | string;
|
|
75
|
-
groupName?: string;
|
|
76
|
-
selected?: boolean;
|
|
77
|
-
[index: string]: any;
|
|
78
|
-
}
|
|
79
|
-
export interface Group {
|
|
80
|
-
groupName: string;
|
|
81
|
-
groupIcon: IconArgs["type"];
|
|
82
|
-
items: Array<IRow>;
|
|
83
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { CellArgs, HeaderCellArgs, RowArgs, SortableCellArgs, TableProps } from "./_types";
|
|
3
|
-
/**
|
|
4
|
-
* A Table organizes data into columns and rows. Tables make it easier for users to compare and analyze information.
|
|
5
|
-
|
|
6
|
-
* Used for this:
|
|
7
|
-
- To organize and display read-only data with logical relationships
|
|
8
|
-
|
|
9
|
-
* Not for this:
|
|
10
|
-
- To structure content on a page, use the Grid component instead
|
|
11
|
-
*/
|
|
12
|
-
declare const Table: (props: TableProps) => JSX.Element;
|
|
13
|
-
declare const Head: (props: HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
14
|
-
declare const HeaderRow: (props: RowArgs) => JSX.Element;
|
|
15
|
-
declare const HeaderCell: (props: HeaderCellArgs) => JSX.Element;
|
|
16
|
-
declare const Body: (props: HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
17
|
-
declare const Row: (props: RowArgs) => JSX.Element;
|
|
18
|
-
declare const Cell: (props: CellArgs) => JSX.Element;
|
|
19
|
-
declare const Caption: (props: HTMLAttributes<HTMLTableCaptionElement>) => JSX.Element;
|
|
20
|
-
declare const SortableCell: (props: SortableCellArgs) => JSX.Element;
|
|
21
|
-
export { Table, Head, HeaderRow, HeaderCell, Body, Row, Cell, Caption, SortableCell };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
-
import { TableProps } from "./_types";
|
|
4
|
-
export declare const Default: Story<TableProps>;
|
|
5
|
-
export declare const Grouped: Story<TableProps>;
|
|
6
|
-
export declare const WithPagination: Story<TableProps>;
|
|
7
|
-
/** STRIPED */
|
|
8
|
-
export declare const Striped: Story<TableProps>;
|
|
9
|
-
/** WITH CAPTION */
|
|
10
|
-
export declare const WithCaption: Story<TableProps>;
|
|
11
|
-
/** TRUNCATED */
|
|
12
|
-
export declare const Truncated: Story<TableProps>;
|
|
13
|
-
export declare const Scroll: Story<TableProps>;
|
|
14
|
-
export declare const Selection: Story<TableProps>;
|
|
15
|
-
export declare const Sort: Story<TableProps>;
|
|
16
|
-
export declare const VirtualScrolling: Story<TableProps>;
|
|
17
|
-
declare const _default: ComponentMeta<(props: TableProps) => JSX.Element>;
|
|
18
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ITagProps } from '@zendeskgarden/react-tags';
|
|
2
|
-
export interface TagArgs extends ITagProps {
|
|
3
|
-
/** Adjusts font size and padding */
|
|
4
|
-
size?: 'small' | 'medium' | 'large';
|
|
5
|
-
/**
|
|
6
|
-
* Sets the color of the tag. Refer to
|
|
7
|
-
* [PALETTE](/components/palette#palette)
|
|
8
|
-
* for available colors. Accepts any hex value.
|
|
9
|
-
*/
|
|
10
|
-
hue?: string;
|
|
11
|
-
/** Applies pill styling */
|
|
12
|
-
isPill?: boolean;
|
|
13
|
-
/** Applies styles to round the tag */
|
|
14
|
-
isRound?: boolean;
|
|
15
|
-
/** Applies regular (non-bold) font weight */
|
|
16
|
-
isRegular?: boolean;
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TagArgs } from "./_types";
|
|
3
|
-
/**
|
|
4
|
-
* Tags let users categorize content using a keyword.
|
|
5
|
-
|
|
6
|
-
* Used for this:
|
|
7
|
-
- To add metadata to an element such as category, attribute, or property
|
|
8
|
-
- To communicate status
|
|
9
|
-
- To represent parameters of a filter
|
|
10
|
-
|
|
11
|
-
* Not for this:
|
|
12
|
-
- To prompt an action by the user, use a Button instead
|
|
13
|
-
*/
|
|
14
|
-
declare const Tag: {
|
|
15
|
-
(props: TagArgs): JSX.Element;
|
|
16
|
-
Avatar: {
|
|
17
|
-
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
Close: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
-
};
|
|
22
|
-
export { Tag };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
-
import { TagArgs } from "./_types";
|
|
4
|
-
interface TagStoryProps extends TagArgs {
|
|
5
|
-
canBeClosed: boolean;
|
|
6
|
-
hasAvatar: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const Default: Story<TagStoryProps>;
|
|
9
|
-
export declare const Avatar: Story<TagStoryProps>;
|
|
10
|
-
export declare const Close: Story<TagStoryProps>;
|
|
11
|
-
declare const _default: ComponentMeta<{
|
|
12
|
-
(props: TagArgs): JSX.Element;
|
|
13
|
-
Avatar: {
|
|
14
|
-
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
Close: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
-
}>;
|
|
19
|
-
export default _default;
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
declare const theme: {
|
|
2
|
-
palette: {
|
|
3
|
-
black: string;
|
|
4
|
-
white: string;
|
|
5
|
-
product: {
|
|
6
|
-
support: string;
|
|
7
|
-
message: string;
|
|
8
|
-
explore: string;
|
|
9
|
-
gather: string;
|
|
10
|
-
guide: string;
|
|
11
|
-
connect: string;
|
|
12
|
-
chat: string;
|
|
13
|
-
talk: string;
|
|
14
|
-
sell: string;
|
|
15
|
-
};
|
|
16
|
-
grey: {
|
|
17
|
-
"100": string;
|
|
18
|
-
"200": string;
|
|
19
|
-
"300": string;
|
|
20
|
-
"400": string;
|
|
21
|
-
"500": string;
|
|
22
|
-
"600": string;
|
|
23
|
-
"700": string;
|
|
24
|
-
"800": string;
|
|
25
|
-
};
|
|
26
|
-
blue: {
|
|
27
|
-
"100": string;
|
|
28
|
-
"200": string;
|
|
29
|
-
"300": string;
|
|
30
|
-
"400": string;
|
|
31
|
-
"500": string;
|
|
32
|
-
"600": string;
|
|
33
|
-
"700": string;
|
|
34
|
-
"800": string;
|
|
35
|
-
};
|
|
36
|
-
red: {
|
|
37
|
-
"100": string;
|
|
38
|
-
"200": string;
|
|
39
|
-
"300": string;
|
|
40
|
-
"400": string;
|
|
41
|
-
"500": string;
|
|
42
|
-
"600": string;
|
|
43
|
-
"700": string;
|
|
44
|
-
"800": string;
|
|
45
|
-
};
|
|
46
|
-
yellow: {
|
|
47
|
-
"100": string;
|
|
48
|
-
"200": string;
|
|
49
|
-
"300": string;
|
|
50
|
-
"400": string;
|
|
51
|
-
"500": string;
|
|
52
|
-
"600": string;
|
|
53
|
-
"700": string;
|
|
54
|
-
"800": string;
|
|
55
|
-
};
|
|
56
|
-
green: {
|
|
57
|
-
"100": string;
|
|
58
|
-
"200": string;
|
|
59
|
-
"300": string;
|
|
60
|
-
"400": string;
|
|
61
|
-
"500": string;
|
|
62
|
-
"600": string;
|
|
63
|
-
"700": string;
|
|
64
|
-
"800": string;
|
|
65
|
-
};
|
|
66
|
-
kale: {
|
|
67
|
-
"100": string;
|
|
68
|
-
"200": string;
|
|
69
|
-
"300": string;
|
|
70
|
-
"400": string;
|
|
71
|
-
"500": string;
|
|
72
|
-
"600": string;
|
|
73
|
-
"700": string;
|
|
74
|
-
"800": string;
|
|
75
|
-
};
|
|
76
|
-
fuschia: {
|
|
77
|
-
"400": string;
|
|
78
|
-
"600": string;
|
|
79
|
-
M400: string;
|
|
80
|
-
M600: string;
|
|
81
|
-
};
|
|
82
|
-
pink: {
|
|
83
|
-
"400": string;
|
|
84
|
-
"600": string;
|
|
85
|
-
M400: string;
|
|
86
|
-
M600: string;
|
|
87
|
-
};
|
|
88
|
-
crimson: {
|
|
89
|
-
"400": string;
|
|
90
|
-
"600": string;
|
|
91
|
-
M400: string;
|
|
92
|
-
M600: string;
|
|
93
|
-
};
|
|
94
|
-
orange: {
|
|
95
|
-
"400": string;
|
|
96
|
-
"600": string;
|
|
97
|
-
M400: string;
|
|
98
|
-
M600: string;
|
|
99
|
-
};
|
|
100
|
-
lemon: {
|
|
101
|
-
"400": string;
|
|
102
|
-
"600": string;
|
|
103
|
-
M400: string;
|
|
104
|
-
M600: string;
|
|
105
|
-
};
|
|
106
|
-
lime: {
|
|
107
|
-
"400": string;
|
|
108
|
-
"600": string;
|
|
109
|
-
M400: string;
|
|
110
|
-
M600: string;
|
|
111
|
-
};
|
|
112
|
-
mint: {
|
|
113
|
-
"400": string;
|
|
114
|
-
"600": string;
|
|
115
|
-
M400: string;
|
|
116
|
-
M600: string;
|
|
117
|
-
};
|
|
118
|
-
teal: {
|
|
119
|
-
"400": string;
|
|
120
|
-
"600": string;
|
|
121
|
-
M400: string;
|
|
122
|
-
M600: string;
|
|
123
|
-
};
|
|
124
|
-
azure: {
|
|
125
|
-
"400": string;
|
|
126
|
-
"600": string;
|
|
127
|
-
M400: string;
|
|
128
|
-
M600: string;
|
|
129
|
-
};
|
|
130
|
-
royal: {
|
|
131
|
-
"400": string;
|
|
132
|
-
"600": string;
|
|
133
|
-
M400: string;
|
|
134
|
-
M600: string;
|
|
135
|
-
};
|
|
136
|
-
purple: {
|
|
137
|
-
"400": string;
|
|
138
|
-
"600": string;
|
|
139
|
-
M400: string;
|
|
140
|
-
M600: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
fonts: {
|
|
144
|
-
system: string;
|
|
145
|
-
mono: string;
|
|
146
|
-
};
|
|
147
|
-
gradients: {
|
|
148
|
-
horizontal: string;
|
|
149
|
-
dark: string;
|
|
150
|
-
};
|
|
151
|
-
borderRadii: {
|
|
152
|
-
lg: string;
|
|
153
|
-
sm: string;
|
|
154
|
-
md: string;
|
|
155
|
-
};
|
|
156
|
-
components: {
|
|
157
|
-
Headers: any;
|
|
158
|
-
};
|
|
159
|
-
shadows: {
|
|
160
|
-
boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
|
|
161
|
-
sm: (color: string) => string;
|
|
162
|
-
md: (color: string) => string;
|
|
163
|
-
lg: (offsetY: string, blurRadius: string, color: string) => string;
|
|
164
|
-
};
|
|
165
|
-
rtl: boolean;
|
|
166
|
-
document?: any;
|
|
167
|
-
borders: {
|
|
168
|
-
sm: string;
|
|
169
|
-
md: string;
|
|
170
|
-
};
|
|
171
|
-
borderStyles: {
|
|
172
|
-
solid: string;
|
|
173
|
-
};
|
|
174
|
-
borderWidths: {
|
|
175
|
-
sm: string;
|
|
176
|
-
md: string;
|
|
177
|
-
};
|
|
178
|
-
breakpoints: {
|
|
179
|
-
xs: string;
|
|
180
|
-
sm: string;
|
|
181
|
-
md: string;
|
|
182
|
-
lg: string;
|
|
183
|
-
xl: string;
|
|
184
|
-
};
|
|
185
|
-
colors: {
|
|
186
|
-
base: "light" | "dark";
|
|
187
|
-
background: string;
|
|
188
|
-
foreground: string;
|
|
189
|
-
primaryHue: string;
|
|
190
|
-
dangerHue: string;
|
|
191
|
-
warningHue: string;
|
|
192
|
-
successHue: string;
|
|
193
|
-
neutralHue: string;
|
|
194
|
-
chromeHue: string;
|
|
195
|
-
};
|
|
196
|
-
fontSizes: {
|
|
197
|
-
xs: string;
|
|
198
|
-
sm: string;
|
|
199
|
-
md: string;
|
|
200
|
-
lg: string;
|
|
201
|
-
xl: string;
|
|
202
|
-
xxl: string;
|
|
203
|
-
xxxl: string;
|
|
204
|
-
};
|
|
205
|
-
fontWeights: {
|
|
206
|
-
thin: number;
|
|
207
|
-
extralight: number;
|
|
208
|
-
light: number;
|
|
209
|
-
regular: number;
|
|
210
|
-
medium: number;
|
|
211
|
-
semibold: number;
|
|
212
|
-
bold: number;
|
|
213
|
-
extrabold: number;
|
|
214
|
-
black: number;
|
|
215
|
-
};
|
|
216
|
-
iconSizes: {
|
|
217
|
-
sm: string;
|
|
218
|
-
md: string;
|
|
219
|
-
lg: string;
|
|
220
|
-
};
|
|
221
|
-
lineHeights: {
|
|
222
|
-
sm: string;
|
|
223
|
-
md: string;
|
|
224
|
-
lg: string;
|
|
225
|
-
xl: string;
|
|
226
|
-
xxl: string;
|
|
227
|
-
xxxl: string;
|
|
228
|
-
};
|
|
229
|
-
shadowWidths: {
|
|
230
|
-
sm: string;
|
|
231
|
-
md: string;
|
|
232
|
-
};
|
|
233
|
-
space: {
|
|
234
|
-
base: number;
|
|
235
|
-
xxs: string;
|
|
236
|
-
xs: string;
|
|
237
|
-
sm: string;
|
|
238
|
-
md: string;
|
|
239
|
-
lg: string;
|
|
240
|
-
xl: string;
|
|
241
|
-
xxl: string;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
export { theme };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const flexCenter: import("styled-components").FlattenSimpleInterpolation;
|
|
2
|
-
export declare const flexColumnCenter: import("styled-components").FlattenSimpleInterpolation;
|
|
3
|
-
export declare const flexStart: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|