@jobber/components 4.79.1 → 4.79.2-STCJS-to-.2
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/AnimatedPresence/AnimatedPresence.d.ts +1 -1
- package/dist/AnimatedSwitcher/AnimatedSwitcher.d.ts +1 -1
- package/dist/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Banner/Banner.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/ButtonDismiss/ButtonDismiss.d.ts +2 -2
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Chip/Chip.d.ts +1 -0
- package/dist/Chips/Chips.d.ts +1 -0
- package/dist/Combobox/Combobox.d.ts +1 -0
- package/dist/Combobox/hooks/useMakeComboboxHandlers.d.ts +1 -1
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/Content/Content.d.ts +1 -1
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/DataDump/DataDump.d.ts +1 -1
- package/dist/DataList/DataList.const.d.ts +1 -0
- package/dist/DataList/DataList.d.ts +1 -0
- package/dist/DataTable/DataTable.d.ts +1 -0
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/Disclosure/Disclosure.d.ts +1 -1
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Emphasis/Emphasis.d.ts +3 -3
- package/dist/FeatureSwitch/FeatureSwitch.d.ts +1 -1
- package/dist/Flex/Flex.d.ts +1 -1
- package/dist/Form/Form.d.ts +1 -0
- package/dist/FormField/FormField.d.ts +1 -0
- package/dist/FormatDate/FormatDate.d.ts +1 -1
- package/dist/FormatEmail/FormatEmail.d.ts +1 -1
- package/dist/FormatFile/FormatFile.d.ts +1 -1
- package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +1 -1
- package/dist/FormatTime/FormatTime.d.ts +1 -1
- package/dist/Gallery/Gallery.d.ts +1 -0
- package/dist/Glimmer/Glimmer.d.ts +1 -1
- package/dist/Grid/Grid.d.ts +1 -1
- package/dist/Heading/Heading.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +1 -0
- package/dist/InlineLabel/InlineLabel.d.ts +4 -4
- package/dist/InputAvatar/InputAvatar.d.ts +1 -1
- package/dist/InputDate/InputDate.d.ts +1 -1
- package/dist/InputEmail/InputEmail.d.ts +1 -1
- package/dist/InputFile/InputFile.d.ts +1 -1
- package/dist/InputGroup/InputGroup.d.ts +1 -1
- package/dist/InputNumber/InputNumber.d.ts +2 -1
- package/dist/InputPassword/InputPassword.d.ts +3 -3
- package/dist/InputPhoneNumber/InputPhoneNumber.d.ts +1 -1
- package/dist/InputText/InputText.d.ts +1 -0
- package/dist/InputTime/InputTime.d.ts +1 -0
- package/dist/InputValidation/InputValidation.d.ts +1 -1
- package/dist/LightBox/LightBox.d.ts +1 -1
- package/dist/Link/Link.d.ts +1 -0
- package/dist/List/List.d.ts +1 -1
- package/dist/Markdown/Markdown.d.ts +1 -1
- package/dist/Menu/Menu.d.ts +5 -4
- package/dist/Modal/Modal.d.ts +1 -0
- package/dist/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/Page/Page.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RecurringSelect/RecurringSelect.d.ts +1 -1
- package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +2 -2
- package/dist/RecurringSelect/components/WeeklySelect.d.ts +2 -2
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/StatusLabel/StatusLabel.d.ts +1 -1
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Text/Text.d.ts +2 -2
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +2 -2
- package/dist/index.d.ts +72 -0
- package/dist/index.js +6479 -0
- package/package.json +6 -10
- package/rollup.config.js +15 -78
- package/dist/AnimatedPresence/index.js +0 -12
- package/dist/AnimatedPresence-20a02aaa.js +0 -104
- package/dist/AnimatedSwitcher/index.js +0 -13
- package/dist/AnimatedSwitcher-3d45ec5d.js +0 -96
- package/dist/Autocomplete/index.js +0 -209
- package/dist/Avatar/index.js +0 -15
- package/dist/Avatar-76a799fa.js +0 -78
- package/dist/Banner/index.js +0 -110
- package/dist/Button/index.js +0 -16
- package/dist/Button-b73a5e01.js +0 -57
- package/dist/ButtonDismiss/index.js +0 -17
- package/dist/ButtonDismiss-350af163.js +0 -14
- package/dist/Card/colors.css.d.ts +0 -89
- package/dist/Card/index.js +0 -24
- package/dist/Card-426a68a8.js +0 -93
- package/dist/Checkbox/index.js +0 -19
- package/dist/Checkbox-99f6297f.js +0 -64
- package/dist/Chip/index.js +0 -40
- package/dist/Chip-c91fd6c8.js +0 -89
- package/dist/Chips/index.js +0 -524
- package/dist/Combobox/index.js +0 -38
- package/dist/Combobox-ca9ac94b.js +0 -474
- package/dist/ConfirmationModal/index.js +0 -31
- package/dist/ConfirmationModal-f1a049fb.js +0 -100
- package/dist/Content/Spacing.css.d.ts +0 -13
- package/dist/Content/index.js +0 -12
- package/dist/Content-e3f7b6fc.js +0 -24
- package/dist/Countdown/index.js +0 -72
- package/dist/DataDump/index.js +0 -37
- package/dist/DataList/index.js +0 -1341
- package/dist/DataTable/index.js +0 -302
- package/dist/DatePicker/index.js +0 -20
- package/dist/DatePicker-64c5ab1a.js +0 -134
- package/dist/DescriptionList/index.js +0 -24
- package/dist/Disclosure/index.js +0 -46
- package/dist/Divider/index.js +0 -29
- package/dist/Drawer/index.js +0 -50
- package/dist/Emphasis/index.js +0 -13
- package/dist/Emphasis-bda56d3b.js +0 -19
- package/dist/FeatureSwitch/index.js +0 -70
- package/dist/Flex/index.js +0 -40
- package/dist/Form/index.js +0 -56
- package/dist/FormField/index.js +0 -25
- package/dist/FormField-b4e6c549.js +0 -254
- package/dist/FormatDate/index.js +0 -11
- package/dist/FormatDate-70ea5b43.js +0 -34
- package/dist/FormatEmail/index.js +0 -23
- package/dist/FormatFile/index.js +0 -36
- package/dist/FormatFile-652edda8.js +0 -162
- package/dist/FormatRelativeDateTime/index.js +0 -72
- package/dist/FormatTime/index.js +0 -36
- package/dist/Gallery/Gallery.css.d.ts +0 -9
- package/dist/Gallery/index.js +0 -99
- package/dist/Glimmer/index.js +0 -15
- package/dist/Glimmer/style/Shape.css.d.ts +0 -9
- package/dist/Glimmer/style/Sizes.css.d.ts +0 -10
- package/dist/Glimmer/style/Timing.css.d.ts +0 -6
- package/dist/Glimmer-7c317864.js +0 -77
- package/dist/Grid/GridAlign.css.d.ts +0 -8
- package/dist/Grid/index.js +0 -76
- package/dist/Heading/index.js +0 -14
- package/dist/Heading-1e8e4bd3.js +0 -55
- package/dist/Icon/index.js +0 -11
- package/dist/Icon-405a216c.js +0 -40
- package/dist/InlineLabel/index.js +0 -13
- package/dist/InlineLabel-a6557829.js +0 -28
- package/dist/InputAvatar/index.js +0 -71
- package/dist/InputDate/index.js +0 -58
- package/dist/InputEmail/index.js +0 -44
- package/dist/InputFile/index.js +0 -26
- package/dist/InputFile-c9eeb04b.js +0 -188
- package/dist/InputGroup/index.js +0 -12
- package/dist/InputGroup-8d4fd4eb.js +0 -33
- package/dist/InputNumber/index.js +0 -26
- package/dist/InputNumber-ceae3872.js +0 -62
- package/dist/InputPassword/index.js +0 -42
- package/dist/InputPhoneNumber/index.js +0 -117
- package/dist/InputText/index.js +0 -26
- package/dist/InputText-6e356985.js +0 -101
- package/dist/InputTime/index.js +0 -210
- package/dist/InputValidation/index.js +0 -17
- package/dist/InputValidation-05e839fa.js +0 -29
- package/dist/LightBox/index.js +0 -24
- package/dist/LightBox-a89d8863.js +0 -117
- package/dist/Link/index.js +0 -15
- package/dist/List/index.js +0 -93
- package/dist/Markdown/index.js +0 -19
- package/dist/Markdown-f7c55304.js +0 -62
- package/dist/Menu/index.js +0 -21
- package/dist/Menu-81b12936.js +0 -139
- package/dist/Modal/Sizes.css.d.ts +0 -6
- package/dist/Modal/index.js +0 -25
- package/dist/Modal-a0627c92.js +0 -71
- package/dist/MultiSelect/index.js +0 -183
- package/dist/Option-8565da71.js +0 -19
- package/dist/Page/index.js +0 -78
- package/dist/Popover/index.js +0 -61
- package/dist/ProgressBar/Sizes.css.d.ts +0 -7
- package/dist/ProgressBar/index.js +0 -12
- package/dist/ProgressBar-b68edc8f.js +0 -43
- package/dist/RadioGroup/index.js +0 -16
- package/dist/RadioGroup-ca7a5978.js +0 -47
- package/dist/RecurringSelect/index.js +0 -228
- package/dist/Select/index.js +0 -27
- package/dist/Spinner/index.js +0 -12
- package/dist/Spinner-9d8fc7ff.js +0 -24
- package/dist/StatusLabel/index.js +0 -30
- package/dist/Switch/index.js +0 -13
- package/dist/Switch-7d4aa7c3.js +0 -56
- package/dist/Table/index.js +0 -66
- package/dist/Tabs/index.js +0 -80
- package/dist/Text/index.js +0 -13
- package/dist/Text-259af966.js +0 -31
- package/dist/Toast/index.js +0 -111
- package/dist/Tooltip/index.js +0 -15
- package/dist/Tooltip-27771182.js +0 -111
- package/dist/Typography/css/Emphasis.css.d.ts +0 -6
- package/dist/Typography/css/FontFamilies.css.d.ts +0 -6
- package/dist/Typography/css/FontSizes.css.d.ts +0 -12
- package/dist/Typography/css/FontWeights.css.d.ts +0 -10
- package/dist/Typography/css/TextAlignment.css.d.ts +0 -7
- package/dist/Typography/css/TextCases.css.d.ts +0 -7
- package/dist/Typography/css/TextColors.css.d.ts +0 -22
- package/dist/Typography/css/Truncate.css.d.ts +0 -5
- package/dist/Typography/css/Typography.css.d.ts +0 -5
- package/dist/Typography/index.js +0 -12
- package/dist/Typography-c45bf216.js +0 -62
- package/dist/getAtlantisConfig-0f3e8af2.js +0 -13
- package/dist/style-inject.es-9d2f5f4e.js +0 -30
- package/dist/tslib.es6-754e2961.js +0 -46
|
@@ -47,4 +47,4 @@ interface AutocompleteProps extends Pick<FormFieldProps, "invalid" | "name" | "o
|
|
|
47
47
|
readonly placeholder: string;
|
|
48
48
|
}
|
|
49
49
|
export declare const Autocomplete: React.ForwardRefExoticComponent<AutocompleteProps & React.RefAttributes<InputTextRef>>;
|
|
50
|
-
export
|
|
50
|
+
export default Autocomplete;
|
package/dist/Avatar/Avatar.d.ts
CHANGED
|
@@ -35,4 +35,4 @@ interface AvatarWithInitialsProps extends AvatarFoundationProps {
|
|
|
35
35
|
}
|
|
36
36
|
export type AvatarProps = XOR<AvatarWithImageProps, AvatarWithInitialsProps>;
|
|
37
37
|
export declare function Avatar({ imageUrl, name, initials, size, color, }: AvatarProps): JSX.Element;
|
|
38
|
-
export
|
|
38
|
+
export default Avatar;
|
package/dist/Banner/Banner.d.ts
CHANGED
package/dist/Button/Button.d.ts
CHANGED
|
@@ -68,4 +68,4 @@ interface BasicButtonProps extends ButtonFoundationProps {
|
|
|
68
68
|
}
|
|
69
69
|
export type ButtonProps = XOR<BaseActionProps, XOR<DestructiveActionProps, SubmitActionProps>> & XOR<XOR<SubmitButtonProps, BasicButtonProps>, XOR<ButtonLinkProps, ButtonAnchorProps>> & XOR<ButtonIconProps, ButtonLabelProps>;
|
|
70
70
|
export declare function Button(props: ButtonProps): JSX.Element;
|
|
71
|
-
export
|
|
71
|
+
export default Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface ButtonDismissProps {
|
|
3
3
|
onClick?(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>): void;
|
|
4
|
-
ariaLabel: string;
|
|
4
|
+
readonly ariaLabel: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function ButtonDismiss({ onClick, ariaLabel }: ButtonDismissProps): JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export default ButtonDismiss;
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ interface ClickableCardProps extends CardProps {
|
|
|
16
16
|
}
|
|
17
17
|
type CardPropOptions = XOR<CardProps, XOR<LinkCardProps, ClickableCardProps>>;
|
|
18
18
|
export declare function Card({ accent, header, children, onClick, title, url, external, }: CardPropOptions): JSX.Element;
|
|
19
|
-
export
|
|
19
|
+
export default Card;
|
|
@@ -50,4 +50,4 @@ interface CheckboxChildrenProps extends BaseCheckboxProps {
|
|
|
50
50
|
}
|
|
51
51
|
type CheckboxProps = XOR<CheckboxLabelProps, CheckboxChildrenProps>;
|
|
52
52
|
export declare function Checkbox({ checked, defaultChecked, disabled, label, name, value, indeterminate, description, children, onChange, onFocus, }: CheckboxProps): JSX.Element;
|
|
53
|
-
export
|
|
53
|
+
export default Checkbox;
|
package/dist/Chip/Chip.d.ts
CHANGED
package/dist/Chips/Chips.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export interface UseMakeComboboxHandlersReturn {
|
|
|
4
4
|
handleClose: () => void;
|
|
5
5
|
handleSelection: (selection: ComboboxOption) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function useMakeComboboxHandlers(setOpen: (open: boolean) => void, setSearchValue: (searchValue: string) => void, selectedOptions: ComboboxOption[], shouldScroll: React.MutableRefObject<boolean>, selectedStateSetter: (selected: ComboboxOption[]) => void, multiSelect?: boolean, onClose?: () => void): UseMakeComboboxHandlersReturn;
|
|
7
|
+
export declare function useMakeComboboxHandlers(setOpen: (open: boolean) => void, setSearchValue: (searchValue: string) => void, selectedOptions: ComboboxOption[], shouldScroll: React.MutableRefObject<boolean>, selectedStateSetter: (selected: ComboboxOption[]) => void, multiSelect?: boolean, onClose?: () => void, onSearch?: (searchValue: string) => void): UseMakeComboboxHandlersReturn;
|
|
@@ -75,4 +75,4 @@ export interface StringMessage extends BaseConfirmationModalProps {
|
|
|
75
75
|
children?: never;
|
|
76
76
|
}
|
|
77
77
|
export declare const ConfirmationModal: React.ForwardRefExoticComponent<((SimpleConfirmationModalProps & (ChildrenMessage | StringMessage)) | Omit<ComplexConfirmationModalProps & ChildrenMessage, "ref"> | Omit<ComplexConfirmationModalProps & StringMessage, "ref">) & React.RefAttributes<ConfirmationModalRef>>;
|
|
78
|
-
export
|
|
78
|
+
export default ConfirmationModal;
|
|
@@ -15,6 +15,7 @@ export declare const SEARCH_DEBOUNCE_DELAY: number;
|
|
|
15
15
|
export declare const DATA_LIST_FILTERING_SPINNER_TEST_ID = "ATL-DataList-filteringSpinner";
|
|
16
16
|
export declare const DATA_LIST_LOADING_MORE_SPINNER_TEST_ID = "ATL-DataList-loadingMoreSpinner";
|
|
17
17
|
export declare const DATA_LOAD_MORE_TEST_ID = "ATL-DataList-LoadMore-trigger";
|
|
18
|
+
export declare const DATA_LIST_STICKY_HEADER_TEST_ID = "ATL-DataList-stickyHeader";
|
|
18
19
|
export declare const TRANSITION_DURATION_IN_SECONDS: number;
|
|
19
20
|
export declare const TRANSITION_DELAY_IN_SECONDS: number;
|
|
20
21
|
export {};
|
|
@@ -55,3 +55,4 @@ export interface DataTableProps<T> {
|
|
|
55
55
|
readonly loading?: boolean;
|
|
56
56
|
}
|
|
57
57
|
export declare function DataTable<T extends object>({ data, columns, pagination, sorting, height, stickyHeader, pinFirstColumn, onRowClick, emptyState, loading, }: DataTableProps<T>): JSX.Element;
|
|
58
|
+
export default DataTable;
|
|
@@ -58,4 +58,4 @@ interface DatePickerInlineProps extends BaseDatePickerProps {
|
|
|
58
58
|
}
|
|
59
59
|
type DatePickerProps = XOR<DatePickerModalProps, DatePickerInlineProps>;
|
|
60
60
|
export declare function DatePicker({ onChange, onMonthChange, activator, inline, selected, readonly, disabled, fullWidth, smartAutofocus, maxDate, minDate, highlightDates, }: DatePickerProps): JSX.Element;
|
|
61
|
-
export
|
|
61
|
+
export default DatePicker;
|
|
@@ -4,7 +4,7 @@ interface DescriptionListProps {
|
|
|
4
4
|
* A tuple where the first item is the string to display as the term
|
|
5
5
|
* and the second value is the string to display as the definition
|
|
6
6
|
*/
|
|
7
|
-
data: [string, string | ReactNode][];
|
|
7
|
+
readonly data: [string, string | ReactNode][];
|
|
8
8
|
}
|
|
9
9
|
export declare function DescriptionList({ data }: DescriptionListProps): JSX.Element;
|
|
10
|
-
export
|
|
10
|
+
export default DescriptionList;
|
package/dist/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { TypographyOptions } from "../Typography";
|
|
3
3
|
interface EmphasisProps {
|
|
4
|
-
variation: "bold" | "italic" | "highlight";
|
|
5
|
-
children: ReactNode;
|
|
4
|
+
readonly variation: "bold" | "italic" | "highlight";
|
|
5
|
+
readonly children: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export interface VariationMap {
|
|
8
8
|
[variation: string]: TypographyOptions;
|
|
9
9
|
}
|
|
10
10
|
export declare function Emphasis({ variation, children }: EmphasisProps): JSX.Element;
|
|
11
|
-
export
|
|
11
|
+
export default Emphasis;
|
|
@@ -48,4 +48,4 @@ interface FeatureSwitchProps {
|
|
|
48
48
|
onEdit?(): void;
|
|
49
49
|
}
|
|
50
50
|
export declare function FeatureSwitch({ children, description, disabled, enabled, externalLink, onEdit, onSwitch, hasSaveIndicator, title, }: FeatureSwitchProps): JSX.Element;
|
|
51
|
-
export
|
|
51
|
+
export default FeatureSwitch;
|
package/dist/Flex/Flex.d.ts
CHANGED
package/dist/Form/Form.d.ts
CHANGED
package/dist/Grid/Grid.d.ts
CHANGED
package/dist/Icon/Icon.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ interface InlineLabelProps {
|
|
|
5
5
|
* The size of the label
|
|
6
6
|
* @default base
|
|
7
7
|
*/
|
|
8
|
-
size?: "base" | "large" | "larger";
|
|
8
|
+
readonly size?: "base" | "large" | "larger";
|
|
9
9
|
/**
|
|
10
10
|
* The color of the label
|
|
11
11
|
* @default "greyBlue"
|
|
12
12
|
*/
|
|
13
|
-
color?: InlineLabelColors;
|
|
14
|
-
children: ReactNode;
|
|
13
|
+
readonly color?: InlineLabelColors;
|
|
14
|
+
readonly children: ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare function InlineLabel({ size, color, children, }: InlineLabelProps): JSX.Element;
|
|
17
|
-
export
|
|
17
|
+
export default InlineLabel;
|
|
@@ -20,4 +20,4 @@ interface InputAvatarProps extends Omit<AvatarProps, "size"> {
|
|
|
20
20
|
onUploadComplete?(file?: FileUpload): void;
|
|
21
21
|
}
|
|
22
22
|
export declare function InputAvatar({ getUploadParams, onUploadComplete, onChange, ...avatarProps }: InputAvatarProps): JSX.Element;
|
|
23
|
-
export
|
|
23
|
+
export default InputAvatar;
|
|
@@ -3,4 +3,4 @@ import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
|
3
3
|
type InputEmailProps = CommonFormFieldProps & Pick<FormFieldProps, "maxLength" | "readonly" | "validations" | "defaultValue">;
|
|
4
4
|
export declare const validationMessage = "Please enter a valid email";
|
|
5
5
|
export declare function InputEmail(props: InputEmailProps): JSX.Element;
|
|
6
|
-
export
|
|
6
|
+
export default InputEmail;
|
|
@@ -133,4 +133,4 @@ export declare function InputFile({ variation, size, buttonLabel: providedButton
|
|
|
133
133
|
* @returns FileUpload[] updated set of files.
|
|
134
134
|
*/
|
|
135
135
|
export declare function updateFiles(updatedFile: FileUpload, files: FileUpload[]): FileUpload[];
|
|
136
|
-
export
|
|
136
|
+
export default InputFile;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
3
|
export interface InputNumberProps extends CommonFormFieldProps, Pick<FormFieldProps, "maxLength" | "autocomplete" | "max" | "min" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "readonly" | "defaultValue" | "keyboard" | "prefix" | "suffix"> {
|
|
4
|
-
value?: number;
|
|
4
|
+
readonly value?: number;
|
|
5
5
|
}
|
|
6
6
|
export interface InputNumberRef {
|
|
7
7
|
blur(): void;
|
|
8
8
|
focus(): void;
|
|
9
9
|
}
|
|
10
10
|
export declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<InputNumberRef>>;
|
|
11
|
+
export default InputNumber;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonFormFieldProps, FormFieldProps } from "../FormField";
|
|
3
3
|
interface InputPasswordProps extends CommonFormFieldProps, Pick<FormFieldProps, "autocomplete" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "defaultValue"> {
|
|
4
|
-
value?: string;
|
|
4
|
+
readonly value?: string;
|
|
5
5
|
onChange?(newValue: string): void;
|
|
6
6
|
/**
|
|
7
7
|
* Display toggle to change the visibility of the password input
|
|
8
8
|
* @default false
|
|
9
9
|
*/
|
|
10
|
-
hasVisibility?: boolean;
|
|
10
|
+
readonly hasVisibility?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare function InputPassword(props: InputPasswordProps): JSX.Element;
|
|
13
|
-
export
|
|
13
|
+
export default InputPassword;
|
|
@@ -17,4 +17,4 @@ interface InputPhoneNumberProps extends Omit<CommonFormFieldProps, "align">, Pic
|
|
|
17
17
|
readonly required?: boolean;
|
|
18
18
|
}
|
|
19
19
|
export declare function InputPhoneNumber({ required, ...props }: InputPhoneNumberProps): JSX.Element;
|
|
20
|
-
export
|
|
20
|
+
export default InputPhoneNumber;
|
|
@@ -86,3 +86,4 @@ export declare const InputText: React.ForwardRefExoticComponent<({
|
|
|
86
86
|
readonly readonly?: boolean | undefined;
|
|
87
87
|
readonly validations?: import("react-hook-form").RegisterOptions<import("react-hook-form").FieldValues, string> | undefined;
|
|
88
88
|
}) & React.RefAttributes<InputTextRef>>;
|
|
89
|
+
export default InputText;
|
package/dist/Link/Link.d.ts
CHANGED
package/dist/List/List.d.ts
CHANGED
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -25,15 +25,15 @@ export interface ActionProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* Action label
|
|
27
27
|
*/
|
|
28
|
-
label: string;
|
|
28
|
+
readonly label: string;
|
|
29
29
|
/**
|
|
30
30
|
* Parent Section Label
|
|
31
31
|
*/
|
|
32
|
-
sectionLabel?: string;
|
|
32
|
+
readonly sectionLabel?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Visual cue for the action label
|
|
35
35
|
*/
|
|
36
|
-
icon?: IconNames;
|
|
36
|
+
readonly icon?: IconNames;
|
|
37
37
|
/**
|
|
38
38
|
* Callback when an action gets clicked
|
|
39
39
|
*/
|
|
@@ -41,5 +41,6 @@ export interface ActionProps {
|
|
|
41
41
|
/**
|
|
42
42
|
* Focus on the action when rendered
|
|
43
43
|
*/
|
|
44
|
-
shouldFocus?: boolean;
|
|
44
|
+
readonly shouldFocus?: boolean;
|
|
45
45
|
}
|
|
46
|
+
export default Menu;
|
package/dist/Modal/Modal.d.ts
CHANGED
package/dist/Page/Page.d.ts
CHANGED
|
@@ -56,4 +56,4 @@ interface PageWithIntroProps extends PageFoundationProps {
|
|
|
56
56
|
}
|
|
57
57
|
export type PageProps = XOR<PageFoundationProps, PageWithIntroProps>;
|
|
58
58
|
export declare function Page({ title, intro, externalIntroLinks, subtitle, children, width, primaryAction, secondaryAction, moreActionsMenu, }: PageProps): JSX.Element;
|
|
59
|
-
export
|
|
59
|
+
export default Page;
|
|
@@ -24,3 +24,4 @@ export interface PopoverProps {
|
|
|
24
24
|
readonly preferredPlacement?: "top" | "bottom" | "left" | "right" | "auto";
|
|
25
25
|
}
|
|
26
26
|
export declare function Popover({ onRequestClose, children, attachTo, open, preferredPlacement, }: PopoverProps): JSX.Element;
|
|
27
|
+
export default Popover;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DayOfMonth } from "../types";
|
|
3
3
|
interface DayOfMonthSelectProps {
|
|
4
|
-
selectedDays: Set<DayOfMonth>;
|
|
5
|
-
disabled: boolean;
|
|
4
|
+
readonly selectedDays: Set<DayOfMonth>;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
6
|
onChange(selectedDays: Set<DayOfMonth>): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function DayOfMonthSelect({ selectedDays, disabled, onChange, }: DayOfMonthSelectProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WeekDay } from "../types";
|
|
3
3
|
interface WeeklySelectProps {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
selectedDays: Set<WeekDay>;
|
|
4
|
+
readonly disabled: boolean;
|
|
5
|
+
readonly selectedDays: Set<WeekDay>;
|
|
6
6
|
onChange(selectedDays: Set<WeekDay>): void;
|
|
7
7
|
}
|
|
8
8
|
export declare function WeeklySelect({ onChange, selectedDays, disabled, }: WeeklySelectProps): JSX.Element;
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ import { FormFieldProps } from "../FormField";
|
|
|
8
8
|
*/
|
|
9
9
|
type SelectProps = Pick<FormFieldProps, Exclude<keyof FormFieldProps, "type" | "rows" | "keyboard" | "actionsRef" | "clearable">>;
|
|
10
10
|
export declare function Select(props: SelectProps): JSX.Element;
|
|
11
|
-
export
|
|
11
|
+
export default Select;
|
package/dist/Switch/Switch.d.ts
CHANGED
package/dist/Table/Table.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
interface TableProps {
|
|
3
|
-
children: ReactElement | ReactElement[];
|
|
3
|
+
readonly children: ReactElement | ReactElement[];
|
|
4
4
|
}
|
|
5
5
|
export declare function Table({ children }: TableProps): JSX.Element;
|
|
6
|
-
export
|
|
6
|
+
export default Table;
|
package/dist/Tabs/Tabs.d.ts
CHANGED
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
interface TextProps {
|
|
3
|
-
maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
|
|
3
|
+
readonly maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
|
|
4
4
|
readonly variation?: "default" | "subdued" | "success" | "error" | "warn" | "info" | "disabled";
|
|
5
5
|
readonly align?: "start" | "center" | "end";
|
|
6
6
|
readonly size?: "small" | "base" | "large";
|
|
7
7
|
}
|
|
8
8
|
export declare function Text({ variation, size, align, children, maxLines, }: PropsWithChildren<TextProps>): JSX.Element;
|
|
9
|
-
export
|
|
9
|
+
export default Text;
|
package/dist/Toast/Toast.d.ts
CHANGED