@7shifts/sous-chef 3.3.6 → 3.5.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/dist/{src/controls/DateFilter/DateFilterStepper/DateFilterStepper.d.ts → controls/DateFilter/DateStepper/DateStepper.d.ts} +2 -2
- package/dist/controls/DateFilter/DateStepper/index.d.ts +1 -0
- package/dist/controls/DateFilter/DateText/DateText.d.ts +9 -0
- package/dist/controls/DateFilter/DateText/index.d.ts +1 -0
- package/dist/controls/DateFilter/DisplayDate/DisplayDate.d.ts +9 -0
- package/dist/controls/DateFilter/DisplayDate/index.d.ts +1 -0
- package/dist/core/DataTableRow/DataTableRow.d.ts +11 -0
- package/dist/core/ResourceTable/ResourceTable.d.ts +28 -0
- package/dist/core/ResourceTable/ResourceTableContext.d.ts +8 -0
- package/dist/core/ResourceTable/ResourceTableHeader.d.ts +12 -0
- package/dist/core/ResourceTable/index.d.ts +1 -0
- package/dist/core/ResourceTable/types.d.ts +26 -0
- package/dist/core/ResourceTableRow/ResourceTableRow.d.ts +13 -0
- package/dist/core/ResourceTableRow/index.d.ts +1 -0
- package/dist/forms/AsyncSelectField/AsyncSelectField.d.ts +1 -1
- package/dist/forms/MultiSelectField/CustomOption/CustomOption.d.ts +7 -0
- package/dist/icons/components/IconMugSaucerSolid.d.ts +9 -0
- package/dist/icons/components/IconUserSearch.d.ts +9 -0
- package/dist/icons/components/index.d.ts +2 -0
- package/dist/index.css +3 -0
- package/dist/index.js +169 -119
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +168 -120
- package/dist/index.modern.js.map +1 -1
- package/dist/typography/Text/FontStyles/Bold.d.ts +6 -0
- package/dist/typography/Text/FontStyles/Italic.d.ts +6 -0
- package/dist/typography/Text/FontStyles/Underline.d.ts +6 -0
- package/package.json +1 -1
- package/dist/icons/components/IconAwfulNew.d.ts +0 -9
- package/dist/icons/src/components/IconArrowLeft.d.ts +0 -9
- package/dist/icons/src/components/IconArrowRight.d.ts +0 -9
- package/dist/icons/src/components/IconAward.d.ts +0 -9
- package/dist/icons/src/components/IconCalendarAlt.d.ts +0 -9
- package/dist/icons/src/components/IconCheck.d.ts +0 -9
- package/dist/icons/src/components/IconChevronDown.d.ts +0 -9
- package/dist/icons/src/components/IconChevronLeft.d.ts +0 -9
- package/dist/icons/src/components/IconChevronRight.d.ts +0 -9
- package/dist/icons/src/components/IconChevronUp.d.ts +0 -9
- package/dist/icons/src/components/IconEllipsisV.d.ts +0 -9
- package/dist/icons/src/components/IconExclaimationTriangle.d.ts +0 -9
- package/dist/icons/src/components/IconEye.d.ts +0 -9
- package/dist/icons/src/components/IconEyeSlash.d.ts +0 -9
- package/dist/icons/src/components/IconInfoCircle.d.ts +0 -9
- package/dist/icons/src/components/IconPlus.d.ts +0 -9
- package/dist/icons/src/components/IconTimes.d.ts +0 -9
- package/dist/icons/src/components/IconTimesOctagon.d.ts +0 -9
- package/dist/icons/src/components/IconUserSolid.d.ts +0 -9
- package/dist/icons/src/constants.d.ts +0 -6
- package/dist/icons/src/iconUtils.d.ts +0 -8
- package/dist/icons.tsx.js +0 -2
- package/dist/icons.tsx.js.map +0 -1
- package/dist/icons.tsx.modern.js +0 -2
- package/dist/icons.tsx.modern.js.map +0 -1
- package/dist/index.tsx.js +0 -2
- package/dist/index.tsx.js.map +0 -1
- package/dist/index.tsx.modern.js +0 -2
- package/dist/index.tsx.modern.js.map +0 -1
- package/dist/navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.d.ts +0 -7
- package/dist/navigation/Breadcrumbs/BreadcrumbItem/index.d.ts +0 -1
- package/dist/src/actions/Button/Button.d.ts +0 -30
- package/dist/src/actions/Button/constants.d.ts +0 -28
- package/dist/src/actions/Button/index.d.ts +0 -1
- package/dist/src/actions/Button/types.d.ts +0 -4
- package/dist/src/actions/Link/Link.d.ts +0 -11
- package/dist/src/actions/Link/constants.d.ts +0 -8
- package/dist/src/actions/Link/index.d.ts +0 -1
- package/dist/src/actions/Link/types.d.ts +0 -2
- package/dist/src/actions/PaginationControls/PaginationControls.d.ts +0 -13
- package/dist/src/actions/PaginationControls/index.d.ts +0 -1
- package/dist/src/actions/Toggle/Toggle.d.ts +0 -18
- package/dist/src/actions/Toggle/index.d.ts +0 -1
- package/dist/src/actions/index.d.ts +0 -5
- package/dist/src/controls/DateFilter/DateFilter.d.ts +0 -12
- package/dist/src/controls/DateFilter/DateFilterDisplay/DateFilterDisplay.d.ts +0 -10
- package/dist/src/controls/DateFilter/DateFilterDisplay/DateFilterText/DateFilterText.d.ts +0 -9
- package/dist/src/controls/DateFilter/DateFilterDisplay/DateFilterText/domain.d.ts +0 -2
- package/dist/src/controls/DateFilter/DateFilterDisplay/index.d.ts +0 -1
- package/dist/src/controls/DateFilter/DateFilterStepper/domain.d.ts +0 -2
- package/dist/src/controls/DateFilter/DateFilterStepper/index.d.ts +0 -1
- package/dist/src/controls/DateFilter/constants.d.ts +0 -9
- package/dist/src/controls/DateFilter/index.d.ts +0 -1
- package/dist/src/controls/DateFilter/types.d.ts +0 -3
- package/dist/src/controls/SegmentedControl/SegmentedControl.d.ts +0 -8
- package/dist/src/controls/SegmentedControl/index.d.ts +0 -1
- package/dist/src/controls/ToolbarSelect/ToolbarSelect.d.ts +0 -17
- package/dist/src/controls/ToolbarSelect/ToolbarSelect.styles.d.ts +0 -5
- package/dist/src/controls/ToolbarSelect/index.d.ts +0 -1
- package/dist/src/controls/index.d.ts +0 -4
- package/dist/src/core/Portal/Portal.d.ts +0 -6
- package/dist/src/core/Portal/index.d.ts +0 -1
- package/dist/src/core/SousChefProvider/SousChefProvider.d.ts +0 -6
- package/dist/src/core/SousChefProvider/index.d.ts +0 -1
- package/dist/src/core/index.d.ts +0 -2
- package/dist/src/feedback/CircularProgress/CircularProgress.d.ts +0 -9
- package/dist/src/feedback/CircularProgress/index.d.ts +0 -1
- package/dist/src/feedback/InlineBanner/ButtonCTA/ButtonCTA.d.ts +0 -10
- package/dist/src/feedback/InlineBanner/ButtonCTA/index.d.ts +0 -1
- package/dist/src/feedback/InlineBanner/InlineBanner.d.ts +0 -14
- package/dist/src/feedback/InlineBanner/InlineBannerCTA/InlineBannerCTA.d.ts +0 -11
- package/dist/src/feedback/InlineBanner/InlineBannerCTA/index.d.ts +0 -1
- package/dist/src/feedback/InlineBanner/InlineBannerIcon/InlineBannerIcon.d.ts +0 -6
- package/dist/src/feedback/InlineBanner/InlineBannerIcon/index.d.ts +0 -1
- package/dist/src/feedback/InlineBanner/constants.d.ts +0 -11
- package/dist/src/feedback/InlineBanner/index.d.ts +0 -1
- package/dist/src/feedback/InlineBanner/types.d.ts +0 -1
- package/dist/src/feedback/PersistentBanner/PersistentBanner.d.ts +0 -13
- package/dist/src/feedback/PersistentBanner/constants.d.ts +0 -5
- package/dist/src/feedback/PersistentBanner/index.d.ts +0 -1
- package/dist/src/feedback/PersistentBanner/types.d.ts +0 -1
- package/dist/src/feedback/Progress/domain.d.ts +0 -11
- package/dist/src/feedback/Progress/useProgress.d.ts +0 -18
- package/dist/src/feedback/ProgressBar/ProgressBar.d.ts +0 -8
- package/dist/src/feedback/ProgressBar/index.d.ts +0 -1
- package/dist/src/feedback/Spinner/Spinner.d.ts +0 -9
- package/dist/src/feedback/Spinner/constants.d.ts +0 -6
- package/dist/src/feedback/Spinner/index.d.ts +0 -1
- package/dist/src/feedback/Toast/Toast.d.ts +0 -9
- package/dist/src/feedback/Toast/constants.d.ts +0 -5
- package/dist/src/feedback/Toast/index.d.ts +0 -1
- package/dist/src/feedback/Toast/types.d.ts +0 -1
- package/dist/src/feedback/index.d.ts +0 -7
- package/dist/src/forms/AffixContainer/AffixContainer.d.ts +0 -8
- package/dist/src/forms/AffixContainer/index.d.ts +0 -1
- package/dist/src/forms/AsyncSelectField/AsyncSelectField.d.ts +0 -14
- package/dist/src/forms/AsyncSelectField/CustomList/CustomList.d.ts +0 -8
- package/dist/src/forms/AsyncSelectField/CustomList/index.d.ts +0 -1
- package/dist/src/forms/AsyncSelectField/index.d.ts +0 -1
- package/dist/src/forms/AsyncSelectField/types.d.ts +0 -5
- package/dist/src/forms/Caption/Caption.d.ts +0 -7
- package/dist/src/forms/Caption/index.d.ts +0 -1
- package/dist/src/forms/CheckboxField/CheckboxField.d.ts +0 -18
- package/dist/src/forms/CheckboxField/index.d.ts +0 -1
- package/dist/src/forms/CurrencyField/CurrencyField.d.ts +0 -11
- package/dist/src/forms/CurrencyField/index.d.ts +0 -1
- package/dist/src/forms/DateField/DateField.d.ts +0 -25
- package/dist/src/forms/DateField/index.d.ts +0 -1
- package/dist/src/forms/DatePickerCalendar/DatePickerCalendar.d.ts +0 -15
- package/dist/src/forms/DatePickerCalendar/index.d.ts +0 -1
- package/dist/src/forms/DateRangeField/DateRangeField.d.ts +0 -25
- package/dist/src/forms/DateRangeField/FromDate/FromDate.d.ts +0 -17
- package/dist/src/forms/DateRangeField/FromDate/index.d.ts +0 -1
- package/dist/src/forms/DateRangeField/ToDate/ToDate.d.ts +0 -17
- package/dist/src/forms/DateRangeField/ToDate/index.d.ts +0 -1
- package/dist/src/forms/DateRangeField/index.d.ts +0 -1
- package/dist/src/forms/ErrorMessage/ErrorMessage.d.ts +0 -8
- package/dist/src/forms/ErrorMessage/index.d.ts +0 -1
- package/dist/src/forms/Field/Field.d.ts +0 -11
- package/dist/src/forms/Field/index.d.ts +0 -1
- package/dist/src/forms/Form/Form.d.ts +0 -14
- package/dist/src/forms/Form/FormContext.d.ts +0 -8
- package/dist/src/forms/Form/index.d.ts +0 -1
- package/dist/src/forms/Form/types.d.ts +0 -3
- package/dist/src/forms/FormFeedback/FormFeedback.d.ts +0 -8
- package/dist/src/forms/FormFeedback/index.d.ts +0 -1
- package/dist/src/forms/FormRow/FormRow.d.ts +0 -21
- package/dist/src/forms/FormRow/index.d.ts +0 -1
- package/dist/src/forms/Label/Label.d.ts +0 -8
- package/dist/src/forms/Label/domain.d.ts +0 -1
- package/dist/src/forms/Label/index.d.ts +0 -1
- package/dist/src/forms/Label/useLabelTooltip.d.ts +0 -7
- package/dist/src/forms/MultiSelectField/MultiSelectField.d.ts +0 -28
- package/dist/src/forms/MultiSelectField/index.d.ts +0 -1
- package/dist/src/forms/PasswordCriteria/PasswordCriteria.d.ts +0 -7
- package/dist/src/forms/PasswordCriteria/index.d.ts +0 -1
- package/dist/src/forms/PasswordField/PasswordField.d.ts +0 -20
- package/dist/src/forms/PasswordField/index.d.ts +0 -1
- package/dist/src/forms/PasswordField/types.d.ts +0 -5
- package/dist/src/forms/PercentageField/PercentageField.d.ts +0 -13
- package/dist/src/forms/PercentageField/index.d.ts +0 -1
- package/dist/src/forms/PillSelectField/PillSelectField.d.ts +0 -19
- package/dist/src/forms/PillSelectField/index.d.ts +0 -1
- package/dist/src/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +0 -11
- package/dist/src/forms/RadioGroupBoxOption/index.d.ts +0 -1
- package/dist/src/forms/RadioGroupField/BoxOptions/BoxOptions.d.ts +0 -8
- package/dist/src/forms/RadioGroupField/BoxOptions/index.d.ts +0 -1
- package/dist/src/forms/RadioGroupField/RadioGroupField.d.ts +0 -25
- package/dist/src/forms/RadioGroupField/RadioGroupFieldContext.d.ts +0 -10
- package/dist/src/forms/RadioGroupField/RadioOptions/RadioOptions.d.ts +0 -9
- package/dist/src/forms/RadioGroupField/RadioOptions/index.d.ts +0 -1
- package/dist/src/forms/RadioGroupField/domain.d.ts +0 -6
- package/dist/src/forms/RadioGroupField/index.d.ts +0 -1
- package/dist/src/forms/RadioGroupOption/RadioGroupOption.d.ts +0 -11
- package/dist/src/forms/RadioGroupOption/index.d.ts +0 -1
- package/dist/src/forms/SelectField/CustomContainer/CustomContainer.d.ts +0 -2
- package/dist/src/forms/SelectField/CustomContainer/index.d.ts +0 -1
- package/dist/src/forms/SelectField/CustomControl/CustomControl.d.ts +0 -5
- package/dist/src/forms/SelectField/CustomControl/index.d.ts +0 -1
- package/dist/src/forms/SelectField/CustomMenu/CustomMenu.d.ts +0 -5
- package/dist/src/forms/SelectField/CustomMenu/index.d.ts +0 -1
- package/dist/src/forms/SelectField/CustomOption/CustomOption.d.ts +0 -2
- package/dist/src/forms/SelectField/SelectField.d.ts +0 -36
- package/dist/src/forms/SelectField/SelectField.styles.d.ts +0 -7
- package/dist/src/forms/SelectField/domain.d.ts +0 -5
- package/dist/src/forms/SelectField/index.d.ts +0 -1
- package/dist/src/forms/SelectField/types.d.ts +0 -22
- package/dist/src/forms/SelectField/useSelectField.d.ts +0 -12
- package/dist/src/forms/TextAreaField/TextAreaField.d.ts +0 -26
- package/dist/src/forms/TextAreaField/index.d.ts +0 -1
- package/dist/src/forms/TextField/TextField.d.ts +0 -28
- package/dist/src/forms/TextField/index.d.ts +0 -1
- package/dist/src/forms/TextField/useTextField.d.ts +0 -38
- package/dist/src/forms/TimeField/TimeField.d.ts +0 -9
- package/dist/src/forms/TimeField/index.d.ts +0 -1
- package/dist/src/forms/WeekField/WeekField.d.ts +0 -26
- package/dist/src/forms/WeekField/index.d.ts +0 -1
- package/dist/src/forms/hooks/useCheckBoxFieldControllers.d.ts +0 -18
- package/dist/src/forms/hooks/useDateFieldControllers.d.ts +0 -18
- package/dist/src/forms/hooks/useFieldControllers.d.ts +0 -24
- package/dist/src/forms/hooks/useFieldId.d.ts +0 -6
- package/dist/src/forms/hooks/useGrowTextAreaRef.d.ts +0 -10
- package/dist/src/forms/hooks/useMultiSelectFieldControllers.d.ts +0 -19
- package/dist/src/forms/hooks/usePasswordCriteria.d.ts +0 -2
- package/dist/src/forms/hooks/useRadioGroupFieldControllers.d.ts +0 -15
- package/dist/src/forms/hooks/useRangeFieldControllers.d.ts +0 -19
- package/dist/src/forms/hooks/useSelectFieldControllers.d.ts +0 -20
- package/dist/src/forms/index.d.ts +0 -24
- package/dist/src/foundation/colors.d.ts +0 -53
- package/dist/src/foundation/constants.d.ts +0 -8
- package/dist/src/hooks/useIsMounted.d.ts +0 -1
- package/dist/src/hooks/usePortalContainer.d.ts +0 -4
- package/dist/src/icons.d.ts +0 -2
- package/dist/src/index.d.ts +0 -10
- package/dist/src/layout/Card/Card.d.ts +0 -11
- package/dist/src/layout/Card/index.d.ts +0 -1
- package/dist/src/layout/index.d.ts +0 -5
- package/dist/src/lists/DataTableRow/DataTableRow.d.ts +0 -11
- package/dist/src/lists/index.d.ts +0 -6
- package/dist/src/media/Avatar/Avatar.d.ts +0 -12
- package/dist/src/media/Avatar/AvatarImage/AvatarImage.d.ts +0 -9
- package/dist/src/media/Avatar/AvatarImage/index.d.ts +0 -1
- package/dist/src/media/Avatar/constants.d.ts +0 -4
- package/dist/src/media/Avatar/index.d.ts +0 -1
- package/dist/src/media/Badge/Badge.d.ts +0 -10
- package/dist/src/media/Badge/index.d.ts +0 -1
- package/dist/src/media/Chip/Chip.d.ts +0 -11
- package/dist/src/media/Chip/constants.d.ts +0 -8
- package/dist/src/media/Chip/index.d.ts +0 -1
- package/dist/src/media/Chip/types.d.ts +0 -1
- package/dist/src/media/Pill/Pill.d.ts +0 -10
- package/dist/src/media/Pill/constants.d.ts +0 -7
- package/dist/src/media/Pill/index.d.ts +0 -1
- package/dist/src/media/Pill/types.d.ts +0 -1
- package/dist/src/media/index.d.ts +0 -5
- package/dist/src/overlay/Calendar/Calendar.d.ts +0 -24
- package/dist/src/overlay/Calendar/constants.d.ts +0 -8
- package/dist/src/overlay/Calendar/domain.d.ts +0 -7
- package/dist/src/overlay/Calendar/index.d.ts +0 -1
- package/dist/src/overlay/Calendar/types.d.ts +0 -2
- package/dist/src/overlay/KebabMenu/KebabMenu.d.ts +0 -6
- package/dist/src/overlay/KebabMenu/index.d.ts +0 -1
- package/dist/src/overlay/Menu/Menu.d.ts +0 -10
- package/dist/src/overlay/Menu/MenuButton.d.ts +0 -8
- package/dist/src/overlay/Menu/MenuContext.d.ts +0 -9
- package/dist/src/overlay/Menu/MenuItem.d.ts +0 -7
- package/dist/src/overlay/Menu/MenuList.d.ts +0 -6
- package/dist/src/overlay/Menu/index.d.ts +0 -1
- package/dist/src/overlay/Menu/types.d.ts +0 -6
- package/dist/src/overlay/Modal/Modal.d.ts +0 -20
- package/dist/src/overlay/Modal/ModalBody/ModalBody.d.ts +0 -7
- package/dist/src/overlay/Modal/ModalBody/index.d.ts +0 -1
- package/dist/src/overlay/Modal/ModalBody/useScrollShadow.d.ts +0 -7
- package/dist/src/overlay/Modal/ModalFooter/ModalFooter.d.ts +0 -13
- package/dist/src/overlay/Modal/ModalFooter/index.d.ts +0 -1
- package/dist/src/overlay/Modal/ModalHeader/ModalHeader.d.ts +0 -8
- package/dist/src/overlay/Modal/ModalHeader/index.d.ts +0 -1
- package/dist/src/overlay/Modal/index.d.ts +0 -1
- package/dist/src/overlay/Tooltip/Tooltip.d.ts +0 -22
- package/dist/src/overlay/Tooltip/TooltipOverlay/TooltipOverlay.d.ts +0 -16
- package/dist/src/overlay/Tooltip/TooltipOverlay/domain.d.ts +0 -20
- package/dist/src/overlay/Tooltip/TooltipOverlay/index.d.ts +0 -1
- package/dist/src/overlay/Tooltip/constants.d.ts +0 -15
- package/dist/src/overlay/Tooltip/index.d.ts +0 -1
- package/dist/src/overlay/Tooltip/types.d.ts +0 -6
- package/dist/src/overlay/hooks/useOnClickOutside.d.ts +0 -5
- package/dist/src/overlay/index.d.ts +0 -6
- package/dist/src/utils/date.d.ts +0 -24
- package/dist/src/utils/formik.d.ts +0 -6
- package/dist/src/utils/i18n.d.ts +0 -1
- package/dist/src/utils/string.d.ts +0 -1
- package/dist/src/utils/types.d.ts +0 -2
- /package/dist/{src/lists → core}/DataTable/DataTable.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/DataTableCell/DataTableCell.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/DataTableCell/index.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/DataTableContext.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/DataTableHeader.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/index.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTable/types.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTableEditableCell/DataTableEditableCell.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTableEditableCell/index.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTableRow/DataTableRowActions/DataTableRowActions.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTableRow/DataTableRowActions/index.d.ts +0 -0
- /package/dist/{src/lists → core}/DataTableRow/index.d.ts +0 -0
- /package/dist/{src/layout → core}/Flex/Flex.d.ts +0 -0
- /package/dist/{src/layout → core}/Flex/index.d.ts +0 -0
- /package/dist/{src/layout → core}/Flex/types.d.ts +0 -0
- /package/dist/{src/layout → core}/Inline/Inline.d.ts +0 -0
- /package/dist/{src/layout → core}/Inline/index.d.ts +0 -0
- /package/dist/{src/layout → core}/Stack/Stack.d.ts +0 -0
- /package/dist/{src/layout → core}/Stack/index.d.ts +0 -0
- /package/dist/{src/forms/SelectField → forms/MultiSelectField}/CustomOption/index.d.ts +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
name: string;
|
|
4
|
-
/** If not provided it will generate a random id so the label links properly with the text input. */
|
|
5
|
-
id?: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (e: string) => void;
|
|
8
|
-
onBlur?: (e: string) => void;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
caption?: React.ReactNode;
|
|
11
|
-
error?: React.ReactNode;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
defaultValue?: string;
|
|
15
|
-
/** When `true` the field will grow as more lines is added until it hits the `maxHeight` defined. */
|
|
16
|
-
autoGrow?: boolean;
|
|
17
|
-
/** It defines the minimum size the input can grow. */
|
|
18
|
-
minHeight?: number;
|
|
19
|
-
/** It defines the maximum size the input can grow. */
|
|
20
|
-
maxHeight?: number;
|
|
21
|
-
/** A JSX containing the toolbar elements. You can use `Inline` to place the buttons properly on the toolbar space. */
|
|
22
|
-
toolbar?: React.ReactNode;
|
|
23
|
-
testId?: string;
|
|
24
|
-
};
|
|
25
|
-
declare const TextAreaField: React.FC<Props>;
|
|
26
|
-
export default TextAreaField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TextAreaField';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type AutoCompleteType = 'off' | 'on';
|
|
3
|
-
export declare type Props = {
|
|
4
|
-
autoComplete?: AutoCompleteType;
|
|
5
|
-
autoFocus?: boolean;
|
|
6
|
-
caption?: React.ReactNode;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
error?: React.ReactNode;
|
|
10
|
-
/** If not provided it will generate a random id so the label links properly with the text input */
|
|
11
|
-
id?: string;
|
|
12
|
-
label?: React.ReactNode;
|
|
13
|
-
maxLength?: number;
|
|
14
|
-
name: string;
|
|
15
|
-
onBlur?: (value: string) => void;
|
|
16
|
-
onChange?: (value: string) => void;
|
|
17
|
-
onFocus?: (value: string) => void;
|
|
18
|
-
onKeyDown?: (key: string) => void;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
/** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
|
|
21
|
-
prefix?: React.ReactNode;
|
|
22
|
-
/** Use suffix for things like units of measure (“in”, “cm”, ”hours”) or icons. */
|
|
23
|
-
suffix?: React.ReactNode;
|
|
24
|
-
value?: string;
|
|
25
|
-
testId?: string;
|
|
26
|
-
};
|
|
27
|
-
declare const TextField: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
28
|
-
export default TextField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TextField';
|
|
@@ -1,38 +0,0 @@
|
|
|
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: "off" | "on" | 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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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, "testId" | "id" | "name" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "disabled" | "caption" | "label" | "value" | "placeholder" | "error" | "autoFocus" | "defaultValue" | "autoComplete" | "maxLength"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
-
export default TimeField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TimeField';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WeekStart } from '../../utils/date';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
name: string;
|
|
5
|
-
/** If not provided it will generate a random id so the label links properly with the text input */
|
|
6
|
-
id?: string;
|
|
7
|
-
value?: Date;
|
|
8
|
-
disabledDays?: (day: Date) => boolean;
|
|
9
|
-
/** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
|
|
10
|
-
format?: string;
|
|
11
|
-
initialMonth?: Date;
|
|
12
|
-
onChange?: (e: Date) => void;
|
|
13
|
-
onBlur?: () => void;
|
|
14
|
-
label?: React.ReactNode;
|
|
15
|
-
caption?: React.ReactNode;
|
|
16
|
-
error?: React.ReactNode;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
defaultValue?: Date;
|
|
20
|
-
readOnly?: boolean;
|
|
21
|
-
weekStart?: WeekStart;
|
|
22
|
-
testId?: string;
|
|
23
|
-
};
|
|
24
|
-
/** WeekField form element. */
|
|
25
|
-
declare const WeekField: React.FC<Props>;
|
|
26
|
-
export default WeekField;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './WeekField';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type FieldControls = {
|
|
3
|
-
id: string;
|
|
4
|
-
error?: React.ReactNode;
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
onBlur: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
};
|
|
9
|
-
declare type Props = {
|
|
10
|
-
name: string;
|
|
11
|
-
id?: string;
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
onChange?: (e: boolean) => void;
|
|
14
|
-
onBlur?: (e: boolean) => void;
|
|
15
|
-
error?: React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
export declare const useCheckBoxFieldControllers: ({ name, id: inputId, checked, onChange, onBlur, error }: Props) => FieldControls;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type FieldControls = {
|
|
3
|
-
id: string;
|
|
4
|
-
error?: React.ReactNode;
|
|
5
|
-
value?: Date;
|
|
6
|
-
onChange: (e: Date) => void;
|
|
7
|
-
onBlur: () => void;
|
|
8
|
-
};
|
|
9
|
-
declare type Props = {
|
|
10
|
-
name: string;
|
|
11
|
-
id?: string;
|
|
12
|
-
value?: Date;
|
|
13
|
-
onChange?: (e: Date) => void;
|
|
14
|
-
onBlur?: () => void;
|
|
15
|
-
error?: React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
export declare const useDateFieldControllers: ({ name, id: inputId, value, onChange, onBlur, error }: Props) => FieldControls;
|
|
18
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type InputElement = HTMLInputElement | HTMLTextAreaElement;
|
|
3
|
-
declare type FieldControls = {
|
|
4
|
-
id: string;
|
|
5
|
-
error?: React.ReactNode;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange: (e: React.ChangeEvent<InputElement>) => void;
|
|
8
|
-
onBlur: (e: React.ChangeEvent<InputElement>) => void;
|
|
9
|
-
onFocus: (e: React.FocusEvent<InputElement>) => void;
|
|
10
|
-
onKeyDown: (e: React.KeyboardEvent<InputElement>) => void;
|
|
11
|
-
};
|
|
12
|
-
declare type Props = {
|
|
13
|
-
name: string;
|
|
14
|
-
id?: string;
|
|
15
|
-
value?: string;
|
|
16
|
-
onChange?: (value: string) => void;
|
|
17
|
-
onBlur?: (value: string) => void;
|
|
18
|
-
onFocus?: (value: string) => void;
|
|
19
|
-
onKeyDown?: (key: string) => void;
|
|
20
|
-
error?: React.ReactNode;
|
|
21
|
-
type?: 'text' | 'currency';
|
|
22
|
-
};
|
|
23
|
-
export declare const useFieldControllers: ({ name, id: inputId, value, onChange, onBlur, onFocus, onKeyDown, error, type }: Props) => FieldControls;
|
|
24
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare type UseGrowTextAreaRef = {
|
|
2
|
-
ref: {
|
|
3
|
-
current: null | HTMLTextAreaElement;
|
|
4
|
-
};
|
|
5
|
-
updateHeight: () => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const useGrowTextAreaRef: (minHeight: number, maxHeight: number, autoGrow: boolean, forwardedRef?: {
|
|
8
|
-
current: null | HTMLTextAreaElement;
|
|
9
|
-
} | undefined) => UseGrowTextAreaRef;
|
|
10
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { SelectOption } from '../SelectField/types';
|
|
3
|
-
declare type FieldControls<T> = {
|
|
4
|
-
id: string;
|
|
5
|
-
error?: React.ReactNode;
|
|
6
|
-
value?: SelectOption<T>[];
|
|
7
|
-
onChange: (e: SelectOption<T>[]) => void;
|
|
8
|
-
onBlur: (e: SelectOption<T>[]) => void;
|
|
9
|
-
};
|
|
10
|
-
declare type Props<T> = {
|
|
11
|
-
name: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
value?: SelectOption<T>[];
|
|
14
|
-
onChange?: (e: SelectOption<T>[]) => void;
|
|
15
|
-
onBlur?: (e: SelectOption<T>[]) => void;
|
|
16
|
-
error?: React.ReactNode;
|
|
17
|
-
};
|
|
18
|
-
export declare const useMultiSelectFieldControllers: <T>({ name, id: inputId, value, onChange, onBlur, error }: Props<T>) => FieldControls<T>;
|
|
19
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type RadioValue = string | number;
|
|
3
|
-
declare type FieldControls = {
|
|
4
|
-
error?: React.ReactNode;
|
|
5
|
-
value?: RadioValue;
|
|
6
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
};
|
|
8
|
-
declare type Props = {
|
|
9
|
-
name: string;
|
|
10
|
-
value?: RadioValue;
|
|
11
|
-
onChange?: (value: RadioValue) => void;
|
|
12
|
-
error?: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
export declare const useRadioGroupFieldControllers: ({ name, value, onChange, error }: Props) => FieldControls;
|
|
15
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateRange } from '../../utils/date';
|
|
3
|
-
declare type FieldControls = {
|
|
4
|
-
id: string;
|
|
5
|
-
error?: React.ReactNode;
|
|
6
|
-
value: DateRange;
|
|
7
|
-
onChange: (e: DateRange) => void;
|
|
8
|
-
onBlur: () => void;
|
|
9
|
-
};
|
|
10
|
-
declare type Props = {
|
|
11
|
-
name: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
value?: DateRange;
|
|
14
|
-
onChange?: (e: DateRange) => void;
|
|
15
|
-
onBlur?: () => void;
|
|
16
|
-
error?: React.ReactNode;
|
|
17
|
-
};
|
|
18
|
-
export declare const useRangeFieldControllers: ({ name, id: inputId, value, onChange, onBlur, error }: Props) => FieldControls;
|
|
19
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { SelectOption } from '../SelectField/types';
|
|
3
|
-
declare type FieldControls<T> = {
|
|
4
|
-
id: string;
|
|
5
|
-
error?: React.ReactNode;
|
|
6
|
-
value?: SelectOption<T>;
|
|
7
|
-
onChange: (e: SelectOption<T>) => void;
|
|
8
|
-
onBlur: (e: SelectOption<T>) => void;
|
|
9
|
-
};
|
|
10
|
-
declare type Props<T> = {
|
|
11
|
-
name: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
value?: SelectOption<T>;
|
|
14
|
-
onChange?: (e: SelectOption<T>) => void;
|
|
15
|
-
onBlur?: (e: SelectOption<T>) => void;
|
|
16
|
-
error?: React.ReactNode;
|
|
17
|
-
onMenuInputFocus?: (isFocused: boolean) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const useSelectFieldControllers: <T>({ name, id: inputId, value, onChange, onBlur, error, onMenuInputFocus }: Props<T>) => FieldControls<T>;
|
|
20
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import Form from './Form';
|
|
2
|
-
import FormRow, { SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT } from './FormRow';
|
|
3
|
-
import TextAreaField from './TextAreaField';
|
|
4
|
-
import TextField from './TextField';
|
|
5
|
-
import CheckboxField from './CheckboxField';
|
|
6
|
-
import PillSelectField from './PillSelectField';
|
|
7
|
-
import RadioGroupField from './RadioGroupField';
|
|
8
|
-
import RadioGroupOption from './RadioGroupOption';
|
|
9
|
-
import PasswordField from './PasswordField';
|
|
10
|
-
import MultiSelectField from './MultiSelectField';
|
|
11
|
-
import SelectField from './SelectField';
|
|
12
|
-
import AsyncSelectField from './AsyncSelectField';
|
|
13
|
-
import DateField from './DateField';
|
|
14
|
-
import DateRangeField from './DateRangeField';
|
|
15
|
-
import WeekField from './WeekField';
|
|
16
|
-
import TimeField from './TimeField';
|
|
17
|
-
import CurrencyField from './CurrencyField';
|
|
18
|
-
import PercentageField from './PercentageField';
|
|
19
|
-
import FormFeedback from './FormFeedback';
|
|
20
|
-
export { Form, FormRow, TextAreaField, TextField, CheckboxField, PillSelectField, RadioGroupField, RadioGroupOption, PasswordField, MultiSelectField, SelectField, AsyncSelectField, DateField, DateRangeField, WeekField, TimeField, CurrencyField, PercentageField, FormFeedback, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT };
|
|
21
|
-
export type { PasswordCriteria } from './PasswordField/types';
|
|
22
|
-
export type { SelectOption, SelectOptions } from './SelectField/types';
|
|
23
|
-
export type { AsyncSelectOptions } from './AsyncSelectField/types';
|
|
24
|
-
export type { FormikType } from './Form/types';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const WHITE: '#ffffff';
|
|
2
|
-
export declare const BLACK: '#000000';
|
|
3
|
-
export declare const TANGERINE100: '#fef1ed';
|
|
4
|
-
export declare const TANGERINE200: '#fdd5c8';
|
|
5
|
-
export declare const TANGERINE300: '#fcab91';
|
|
6
|
-
export declare const TANGERINE400: '#fb7448';
|
|
7
|
-
export declare const TANGERINE500: '#e16840';
|
|
8
|
-
export declare const TANGERINE600: '#96452b';
|
|
9
|
-
export declare const EGGPLANT100: '#f0f3fb';
|
|
10
|
-
export declare const EGGPLANT200: '#d3dbf4';
|
|
11
|
-
export declare const EGGPLANT300: '#a7b7ea';
|
|
12
|
-
export declare const EGGPLANT400: '#6d87dd';
|
|
13
|
-
export declare const EGGPLANT500: '#6179c6';
|
|
14
|
-
export declare const EGGPLANT600: '#415184';
|
|
15
|
-
export declare const MINT100: '#ecfaf8';
|
|
16
|
-
export declare const MINT200: '#c6f1eb';
|
|
17
|
-
export declare const MINT300: '#8de4d7';
|
|
18
|
-
export declare const MINT400: '#3abda9';
|
|
19
|
-
export declare const MINT500: '#35ac9a';
|
|
20
|
-
export declare const MINT600: '#277e71';
|
|
21
|
-
export declare const RADISH100: '#fcf0f0';
|
|
22
|
-
export declare const RADISH200: '#f7d1d1';
|
|
23
|
-
export declare const RADISH300: '#f0a3a3';
|
|
24
|
-
export declare const RADISH400: '#e76767';
|
|
25
|
-
export declare const RADISH500: '#cf5c5c';
|
|
26
|
-
export declare const RADISH600: '#8a3d3d';
|
|
27
|
-
export declare const BLUEBERRY100: '#f6fdff';
|
|
28
|
-
export declare const BLUEBERRY200: '#ceecf5';
|
|
29
|
-
export declare const BLUEBERRY300: '#9cd9eb';
|
|
30
|
-
export declare const BLUEBERRY400: '#5bc0de';
|
|
31
|
-
export declare const BLUEBERRY500: '#51acc7';
|
|
32
|
-
export declare const BLUEBERRY600: '#367385';
|
|
33
|
-
export declare const BANANA100: '#fff9ed';
|
|
34
|
-
export declare const BANANA200: '#ffeec9';
|
|
35
|
-
export declare const BANANA300: '#ffdd92';
|
|
36
|
-
export declare const BANANA400: '#ffc74a';
|
|
37
|
-
export declare const BANANA500: '#e5b242';
|
|
38
|
-
export declare const BANANA600: '#99772c';
|
|
39
|
-
export declare const GREY100: '#F3F3F3';
|
|
40
|
-
export declare const GREY200: '#D5D5D5';
|
|
41
|
-
export declare const GREY300: '#949494';
|
|
42
|
-
export declare const GREY400: '#767676';
|
|
43
|
-
export declare const GREY500: '#464646';
|
|
44
|
-
export declare const GREY600: '#323232';
|
|
45
|
-
export declare const COLORS: {
|
|
46
|
-
TANGERINE: string;
|
|
47
|
-
EGGPLANT: string;
|
|
48
|
-
MINT: string;
|
|
49
|
-
RADISH: string;
|
|
50
|
-
BLUEBERRY: string;
|
|
51
|
-
BANANA: string;
|
|
52
|
-
};
|
|
53
|
-
export declare type Color = typeof WHITE | typeof BLACK | typeof TANGERINE100 | typeof TANGERINE200 | typeof TANGERINE300 | typeof TANGERINE400 | typeof TANGERINE500 | typeof TANGERINE600 | typeof EGGPLANT100 | typeof EGGPLANT200 | typeof EGGPLANT300 | typeof EGGPLANT400 | typeof EGGPLANT500 | typeof EGGPLANT600 | typeof MINT100 | typeof MINT200 | typeof MINT300 | typeof MINT400 | typeof MINT500 | typeof MINT600 | typeof RADISH100 | typeof RADISH200 | typeof RADISH300 | typeof RADISH400 | typeof RADISH500 | typeof RADISH600 | typeof BLUEBERRY100 | typeof BLUEBERRY200 | typeof BLUEBERRY300 | typeof BLUEBERRY400 | typeof BLUEBERRY500 | typeof BLUEBERRY600 | typeof BANANA100 | typeof BANANA200 | typeof BANANA300 | typeof BANANA400 | typeof BANANA500 | typeof BANANA600 | typeof GREY100 | typeof GREY200 | typeof GREY300 | typeof GREY400 | typeof GREY500 | typeof GREY600;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** This is to help us centralize all the zIndexes layers in here so we avoid side effects with wrong styles */
|
|
2
|
-
export declare const Z_INDEX_LAYERS: {
|
|
3
|
-
BASE: number;
|
|
4
|
-
MODAL: number;
|
|
5
|
-
MENU: number;
|
|
6
|
-
TOOLTIP: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const FONT_FAMILY = "'Proxima Nova', sans-serif";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsMounted: () => (() => boolean);
|
package/dist/src/icons.d.ts
DELETED
package/dist/src/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './foundation/_design-tokens.scss';
|
|
2
|
-
export * from './core';
|
|
3
|
-
export * from './lists';
|
|
4
|
-
export * from './controls';
|
|
5
|
-
export * from './forms';
|
|
6
|
-
export * from './feedback';
|
|
7
|
-
export * from './actions';
|
|
8
|
-
export * from './overlay';
|
|
9
|
-
export * from './media';
|
|
10
|
-
export * from './layout';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MenuAction } from '../../overlay/Menu/types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
actions?: MenuAction[];
|
|
8
|
-
testId?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const Card: ({ children, onClick, isSelected, actions, testId }: Props) => JSX.Element;
|
|
11
|
-
export default Card;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Card';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Action } from '../DataTable/types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
actions?: Action[];
|
|
8
|
-
hasDefaultPadding?: boolean;
|
|
9
|
-
} & Omit<React.HTMLProps<HTMLDivElement>, 'css'>;
|
|
10
|
-
declare const DataTableRow: React.ForwardRefExoticComponent<Pick<Props, "size" | "color" | "className" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "form" | "list" | "default" | "disabled" | "title" | "cite" | "data" | "label" | "slot" | "span" | "summary" | "pattern" | "start" | "wrap" | "checked" | "value" | "placeholder" | "prefix" | "content" | "translate" | "hidden" | "open" | "multiple" | "autoFocus" | "defaultValue" | "draggable" | "autoComplete" | "maxLength" | "dir" | "isSelected" | "readOnly" | "sizes" | "htmlFor" | "actions" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hasDefaultPadding"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export default DataTableRow;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import DataTable from './DataTable';
|
|
2
|
-
import DataTableRow from './DataTableRow';
|
|
3
|
-
import DataTableCell from './DataTable/DataTableCell/DataTableCell';
|
|
4
|
-
import DataTableEditableCell from './DataTableEditableCell';
|
|
5
|
-
export { DataTable, DataTableRow, DataTableCell, DataTableEditableCell };
|
|
6
|
-
export type { Column as DataTableColumn, CustomComponent as DataTableCustomComponent, SortDirection, Sort, Action } from './DataTable/types';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
5
|
-
color?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
badge?: React.ReactNode;
|
|
8
|
-
alt?: string;
|
|
9
|
-
testId?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const Avatar: React.FC<Props>;
|
|
12
|
-
export default Avatar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './AvatarImage';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Avatar';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
theme?: 'success' | 'danger' | 'warning' | 'info';
|
|
5
|
-
/** This will show a black tooltip when the user hover the button */
|
|
6
|
-
title?: string;
|
|
7
|
-
testId?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Badge';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Theme } from './types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
/** It is the body text of the Chip */
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
theme?: Theme;
|
|
7
|
-
/** This is used for overriding the default data-testid */
|
|
8
|
-
testId?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const Chip: ({ children, theme, testId }: Props) => JSX.Element;
|
|
11
|
-
export default Chip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Chip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type Theme = 'marketing' | 'success' | 'upsell' | 'warning' | 'info' | 'danger';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PillTheme } from './types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
theme?: PillTheme;
|
|
7
|
-
testId?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const Pill: React.FC<Props>;
|
|
10
|
-
export default Pill;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Pill';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type PillTheme = 'info' | 'success' | 'danger' | 'warning' | 'default';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { MutableRefObject } from 'react';
|
|
2
|
-
import '../../forms/DatePickerCalendar/date-picker-calendar.scss';
|
|
3
|
-
import 'react-day-picker/lib/style.css';
|
|
4
|
-
import { BlockedDays, WeekStart } from '../../utils/date';
|
|
5
|
-
import { CalendarMode, CalendarPlacement } from './types';
|
|
6
|
-
declare type Props = {
|
|
7
|
-
mode?: CalendarMode;
|
|
8
|
-
/** Note that if the calendar is not able to fit in the selected position,
|
|
9
|
-
* it will override this selection and select the one that fits in the window. */
|
|
10
|
-
position?: CalendarPlacement;
|
|
11
|
-
weekStart?: WeekStart;
|
|
12
|
-
selected?: Date;
|
|
13
|
-
onSelect: (selected: Date) => void;
|
|
14
|
-
onClickOutside: () => void;
|
|
15
|
-
/** It disable some dates so the user can't click on them. Refer to this
|
|
16
|
-
* [doc](https://react-day-picker-v7.netlify.app/api/DayPicker#disabledDays) to see what
|
|
17
|
-
* values you can use. */
|
|
18
|
-
disabledDays?: BlockedDays;
|
|
19
|
-
anchorRef: MutableRefObject<HTMLElement | null>;
|
|
20
|
-
testId?: string;
|
|
21
|
-
};
|
|
22
|
-
/**Calendar overlay component*/
|
|
23
|
-
declare const Calendar: React.FC<Props>;
|
|
24
|
-
export default Calendar;
|