@pedidopago/ui 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/@types/index.d.ts +6 -6
- package/dist/components/Alert/alert.test.d.ts +1 -1
- package/dist/components/Alert/index.d.ts +4 -4
- package/dist/components/Alert/styles.d.ts +24 -24
- package/dist/components/Alert/types.d.ts +44 -44
- package/dist/components/Avatar/avatar.test.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts +4 -4
- package/dist/components/Avatar/styles.d.ts +25 -25
- package/dist/components/Avatar/types.d.ts +15 -15
- package/dist/components/Badge/badge.test.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Badge/styles.d.ts +16 -16
- package/dist/components/Badge/types.d.ts +11 -11
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/styles.d.ts +14 -14
- package/dist/components/Button/types.d.ts +92 -92
- package/dist/components/Card/card.test.d.ts +1 -1
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/styles.d.ts +6 -6
- package/dist/components/Card/types.d.ts +17 -17
- package/dist/components/CheckboxInput/checkbox-input.test.d.ts +1 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.d.ts +4 -4
- package/dist/components/CheckboxInput/index.d.ts +4 -4
- package/dist/components/CheckboxInput/styles.d.ts +31 -31
- package/dist/components/CheckboxInput/types.d.ts +26 -26
- package/dist/components/CollapseCard/ExpandButton/index.d.ts +3 -3
- package/dist/components/CollapseCard/ExpandButton/styles.d.ts +267 -267
- package/dist/components/CollapseCard/ExpandButton/types.d.ts +5 -5
- package/dist/components/CollapseCard/expand-button.test.d.ts +1 -1
- package/dist/components/CollapseCard/index.d.ts +3 -3
- package/dist/components/CollapseCard/styles.d.ts +265 -265
- package/dist/components/CollapseCard/types.d.ts +12 -12
- package/dist/components/ColorPicker/colorpicker.test.d.ts +1 -1
- package/dist/components/ColorPicker/components/ColorHue.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorInput.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPickerBox.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorPointer.d.ts +4 -4
- package/dist/components/ColorPicker/components/ColorSelector.d.ts +4 -4
- package/dist/components/ColorPicker/hooks/useCachedCallback.d.ts +1 -1
- package/dist/components/ColorPicker/hooks/useHsva.d.ts +2 -2
- package/dist/components/ColorPicker/index.d.ts +4 -4
- package/dist/components/ColorPicker/styles.d.ts +44 -44
- package/dist/components/ColorPicker/types.d.ts +73 -73
- package/dist/components/ColorPicker/utils/checkers.d.ts +7 -7
- package/dist/components/ColorPicker/utils/conversors.d.ts +60 -60
- package/dist/components/ColorPicker/utils/parsers.d.ts +27 -27
- package/dist/components/DateInput/DateInput-example.d.ts +5 -5
- package/dist/components/DateInput/components/ModalWrapper/index.d.ts +3 -3
- package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +265 -265
- package/dist/components/DateInput/components/ModalWrapper/types.d.ts +15 -15
- package/dist/components/DateInput/dateInput.test.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DateInput/styles.d.ts +10 -10
- package/dist/components/DateInput/types.d.ts +18 -18
- package/dist/components/DatePicker/components/DatePickerContent.d.ts +3 -3
- package/dist/components/DatePicker/components/DateYearPicker.d.ts +3 -3
- package/dist/components/DatePicker/datepicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/styles.d.ts +77 -77
- package/dist/components/DatePicker/types.d.ts +69 -69
- package/dist/components/DatePicker/utils/getMonthName.d.ts +1 -1
- package/dist/components/Dialog/dialog-example.d.ts +3 -3
- package/dist/components/Dialog/dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +3 -3
- package/dist/components/Dialog/styles.d.ts +25 -25
- package/dist/components/Dialog/types.d.ts +30 -30
- package/dist/components/Dropzone/dropzone.test.d.ts +1 -1
- package/dist/components/Dropzone/index.d.ts +4 -4
- package/dist/components/Dropzone/styles.d.ts +46 -46
- package/dist/components/Dropzone/types.d.ts +19 -19
- package/dist/components/Dropzone/utils/accepts.d.ts +10 -10
- package/dist/components/Flex/flex.test.d.ts +1 -1
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/styles.d.ts +296 -296
- package/dist/components/Flex/types.d.ts +175 -175
- package/dist/components/Grid/grid.test.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +4 -4
- package/dist/components/Grid/styles.d.ts +288 -288
- package/dist/components/Grid/types.d.ts +88 -88
- package/dist/components/Icon/data/beauty.d.ts +8 -8
- package/dist/components/Icon/data/dash.d.ts +8 -8
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/ecommerce.d.ts +8 -8
- package/dist/components/Icon/data/form.d.ts +8 -8
- package/dist/components/Icon/data/health.d.ts +8 -8
- package/dist/components/Icon/data/illustrations.d.ts +8 -8
- package/dist/components/Icon/data/men.d.ts +8 -8
- package/dist/components/Icon/data/payment.d.ts +8 -8
- package/dist/components/Icon/data/pedidoPago.d.ts +8 -8
- package/dist/components/Icon/data/physicalPerfomance.d.ts +8 -8
- package/dist/components/Icon/data/social.d.ts +8 -8
- package/dist/components/Icon/data/status.d.ts +8 -8
- package/dist/components/Icon/data/summer.d.ts +8 -8
- package/dist/components/Icon/data/woman.d.ts +8 -8
- package/dist/components/Icon/icon.test.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +4 -4
- package/dist/components/Icon/scripts/build.d.ts +5 -5
- package/dist/components/Icon/scripts/extractor.d.ts +15 -15
- package/dist/components/Icon/scripts/run-build.d.ts +1 -1
- package/dist/components/Icon/scripts/writers.d.ts +22 -22
- package/dist/components/Icon/styles.d.ts +13 -13
- package/dist/components/Icon/types.d.ts +8 -8
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Icon/utils/allIcons.d.ts +8 -8
- package/dist/components/IconItem/IconItem.test.d.ts +1 -1
- package/dist/components/IconItem/index.d.ts +4 -4
- package/dist/components/IconItem/styles.d.ts +18 -18
- package/dist/components/IconItem/types.d.ts +22 -22
- package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoletoSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +4 -4
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CalendarSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CardSvg/index.d.ts +4 -4
- package/dist/components/Illustration/CollaboratorSvg/index.d.ts +4 -4
- package/dist/components/Illustration/InquirySvg/index.d.ts +4 -4
- package/dist/components/Illustration/OrderSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PixSvg/index.d.ts +4 -4
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +4 -4
- package/dist/components/Illustration/TransportSvg/index.d.ts +4 -4
- package/dist/components/Illustration/illustration.test.d.ts +1 -1
- package/dist/components/Illustration/index.d.ts +4 -4
- package/dist/components/Illustration/styles.d.ts +10 -10
- package/dist/components/Illustration/types.d.ts +6 -6
- package/dist/components/ImageItem/imageFake.d.ts +2 -2
- package/dist/components/ImageItem/index.d.ts +4 -4
- package/dist/components/ImageItem/input.test.d.ts +1 -1
- package/dist/components/ImageItem/styles.d.ts +26 -26
- package/dist/components/ImageItem/types.d.ts +25 -25
- package/dist/components/Input/index.d.ts +4 -4
- package/dist/components/Input/input.test.d.ts +1 -1
- package/dist/components/Input/styles.d.ts +69 -69
- package/dist/components/Input/types.d.ts +28 -28
- package/dist/components/Label/index.d.ts +3 -3
- package/dist/components/Label/label.test.d.ts +1 -1
- package/dist/components/Label/styles.d.ts +6 -6
- package/dist/components/Label/types.d.ts +17 -17
- package/dist/components/List/index.d.ts +4 -4
- package/dist/components/List/list.test.d.ts +1 -1
- package/dist/components/List/styles.d.ts +15 -15
- package/dist/components/List/types.d.ts +7 -7
- package/dist/components/Modal/ModalExample.d.ts +7 -7
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/modal.test.d.ts +1 -1
- package/dist/components/Modal/styles.d.ts +531 -531
- package/dist/components/Modal/types.d.ts +35 -35
- package/dist/components/MultipleSelect/MultipleSelect.test.d.ts +1 -1
- package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +10 -10
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +20 -15
- package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/index.js +113 -19
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +18 -18
- package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/OptionsArea/styles.js +6 -3
- package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +10 -10
- package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +6 -6
- package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +20 -20
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +17 -17
- package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/index.js +3 -2
- package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +16 -16
- package/dist/components/MultipleSelect/components/index.d.ts +3 -3
- package/dist/components/MultipleSelect/index.d.ts +5 -5
- package/dist/components/MultipleSelect/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/index.js +13 -2
- package/dist/components/MultipleSelect/types.d.ts +42 -37
- package/dist/components/MultipleSelect/types.d.ts.map +1 -1
- package/dist/components/Pagination/hooks/usePagination.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/pagination.test.d.ts +1 -1
- package/dist/components/Pagination/styles.d.ts +34 -34
- package/dist/components/Pagination/types.d.ts +28 -28
- package/dist/components/Progress/Circle/index.d.ts +3 -3
- package/dist/components/Progress/Circle/styles.d.ts +27 -27
- package/dist/components/Progress/Circle/types.d.ts +18 -18
- package/dist/components/Progress/Linear/index.d.ts +3 -3
- package/dist/components/Progress/Linear/styles.d.ts +15 -15
- package/dist/components/Progress/Linear/types.d.ts +13 -13
- package/dist/components/Progress/getSteps.d.ts +1 -1
- package/dist/components/Progress/index.d.ts +4 -4
- package/dist/components/Progress/progress.test.d.ts +1 -1
- package/dist/components/Progress/types.d.ts +27 -27
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +5 -5
- package/dist/components/RadioInput/index.d.ts +4 -4
- package/dist/components/RadioInput/radio-input.test.d.ts +1 -1
- package/dist/components/RadioInput/styles.d.ts +30 -30
- package/dist/components/RadioInput/types.d.ts +32 -32
- package/dist/components/RadioInput/utils/get-colors-props.d.ts +11 -11
- package/dist/components/Rating/index.d.ts +3 -3
- package/dist/components/Rating/rating.test.d.ts +1 -1
- package/dist/components/Rating/styles.d.ts +18 -18
- package/dist/components/Rating/types.d.ts +19 -19
- package/dist/components/ReactPortal/index.d.ts +7 -7
- package/dist/components/ReactPortal/reactPortal.test.d.ts +1 -1
- package/dist/components/ReactPortal/utils/createWrapperAndApprendToBody.d.ts +1 -1
- package/dist/components/Select/components/OptionsSelect/index.d.ts +3 -3
- package/dist/components/Select/components/OptionsSelect/styles.d.ts +265 -14
- package/dist/components/Select/components/OptionsSelect/styles.d.ts.map +1 -1
- package/dist/components/Select/components/OptionsSelect/styles.js +3 -2
- package/dist/components/Select/components/OptionsSelect/types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/select.test.d.ts +1 -1
- package/dist/components/Select/styles.d.ts +22 -22
- package/dist/components/Select/types.d.ts +26 -26
- package/dist/components/Skeleton/index.d.ts +4 -4
- package/dist/components/Skeleton/skeleton.test.d.ts +1 -1
- package/dist/components/Skeleton/styles.d.ts +7 -7
- package/dist/components/Skeleton/types.d.ts +40 -40
- package/dist/components/Slider/SliderExample.d.ts +3 -3
- package/dist/components/Slider/components/SliderPointer.d.ts +3 -3
- package/dist/components/Slider/components/SliderRail.d.ts +3 -3
- package/dist/components/Slider/components/SliderSelector.d.ts +17 -17
- package/dist/components/Slider/hooks/useEventCallback.d.ts +2 -2
- package/dist/components/Slider/index.d.ts +19 -19
- package/dist/components/Slider/slider.test.d.ts +1 -1
- package/dist/components/Slider/styles.d.ts +65 -65
- package/dist/components/Slider/types.d.ts +40 -40
- package/dist/components/Spinner/index.d.ts +4 -4
- package/dist/components/Spinner/spinner.test.d.ts +1 -1
- package/dist/components/Spinner/styles.d.ts +288 -288
- package/dist/components/Spinner/types.d.ts +11 -11
- package/dist/components/Steps/components/StepIcon/index.d.ts +3 -3
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +3 -3
- package/dist/components/Steps/index.d.ts +4 -4
- package/dist/components/Steps/steps.test.d.ts +1 -1
- package/dist/components/Steps/styles.d.ts +45 -45
- package/dist/components/Steps/types.d.ts +20 -20
- package/dist/components/Steps/utils.d.ts +7 -7
- package/dist/components/Switch/index.d.ts +4 -4
- package/dist/components/Switch/styles.d.ts +18 -18
- package/dist/components/Switch/switch.test.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +14 -14
- package/dist/components/Table/components/MenuItem.d.ts +3 -3
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/styles.d.ts +34 -34
- package/dist/components/Table/table.test.d.ts +1 -1
- package/dist/components/Table/types.d.ts +39 -39
- package/dist/components/Tabs/TabsExample.d.ts +3 -3
- package/dist/components/Tabs/components/Tab.d.ts +3 -3
- package/dist/components/Tabs/components/TabPanel.d.ts +3 -3
- package/dist/components/Tabs/components/Tabs.d.ts +4 -4
- package/dist/components/Tabs/index.d.ts +3 -3
- package/dist/components/Tabs/styles.d.ts +41 -41
- package/dist/components/Tabs/tabs.test.d.ts +1 -1
- package/dist/components/Tabs/types.d.ts +50 -50
- package/dist/components/Tag/index.d.ts +4 -4
- package/dist/components/Tag/styles.d.ts +869 -869
- package/dist/components/Tag/tag.test.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +9 -9
- package/dist/components/TextAreaInput/index.d.ts +4 -4
- package/dist/components/TextAreaInput/styles.d.ts +18 -18
- package/dist/components/TextAreaInput/text-area-input.test.d.ts +1 -1
- package/dist/components/TextAreaInput/types.d.ts +26 -26
- package/dist/components/Thumbnail/index.d.ts +3 -3
- package/dist/components/Thumbnail/styles.d.ts +42 -42
- package/dist/components/Thumbnail/thumbnail.test.d.ts +1 -1
- package/dist/components/Thumbnail/types.d.ts +28 -28
- package/dist/components/Thumbnail/utils/index.d.ts +2 -2
- package/dist/components/Thumbnail/utils/validate-file-size.d.ts +1 -1
- package/dist/components/Thumbnail/utils/validate-file-type.d.ts +1 -1
- package/dist/components/Timeline/components/Timeline.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineContent.d.ts +3 -3
- package/dist/components/Timeline/components/TimelineItem.d.ts +2 -2
- package/dist/components/Timeline/components/TimelineSeparator.d.ts +3 -3
- package/dist/components/Timeline/index.d.ts +4 -4
- package/dist/components/Timeline/styles.d.ts +31 -31
- package/dist/components/Timeline/timeline.test.d.ts +1 -1
- package/dist/components/Timeline/types.d.ts +20 -20
- package/dist/components/Toast/button-example.d.ts +6 -6
- package/dist/components/Toast/components/Toast.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts +5 -5
- package/dist/components/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/styles.d.ts +22 -22
- package/dist/components/Toast/toast.test.d.ts +1 -1
- package/dist/components/Toast/types.d.ts +26 -26
- package/dist/components/Tooltip/components/TooltipLabel.d.ts +12 -12
- package/dist/components/Tooltip/example.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +4 -4
- package/dist/components/Tooltip/styles.d.ts +13 -13
- package/dist/components/Tooltip/types.d.ts +26 -26
- package/dist/components/Typography/index.d.ts +4 -4
- package/dist/components/Typography/styles.d.ts +21 -21
- package/dist/components/Typography/types.d.ts +16 -16
- package/dist/components/Typography/typography.test.d.ts +1 -1
- package/dist/index.d.ts +54 -53
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/shared/components/FocusLock/index.d.ts +7 -7
- package/dist/shared/formatters/format-number.d.ts +5 -5
- package/dist/shared/formatters/types.d.ts +5 -5
- package/dist/shared/hooks/devices.d.ts +8 -8
- package/dist/shared/hooks/useBreakpoints.d.ts +25 -25
- package/dist/shared/hooks/useDebounce.d.ts +2 -0
- package/dist/shared/hooks/useDebounce.d.ts.map +1 -0
- package/dist/shared/hooks/useDebounce.js +46 -0
- package/dist/shared/hooks/useDevices.d.ts +8 -8
- package/dist/shared/hooks/useDisableBodyScroll.d.ts +1 -1
- package/dist/shared/hooks/useKeyPress.d.ts +1 -1
- package/dist/shared/hooks/useObserver.d.ts +11 -0
- package/dist/shared/hooks/useObserver.d.ts.map +1 -0
- package/dist/shared/hooks/useObserver.js +33 -0
- package/dist/shared/hooks/useOnClickOutside.d.ts +2 -2
- package/dist/shared/hooks/useWindowSize.d.ts +8 -8
- package/dist/shared/tests/test-utils.d.ts +4 -4
- package/dist/shared/theme/button-example.d.ts +2 -2
- package/dist/shared/theme/contexts/ThemeContext.d.ts +15 -15
- package/dist/shared/theme/hooks/useColorMode.d.ts +4 -4
- package/dist/shared/theme/hooks/useColorModeValue.d.ts +1 -1
- package/dist/shared/theme/hooks/useTheme.d.ts +284 -284
- package/dist/shared/theme/index.d.ts +7 -7
- package/dist/shared/theme/theme.d.ts +282 -282
- package/dist/shared/theme/theme.test.d.ts +1 -1
- package/dist/shared/theme/theme.types.d.ts +14 -14
- package/dist/shared/theme/utils/extendTheme.d.ts +2 -2
- package/dist/shared/theme/utils/localStorageController.d.ts +6 -6
- package/dist/utils/GenerateKey.d.ts +10 -10
- package/dist/utils/brightnessColorChange.d.ts +8 -8
- package/dist/utils/colorCheck.d.ts +40 -40
- package/dist/utils/colorFunctions.d.ts +2 -2
- package/dist/utils/colorToGray.d.ts +5 -5
- package/dist/utils/fuctionsColors.d.ts +2 -2
- package/dist/utils/generateUUID.d.ts +1 -1
- package/dist/utils/getColorValue.d.ts +292 -292
- package/dist/utils/getSvg.d.ts +10 -10
- package/dist/utils/getValuesBySize.d.ts +6 -6
- package/dist/utils/invertColor.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IconName } from '../Icon/types';
|
|
3
|
-
export declare type IToastConfig = {
|
|
4
|
-
title: string;
|
|
5
|
-
content: ReactNode;
|
|
6
|
-
position?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
7
|
-
type?: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
8
|
-
duration?: number;
|
|
9
|
-
icon?: IconName;
|
|
10
|
-
onClose?: (id: string) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare type IToastList = {
|
|
13
|
-
id: string;
|
|
14
|
-
config: Required<Omit<IToastConfig, 'onClose'>> & {
|
|
15
|
-
onClose?: (id: string) => void;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare type Toast = IToastConfig & {
|
|
19
|
-
toastId: string;
|
|
20
|
-
close: (id: string) => void;
|
|
21
|
-
};
|
|
22
|
-
export declare type ToastProviderProps = {
|
|
23
|
-
add: (options: IToastConfig) => void;
|
|
24
|
-
remove: (id: string) => void;
|
|
25
|
-
toasts: IToastList[];
|
|
26
|
-
};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconName } from '../Icon/types';
|
|
3
|
+
export declare type IToastConfig = {
|
|
4
|
+
title: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
position?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
7
|
+
type?: 'default' | 'success' | 'warning' | 'error' | 'critical';
|
|
8
|
+
duration?: number;
|
|
9
|
+
icon?: IconName;
|
|
10
|
+
onClose?: (id: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare type IToastList = {
|
|
13
|
+
id: string;
|
|
14
|
+
config: Required<Omit<IToastConfig, 'onClose'>> & {
|
|
15
|
+
onClose?: (id: string) => void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare type Toast = IToastConfig & {
|
|
19
|
+
toastId: string;
|
|
20
|
+
close: (id: string) => void;
|
|
21
|
+
};
|
|
22
|
+
export declare type ToastProviderProps = {
|
|
23
|
+
add: (options: IToastConfig) => void;
|
|
24
|
+
remove: (id: string) => void;
|
|
25
|
+
toasts: IToastList[];
|
|
26
|
+
};
|
|
27
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TooltipLabel: import("react").ForwardRefExoticComponent<import("../types").TooltipProps & {
|
|
3
|
-
tooltipPositions: {
|
|
4
|
-
top: number;
|
|
5
|
-
left: number;
|
|
6
|
-
transform: string;
|
|
7
|
-
};
|
|
8
|
-
isVisible: boolean;
|
|
9
|
-
setShowTooltip: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
-
showLabelModal: boolean;
|
|
11
|
-
setShowLabelModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
12
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TooltipLabel: import("react").ForwardRefExoticComponent<import("../types").TooltipProps & {
|
|
3
|
+
tooltipPositions: {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
transform: string;
|
|
7
|
+
};
|
|
8
|
+
isVisible: boolean;
|
|
9
|
+
setShowTooltip: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
showLabelModal: boolean;
|
|
11
|
+
setShowLabelModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
12
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
//# sourceMappingURL=TooltipLabel.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function ExampleTooltip(): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function ExampleTooltip(): JSX.Element;
|
|
3
3
|
//# sourceMappingURL=example.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TooltipProps } from './types';
|
|
3
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
4
|
-
export default Tooltip;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TooltipProps } from './types';
|
|
3
|
+
declare const Tooltip: FC<TooltipProps>;
|
|
4
|
+
export default Tooltip;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TooltipProps } from './types';
|
|
3
|
-
export declare const StyledTooltipLabel: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & TooltipProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export declare const ViewMoreButton: import("@emotion/styled").StyledComponent<import("../Button/types").ButtonProps & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
}, {}, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TooltipProps } from './types';
|
|
3
|
+
export declare const StyledTooltipLabel: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & TooltipProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const ViewMoreButton: import("@emotion/styled").StyledComponent<import("../Button/types").ButtonProps & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
}, {}, {}>;
|
|
14
14
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
import { GlobalColorsProps } from '../../shared/theme';
|
|
3
|
-
export declare type positionType = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
-
export declare type TooltipProps = {
|
|
5
|
-
position?: positionType;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
label: ReactNode;
|
|
8
|
-
labelColor?: GlobalColorsProps | (string & {});
|
|
9
|
-
bgColor?: GlobalColorsProps | (string & {});
|
|
10
|
-
maxWidth?: number;
|
|
11
|
-
offset?: number;
|
|
12
|
-
animationDuration?: number;
|
|
13
|
-
minWidth?: number;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare type TooltipLabelProps = TooltipProps & {
|
|
17
|
-
tooltipPositions: {
|
|
18
|
-
top: number;
|
|
19
|
-
left: number;
|
|
20
|
-
transform: string;
|
|
21
|
-
};
|
|
22
|
-
isVisible: boolean;
|
|
23
|
-
setShowTooltip: Dispatch<SetStateAction<boolean>>;
|
|
24
|
-
showLabelModal: boolean;
|
|
25
|
-
setShowLabelModal: Dispatch<SetStateAction<boolean>>;
|
|
26
|
-
};
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import { GlobalColorsProps } from '../../shared/theme';
|
|
3
|
+
export declare type positionType = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
+
export declare type TooltipProps = {
|
|
5
|
+
position?: positionType;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
labelColor?: GlobalColorsProps | (string & {});
|
|
9
|
+
bgColor?: GlobalColorsProps | (string & {});
|
|
10
|
+
maxWidth?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
animationDuration?: number;
|
|
13
|
+
minWidth?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare type TooltipLabelProps = TooltipProps & {
|
|
17
|
+
tooltipPositions: {
|
|
18
|
+
top: number;
|
|
19
|
+
left: number;
|
|
20
|
+
transform: string;
|
|
21
|
+
};
|
|
22
|
+
isVisible: boolean;
|
|
23
|
+
setShowTooltip: Dispatch<SetStateAction<boolean>>;
|
|
24
|
+
showLabelModal: boolean;
|
|
25
|
+
setShowLabelModal: Dispatch<SetStateAction<boolean>>;
|
|
26
|
+
};
|
|
27
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TypographyProps } from './types';
|
|
3
|
-
declare const Typography: ({ variant, color, children, ...rest }: TypographyProps) => JSX.Element;
|
|
4
|
-
export default Typography;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from './types';
|
|
3
|
+
declare const Typography: ({ variant, color, children, ...rest }: TypographyProps) => JSX.Element;
|
|
4
|
+
export default Typography;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GenericStyledProps } from './../../@types/index';
|
|
3
|
-
export declare const StyledText: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
-
} & GenericStyledProps & import("react").HTMLAttributes<HTMLLabelElement | HTMLParagraphElement> & {
|
|
7
|
-
variant?: "small" | "caption" | "em" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "p" | "span" | "strong" | undefined;
|
|
8
|
-
color?: import("../..").GlobalColorsProps | (string & {}) | undefined;
|
|
9
|
-
fontSize?: number | "display" | "tiny" | "xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "giant" | undefined;
|
|
10
|
-
fontWeight?: "400" | "700" | "100" | "200" | "300" | "500" | "600" | "800" | "900" | "bold" | "normal" | undefined;
|
|
11
|
-
fontStyle?: "inherit" | "initial" | "italic" | "normal" | "oblique" | undefined;
|
|
12
|
-
lineHeight?: string | number | undefined;
|
|
13
|
-
textAlign?: "center" | "end" | "start" | undefined;
|
|
14
|
-
textTransform?: "none" | "capitalize" | "lowercase" | "uppercase" | undefined;
|
|
15
|
-
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
16
|
-
letterSpacing?: string | number | undefined;
|
|
17
|
-
htmlFor?: string | undefined;
|
|
18
|
-
children?: import("react").ReactNode;
|
|
19
|
-
} & {
|
|
20
|
-
textColor: string;
|
|
21
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GenericStyledProps } from './../../@types/index';
|
|
3
|
+
export declare const StyledText: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & GenericStyledProps & import("react").HTMLAttributes<HTMLLabelElement | HTMLParagraphElement> & {
|
|
7
|
+
variant?: "small" | "caption" | "em" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "p" | "span" | "strong" | undefined;
|
|
8
|
+
color?: import("../..").GlobalColorsProps | (string & {}) | undefined;
|
|
9
|
+
fontSize?: number | "display" | "tiny" | "xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "giant" | undefined;
|
|
10
|
+
fontWeight?: "400" | "700" | "100" | "200" | "300" | "500" | "600" | "800" | "900" | "bold" | "normal" | undefined;
|
|
11
|
+
fontStyle?: "inherit" | "initial" | "italic" | "normal" | "oblique" | undefined;
|
|
12
|
+
lineHeight?: string | number | undefined;
|
|
13
|
+
textAlign?: "center" | "end" | "start" | undefined;
|
|
14
|
+
textTransform?: "none" | "capitalize" | "lowercase" | "uppercase" | undefined;
|
|
15
|
+
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
16
|
+
letterSpacing?: string | number | undefined;
|
|
17
|
+
htmlFor?: string | undefined;
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
} & {
|
|
20
|
+
textColor: string;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
22
22
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { GlobalColorsProps, defaultTheme } from './../../shared/theme';
|
|
3
|
-
export declare type TypographyProps = HTMLAttributes<HTMLParagraphElement | HTMLLabelElement> & {
|
|
4
|
-
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'caption' | 'small' | 'strong' | 'em';
|
|
5
|
-
color?: GlobalColorsProps | (string & {});
|
|
6
|
-
fontSize?: keyof typeof defaultTheme.fontSizes | number;
|
|
7
|
-
fontWeight?: keyof typeof defaultTheme.fontWeight;
|
|
8
|
-
fontStyle?: 'italic' | 'normal' | 'oblique' | 'initial' | 'inherit';
|
|
9
|
-
lineHeight?: string | number;
|
|
10
|
-
textAlign?: 'start' | 'center' | 'end';
|
|
11
|
-
textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
12
|
-
textDecoration?: 'underline' | 'line-through' | 'none';
|
|
13
|
-
letterSpacing?: string | number;
|
|
14
|
-
htmlFor?: string;
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
};
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { GlobalColorsProps, defaultTheme } from './../../shared/theme';
|
|
3
|
+
export declare type TypographyProps = HTMLAttributes<HTMLParagraphElement | HTMLLabelElement> & {
|
|
4
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'caption' | 'small' | 'strong' | 'em';
|
|
5
|
+
color?: GlobalColorsProps | (string & {});
|
|
6
|
+
fontSize?: keyof typeof defaultTheme.fontSizes | number;
|
|
7
|
+
fontWeight?: keyof typeof defaultTheme.fontWeight;
|
|
8
|
+
fontStyle?: 'italic' | 'normal' | 'oblique' | 'initial' | 'inherit';
|
|
9
|
+
lineHeight?: string | number;
|
|
10
|
+
textAlign?: 'start' | 'center' | 'end';
|
|
11
|
+
textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
12
|
+
textDecoration?: 'underline' | 'line-through' | 'none';
|
|
13
|
+
letterSpacing?: string | number;
|
|
14
|
+
htmlFor?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
};
|
|
17
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
2
2
|
//# sourceMappingURL=typography.test.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
export { default as Alert } from './components/Alert';
|
|
2
|
-
export { default as Avatar } from './components/Avatar';
|
|
3
|
-
export { default as Badge } from './components/Badge';
|
|
4
|
-
export { default as Button } from './components/Button';
|
|
5
|
-
export { Card } from './components/Card';
|
|
6
|
-
export { default as ColorPicker } from './components/ColorPicker';
|
|
7
|
-
export { default as DatePicker } from './components/DatePicker';
|
|
8
|
-
export { Dialog } from './components/Dialog';
|
|
9
|
-
export { default as Dropzone } from './components/Dropzone';
|
|
10
|
-
export { default as Flex } from './components/Flex';
|
|
11
|
-
export { default as Grid } from './components/Grid';
|
|
12
|
-
export { default as Icon } from './components/Icon';
|
|
13
|
-
export { type IconName } from './components/Icon/types';
|
|
14
|
-
export { default as IconItem } from './components/IconItem';
|
|
15
|
-
export { ReactPortal } from './components/ReactPortal';
|
|
16
|
-
export { default as Illustration } from './components/Illustration';
|
|
17
|
-
export { default as Label } from './components/Label';
|
|
18
|
-
export { default as List } from './components/List';
|
|
19
|
-
export { Modal } from './components/Modal';
|
|
20
|
-
export { Pagination } from './components/Pagination';
|
|
21
|
-
export { default as Progress } from './components/Progress';
|
|
22
|
-
export { Rating } from './components/Rating';
|
|
23
|
-
export { default as Skeleton } from './components/Skeleton';
|
|
24
|
-
export { default as Slider } from './components/Slider';
|
|
25
|
-
export { default as Spinner } from './components/Spinner';
|
|
26
|
-
export { default as Steps } from './components/Steps';
|
|
27
|
-
export { Table } from './components/Table';
|
|
28
|
-
export * from './components/Tabs';
|
|
29
|
-
export { default as Tag } from './components/Tag';
|
|
30
|
-
export { default as TextArea } from './components/TextAreaInput';
|
|
31
|
-
export { Thumbnail } from './components/Thumbnail';
|
|
32
|
-
export * from './components/Timeline';
|
|
33
|
-
export { default as Toast } from './components/Toast';
|
|
34
|
-
export { default as Tooltip } from './components/Tooltip';
|
|
35
|
-
export { default as Typography } from './components/Typography';
|
|
36
|
-
export { CollapseCard } from './components/CollapseCard';
|
|
37
|
-
export { default as Input } from './components/Input';
|
|
38
|
-
export { DateInput } from './components/DateInput';
|
|
39
|
-
export { default as Select } from './components/Select';
|
|
40
|
-
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
41
|
-
export { default as Checkbox } from './components/CheckboxInput';
|
|
42
|
-
export { default as ChoiceList } from './components/RadioInput/components/ChoiceList';
|
|
43
|
-
export { default as Radio } from './components/RadioInput';
|
|
44
|
-
export { default as Switch } from './components/Switch';
|
|
45
|
-
export { default as useToast } from './components/Toast/hooks/useToast';
|
|
46
|
-
export { default as ToastProvider } from './components/Toast/contexts/ToastProvider';
|
|
47
|
-
export { useDevices } from './shared/hooks/useDevices';
|
|
48
|
-
export { useBreakpoints } from './shared/hooks/useBreakpoints';
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export
|
|
1
|
+
export { default as Alert } from './components/Alert';
|
|
2
|
+
export { default as Avatar } from './components/Avatar';
|
|
3
|
+
export { default as Badge } from './components/Badge';
|
|
4
|
+
export { default as Button } from './components/Button';
|
|
5
|
+
export { Card } from './components/Card';
|
|
6
|
+
export { default as ColorPicker } from './components/ColorPicker';
|
|
7
|
+
export { default as DatePicker } from './components/DatePicker';
|
|
8
|
+
export { Dialog } from './components/Dialog';
|
|
9
|
+
export { default as Dropzone } from './components/Dropzone';
|
|
10
|
+
export { default as Flex } from './components/Flex';
|
|
11
|
+
export { default as Grid } from './components/Grid';
|
|
12
|
+
export { default as Icon } from './components/Icon';
|
|
13
|
+
export { type IconName } from './components/Icon/types';
|
|
14
|
+
export { default as IconItem } from './components/IconItem';
|
|
15
|
+
export { ReactPortal } from './components/ReactPortal';
|
|
16
|
+
export { default as Illustration } from './components/Illustration';
|
|
17
|
+
export { default as Label } from './components/Label';
|
|
18
|
+
export { default as List } from './components/List';
|
|
19
|
+
export { Modal } from './components/Modal';
|
|
20
|
+
export { Pagination } from './components/Pagination';
|
|
21
|
+
export { default as Progress } from './components/Progress';
|
|
22
|
+
export { Rating } from './components/Rating';
|
|
23
|
+
export { default as Skeleton } from './components/Skeleton';
|
|
24
|
+
export { default as Slider } from './components/Slider';
|
|
25
|
+
export { default as Spinner } from './components/Spinner';
|
|
26
|
+
export { default as Steps } from './components/Steps';
|
|
27
|
+
export { Table } from './components/Table';
|
|
28
|
+
export * from './components/Tabs';
|
|
29
|
+
export { default as Tag } from './components/Tag';
|
|
30
|
+
export { default as TextArea } from './components/TextAreaInput';
|
|
31
|
+
export { Thumbnail } from './components/Thumbnail';
|
|
32
|
+
export * from './components/Timeline';
|
|
33
|
+
export { default as Toast } from './components/Toast';
|
|
34
|
+
export { default as Tooltip } from './components/Tooltip';
|
|
35
|
+
export { default as Typography } from './components/Typography';
|
|
36
|
+
export { CollapseCard } from './components/CollapseCard';
|
|
37
|
+
export { default as Input } from './components/Input';
|
|
38
|
+
export { DateInput } from './components/DateInput';
|
|
39
|
+
export { default as Select } from './components/Select';
|
|
40
|
+
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
41
|
+
export { default as Checkbox } from './components/CheckboxInput';
|
|
42
|
+
export { default as ChoiceList } from './components/RadioInput/components/ChoiceList';
|
|
43
|
+
export { default as Radio } from './components/RadioInput';
|
|
44
|
+
export { default as Switch } from './components/Switch';
|
|
45
|
+
export { default as useToast } from './components/Toast/hooks/useToast';
|
|
46
|
+
export { default as ToastProvider } from './components/Toast/contexts/ToastProvider';
|
|
47
|
+
export { useDevices } from './shared/hooks/useDevices';
|
|
48
|
+
export { useBreakpoints } from './shared/hooks/useBreakpoints';
|
|
49
|
+
export { useDebounce } from './shared/hooks/useDebounce';
|
|
50
|
+
export { useDisableBodyScroll } from './shared/hooks/useDisableBodyScroll';
|
|
51
|
+
export { useKeyPress } from './shared/hooks/useKeyPress';
|
|
52
|
+
export { useOnClickOutside } from './shared/hooks/useOnClickOutside';
|
|
53
|
+
export { useWindowSize } from './shared/hooks/useWindowSize';
|
|
54
|
+
export * from './shared/theme';
|
|
54
55
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD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BAA4B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ var _exportNames = {
|
|
|
49
49
|
ToastProvider: true,
|
|
50
50
|
useDevices: true,
|
|
51
51
|
useBreakpoints: true,
|
|
52
|
+
useDebounce: true,
|
|
52
53
|
useDisableBodyScroll: true,
|
|
53
54
|
useKeyPress: true,
|
|
54
55
|
useOnClickOutside: true,
|
|
@@ -312,6 +313,12 @@ Object.defineProperty(exports, "useBreakpoints", {
|
|
|
312
313
|
return _useBreakpoints.useBreakpoints;
|
|
313
314
|
}
|
|
314
315
|
});
|
|
316
|
+
Object.defineProperty(exports, "useDebounce", {
|
|
317
|
+
enumerable: true,
|
|
318
|
+
get: function get() {
|
|
319
|
+
return _useDebounce.useDebounce;
|
|
320
|
+
}
|
|
321
|
+
});
|
|
315
322
|
Object.defineProperty(exports, "useDevices", {
|
|
316
323
|
enumerable: true,
|
|
317
324
|
get: function get() {
|
|
@@ -467,6 +474,8 @@ var _useDevices = require("./shared/hooks/useDevices");
|
|
|
467
474
|
|
|
468
475
|
var _useBreakpoints = require("./shared/hooks/useBreakpoints");
|
|
469
476
|
|
|
477
|
+
var _useDebounce = require("./shared/hooks/useDebounce");
|
|
478
|
+
|
|
470
479
|
var _useDisableBodyScroll = require("./shared/hooks/useDisableBodyScroll");
|
|
471
480
|
|
|
472
481
|
var _useKeyPress = require("./shared/hooks/useKeyPress");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface FocusLockProps {
|
|
3
|
-
isLocked: boolean;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const FocusLock: ({ isLocked, children, ...otherProps }: FocusLockProps) => JSX.Element;
|
|
7
|
-
export default FocusLock;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface FocusLockProps {
|
|
3
|
+
isLocked: boolean;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const FocusLock: ({ isLocked, children, ...otherProps }: FocusLockProps) => JSX.Element;
|
|
7
|
+
export default FocusLock;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormatCurrency } from './types';
|
|
2
|
-
export declare function formatCurrency({ amount, currency, locale }: FormatCurrency): string;
|
|
3
|
-
export declare function formatNumber(number: string): string;
|
|
4
|
-
export declare function sanitizeNumber(number: string): string;
|
|
5
|
-
export declare function formatCurrencyWithoutSymbol(value: string): string;
|
|
1
|
+
import { FormatCurrency } from './types';
|
|
2
|
+
export declare function formatCurrency({ amount, currency, locale }: FormatCurrency): string;
|
|
3
|
+
export declare function formatNumber(number: string): string;
|
|
4
|
+
export declare function sanitizeNumber(number: string): string;
|
|
5
|
+
export declare function formatCurrencyWithoutSymbol(value: string): string;
|
|
6
6
|
//# sourceMappingURL=format-number.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface FormatCurrency {
|
|
2
|
-
amount: number;
|
|
3
|
-
currency?: string;
|
|
4
|
-
locale?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface FormatCurrency {
|
|
2
|
+
amount: number;
|
|
3
|
+
currency?: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const devices: {
|
|
2
|
-
mobile: number;
|
|
3
|
-
tablet: number;
|
|
4
|
-
'monitor-small': number;
|
|
5
|
-
'monitor-wide': number;
|
|
6
|
-
'monitor-ultra': number;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeviceTypes = 'mobile' | 'tablet' | 'monitor-small' | 'monitor-wide' | 'monitor-ultra' | number;
|
|
1
|
+
export declare const devices: {
|
|
2
|
+
mobile: number;
|
|
3
|
+
tablet: number;
|
|
4
|
+
'monitor-small': number;
|
|
5
|
+
'monitor-wide': number;
|
|
6
|
+
'monitor-ultra': number;
|
|
7
|
+
};
|
|
8
|
+
export declare type DeviceTypes = 'mobile' | 'tablet' | 'monitor-small' | 'monitor-wide' | 'monitor-ultra' | number;
|
|
9
9
|
//# sourceMappingURL=devices.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
declare type BreakpointsConfig = {
|
|
2
|
-
base: number;
|
|
3
|
-
sm: number;
|
|
4
|
-
md: number;
|
|
5
|
-
lg: number;
|
|
6
|
-
xl: number;
|
|
7
|
-
xxl: number;
|
|
8
|
-
};
|
|
9
|
-
declare type BreakpointName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
10
|
-
declare type BreakpointValue<T> = {
|
|
11
|
-
[key in BreakpointName]?: T;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* It returns a function that takes a breakpoint value object and returns the value
|
|
15
|
-
* of the closest breakpoint to the current window size
|
|
16
|
-
* @param {BreakpointsConfig} [breakpointsConfig] - This is an optional parameter
|
|
17
|
-
* that allows you to pass in your own breakpoints.
|
|
18
|
-
* @returns a `breakpointPicker` function, which receives an object with breakpoint keys and values.
|
|
19
|
-
* @example const flexDirection = breapointPicker({ sm: 'column', lg: 'row' });
|
|
20
|
-
*/
|
|
21
|
-
export declare const useBreakpoints: (breakpointsConfig?: BreakpointsConfig | undefined) => {
|
|
22
|
-
breakpoint: BreakpointName | null;
|
|
23
|
-
breakpointPicker: <T = string>(breakpointValues: BreakpointValue<T>) => T | undefined;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
1
|
+
declare type BreakpointsConfig = {
|
|
2
|
+
base: number;
|
|
3
|
+
sm: number;
|
|
4
|
+
md: number;
|
|
5
|
+
lg: number;
|
|
6
|
+
xl: number;
|
|
7
|
+
xxl: number;
|
|
8
|
+
};
|
|
9
|
+
declare type BreakpointName = 'base' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
10
|
+
declare type BreakpointValue<T> = {
|
|
11
|
+
[key in BreakpointName]?: T;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* It returns a function that takes a breakpoint value object and returns the value
|
|
15
|
+
* of the closest breakpoint to the current window size
|
|
16
|
+
* @param {BreakpointsConfig} [breakpointsConfig] - This is an optional parameter
|
|
17
|
+
* that allows you to pass in your own breakpoints.
|
|
18
|
+
* @returns a `breakpointPicker` function, which receives an object with breakpoint keys and values.
|
|
19
|
+
* @example const flexDirection = breapointPicker({ sm: 'column', lg: 'row' });
|
|
20
|
+
*/
|
|
21
|
+
export declare const useBreakpoints: (breakpointsConfig?: BreakpointsConfig | undefined) => {
|
|
22
|
+
breakpoint: BreakpointName | null;
|
|
23
|
+
breakpointPicker: <T = string>(breakpointValues: BreakpointValue<T>) => T | undefined;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
26
|
//# sourceMappingURL=useBreakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useDebounce.tsx"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3D,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,UAAO,aAMH,WAAW,CAAC,CAAC,UAmB1B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useDebounce = useDebounce;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11
|
+
|
|
12
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
+
|
|
16
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
17
|
+
|
|
18
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19
|
+
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
21
|
+
|
|
22
|
+
function useDebounce(callback, delay) {
|
|
23
|
+
var eachStep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
24
|
+
var argsState = (0, _react.useRef)();
|
|
25
|
+
var timeout = (0, _react.useRef)();
|
|
26
|
+
var debounce = (0, _react.useCallback)(function () {
|
|
27
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28
|
+
args[_key] = arguments[_key];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
argsState.current = args;
|
|
32
|
+
|
|
33
|
+
if (!eachStep && timeout.current) {
|
|
34
|
+
clearTimeout(timeout.current);
|
|
35
|
+
timeout.current = undefined;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (!timeout.current) {
|
|
39
|
+
timeout.current = setTimeout(function () {
|
|
40
|
+
if (argsState !== null && argsState !== void 0 && argsState.current) callback.apply(void 0, _toConsumableArray(argsState.current));
|
|
41
|
+
timeout.current = undefined;
|
|
42
|
+
}, delay);
|
|
43
|
+
}
|
|
44
|
+
}, [callback, delay, eachStep]);
|
|
45
|
+
return debounce;
|
|
46
|
+
}
|