@mackin.com/styleguide 9.0.0-beta.1 → 9.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/index.d.ts +15 -74
- package/index.js +769 -995
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -29,40 +29,24 @@ interface AccordianProps {
|
|
|
29
29
|
declare const Accordian: (props: AccordianProps) => JSX.Element;
|
|
30
30
|
declare const useAccordianState: (count: number, openIndex?: number | undefined) => [boolean[], (index: number, open: boolean) => void];
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
interface AutocompleteProps<T extends AutocompleteValue> {
|
|
38
|
-
value: T | undefined;
|
|
39
|
-
round?: boolean;
|
|
40
|
-
rightControl?: JSX.Element;
|
|
41
|
-
placeholder?: string;
|
|
42
|
-
id?: string;
|
|
43
|
-
disabled?: boolean;
|
|
32
|
+
declare type BaseInputProps$1 = Omit<TextInputProps, 'value' | 'className' | 'wrapperClassName' | 'type' | 'showErrorDisplay'>;
|
|
33
|
+
interface AutocompleteProps extends BaseInputProps$1 {
|
|
34
|
+
value: string | undefined;
|
|
35
|
+
options: string[];
|
|
36
|
+
/** Applied to the Autocomplete wrapper. */
|
|
44
37
|
className?: string;
|
|
38
|
+
inputWrapperClassName?: string;
|
|
45
39
|
inputClassName?: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
listClassName?: string;
|
|
41
|
+
listItemClassName?: string;
|
|
42
|
+
listItemButtonClassName?: string;
|
|
49
43
|
/** Limits what will be show in the autocomplete options. Default is 7. */
|
|
50
44
|
maxShownValues?: number;
|
|
51
|
-
/** The minimum characters before 'getOptions' is called. No default. */
|
|
52
|
-
minChars?: number;
|
|
53
|
-
inputAriaAttributes?: React.AriaAttributes;
|
|
54
|
-
/** Defaults to 0ms. */
|
|
55
|
-
getOptionsDebounceMs?: number;
|
|
56
|
-
autoFocus?: boolean;
|
|
57
45
|
/** Will enable scrolling in the results list. */
|
|
58
46
|
allowScroll?: boolean;
|
|
59
|
-
|
|
60
|
-
getOptions: (value: string) => Promise<T[]>;
|
|
61
|
-
onPick: (value: T) => void;
|
|
62
|
-
onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
63
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
47
|
+
onPick: (value: string | undefined) => void;
|
|
64
48
|
}
|
|
65
|
-
declare const Autocomplete:
|
|
49
|
+
declare const Autocomplete: (p: AutocompleteProps) => JSX.Element;
|
|
66
50
|
|
|
67
51
|
/** @deprecated Use Backdrop2 going forward. */
|
|
68
52
|
declare const Backdrop$1: (props: {
|
|
@@ -340,50 +324,6 @@ interface DateInputProps extends BaseProps$3 {
|
|
|
340
324
|
}
|
|
341
325
|
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
342
326
|
|
|
343
|
-
declare type InputValue = string | number | undefined;
|
|
344
|
-
declare type InputType = 'text' | 'number' | 'textarea' | 'date' | 'password' | 'url' | 'email';
|
|
345
|
-
interface InputProps {
|
|
346
|
-
type: InputType;
|
|
347
|
-
name?: string;
|
|
348
|
-
style?: React.CSSProperties;
|
|
349
|
-
value?: InputValue;
|
|
350
|
-
placeholder?: string;
|
|
351
|
-
id?: string;
|
|
352
|
-
disabled?: boolean;
|
|
353
|
-
className?: string;
|
|
354
|
-
inputClassName?: string;
|
|
355
|
-
readOnly?: boolean;
|
|
356
|
-
required?: boolean;
|
|
357
|
-
/** Defaults to 250ms */
|
|
358
|
-
debounceMs?: number;
|
|
359
|
-
/** Defaults to 'off'. */
|
|
360
|
-
autoComplete?: string;
|
|
361
|
-
autoFocus?: boolean;
|
|
362
|
-
inputAriaAttributes?: React.AriaAttributes;
|
|
363
|
-
/** Called with debounce when the input changes. */
|
|
364
|
-
onChange?: (value: InputValue, name?: string, event?: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
365
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
366
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
367
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
368
|
-
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
369
|
-
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
370
|
-
/** Defaults to 100. Ignored for type=number and type=date. */
|
|
371
|
-
maxLength?: number;
|
|
372
|
-
/** Ignored for type=textarea. */
|
|
373
|
-
rightControl?: JSX.Element;
|
|
374
|
-
/** Ignored for type=textarea. */
|
|
375
|
-
round?: boolean;
|
|
376
|
-
/** Only used for type=number and type=date. If type=date, this is the ms from Date.valueOf(). */
|
|
377
|
-
min?: number;
|
|
378
|
-
/** Only used for type=number. If type=date, this is the ms from Date.valueOf(). */
|
|
379
|
-
max?: number;
|
|
380
|
-
/** Only used for type=textarea. Defaults to 10. */
|
|
381
|
-
rows?: number;
|
|
382
|
-
pattern?: string;
|
|
383
|
-
}
|
|
384
|
-
/** @deprecated Use DateInput, NumberInput, or TextInput instead. */
|
|
385
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
|
|
386
|
-
|
|
387
327
|
declare type BaseProps$2 = Omit<BaseInputProps, 'type' | 'value' | 'min' | 'max' | 'step' | 'maxLength' | 'error' | 'pattern'> & Omit<ValidationMessageProps, 'pattern'>;
|
|
388
328
|
interface NumberInputProps extends BaseProps$2 {
|
|
389
329
|
value?: number;
|
|
@@ -467,8 +407,6 @@ interface ModalProps {
|
|
|
467
407
|
__debug?: boolean;
|
|
468
408
|
onClick?: () => void;
|
|
469
409
|
}
|
|
470
|
-
/** Add to fixed positioned elements so their contents do not jump around when scrolling is disabled. */
|
|
471
|
-
declare const modalScrollFixClassName = "modal-scroll-fix";
|
|
472
410
|
declare const Modal: (p: ModalProps) => React__default.ReactPortal | null;
|
|
473
411
|
|
|
474
412
|
declare const Nav: (props: {
|
|
@@ -1147,4 +1085,7 @@ interface TabContainerProps {
|
|
|
1147
1085
|
}
|
|
1148
1086
|
declare const TabContainer: (p: TabContainerProps) => JSX.Element;
|
|
1149
1087
|
|
|
1150
|
-
|
|
1088
|
+
/** Add to fixed positioned elements so their contents do not jump around when scrolling is disabled. */
|
|
1089
|
+
declare const modalScrollFixClassName = "modal-scroll-fix";
|
|
1090
|
+
|
|
1091
|
+
export { Accordian, AccordianProps, Alignment, Autocomplete, AutocompleteProps, Backdrop$1 as Backdrop, Backdrop as Backdrop2, BoundMemoryPager, BoundStaticPager, Button, ButtonProps, Calendar, CalendarProps, Checkbox, CheckboxProps, ConfirmModal, ConfirmModalProps, CopyButton, DateInput, DateInputProps, Divider, ErrorModal, FileUploader, Form, FormColumnRow, FormFlexRow, FormProps, GlobalStyles, Header, Highlight, ICONS, Icon, Image, ImageProps, InfoPanel, InfoTip, InfoTipProps, ItemPager, Label, LabelProps, Link, LinkProps, List, ListItem, ListItemProps, ListProps, MackinTheme, Modal, ModalProps, Nav, NormalizeCss, NumberInput, NumberInputProps, OmniLink, OmniLinkProps, PagedResult, Pager, PagerProps, Picker, PickerOption, PickerProps, PickerValue, Popover, ProgressBar, ProgressBarProps, SearchBox, SearchBoxProps, Slider, SliderProps, SliderValue, TabContainer, TabContainerProps, TabHeader, TabHeaderProps, TabLocker, Table, Td, TdCurrency, TdNumber, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Th, ThSort, ThemeProvider, ThemeRenderer, ToggleButton, ToggleButtonGroup, ToggleButtonGroupProps, ToggleButtonProps, TogglePasswordInput, Tr, WaitingIndicator, calcDynamicThemeProps, defaultTheme, enumToEntities, getCurrencyDisplay, getFileSizeDisplay, modalScrollFixClassName, useAccordianState, useBooleanChanged, useIgnoreMount, useMediaQuery, useScrollbarSize, useThemeSafely, useWaiting };
|