es-components 21.14.3 → 21.14.4
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/bundle/main.min.js +1 -1
- package/cjs/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +11 -9
- package/types/{tsconfig.tsbuildinfo → build.tsconfig.tsbuildinfo} +1 -1
- package/types/shared/.tsbuildinfo +1 -0
- package/types/shared/ESTheme.d.ts +167 -0
- package/types/shared/IconNames.d.ts +2 -0
- package/types/shared/index.d.ts +4 -0
- package/types/src/components/base/icons/Icon.d.ts +2 -2
- package/types/src/components/base/icons/useIconStyles.d.ts +1 -1
- package/types/src/components/containers/banner/Banner.d.ts +2 -2
- package/types/src/components/containers/drawer/Drawer.d.ts +1 -1
- package/types/src/components/containers/drawer/DrawerPanel.d.ts +3 -3
- package/types/src/components/containers/form/Form.d.ts +1 -1
- package/types/src/components/containers/heading/Heading.d.ts +1 -1
- package/types/src/components/containers/menu/Menu.d.ts +1 -1
- package/types/src/components/containers/modal/ModalHeader.d.ts +1 -1
- package/types/src/components/containers/notification/BaseNotification.d.ts +1 -1
- package/types/src/components/containers/notification/Notification.d.ts +1 -1
- package/types/src/components/containers/prompt/PromptType.d.ts +1 -1
- package/types/src/components/containers/sliding-pane/SlidingPane.d.ts +1 -1
- package/types/src/components/controls/Control.d.ts +1 -1
- package/types/src/components/controls/ValidationContext.d.ts +2 -2
- package/types/src/components/controls/answer-group/AnswerButton.d.ts +3 -3
- package/types/src/components/controls/buttons/ActionButton.d.ts +2 -2
- package/types/src/components/controls/buttons/Button.d.ts +1 -1
- package/types/src/components/controls/buttons/IconButton.d.ts +1 -1
- package/types/src/components/controls/buttons/OutlineButton.d.ts +2 -2
- package/types/src/components/controls/buttons/PopoverLink.d.ts +1 -1
- package/types/src/components/controls/buttons/ToggleButton.d.ts +1 -1
- package/types/src/components/controls/radio-buttons/RadioButton.d.ts +1 -1
- package/types/src/components/controls/radio-buttons/RadioGroupContext.d.ts +1 -1
- package/types/src/components/controls/switch/Switch.d.ts +1 -1
- package/types/src/components/controls/textbox/InputBase.d.ts +1 -1
- package/types/src/components/controls/textbox/MaskedTextbox.d.ts +2 -2
- package/types/src/components/controls/textbox/Textbox.d.ts +3 -3
- package/types/src/components/patterns/progress-tracker/ProgressTracker.d.ts +89 -89
- package/types/src/components/patterns/selectionDrawer/SelectionDrawer.d.ts +1 -1
- package/types/src/components/patterns/selectionDrawer/SelectionDrawerItem.d.ts +1 -1
- package/types/src/components/patterns/selectionDrawer/SelectionDrawerProvider.d.ts +1 -1
- package/types/src/global.d.ts +1 -1
- package/types/src/index.d.ts +5 -5
- package/types/src/styleguide/styleguideTheme.d.ts +1 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as CSS from 'csstype';
|
|
2
|
+
import { IconName } from './IconNames';
|
|
3
|
+
export declare const buttonSizes: readonly ["lg", "sm", "xs", "default"];
|
|
4
|
+
export type ButtonSize = (typeof buttonSizes)[number];
|
|
5
|
+
export interface ButtonSizeBlock {
|
|
6
|
+
borderRadius: CSS.Property.BorderRadius;
|
|
7
|
+
fontSize: CSS.Property.FontSize;
|
|
8
|
+
fontWeight?: CSS.Property.FontWeight;
|
|
9
|
+
lineHeight: CSS.Property.LineHeight;
|
|
10
|
+
paddingTop: CSS.Property.PaddingTop;
|
|
11
|
+
paddingSides: CSS.Property.PaddingLeft;
|
|
12
|
+
paddingBottom: CSS.Property.PaddingBottom;
|
|
13
|
+
textTransform?: CSS.Property.TextTransform;
|
|
14
|
+
}
|
|
15
|
+
export type ButtonSizeBlocks = {
|
|
16
|
+
[key in ButtonSize]: ButtonSizeBlock;
|
|
17
|
+
};
|
|
18
|
+
export declare const buttonVariantStyleTypes: readonly ["primary", "default", "darkDefault", "success", "danger", "warning", "info", "information", "magenta", "violet"];
|
|
19
|
+
export type ButtonVariantStyleType = (typeof buttonVariantStyleTypes)[number];
|
|
20
|
+
export declare const validationStyleTypes: readonly ["success", "info", "warning", "danger", "advisor", "default"];
|
|
21
|
+
export type ValidationStyleType = (typeof validationStyleTypes)[number];
|
|
22
|
+
export interface ValidationAddOn {
|
|
23
|
+
textColor: CSS.Property.Color;
|
|
24
|
+
backgroundColor: CSS.Property.BackgroundColor;
|
|
25
|
+
borderColor?: CSS.Property.BorderColor;
|
|
26
|
+
}
|
|
27
|
+
export interface ButtonVariant {
|
|
28
|
+
bgColor?: CSS.Property.BackgroundColor;
|
|
29
|
+
textColor?: CSS.Property.Color;
|
|
30
|
+
hoverBgColor?: CSS.Property.BackgroundColor;
|
|
31
|
+
hoverColor?: CSS.Property.Color;
|
|
32
|
+
}
|
|
33
|
+
export interface BGColorButtonVariant extends ButtonVariant {
|
|
34
|
+
bgColor: NonNullable<CSS.Property.BackgroundColor>;
|
|
35
|
+
}
|
|
36
|
+
export interface TextColorButtonVariant extends ButtonVariant {
|
|
37
|
+
textColor: NonNullable<CSS.Property.BackgroundColor>;
|
|
38
|
+
}
|
|
39
|
+
export type ButtonVariants<T extends ButtonVariant> = {
|
|
40
|
+
[key in ButtonVariantStyleType]: T;
|
|
41
|
+
} & {
|
|
42
|
+
inherited: T;
|
|
43
|
+
};
|
|
44
|
+
export type ButtonStyles<T extends ButtonVariant> = {
|
|
45
|
+
variant: ButtonVariants<T>;
|
|
46
|
+
} & (T extends BGColorButtonVariant ? {
|
|
47
|
+
size: ButtonSizeBlocks;
|
|
48
|
+
} : {
|
|
49
|
+
size?: ButtonSizeBlocks;
|
|
50
|
+
});
|
|
51
|
+
export interface NotificationStyleBlock {
|
|
52
|
+
bgColor: CSS.Property.BackgroundColor;
|
|
53
|
+
textColor: CSS.Property.Color;
|
|
54
|
+
borderColor?: CSS.Property.BorderColor;
|
|
55
|
+
borderStyle?: CSS.Property.BorderStyle;
|
|
56
|
+
borderWidth?: CSS.Property.BorderWidth;
|
|
57
|
+
}
|
|
58
|
+
export declare const notificationStyleTypes: readonly ["base", "light", "messageOnly"];
|
|
59
|
+
export type NotificationStyleType = (typeof notificationStyleTypes)[number];
|
|
60
|
+
export type NotificationStyle = {
|
|
61
|
+
[key in NotificationStyleType]: NotificationStyleBlock;
|
|
62
|
+
};
|
|
63
|
+
export type NotificationStyles = {
|
|
64
|
+
[key in ValidationStyleType]: NotificationStyle;
|
|
65
|
+
};
|
|
66
|
+
declare const colorNames: readonly ["white", "gray0", "gray1", "gray2", "gray3", "gray4", "gray5", "gray6", "gray7", "gray8", "gray9", "black", "blue25", "blue50", "blue100", "blue300", "blue500", "blue700", "blue900", "green50", "green100", "green300", "green500", "green700", "green900", "magenta50", "magenta100", "magenta300", "magenta500", "magenta700", "magenta900", "violet50", "violet100", "violet300", "violet500", "violet700", "violet900", "yellow50", "yellow100", "yellow300", "yellow500", "yellow700", "yellow900", "primary", "primaryHover", "primaryLight", "success", "successHover", "successLight", "info", "infoHover", "infoLight", "warning", "warningHover", "warningLight", "danger", "dangerHover", "dangerLight", "advisor", "advisorLight", "boxShadowLight", "boxShadowDark", "inputFocus", "disabled"];
|
|
67
|
+
export type ColorName = (typeof colorNames)[number];
|
|
68
|
+
export type Colors = {
|
|
69
|
+
[key in ColorName]: CSS.Property.Color;
|
|
70
|
+
};
|
|
71
|
+
export declare const screenSizeNames: readonly ["retina", "phone", "tablet", "desktop", "widescreen"];
|
|
72
|
+
export type ScreenSizeName = (typeof screenSizeNames)[number];
|
|
73
|
+
export type FormStyle = 'default' | 'flat';
|
|
74
|
+
export type ValidationInputColor = {
|
|
75
|
+
backgroundColor: CSS.Property.BackgroundColor;
|
|
76
|
+
backgroundColorFlat: CSS.Property.BackgroundColor;
|
|
77
|
+
borderColor: CSS.Property.BorderColor;
|
|
78
|
+
boxShadow: CSS.Property.BoxShadow;
|
|
79
|
+
focusBorderColor: CSS.Property.BorderColor;
|
|
80
|
+
focusBoxShadow: CSS.Property.BoxShadow;
|
|
81
|
+
focusBoxShadowFlat: CSS.Property.BoxShadow;
|
|
82
|
+
addOn: ValidationAddOn;
|
|
83
|
+
};
|
|
84
|
+
export type DatepickerColors = {
|
|
85
|
+
dpBackground: CSS.Property.BackgroundColor;
|
|
86
|
+
navArrow: CSS.Property.BorderColor;
|
|
87
|
+
navArrowHover: CSS.Property.BorderColor;
|
|
88
|
+
selected: CSS.Property.BackgroundColor;
|
|
89
|
+
hover: CSS.Property.BackgroundColor;
|
|
90
|
+
keyboard: CSS.Property.BackgroundColor;
|
|
91
|
+
inRange: CSS.Property.BackgroundColor;
|
|
92
|
+
highlight: CSS.Property.BackgroundColor;
|
|
93
|
+
highlightHover: CSS.Property.BackgroundColor;
|
|
94
|
+
};
|
|
95
|
+
export declare const headingLevel: readonly [1, 2, 3, 4, 5, 6];
|
|
96
|
+
export type HeadingLevel = (typeof headingLevel)[number];
|
|
97
|
+
export type BannerBlock = {
|
|
98
|
+
bgColor: CSS.Property.BackgroundColor;
|
|
99
|
+
textColor: CSS.Property.Color;
|
|
100
|
+
};
|
|
101
|
+
export type PromptBlock = {
|
|
102
|
+
bgColor: CSS.Property.BackgroundColor;
|
|
103
|
+
bannerBgColor: CSS.Property.BackgroundColor;
|
|
104
|
+
bannerTextColor: CSS.Property.Color;
|
|
105
|
+
textColor: CSS.Property.Color;
|
|
106
|
+
iconColor: CSS.Property.Color;
|
|
107
|
+
iconName: IconName;
|
|
108
|
+
};
|
|
109
|
+
export declare const promptStyles: readonly ["readAloud", "doNotReadAloud"];
|
|
110
|
+
export type PromptStyle = (typeof promptStyles)[number];
|
|
111
|
+
export default interface ESTheme {
|
|
112
|
+
themeName: string;
|
|
113
|
+
colors: Colors;
|
|
114
|
+
brandColors: {
|
|
115
|
+
primary1: CSS.Property.Color;
|
|
116
|
+
primary2: CSS.Property.Color;
|
|
117
|
+
primary3: CSS.Property.Color;
|
|
118
|
+
secondary1: CSS.Property.Color;
|
|
119
|
+
secondary2: CSS.Property.Color;
|
|
120
|
+
};
|
|
121
|
+
font: {
|
|
122
|
+
[key: string]: string | number | object | undefined;
|
|
123
|
+
baseFontSize: CSS.Property.FontSize;
|
|
124
|
+
baseFontFace: CSS.Property.FontFamily;
|
|
125
|
+
baseLineHeight: CSS.Property.LineHeight;
|
|
126
|
+
headingDesktop: Record<HeadingLevel, string>;
|
|
127
|
+
headingMobile: Record<HeadingLevel, string>;
|
|
128
|
+
labelFontSize?: CSS.Property.FontSize;
|
|
129
|
+
labelFontWeight?: CSS.Property.FontWeight;
|
|
130
|
+
};
|
|
131
|
+
screenSize: {
|
|
132
|
+
[key in ScreenSizeName]: CSS.Property.Width;
|
|
133
|
+
};
|
|
134
|
+
spacing: {
|
|
135
|
+
defaultMargin: CSS.Property.Padding;
|
|
136
|
+
};
|
|
137
|
+
validationIconName: {
|
|
138
|
+
[key in ValidationStyleType]: IconName;
|
|
139
|
+
};
|
|
140
|
+
validationTextColor: {
|
|
141
|
+
[key in ValidationStyleType]: CSS.Property.Color;
|
|
142
|
+
};
|
|
143
|
+
validationInputColor: {
|
|
144
|
+
[key in ValidationStyleType]: ValidationInputColor;
|
|
145
|
+
};
|
|
146
|
+
notificationStyles: NotificationStyles;
|
|
147
|
+
buttonStyles: {
|
|
148
|
+
button: ButtonStyles<BGColorButtonVariant>;
|
|
149
|
+
outlineButton: ButtonStyles<BGColorButtonVariant>;
|
|
150
|
+
linkButton: ButtonStyles<TextColorButtonVariant>;
|
|
151
|
+
};
|
|
152
|
+
inputStyles: {
|
|
153
|
+
borderRadius: CSS.Property.BorderRadius;
|
|
154
|
+
defaultFormStyle: FormStyle;
|
|
155
|
+
dropdownArrow: CSS.Property.BackgroundImage;
|
|
156
|
+
inputHeight: CSS.Property.Height;
|
|
157
|
+
dropdownLineHeight: CSS.Property.LineHeight;
|
|
158
|
+
};
|
|
159
|
+
bannerStyles: {
|
|
160
|
+
[key in ValidationStyleType]: BannerBlock;
|
|
161
|
+
};
|
|
162
|
+
promptStyles: {
|
|
163
|
+
[key in PromptStyle]: PromptBlock;
|
|
164
|
+
};
|
|
165
|
+
datepickerColors: DatepickerColors;
|
|
166
|
+
}
|
|
167
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const iconNames: readonly ["accessibility", "add-circle", "add", "agent", "alarm-clock", "align-center", "align-justify", "align-left", "align-right", "archive-folder", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "asterisk", "attachment", "bathtub", "being-sick", "bell", "bicycle", "blood-drop", "bold", "bone", "book", "bookmark", "bot", "boy", "brain", "briefcase", "broken-leg", "bullhorn", "calculator", "calendar", "call-transfer", "camera", "cash-in-hand", "cell", "certificate-ribbon", "certificate", "change", "check-document", "checkbox-checked", "checkbox", "checked", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "christmas-gift", "circle-arrow-down", "circle-arrow-left", "circle-arrow-right", "circle-arrow-up", "clear-filters", "click-and-collect", "clinic", "cog", "comment", "comments", "compass", "confusion", "copy", "cut", "dashboard", "denied", "desktop", "detour", "disabled-access", "discussion", "divide", "dna-helix", "doctors-bag", "dollar-sign", "double-chevron-down", "double-chevron-left", "double-chevron-right", "double-chevron-up", "download-alt", "download", "edit-document", "edit", "element-block", "element-page", "element-section", "envelope", "exclamation-circle", "exclamation-sign", "exclamation", "exit", "export", "external-link", "eye-closed", "eye-open", "federal", "file-download", "file-open", "file", "fill", "film", "fire", "flag-empty", "flag-filled", "flash", "folder-close", "folder-open", "folder-up-level", "font", "for-you", "form-agreement", "form-checkbox", "form-dropdown", "form-number", "form-radio", "form-text-box", "form-text", "fullscreen", "funnel", "girl", "glasses", "globe", "glucometer", "hand-down", "hand-left", "hand-right", "hand-up", "handshake-heart", "header", "health-checkup", "health", "hearing-aid", "hearing", "heart-empty", "heart-filled", "heart-plus", "helping-hand", "history", "home", "hourglass", "house", "household", "hyperlink", "idea", "in-progress", "inbox", "indent-left", "indent-right", "info-circle", "info-popup", "info-squared", "info", "internal-call", "italic", "keyhole-shield", "kidney", "leaf", "lightning-bolt", "list-numbered", "list-thumbnails", "list-unordered", "list", "liver", "lock-open", "lock", "log-in", "log-out", "logout-rounded-left", "lungs", "mailbox-closed-flag-down", "male-user", "man", "map-marker", "map-with-marker", "measuring-tape", "medical-doctor", "medical", "menu-btn", "message", "minus-circle", "minus", "molecule", "moleskine", "money", "move", "muscle", "network", "neuron", "new-window", "no-symbol", "non-smoker", "notepad", "ok-circle", "ok", "options-horizontal", "options-vertical", "out-of-network", "out-patient-department", "outgoing-call", "paragraph", "paste", "pause", "paycheck", "paycheque", "phone-analog", "phone", "physical-therapy", "picture", "piggy-bank", "play-circle", "play", "policy-document", "power", "prescription-pill-bottle", "prescription", "print", "profile", "profit", "purchase-order", "push-pin", "question-circle", "question", "questions", "random", "read-message", "redo", "refresh", "remove-circle", "remove", "repeat", "reply-arrow", "resize-full", "resize-horizontal", "resize-small", "resize-vertical", "retweet", "road", "rod-of-asclepius", "rubber-stamp", "rx", "save", "scale", "screenshot", "search-property", "search", "security-checked", "share", "shopping-cart", "skin", "skip-to-start", "smoker", "sms", "sort-alpha-reverse", "sort-alpha", "sort-ascending", "sort-descending", "sort-num-reverse", "sort-num", "sort", "speak-to-expert", "speech-bubble-with-dots", "speech-bubble", "spouse", "star-empty", "star-filled", "stats", "stethoscope", "stock-growth", "stomach", "submit-document", "switch", "tag", "tags", "tasks", "text-color", "text-height", "text-size", "text-width", "thumbnails-large", "thumbnails", "thumbs-down", "thumbs-up", "time", "today", "tooth", "transfer", "trash", "trophy", "truck", "trust", "tune", "umbrella", "underline", "undo", "upload", "urgent-message", "user-secured", "user-shield", "user", "users", "video", "voice-check", "walker", "wallet", "woman", "wrench", "zoom-in", "zoom-out"];
|
|
2
|
+
export type IconName = (typeof iconNames)[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
|
-
import { IconName } from "
|
|
3
|
+
import { IconName } from "../../../../shared";
|
|
4
4
|
export declare const iconBasics: import("styled-components").FlattenSimpleInterpolation;
|
|
5
5
|
export type IconBaseProps = {
|
|
6
6
|
size?: CSS.Property.FontSize;
|
|
@@ -8,7 +8,7 @@ export type IconBaseProps = {
|
|
|
8
8
|
export declare const iconBaseStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<IconBaseProps, import("styled-components").DefaultTheme>>;
|
|
9
9
|
type IconInternalProps = {
|
|
10
10
|
name?: IconName;
|
|
11
|
-
size?: CSS.Property.FontSize | number;
|
|
11
|
+
size?: Exclude<CSS.Property.FontSize, 0> | number;
|
|
12
12
|
};
|
|
13
13
|
export type IconProps = Override<JSXElementProps<'i'>, IconInternalProps>;
|
|
14
14
|
declare const Icon: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "key">, "ref">, keyof IconInternalProps> & IconInternalProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconName } from "
|
|
2
|
+
import { IconName } from "../../../../shared";
|
|
3
3
|
import { IconBaseProps, IconProps } from "./Icon";
|
|
4
4
|
type IconElement = HTMLElement;
|
|
5
5
|
export type HiddenIconConfig = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { ValidationStyleType } from "
|
|
3
|
+
import { ValidationStyleType } from "../../../../shared";
|
|
4
4
|
export type BannerProps = Override<JSXElementProps<'div'>, {
|
|
5
5
|
type: ValidationStyleType;
|
|
6
6
|
}>;
|
|
@@ -9,6 +9,6 @@ declare const Banner: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.Detai
|
|
|
9
9
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export declare const propTypes: {
|
|
11
11
|
/** The type of notification to render */
|
|
12
|
-
type: PropTypes.Validator<NonNullable<"default" | "
|
|
12
|
+
type: PropTypes.Validator<NonNullable<"default" | "success" | "info" | "warning" | "danger" | "advisor">>;
|
|
13
13
|
};
|
|
14
14
|
export default Banner;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerItem, DrawerItemBody, DrawerItemOpener } from "./DrawerItem";
|
|
3
3
|
import DrawerPanel, { DrawerPanelProps } from "./DrawerPanel";
|
|
4
|
-
import { IconName } from "
|
|
4
|
+
import { IconName } from "../../../../shared";
|
|
5
5
|
export { useDrawerItemContext, DrawerItemContext } from "./DrawerItem";
|
|
6
6
|
export type ActiveKeys = string | string[];
|
|
7
7
|
export type PanelChild = React.ReactElement<DrawerPanelProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { IconName, HeadingLevel } from "
|
|
3
|
+
import { IconName, HeadingLevel } from "../../../../shared";
|
|
4
4
|
export declare const PanelButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export type DrawerPanelProps = Omit<JSXElementProps<'div'>, 'title'> & {
|
|
6
6
|
children: any;
|
|
@@ -42,9 +42,9 @@ export declare const propTypes: {
|
|
|
42
42
|
headingLevel: React.Validator<6 | 1 | 2 | 3 | 4 | 5 | null | undefined> | undefined;
|
|
43
43
|
open: PropTypes.Requireable<boolean>;
|
|
44
44
|
/** @ignore */
|
|
45
|
-
closedIconName: PropTypes.Requireable<"header" | "picture" | "search" | "time" | "video" | "switch" | "fill" | "rx" | "scale" | "download" | "checked" | "list" | "font" | "repeat" | "bold" | "cell" | "checkbox" | "copy" | "move" | "sort" | "change" | "cut" | "paste" | "pause" | "play" | "message" | "
|
|
45
|
+
closedIconName: PropTypes.Requireable<"header" | "picture" | "search" | "time" | "video" | "switch" | "fill" | "rx" | "scale" | "download" | "checked" | "list" | "font" | "repeat" | "bold" | "cell" | "checkbox" | "copy" | "move" | "sort" | "change" | "cut" | "paste" | "pause" | "play" | "message" | "info" | "phone" | "desktop" | "accessibility" | "add-circle" | "add" | "agent" | "alarm-clock" | "align-center" | "align-justify" | "align-left" | "align-right" | "archive-folder" | "archive" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "asterisk" | "attachment" | "bathtub" | "being-sick" | "bell" | "bicycle" | "blood-drop" | "bone" | "book" | "bookmark" | "bot" | "boy" | "brain" | "briefcase" | "broken-leg" | "bullhorn" | "calculator" | "calendar" | "call-transfer" | "camera" | "cash-in-hand" | "certificate-ribbon" | "certificate" | "check-document" | "checkbox-checked" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "christmas-gift" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-right" | "circle-arrow-up" | "clear-filters" | "click-and-collect" | "clinic" | "cog" | "comment" | "comments" | "compass" | "confusion" | "dashboard" | "denied" | "detour" | "disabled-access" | "discussion" | "divide" | "dna-helix" | "doctors-bag" | "dollar-sign" | "double-chevron-down" | "double-chevron-left" | "double-chevron-right" | "double-chevron-up" | "download-alt" | "edit-document" | "edit" | "element-block" | "element-page" | "element-section" | "envelope" | "exclamation-circle" | "exclamation-sign" | "exclamation" | "exit" | "export" | "external-link" | "eye-closed" | "eye-open" | "federal" | "file-download" | "file-open" | "file" | "film" | "fire" | "flag-empty" | "flag-filled" | "flash" | "folder-close" | "folder-open" | "folder-up-level" | "for-you" | "form-agreement" | "form-checkbox" | "form-dropdown" | "form-number" | "form-radio" | "form-text-box" | "form-text" | "fullscreen" | "funnel" | "girl" | "glasses" | "globe" | "glucometer" | "hand-down" | "hand-left" | "hand-right" | "hand-up" | "handshake-heart" | "health-checkup" | "health" | "hearing-aid" | "hearing" | "heart-empty" | "heart-filled" | "heart-plus" | "helping-hand" | "history" | "home" | "hourglass" | "house" | "household" | "hyperlink" | "idea" | "in-progress" | "inbox" | "indent-left" | "indent-right" | "info-circle" | "info-popup" | "info-squared" | "internal-call" | "italic" | "keyhole-shield" | "kidney" | "leaf" | "lightning-bolt" | "list-numbered" | "list-thumbnails" | "list-unordered" | "liver" | "lock-open" | "lock" | "log-in" | "log-out" | "logout-rounded-left" | "lungs" | "mailbox-closed-flag-down" | "male-user" | "man" | "map-marker" | "map-with-marker" | "measuring-tape" | "medical-doctor" | "medical" | "menu-btn" | "minus-circle" | "minus" | "molecule" | "moleskine" | "money" | "muscle" | "network" | "neuron" | "new-window" | "no-symbol" | "non-smoker" | "notepad" | "ok-circle" | "ok" | "options-horizontal" | "options-vertical" | "out-of-network" | "out-patient-department" | "outgoing-call" | "paragraph" | "paycheck" | "paycheque" | "phone-analog" | "physical-therapy" | "piggy-bank" | "play-circle" | "policy-document" | "power" | "prescription-pill-bottle" | "prescription" | "print" | "profile" | "profit" | "purchase-order" | "push-pin" | "question-circle" | "question" | "questions" | "random" | "read-message" | "redo" | "refresh" | "remove-circle" | "remove" | "reply-arrow" | "resize-full" | "resize-horizontal" | "resize-small" | "resize-vertical" | "retweet" | "road" | "rod-of-asclepius" | "rubber-stamp" | "save" | "screenshot" | "search-property" | "security-checked" | "share" | "shopping-cart" | "skin" | "skip-to-start" | "smoker" | "sms" | "sort-alpha-reverse" | "sort-alpha" | "sort-ascending" | "sort-descending" | "sort-num-reverse" | "sort-num" | "speak-to-expert" | "speech-bubble-with-dots" | "speech-bubble" | "spouse" | "star-empty" | "star-filled" | "stats" | "stethoscope" | "stock-growth" | "stomach" | "submit-document" | "tag" | "tags" | "tasks" | "text-color" | "text-height" | "text-size" | "text-width" | "thumbnails-large" | "thumbnails" | "thumbs-down" | "thumbs-up" | "today" | "tooth" | "transfer" | "trash" | "trophy" | "truck" | "trust" | "tune" | "umbrella" | "underline" | "undo" | "upload" | "urgent-message" | "user-secured" | "user-shield" | "user" | "users" | "voice-check" | "walker" | "wallet" | "woman" | "wrench" | "zoom-in" | "zoom-out">;
|
|
46
46
|
/** @ignore */
|
|
47
|
-
openedIconName: PropTypes.Requireable<"header" | "picture" | "search" | "time" | "video" | "switch" | "fill" | "rx" | "scale" | "download" | "checked" | "list" | "font" | "repeat" | "bold" | "cell" | "checkbox" | "copy" | "move" | "sort" | "change" | "cut" | "paste" | "pause" | "play" | "message" | "
|
|
47
|
+
openedIconName: PropTypes.Requireable<"header" | "picture" | "search" | "time" | "video" | "switch" | "fill" | "rx" | "scale" | "download" | "checked" | "list" | "font" | "repeat" | "bold" | "cell" | "checkbox" | "copy" | "move" | "sort" | "change" | "cut" | "paste" | "pause" | "play" | "message" | "info" | "phone" | "desktop" | "accessibility" | "add-circle" | "add" | "agent" | "alarm-clock" | "align-center" | "align-justify" | "align-left" | "align-right" | "archive-folder" | "archive" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "asterisk" | "attachment" | "bathtub" | "being-sick" | "bell" | "bicycle" | "blood-drop" | "bone" | "book" | "bookmark" | "bot" | "boy" | "brain" | "briefcase" | "broken-leg" | "bullhorn" | "calculator" | "calendar" | "call-transfer" | "camera" | "cash-in-hand" | "certificate-ribbon" | "certificate" | "check-document" | "checkbox-checked" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "christmas-gift" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-right" | "circle-arrow-up" | "clear-filters" | "click-and-collect" | "clinic" | "cog" | "comment" | "comments" | "compass" | "confusion" | "dashboard" | "denied" | "detour" | "disabled-access" | "discussion" | "divide" | "dna-helix" | "doctors-bag" | "dollar-sign" | "double-chevron-down" | "double-chevron-left" | "double-chevron-right" | "double-chevron-up" | "download-alt" | "edit-document" | "edit" | "element-block" | "element-page" | "element-section" | "envelope" | "exclamation-circle" | "exclamation-sign" | "exclamation" | "exit" | "export" | "external-link" | "eye-closed" | "eye-open" | "federal" | "file-download" | "file-open" | "file" | "film" | "fire" | "flag-empty" | "flag-filled" | "flash" | "folder-close" | "folder-open" | "folder-up-level" | "for-you" | "form-agreement" | "form-checkbox" | "form-dropdown" | "form-number" | "form-radio" | "form-text-box" | "form-text" | "fullscreen" | "funnel" | "girl" | "glasses" | "globe" | "glucometer" | "hand-down" | "hand-left" | "hand-right" | "hand-up" | "handshake-heart" | "health-checkup" | "health" | "hearing-aid" | "hearing" | "heart-empty" | "heart-filled" | "heart-plus" | "helping-hand" | "history" | "home" | "hourglass" | "house" | "household" | "hyperlink" | "idea" | "in-progress" | "inbox" | "indent-left" | "indent-right" | "info-circle" | "info-popup" | "info-squared" | "internal-call" | "italic" | "keyhole-shield" | "kidney" | "leaf" | "lightning-bolt" | "list-numbered" | "list-thumbnails" | "list-unordered" | "liver" | "lock-open" | "lock" | "log-in" | "log-out" | "logout-rounded-left" | "lungs" | "mailbox-closed-flag-down" | "male-user" | "man" | "map-marker" | "map-with-marker" | "measuring-tape" | "medical-doctor" | "medical" | "menu-btn" | "minus-circle" | "minus" | "molecule" | "moleskine" | "money" | "muscle" | "network" | "neuron" | "new-window" | "no-symbol" | "non-smoker" | "notepad" | "ok-circle" | "ok" | "options-horizontal" | "options-vertical" | "out-of-network" | "out-patient-department" | "outgoing-call" | "paragraph" | "paycheck" | "paycheque" | "phone-analog" | "physical-therapy" | "piggy-bank" | "play-circle" | "policy-document" | "power" | "prescription-pill-bottle" | "prescription" | "print" | "profile" | "profit" | "purchase-order" | "push-pin" | "question-circle" | "question" | "questions" | "random" | "read-message" | "redo" | "refresh" | "remove-circle" | "remove" | "reply-arrow" | "resize-full" | "resize-horizontal" | "resize-small" | "resize-vertical" | "retweet" | "road" | "rod-of-asclepius" | "rubber-stamp" | "save" | "screenshot" | "search-property" | "security-checked" | "share" | "shopping-cart" | "skin" | "skip-to-start" | "smoker" | "sms" | "sort-alpha-reverse" | "sort-alpha" | "sort-ascending" | "sort-descending" | "sort-num-reverse" | "sort-num" | "speak-to-expert" | "speech-bubble-with-dots" | "speech-bubble" | "spouse" | "star-empty" | "star-filled" | "stats" | "stethoscope" | "stock-growth" | "stomach" | "submit-document" | "tag" | "tags" | "tasks" | "text-color" | "text-height" | "text-size" | "text-width" | "thumbnails-large" | "thumbnails" | "thumbs-down" | "thumbs-up" | "today" | "tooth" | "transfer" | "trash" | "trophy" | "truck" | "trust" | "tune" | "umbrella" | "underline" | "undo" | "upload" | "urgent-message" | "user-secured" | "user-shield" | "user" | "users" | "voice-check" | "walker" | "wallet" | "woman" | "wrench" | "zoom-in" | "zoom-out">;
|
|
48
48
|
/** @ignore */
|
|
49
49
|
panelKey: PropTypes.Requireable<string>;
|
|
50
50
|
slot?: React.Validator<string | null | undefined> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
import { HeadingLevel } from "
|
|
3
|
+
import { HeadingLevel } from "../../../../shared";
|
|
4
4
|
export declare const globalHeadingsCss: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<DefaultTheme>>;
|
|
5
5
|
export type HeadingProps = JSXElementProps<'h1'> & {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import MenuSection from "./MenuSection";
|
|
3
|
-
import { ButtonVariantStyleType } from "
|
|
3
|
+
import { ButtonVariantStyleType } from "../../../../shared";
|
|
4
4
|
declare const Menu: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key">, "ref">, "children" | "inline" | "headerContent" | "buttonContent" | "openButtonType" | "rootClose" | "hasBackdrop"> & {
|
|
5
5
|
children: NonNullable<React.ReactNode>;
|
|
6
6
|
buttonContent: NonNullable<React.ReactNode>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { HeadingLevel } from "
|
|
3
|
+
import { HeadingLevel } from "../../../../shared";
|
|
4
4
|
interface ModalHeaderProps {
|
|
5
5
|
hideCloseButton: boolean;
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { AriaRole } from 'react';
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
3
|
import { CSSProperties } from 'styled-components';
|
|
4
|
-
import type { ValidationStyleType, NotificationStyleType, IconName } from "
|
|
4
|
+
import type { ValidationStyleType, NotificationStyleType, IconName } from "../../../../shared";
|
|
5
5
|
interface NotificationContentProps extends Omit<JSXElementProps<'div'>, 'color'> {
|
|
6
6
|
includeIcon?: boolean;
|
|
7
7
|
isDismissable?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseNotificationProps } from "./BaseNotification";
|
|
3
|
-
import { ValidationStyleType } from "
|
|
3
|
+
import { ValidationStyleType } from "../../../../shared";
|
|
4
4
|
export interface NotificationProps extends BaseNotificationProps {
|
|
5
5
|
type: ValidationStyleType;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { OnAfterOpenCallback, Props as ReactModalProps } from 'react-modal';
|
|
4
|
-
import { HeadingLevel } from "
|
|
4
|
+
import { HeadingLevel } from "../../../../shared";
|
|
5
5
|
import noop from "../../util/noop";
|
|
6
6
|
type SlidingPaneProps = Override<ReactModalProps, {
|
|
7
7
|
children: NonNullable<React.ReactNode>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { Orientation } from "./OrientationContext";
|
|
4
|
-
import { ValidationStyleType } from "
|
|
4
|
+
import { ValidationStyleType } from "../../../shared";
|
|
5
5
|
interface ControlDisplayProps {
|
|
6
6
|
borderOffset?: CSS.Property.PaddingRight;
|
|
7
7
|
validationState?: ValidationStyleType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const ValidationContext: React.Context<"default" | "
|
|
2
|
+
declare const ValidationContext: React.Context<"default" | "success" | "info" | "warning" | "danger" | "advisor">;
|
|
3
3
|
export default ValidationContext;
|
|
4
|
-
export declare const useValidationState: () => "default" | "
|
|
4
|
+
export declare const useValidationState: () => "default" | "success" | "info" | "warning" | "danger" | "advisor";
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
import { HTMLInputProps } from "../../util/htmlProps";
|
|
5
|
-
import { BGColorButtonVariant, ButtonSize, ButtonVariantStyleType } from "
|
|
5
|
+
import { BGColorButtonVariant, ButtonSize, ButtonVariantStyleType } from "../../../../shared";
|
|
6
6
|
export interface AnswerButtonVariant extends BGColorButtonVariant {
|
|
7
7
|
borderColor?: CSS.Property.BorderColor;
|
|
8
8
|
}
|
|
@@ -22,8 +22,8 @@ declare const AnswerButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<React
|
|
|
22
22
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
23
23
|
export declare const propTypes: {
|
|
24
24
|
itemWidth: PropTypes.Requireable<string>;
|
|
25
|
-
styleType: PropTypes.Requireable<"default" | "magenta" | "violet" | "
|
|
26
|
-
selectedType: PropTypes.Requireable<"default" | "magenta" | "violet" | "
|
|
25
|
+
styleType: PropTypes.Requireable<"default" | "magenta" | "violet" | "primary" | "success" | "info" | "warning" | "danger" | "darkDefault" | "information">;
|
|
26
|
+
selectedType: PropTypes.Requireable<"default" | "magenta" | "violet" | "primary" | "success" | "info" | "warning" | "danger" | "darkDefault" | "information">;
|
|
27
27
|
size: PropTypes.Requireable<"default" | "lg" | "sm" | "xs">;
|
|
28
28
|
isOutline: PropTypes.Requireable<boolean>;
|
|
29
29
|
form: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
declare const ActionButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key">, "ref"> & {
|
|
4
4
|
waiting?: Maybe<boolean>;
|
|
5
5
|
} & {
|
|
6
|
-
size?: import("
|
|
6
|
+
size?: import("../../../../shared").ButtonSize;
|
|
7
7
|
styleType?: import("./Button").ButtonStyleType;
|
|
8
8
|
mobileBlock?: boolean;
|
|
9
9
|
flatLeftEdge?: boolean;
|
|
@@ -13,7 +13,7 @@ declare const ActionButton: React.ForwardRefExoticComponent<Omit<Omit<React.Deta
|
|
|
13
13
|
export declare const propTypes: {
|
|
14
14
|
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
15
|
/** Select the color style of the button, types come from theme buttonStyles.button */
|
|
16
|
-
styleType: PropTypes.Requireable<"default" | "magenta" | "violet" | "
|
|
16
|
+
styleType: PropTypes.Requireable<"default" | "magenta" | "violet" | "primary" | "success" | "info" | "warning" | "danger" | "darkDefault" | "information" | "inherited" | undefined> | PropTypes.Validator<"default" | "magenta" | "violet" | "primary" | "success" | "info" | "warning" | "danger" | "darkDefault" | "information" | "inherited" | undefined>;
|
|
17
17
|
form: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
18
18
|
slot: PropTypes.Requireable<string | undefined> | PropTypes.Validator<string | undefined>;
|
|
19
19
|
style: PropTypes.Requireable<React.CSSProperties | undefined> | PropTypes.Validator<React.CSSProperties | undefined>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
3
|
import { ButtonBaseProps } from "./ButtonBase";
|
|
4
4
|
import type * as CSS from 'csstype';
|
|
5
|
-
import { ButtonSize } from "
|
|
5
|
+
import { ButtonSize } from "../../../../shared";
|
|
6
6
|
export declare const globalButtonCss: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<DefaultTheme>>;
|
|
7
7
|
export declare const buttonStyleTypes: readonly ["primary", "default", "darkDefault", "success", "danger", "warning", "info", "information", "magenta", "violet", "inherited"];
|
|
8
8
|
export type ButtonStyleType = (typeof buttonStyleTypes)[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
|
-
import { IconName } from "
|
|
3
|
+
import { IconName } from "../../../../shared";
|
|
4
4
|
import { ButtonProps } from "./Button";
|
|
5
5
|
export type IconButtonProps = Override<JSXElementProps<'div'>, {
|
|
6
6
|
iconName: IconName;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const OutlineButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key">, "ref"> & {
|
|
3
3
|
waiting?: Maybe<boolean>;
|
|
4
4
|
} & {
|
|
5
|
-
size?: import("
|
|
5
|
+
size?: import("../../../../shared").ButtonSize;
|
|
6
6
|
styleType?: import("./Button").ButtonStyleType;
|
|
7
7
|
mobileBlock?: boolean;
|
|
8
8
|
flatLeftEdge?: boolean;
|
|
@@ -13,7 +13,7 @@ declare const OutlineButton: React.ForwardRefExoticComponent<Omit<Omit<React.Det
|
|
|
13
13
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
export declare const propTypes: {
|
|
15
15
|
/** Select the color style of the button, types come from theme buttonStyles.outlineButton */
|
|
16
|
-
styleType: React.Validator<"default" | "magenta" | "violet" | "
|
|
16
|
+
styleType: React.Validator<"default" | "magenta" | "violet" | "primary" | "success" | "info" | "warning" | "danger" | "darkDefault" | "information" | "inherited" | null | undefined> | undefined;
|
|
17
17
|
form?: React.Validator<string | null | undefined> | undefined;
|
|
18
18
|
slot?: React.Validator<string | null | undefined> | undefined;
|
|
19
19
|
style?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkButtonProps } from "./LinkButton";
|
|
3
|
-
import { ButtonVariantStyleType } from "
|
|
3
|
+
import { ButtonVariantStyleType } from "../../../../shared";
|
|
4
4
|
export type PopoverLinkProps = LinkButtonProps & {
|
|
5
5
|
suppressUnderline?: Maybe<boolean>;
|
|
6
6
|
styleType?: Maybe<ButtonVariantStyleType>;
|
|
@@ -7,7 +7,7 @@ export type ToggleButtonProps = ButtonProps & {
|
|
|
7
7
|
declare const ToggleButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key">, "ref"> & {
|
|
8
8
|
waiting?: Maybe<boolean>;
|
|
9
9
|
} & {
|
|
10
|
-
size?: import("
|
|
10
|
+
size?: import("../../../../shared").ButtonSize;
|
|
11
11
|
styleType?: import("./Button").ButtonStyleType;
|
|
12
12
|
mobileBlock?: boolean;
|
|
13
13
|
flatLeftEdge?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
|
-
import { ValidationStyleType } from "
|
|
4
|
+
import { ValidationStyleType } from "../../../../shared";
|
|
5
5
|
import { HTMLInputProps } from "../../util/htmlProps";
|
|
6
6
|
import { RadioGroupContextShape } from "./RadioGroupContext";
|
|
7
7
|
export declare const RadioDisplayWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
@@ -2,7 +2,7 @@ import * as CSS from 'csstype';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { HTMLInputProps } from "../../util/htmlProps";
|
|
4
4
|
import type { RadioButtonProps } from "./RadioButton";
|
|
5
|
-
import type { ButtonSize, ButtonVariantStyleType } from "
|
|
5
|
+
import type { ButtonSize, ButtonVariantStyleType } from "../../../../shared";
|
|
6
6
|
export type IsAnswerGroup = boolean | undefined;
|
|
7
7
|
export type RadioGroupContextShape<A extends IsAnswerGroup = undefined> = Override<RadioButtonProps, {
|
|
8
8
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ButtonVariantStyleType, ValidationStyleType } from "
|
|
2
|
+
import { ButtonVariantStyleType, ValidationStyleType } from "../../../../shared";
|
|
3
3
|
type SwitchStyleType = ButtonVariantStyleType | ValidationStyleType;
|
|
4
4
|
declare const Directions: {
|
|
5
5
|
readonly top: "column-reverse";
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
4
|
import * as CSS from 'csstype';
|
|
5
5
|
import { ESThemeProps } from "../../util/getStyledProp";
|
|
6
|
-
import { ValidationInputColor, ValidationStyleType } from "
|
|
6
|
+
import { ValidationInputColor, ValidationStyleType } from "../../../../shared";
|
|
7
7
|
export declare const noInset = "inset 0 0 0 0 rgba(0, 0, 0, 0)";
|
|
8
8
|
export type ValidationStateHighlightProps = Pick<ValidationInputColor, 'focusBorderColor' | 'focusBoxShadow'>;
|
|
9
9
|
export type FlatInputProps = {
|