@7shifts/sous-chef 1.5.8 → 1.5.9
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/actions/PaginationControls/PaginationControls.d.ts +1 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +17 -0
- package/dist/controls/ToolbarSelect/ToolbarSelect.styles.d.ts +5 -0
- package/dist/controls/ToolbarSelect/index.d.ts +1 -0
- package/dist/controls/index.d.ts +2 -0
- package/dist/core/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +6 -0
- package/dist/core/DataTableRow/DataTableRowActions/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/ButtonCTA/ButtonCTA.d.ts +10 -0
- package/dist/feedback/InlineBanner/ButtonCTA/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +14 -0
- package/dist/feedback/InlineBanner/InlineBannerCTA/InlineBannerCTA.d.ts +11 -0
- package/dist/feedback/InlineBanner/InlineBannerCTA/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/InlineBannerIcon/InlineBannerIcon.d.ts +6 -0
- package/dist/feedback/InlineBanner/InlineBannerIcon/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/constants.d.ts +11 -0
- package/dist/feedback/InlineBanner/index.d.ts +1 -0
- package/dist/feedback/InlineBanner/types.d.ts +1 -0
- package/dist/forms/AsyncSelectField/AsyncSelectField.d.ts +14 -0
- package/dist/forms/AsyncSelectField/CustomList/CustomList.d.ts +8 -0
- package/dist/forms/AsyncSelectField/CustomList/index.d.ts +1 -0
- package/dist/forms/AsyncSelectField/index.d.ts +1 -0
- package/dist/forms/AsyncSelectField/types.d.ts +5 -0
- package/dist/forms/CurrencyField/CurrencyField.d.ts +11 -0
- package/dist/forms/CurrencyField/index.d.ts +1 -0
- package/dist/forms/Label/domain.d.ts +1 -0
- package/dist/forms/Label/useLabelTooltip.d.ts +7 -0
- package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
- package/dist/forms/PercentageField/index.d.ts +1 -0
- package/dist/forms/SelectField/domain.d.ts +5 -0
- package/dist/forms/SelectField/useSelectField.d.ts +12 -0
- package/dist/forms/TextField/useTextField.d.ts +38 -0
- package/dist/forms/TimeField/TimeField.d.ts +9 -0
- package/dist/forms/TimeField/index.d.ts +1 -0
- package/dist/icons/components/IconAnalytics.d.ts +2 -1
- package/dist/icons/components/IconArrowDown.d.ts +2 -1
- package/dist/icons/components/IconArrowLeft.d.ts +2 -1
- package/dist/icons/components/IconArrowRight.d.ts +2 -1
- package/dist/icons/components/IconArrowToTop.d.ts +2 -1
- package/dist/icons/components/IconArrowUp.d.ts +2 -1
- package/dist/icons/components/IconAward.d.ts +2 -1
- package/dist/icons/components/IconBalanceScale.d.ts +2 -1
- package/dist/icons/components/IconBalanceScaleLeft.d.ts +2 -1
- package/dist/icons/components/IconBan.d.ts +2 -1
- package/dist/icons/components/IconBarsH.d.ts +2 -1
- package/dist/icons/components/IconBarsV.d.ts +2 -1
- package/dist/icons/components/IconBell.d.ts +2 -1
- package/dist/icons/components/IconBirthdayCake.d.ts +12 -0
- package/dist/icons/components/IconBold.d.ts +2 -1
- package/dist/icons/components/IconBolt.d.ts +2 -1
- package/dist/icons/components/IconBook.d.ts +2 -1
- package/dist/icons/components/IconBriefcase.d.ts +2 -1
- package/dist/icons/components/IconBullseyeArrow.d.ts +2 -1
- package/dist/icons/components/IconCalculator.d.ts +2 -1
- package/dist/icons/components/IconCalendar.d.ts +2 -1
- package/dist/icons/components/IconCalendarAlt.d.ts +2 -1
- package/dist/icons/components/IconCalendarCheck.d.ts +2 -1
- package/dist/icons/components/IconCalendarDay.d.ts +2 -1
- package/dist/icons/components/IconCalendarExclamation.d.ts +2 -1
- package/dist/icons/components/IconCalendarStar.d.ts +12 -0
- package/dist/icons/components/IconCalendarTomorrow.d.ts +2 -1
- package/dist/icons/components/IconCamera.d.ts +2 -1
- package/dist/icons/components/IconCameraSlash.d.ts +2 -1
- package/dist/icons/components/IconCashRegister.d.ts +2 -1
- package/dist/icons/components/IconChartBar.d.ts +2 -1
- package/dist/icons/components/IconCheck.d.ts +2 -1
- package/dist/icons/components/IconChevronDown.d.ts +2 -1
- package/dist/icons/components/IconChevronLeft.d.ts +2 -1
- package/dist/icons/components/IconChevronRight.d.ts +2 -1
- package/dist/icons/components/IconChevronUp.d.ts +2 -1
- package/dist/icons/components/IconClipboardList.d.ts +2 -1
- package/dist/icons/components/IconClock.d.ts +2 -1
- package/dist/icons/components/IconCog.d.ts +2 -1
- package/dist/icons/components/IconComment.d.ts +2 -1
- package/dist/icons/components/IconCommentLines.d.ts +2 -1
- package/dist/icons/components/IconCopy.d.ts +2 -1
- package/dist/icons/components/IconCreditCard.d.ts +2 -1
- package/dist/icons/components/IconCreditCardPlus.d.ts +2 -1
- package/dist/icons/components/IconDownload.d.ts +2 -1
- package/dist/icons/components/IconEdit.d.ts +2 -1
- package/dist/icons/components/IconEllipsisV.d.ts +2 -1
- package/dist/icons/components/IconEnvelope.d.ts +2 -1
- package/dist/icons/components/IconExclaimation.d.ts +2 -1
- package/dist/icons/components/IconExclaimationTriangle.d.ts +2 -1
- package/dist/icons/components/IconExpand.d.ts +2 -1
- package/dist/icons/components/IconExternalLink.d.ts +2 -1
- package/dist/icons/components/IconEye.d.ts +2 -1
- package/dist/icons/components/IconEyeSlash.d.ts +2 -1
- package/dist/icons/components/IconFile.d.ts +2 -1
- package/dist/icons/components/IconFilePdf.d.ts +2 -1
- package/dist/icons/components/IconFlag.d.ts +2 -1
- package/dist/icons/components/IconFourDotsCircle.d.ts +2 -1
- package/dist/icons/components/IconFourSquares.d.ts +2 -1
- package/dist/icons/components/IconGavel.d.ts +12 -0
- package/dist/icons/components/IconGif.d.ts +12 -0
- package/dist/icons/components/IconGift.d.ts +2 -1
- package/dist/icons/components/IconGrinBeam.d.ts +2 -1
- package/dist/icons/components/IconGripVertical.d.ts +2 -1
- package/dist/icons/components/IconHandshake.d.ts +2 -1
- package/dist/icons/components/IconImage.d.ts +2 -1
- package/dist/icons/components/IconInfoCircle.d.ts +2 -1
- package/dist/icons/components/IconIslandTropical.d.ts +2 -1
- package/dist/icons/components/IconItalic.d.ts +2 -1
- package/dist/icons/components/IconLaptopSearch.d.ts +2 -1
- package/dist/icons/components/IconLink.d.ts +2 -1
- package/dist/icons/components/IconList.d.ts +2 -1
- package/dist/icons/components/IconListOI.d.ts +2 -1
- package/dist/icons/components/IconLock.d.ts +2 -1
- package/dist/icons/components/IconMagicSolid.d.ts +2 -1
- package/dist/icons/components/IconMapMarker.d.ts +2 -1
- package/dist/icons/components/IconMegaphone.d.ts +2 -1
- package/dist/icons/components/IconMinus.d.ts +2 -1
- package/dist/icons/components/IconMinusCircle.d.ts +2 -1
- package/dist/icons/components/IconMoneyBill.d.ts +2 -1
- package/dist/icons/components/IconNotesMedical.d.ts +2 -1
- package/dist/icons/components/IconOvertime.d.ts +2 -1
- package/dist/icons/components/IconPaperPlane.d.ts +2 -1
- package/dist/icons/components/IconPaperPlaneClock.d.ts +2 -1
- package/dist/icons/components/IconPaperclip.d.ts +2 -1
- package/dist/icons/components/IconPencil.d.ts +2 -1
- package/dist/icons/components/IconPercentage.d.ts +2 -1
- package/dist/icons/components/IconPhone.d.ts +2 -1
- package/dist/icons/components/IconPlug.d.ts +2 -1
- package/dist/icons/components/IconPlus.d.ts +2 -1
- package/dist/icons/components/IconPrint.d.ts +2 -1
- package/dist/icons/components/IconQuestionCircle.d.ts +2 -1
- package/dist/icons/components/IconRepeat.d.ts +2 -1
- package/dist/icons/components/IconReply.d.ts +12 -0
- package/dist/icons/components/IconSearch.d.ts +2 -1
- package/dist/icons/components/IconSignOut.d.ts +2 -1
- package/dist/icons/components/IconSitemap.d.ts +2 -1
- package/dist/icons/components/IconSlidersH.d.ts +2 -1
- package/dist/icons/components/IconSort.d.ts +2 -1
- package/dist/icons/components/IconStar.d.ts +2 -1
- package/dist/icons/components/IconStarSolid.d.ts +12 -0
- package/dist/icons/components/IconStickyNoteLines.d.ts +2 -1
- package/dist/icons/components/IconStopwatch.d.ts +2 -1
- package/dist/icons/components/IconStrikethrough.d.ts +2 -1
- package/dist/icons/components/IconSync.d.ts +2 -1
- package/dist/icons/components/IconSyncExclaimation.d.ts +2 -1
- package/dist/icons/components/IconTachometer.d.ts +2 -1
- package/dist/icons/components/IconTimes.d.ts +2 -1
- package/dist/icons/components/IconTimesOctagon.d.ts +2 -1
- package/dist/icons/components/IconTrash.d.ts +2 -1
- package/dist/icons/components/IconUnderline.d.ts +2 -1
- package/dist/icons/components/IconUndo.d.ts +2 -1
- package/dist/icons/components/IconUniversity.d.ts +12 -0
- package/dist/icons/components/IconUserComputer.d.ts +2 -1
- package/dist/icons/components/IconUserFriends.d.ts +12 -0
- package/dist/icons/components/IconUserLight.d.ts +2 -1
- package/dist/icons/components/IconUserPlus.d.ts +2 -1
- package/dist/icons/components/IconUserSlash.d.ts +2 -1
- package/dist/icons/components/IconUserSolid.d.ts +2 -1
- package/dist/icons/components/IconUserTag.d.ts +2 -1
- package/dist/icons/components/IconUserTie.d.ts +2 -1
- package/dist/icons/components/IconUsers.d.ts +2 -1
- package/dist/icons/components/IconVideo.d.ts +2 -1
- package/dist/icons/components/IconVolume.d.ts +2 -1
- package/dist/icons/components/IconVolumeMute.d.ts +2 -1
- package/dist/icons/components/IconWrench.d.ts +2 -1
- package/dist/icons/components/index.d.ts +8 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Chip/Chip.d.ts +11 -0
- package/dist/media/Chip/constants.d.ts +8 -0
- package/dist/media/Chip/index.d.ts +1 -0
- package/dist/media/Chip/types.d.ts +1 -0
- package/dist/media/Pill/Pill.d.ts +10 -0
- package/dist/media/Pill/constants.d.ts +7 -0
- package/dist/media/Pill/index.d.ts +1 -0
- package/dist/media/Pill/types.d.ts +1 -0
- package/dist/overlay/Calendar/Calendar.d.ts +24 -0
- package/dist/overlay/Calendar/constants.d.ts +8 -0
- package/dist/overlay/Calendar/domain.d.ts +7 -0
- package/dist/overlay/Calendar/index.d.ts +1 -0
- package/dist/overlay/Calendar/types.d.ts +2 -0
- package/dist/overlay/Modal/ModalBody/useScrollShadow.d.ts +7 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -230
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SelectOption, SelectOptions } from '../../forms/SelectField/types';
|
|
3
|
+
declare type Props<T> = {
|
|
4
|
+
name: string;
|
|
5
|
+
value?: SelectOption<T>;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
options: SelectOptions<T>;
|
|
8
|
+
onChange?: (e: SelectOption<T>) => void;
|
|
9
|
+
onBlur?: (e: SelectOption<T>) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Use a prefix for things like icons or symbols (“$”, “¥”, “£”). */
|
|
12
|
+
prefix: React.ReactNode;
|
|
13
|
+
testId?: string;
|
|
14
|
+
};
|
|
15
|
+
/** Toolbar component to make a possible selection from predefined options. */
|
|
16
|
+
declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, disabled, prefix, testId }: Props<T>) => JSX.Element;
|
|
17
|
+
export default ToolbarSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ToolbarSelect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DataTableRowActions';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InlineBannerTheme } from '../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare type ButtonCTAProps = {
|
|
4
|
+
button: React.ReactElement;
|
|
5
|
+
bannerTheme: InlineBannerTheme;
|
|
6
|
+
primaryCTA?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** Infers theme prop for Sous Chef Button CTAs if not explicitly passed, default is hollow, primaryCTA is Upsell if banner theme is Upsell*/
|
|
9
|
+
declare const ButtonCTA: ({ button, bannerTheme, primaryCTA }: ButtonCTAProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
|
10
|
+
export default ButtonCTA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ButtonCTA';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlineBannerTheme } from './types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
theme?: InlineBannerTheme;
|
|
6
|
+
title?: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
caption?: string;
|
|
9
|
+
primaryButton?: React.ReactElement;
|
|
10
|
+
secondaryButton?: React.ReactElement;
|
|
11
|
+
testId?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const InlineBanner: React.FC<Props>;
|
|
14
|
+
export default InlineBanner;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlineBannerTheme } from '../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
primaryButton: React.ReactElement;
|
|
5
|
+
secondaryButton?: React.ReactElement;
|
|
6
|
+
caption?: string;
|
|
7
|
+
multiLine: boolean;
|
|
8
|
+
bannerTheme: InlineBannerTheme;
|
|
9
|
+
};
|
|
10
|
+
declare const InlineBannerCTA: ({ primaryButton, secondaryButton, caption, multiLine, bannerTheme }: Props) => JSX.Element;
|
|
11
|
+
export default InlineBannerCTA;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InlineBannerCTA';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InlineBannerIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InlineBanner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type InlineBannerTheme = 'info' | 'warning' | 'success' | 'danger' | 'upsell';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Props as SelectProps } from '../SelectField/SelectField';
|
|
2
|
+
import { AsyncSelectOptions } from './types';
|
|
3
|
+
declare type Props<T> = {
|
|
4
|
+
/** It is a function that takes the input search as parameter and returns a Promise with all the options and if there are more options to load. If it brings all the options on the first load, it won't call the `loadOptions` to perform the search. */
|
|
5
|
+
loadOptions: (inputValue: string) => Promise<AsyncSelectOptions<T>>;
|
|
6
|
+
/** It fires `loadOptions` again if this key value changes. Used when it depends on other fields to load its options */
|
|
7
|
+
key?: string | number;
|
|
8
|
+
} & Omit<SelectProps<T>, 'options'>;
|
|
9
|
+
/**
|
|
10
|
+
* Component to make possible choose from async options. It looks exactly as the [SelectField](./?path=/docs/forms-selectfield--default) but, this one handle asynchronous options.
|
|
11
|
+
* Instead of passing a `options` props, this component requires a `loadOptions` prop.
|
|
12
|
+
* */
|
|
13
|
+
declare const AsyncSelectField: <T extends unknown>({ loadOptions, ...props }: Props<T>) => JSX.Element;
|
|
14
|
+
export default AsyncSelectField;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { components } from 'react-select';
|
|
3
|
+
declare type Props = ComponentProps<typeof components.MenuList> & {
|
|
4
|
+
hasMoreOptions: boolean;
|
|
5
|
+
hasMoreOptionsFirstLoad: boolean | null | undefined;
|
|
6
|
+
};
|
|
7
|
+
declare const CustomList: ({ children, hasMoreOptions, hasMoreOptionsFirstLoad, ...props }: Props) => JSX.Element;
|
|
8
|
+
export default CustomList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AsyncSelectField';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
3
|
+
/**
|
|
4
|
+
* `CurrencyField` is like `TextField` but it auto-format the value when the user leaves the field.
|
|
5
|
+
*
|
|
6
|
+
* At the end, it is just a string formatted nicely. **You are in charge of validating the value and parsing it back to a value that you can use on your application**.
|
|
7
|
+
*/
|
|
8
|
+
declare const CurrencyField: React.ForwardRefExoticComponent<TextFieldProps & {
|
|
9
|
+
currencySymbol: string;
|
|
10
|
+
} & Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "autoFocus" | "defaultValue" | "autoComplete" | "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default CurrencyField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CurrencyField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEllipsisActive: (e: HTMLElement) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
3
|
+
/**
|
|
4
|
+
* `PercentageField` is an extended `TextField` input with validation and formatting in place to properly display percentage values.
|
|
5
|
+
* In its default state it only allows integers between 0 and 100, but it can be configured to allow decimals and negative values.
|
|
6
|
+
*/
|
|
7
|
+
declare const PercentageField: React.ForwardRefExoticComponent<{
|
|
8
|
+
max?: number | undefined;
|
|
9
|
+
min?: number | undefined;
|
|
10
|
+
precision?: number | undefined;
|
|
11
|
+
stepSize?: number | undefined;
|
|
12
|
+
} & Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "prefix" | "autoFocus" | "defaultValue" | "autoComplete"> & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
export default PercentageField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PercentageField';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props } from './SelectField';
|
|
3
|
+
export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId }: Props<T>) => {
|
|
4
|
+
selectProps: Pick<import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>, React.ReactText> & import("react-select/src/stateManager").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>> & import("react-select").Props<import("react-select").OptionTypeBase, boolean, import("react-select").GroupTypeBase<any>>;
|
|
5
|
+
fieldProps: {
|
|
6
|
+
caption: React.ReactNode;
|
|
7
|
+
error: React.ReactNode;
|
|
8
|
+
id: string;
|
|
9
|
+
label: React.ReactNode;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RefType } from '../../utils/types';
|
|
3
|
+
import type { Props } from './TextField';
|
|
4
|
+
declare type UseTextFieldProps = Props & {
|
|
5
|
+
ref: RefType<HTMLInputElement>;
|
|
6
|
+
};
|
|
7
|
+
export declare const useTextField: ({ autoComplete, autoFocus, defaultValue, disabled, error, id, maxLength, name, caption, label, onBlur, onChange, onFocus, onKeyDown, placeholder, value, ref, testId }: UseTextFieldProps) => {
|
|
8
|
+
inputProps: {
|
|
9
|
+
'aria-describedby': string;
|
|
10
|
+
'aria-invalid': boolean;
|
|
11
|
+
autoComplete: "on" | "off" | undefined;
|
|
12
|
+
autoFocus: boolean | undefined;
|
|
13
|
+
className: string;
|
|
14
|
+
'data-testid': string;
|
|
15
|
+
disabled: boolean | undefined;
|
|
16
|
+
defaultValue: string | undefined;
|
|
17
|
+
id: string;
|
|
18
|
+
maxLength: number | undefined;
|
|
19
|
+
name: string;
|
|
20
|
+
onBlur: (e: import("react").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
21
|
+
onChange: (e: import("react").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
22
|
+
onFocus: (e: import("react").FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
23
|
+
onKeyDown: (e: import("react").KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
24
|
+
placeholder: string | undefined;
|
|
25
|
+
ref: RefType<HTMLInputElement>;
|
|
26
|
+
size: number;
|
|
27
|
+
type: string;
|
|
28
|
+
value: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
fieldProps: {
|
|
31
|
+
caption: import("react").ReactNode;
|
|
32
|
+
error: import("react").ReactNode;
|
|
33
|
+
label: import("react").ReactNode;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Props as TextFieldProps } from '../TextField/TextField';
|
|
3
|
+
/**
|
|
4
|
+
* `TimeField` are like `TextField` but it auto-format the value when the user leaves the field.
|
|
5
|
+
*
|
|
6
|
+
* At the end, it is just a string formatted nicely. **You are in charge of validating the value and parsing it back to a value that you can use on your application**.
|
|
7
|
+
*/
|
|
8
|
+
declare const TimeField: React.ForwardRefExoticComponent<Pick<TextFieldProps, "disabled" | "id" | "testId" | "caption" | "label" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "error" | "value" | "placeholder" | "autoFocus" | "defaultValue" | "autoComplete" | "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export default TimeField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TimeField';
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconAnalytics: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconAnalytics;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowDown: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowDown;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowLeft: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowLeft;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowRight: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowRight;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowToTop: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowToTop;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconArrowUp: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconArrowUp;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconAward: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconAward;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBalanceScale: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBalanceScale;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBalanceScaleLeft: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBalanceScaleLeft;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBan: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBan;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBarsH: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBarsH;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBarsV: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBarsV;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBell: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBell;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSize } from '../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
} & React.SVGProps<SVGSVGElement>;
|
|
8
|
+
declare const IconBirthdayCake: {
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default IconBirthdayCake;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBold: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBold;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBolt: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBolt;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBook: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBook;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBriefcase: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBriefcase;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconBullseyeArrow: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconBullseyeArrow;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalculator: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalculator;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalendar: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalendar;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalendarAlt: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalendarAlt;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalendarCheck: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalendarCheck;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalendarDay: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalendarDay;
|
|
@@ -3,9 +3,10 @@ import { IconSize } from '../types';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
size?: IconSize;
|
|
5
5
|
color?: string;
|
|
6
|
+
testId?: string;
|
|
6
7
|
} & React.SVGProps<SVGSVGElement>;
|
|
7
8
|
declare const IconCalendarExclamation: {
|
|
8
|
-
(props: Props): JSX.Element;
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default IconCalendarExclamation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconSize } from '../types';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
size?: IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
} & React.SVGProps<SVGSVGElement>;
|
|
8
|
+
declare const IconCalendarStar: {
|
|
9
|
+
({ testId, ...props }: Props): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default IconCalendarStar;
|