@codeleap/web 5.8.21 → 6.0.1
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/components/ActionIcon/index.d.ts +1 -1
- package/dist/components/ActionIcon/index.js +1 -1
- package/dist/components/ActionIcon/index.js.map +1 -1
- package/dist/components/ActivityIndicator/index.d.ts +9 -2
- package/dist/components/ActivityIndicator/index.js +8 -16
- package/dist/components/ActivityIndicator/index.js.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/types.d.ts +1 -2
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Carousel/index.d.ts +5 -0
- package/dist/components/Carousel/index.js +168 -0
- package/dist/components/Carousel/index.js.map +1 -0
- package/dist/components/Carousel/styles.d.ts +3 -0
- package/dist/components/Carousel/styles.js.map +1 -0
- package/dist/components/Carousel/types.d.ts +34 -0
- package/dist/components/{Grid → Carousel}/types.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Collapse/index.d.ts +1 -1
- package/dist/components/Collapse/index.js +3 -3
- package/dist/components/Collapse/index.js.map +1 -1
- package/dist/components/Collapse/types.d.ts +1 -2
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/ColorPicker/index.js +4 -4
- package/dist/components/ColorPicker/index.js.map +1 -1
- package/dist/components/ColorPicker/types.d.ts +3 -3
- package/dist/components/CropPicker/index.d.ts +9 -2
- package/dist/components/CropPicker/index.js +6 -6
- package/dist/components/CropPicker/index.js.map +1 -1
- package/dist/components/CropPicker/types.d.ts +3 -1
- package/dist/components/DatePicker/components/DayContent.js +1 -1
- package/dist/components/DatePicker/components/DayContent.js.map +1 -1
- package/dist/components/DatePicker/components/Header.js +1 -1
- package/dist/components/DatePicker/components/Header.js.map +1 -1
- package/dist/components/DatePicker/components/OuterInput.js +2 -12
- package/dist/components/DatePicker/components/OuterInput.js.map +1 -1
- package/dist/components/DatePicker/components/YearContent.js +1 -1
- package/dist/components/DatePicker/components/YearContent.js.map +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.js +12 -13
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/DatePicker/types.d.ts +8 -6
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Dropzone/index.d.ts +9 -2
- package/dist/components/Dropzone/index.js +7 -6
- package/dist/components/Dropzone/index.js.map +1 -1
- package/dist/components/Dropzone/types.d.ts +3 -2
- package/dist/components/EmptyPlaceholder/index.d.ts +1 -1
- package/dist/components/EmptyPlaceholder/index.js +3 -3
- package/dist/components/EmptyPlaceholder/index.js.map +1 -1
- package/dist/components/EmptyPlaceholder/types.d.ts +2 -2
- package/dist/components/FileInput/index.d.ts +5 -9
- package/dist/components/FileInput/index.js +6 -5
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/FileInput/types.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/InputBase/index.js +2 -2
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +0 -1
- package/dist/components/InputBase/useInputBase.d.ts +2 -3
- package/dist/components/InputBase/useInputBase.js +2 -3
- package/dist/components/InputBase/useInputBase.js.map +1 -1
- package/dist/components/InputBase/useInputBasePartialStyles.js +1 -2
- package/dist/components/InputBase/useInputBasePartialStyles.js.map +1 -1
- package/dist/components/InputBase/utils.d.ts +1 -1
- package/dist/components/InputBase/utils.js +3 -3
- package/dist/components/InputBase/utils.js.map +1 -1
- package/dist/components/List/index.d.ts +2 -3
- package/dist/components/List/index.js +87 -40
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/List/styles.d.ts +2 -4
- package/dist/components/List/types.d.ts +10 -52
- package/dist/components/LoadingOverlay/index.d.ts +1 -1
- package/dist/components/LoadingOverlay/index.js +1 -1
- package/dist/components/LoadingOverlay/index.js.map +1 -1
- package/dist/components/MaskedTextInput/index.d.ts +7 -0
- package/dist/components/MaskedTextInput/index.js +69 -0
- package/dist/components/MaskedTextInput/index.js.map +1 -0
- package/dist/components/MaskedTextInput/mask.d.ts +8 -0
- package/dist/components/MaskedTextInput/mask.js +37 -0
- package/dist/components/MaskedTextInput/mask.js.map +1 -0
- package/dist/components/MaskedTextInput/types.d.ts +10 -0
- package/dist/components/MaskedTextInput/types.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.js +6 -6
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/NumberIncrement/index.d.ts +1 -1
- package/dist/components/NumberIncrement/index.js +1 -3
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/useNumberIncrement.d.ts +4 -4
- package/dist/components/NumberIncrement/useNumberIncrement.js +1 -2
- package/dist/components/NumberIncrement/useNumberIncrement.js.map +1 -1
- package/dist/components/Overlay/index.d.ts +1 -1
- package/dist/components/PaginationButtons/index.d.ts +1 -1
- package/dist/components/PaginationButtons/index.js +2 -2
- package/dist/components/PaginationButtons/index.js.map +1 -1
- package/dist/components/PaginationButtons/types.d.ts +1 -2
- package/dist/components/PaginationIndicator/index.d.ts +2 -3
- package/dist/components/PaginationIndicator/index.js +2 -2
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/PaginationIndicator/types.d.ts +3 -3
- package/dist/components/Progress/Bar/index.d.ts +1 -1
- package/dist/components/Progress/Bar/index.js +1 -1
- package/dist/components/Progress/Bar/index.js.map +1 -1
- package/dist/components/Progress/Bar/types.d.ts +2 -3
- package/dist/components/Progress/Circle/index.d.ts +1 -1
- package/dist/components/Progress/Circle/index.js +2 -2
- package/dist/components/Progress/Circle/index.js.map +1 -1
- package/dist/components/Progress/Circle/types.d.ts +1 -2
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Progress/utils.js +1 -2
- package/dist/components/Progress/utils.js.map +1 -1
- package/dist/components/RadioInput/index.d.ts +1 -1
- package/dist/components/RadioInput/index.js +2 -2
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/index.d.ts +1 -1
- package/dist/components/SectionFilters/index.js +4 -4
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/types.d.ts +1 -2
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/SegmentedControl/index.js +12 -21
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/types.d.ts +2 -2
- package/dist/components/Select/index.js +5 -5
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/styles.js +1 -2
- package/dist/components/Select/styles.js.map +1 -1
- package/dist/components/Select/types.d.ts +6 -6
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +3 -3
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Text/index.d.ts +10 -2
- package/dist/components/Text/index.js +12 -20
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Text/types.d.ts +3 -2
- package/dist/components/TextEditor/index.d.ts +1 -1
- package/dist/components/TextEditor/index.js +21 -9
- package/dist/components/TextEditor/index.js.map +1 -1
- package/dist/components/TextEditor/types.d.ts +4 -5
- package/dist/components/TextInput/index.d.ts +9 -3
- package/dist/components/TextInput/index.js +14 -30
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/types.d.ts +4 -40
- package/dist/components/TextInput/useTextInput.d.ts +2 -6
- package/dist/components/TextInput/useTextInput.js +7 -16
- package/dist/components/TextInput/useTextInput.js.map +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/Touchable/index.d.ts +10 -2
- package/dist/components/Touchable/index.js +9 -19
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/types.d.ts +2 -1
- package/dist/components/View/index.d.ts +10 -2
- package/dist/components/View/index.js +7 -7
- package/dist/components/View/index.js.map +1 -1
- package/dist/components/View/types.d.ts +2 -2
- package/dist/components/VirtualList/context.d.ts +3 -0
- package/dist/components/VirtualList/context.js +93 -0
- package/dist/components/VirtualList/context.js.map +1 -0
- package/dist/components/VirtualList/index.d.ts +5 -0
- package/dist/components/VirtualList/index.js +14 -0
- package/dist/components/VirtualList/index.js.map +1 -0
- package/dist/components/VirtualList/list.d.ts +3 -0
- package/dist/components/VirtualList/list.js +102 -0
- package/dist/components/VirtualList/list.js.map +1 -0
- package/dist/components/VirtualList/types.d.ts +33 -0
- package/dist/components/{Pager/styles.js → VirtualList/types.js} +1 -1
- package/dist/components/VirtualList/types.js.map +1 -0
- package/dist/components/components.d.ts +4 -2
- package/dist/components/components.js +4 -2
- package/dist/components/components.js.map +1 -1
- package/dist/lib/ListMasonry.js +3 -3
- package/dist/lib/ListMasonry.js.map +1 -1
- package/dist/lib/WebStyleRegistry.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +0 -1
- package/dist/lib/hooks/index.js +0 -1
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/hooks/useAnimatedStyle.d.ts +8 -4
- package/dist/lib/hooks/useAnimatedStyle.js.map +1 -1
- package/dist/lib/hooks/useAnimatedVariantStyles.d.ts +3 -3
- package/dist/lib/hooks/useAnimatedVariantStyles.js +1 -2
- package/dist/lib/hooks/useAnimatedVariantStyles.js.map +1 -1
- package/dist/lib/hooks/useBreakpointMatch.js +1 -2
- package/dist/lib/hooks/useBreakpointMatch.js.map +1 -1
- package/dist/lib/hooks/useClick.js +1 -2
- package/dist/lib/hooks/useClick.js.map +1 -1
- package/dist/lib/hooks/useClickOutside.d.ts +1 -2
- package/dist/lib/hooks/useClickOutside.js +2 -3
- package/dist/lib/hooks/useClickOutside.js.map +1 -1
- package/dist/lib/hooks/useCropPicker.d.ts +1 -2
- package/dist/lib/hooks/useCropPicker.js +19 -7
- package/dist/lib/hooks/useCropPicker.js.map +1 -1
- package/dist/lib/hooks/useFileInput.d.ts +1 -2
- package/dist/lib/hooks/useKeydown.js +2 -2
- package/dist/lib/hooks/useKeydown.js.map +1 -1
- package/dist/lib/hooks/useMediaQuery.js +2 -3
- package/dist/lib/hooks/useMediaQuery.js.map +1 -1
- package/dist/lib/hooks/usePageExitBlocker.js.map +1 -1
- package/dist/lib/hooks/usePagination.js +1 -2
- package/dist/lib/hooks/usePagination.js.map +1 -1
- package/dist/lib/hooks/usePopState.js.map +1 -1
- package/dist/lib/hooks/useRefresh.d.ts +1 -1
- package/dist/lib/hooks/useRefresh.js.map +1 -1
- package/dist/lib/hooks/useScrollEffect.js +1 -2
- package/dist/lib/hooks/useScrollEffect.js.map +1 -1
- package/dist/lib/hooks/useSearchParams.d.ts +0 -1
- package/dist/lib/hooks/useSearchParams.js +1 -2
- package/dist/lib/hooks/useSearchParams.js.map +1 -1
- package/dist/lib/hooks/useStaticAnimationStyles.js +1 -2
- package/dist/lib/hooks/useStaticAnimationStyles.js.map +1 -1
- package/dist/lib/hooks/useWindowSize.js +1 -2
- package/dist/lib/hooks/useWindowSize.js.map +1 -1
- package/dist/lib/tools/localStorage.js.map +1 -1
- package/dist/lib/tools/mediaQuery.js +3 -4
- package/dist/lib/tools/mediaQuery.js.map +1 -1
- package/dist/lib/tools/modal.js +3 -3
- package/dist/lib/tools/modal.js.map +1 -1
- package/dist/lib/utils/pollyfils/scroll.js.map +1 -1
- package/dist/lib/utils/stopPropagation.js +1 -2
- package/dist/lib/utils/stopPropagation.js.map +1 -1
- package/dist/lib/utils/test.js.map +1 -1
- package/dist/types/utility.d.ts +2 -2
- package/package.json +39 -39
- package/package.json.bak +24 -24
- package/src/components/ActionIcon/index.tsx +1 -1
- package/src/components/ActivityIndicator/index.tsx +3 -4
- package/src/components/Badge/types.ts +1 -1
- package/src/components/Carousel/index.tsx +230 -0
- package/src/components/{Pager → Carousel}/styles.ts +2 -2
- package/src/components/Carousel/types.ts +41 -0
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/Collapse/types.ts +1 -1
- package/src/components/ColorPicker/types.ts +3 -3
- package/src/components/CropPicker/index.tsx +4 -3
- package/src/components/CropPicker/types.ts +3 -1
- package/src/components/DatePicker/components/OuterInput.tsx +3 -12
- package/src/components/DatePicker/index.tsx +18 -10
- package/src/components/DatePicker/types.ts +8 -5
- package/src/components/Dropzone/index.tsx +3 -2
- package/src/components/Dropzone/types.ts +3 -1
- package/src/components/EmptyPlaceholder/types.ts +2 -2
- package/src/components/FileInput/index.tsx +4 -3
- package/src/components/FileInput/types.ts +2 -0
- package/src/components/InputBase/useInputBase.ts +1 -1
- package/src/components/InputBase/utils.ts +1 -1
- package/src/components/List/index.tsx +56 -78
- package/src/components/List/styles.ts +2 -10
- package/src/components/List/types.ts +10 -52
- package/src/components/MaskedTextInput/index.tsx +58 -0
- package/src/components/MaskedTextInput/mask.ts +41 -0
- package/src/components/MaskedTextInput/types.ts +18 -0
- package/src/components/NumberIncrement/index.tsx +1 -3
- package/src/components/PaginationButtons/types.ts +1 -1
- package/src/components/PaginationIndicator/types.ts +2 -2
- package/src/components/Progress/Bar/types.ts +2 -2
- package/src/components/Progress/Circle/types.ts +1 -1
- package/src/components/SectionFilters/types.ts +1 -1
- package/src/components/SegmentedControl/index.tsx +6 -5
- package/src/components/SegmentedControl/types.ts +2 -2
- package/src/components/Select/index.tsx +3 -3
- package/src/components/Select/types.ts +6 -6
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Text/index.tsx +4 -3
- package/src/components/Text/types.ts +3 -2
- package/src/components/TextEditor/index.tsx +20 -18
- package/src/components/TextEditor/types.ts +5 -5
- package/src/components/TextInput/index.tsx +14 -34
- package/src/components/TextInput/types.ts +5 -57
- package/src/components/TextInput/useTextInput.ts +10 -19
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/Touchable/index.tsx +4 -4
- package/src/components/Touchable/types.ts +2 -1
- package/src/components/View/index.tsx +6 -5
- package/src/components/View/types.ts +3 -3
- package/src/components/VirtualList/context.tsx +93 -0
- package/src/components/VirtualList/index.tsx +11 -0
- package/src/components/VirtualList/list.tsx +85 -0
- package/src/components/VirtualList/types.ts +38 -0
- package/src/components/components.ts +4 -2
- package/src/lib/hooks/index.ts +0 -1
- package/src/lib/hooks/useAnimatedStyle.ts +11 -7
- package/src/lib/hooks/useAnimatedVariantStyles.ts +2 -2
- package/src/lib/hooks/useClickOutside.ts +1 -1
- package/src/lib/hooks/useMediaQuery.ts +1 -1
- package/src/types/utility.ts +2 -2
- package/dist/components/Grid/index.d.ts +0 -13
- package/dist/components/Grid/index.js +0 -94
- package/dist/components/Grid/index.js.map +0 -1
- package/dist/components/Grid/styles.d.ts +0 -2
- package/dist/components/Grid/styles.js.map +0 -1
- package/dist/components/Grid/types.d.ts +0 -9
- package/dist/components/List/ListLayout.d.ts +0 -2
- package/dist/components/List/ListLayout.js +0 -39
- package/dist/components/List/ListLayout.js.map +0 -1
- package/dist/components/Pager/index.d.ts +0 -7
- package/dist/components/Pager/index.js +0 -118
- package/dist/components/Pager/index.js.map +0 -1
- package/dist/components/Pager/styles.d.ts +0 -3
- package/dist/components/Pager/styles.js.map +0 -1
- package/dist/components/Pager/types.d.ts +0 -27
- package/dist/components/Pager/types.js.map +0 -1
- package/dist/components/TextInput/mask.d.ts +0 -5
- package/dist/components/TextInput/mask.js +0 -110
- package/dist/components/TextInput/mask.js.map +0 -1
- package/dist/lib/deprecated/OSAlert.d.ts +0 -38
- package/dist/lib/deprecated/OSAlert.js +0 -139
- package/dist/lib/deprecated/OSAlert.js.map +0 -1
- package/dist/lib/deprecated/index.d.ts +0 -1
- package/dist/lib/deprecated/index.js +0 -22
- package/dist/lib/deprecated/index.js.map +0 -1
- package/dist/lib/hooks/useInfiniteScroll.d.ts +0 -22
- package/dist/lib/hooks/useInfiniteScroll.js +0 -98
- package/dist/lib/hooks/useInfiniteScroll.js.map +0 -1
- package/src/components/Grid/index.tsx +0 -126
- package/src/components/Grid/styles.ts +0 -3
- package/src/components/Grid/types.ts +0 -13
- package/src/components/List/ListLayout.tsx +0 -87
- package/src/components/Pager/index.tsx +0 -156
- package/src/components/Pager/types.ts +0 -35
- package/src/components/TextInput/mask.tsx +0 -117
- package/src/lib/deprecated/OSAlert.tsx +0 -200
- package/src/lib/deprecated/index.ts +0 -6
- package/src/lib/hooks/useInfiniteScroll.ts +0 -77
- /package/dist/components/{Grid → Carousel}/styles.js +0 -0
- /package/dist/components/{Grid → Carousel}/types.js +0 -0
- /package/dist/components/{Pager → MaskedTextInput}/types.js +0 -0
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.useStaticAnimationStyles =
|
|
14
|
+
exports.useStaticAnimationStyles = useStaticAnimationStyles;
|
|
15
15
|
var react_1 = require("react");
|
|
16
16
|
function useStaticAnimationStyles(obj, keys) {
|
|
17
17
|
var styles = (0, react_1.useRef)({});
|
|
@@ -21,5 +21,4 @@ function useStaticAnimationStyles(obj, keys) {
|
|
|
21
21
|
}
|
|
22
22
|
return styles.current;
|
|
23
23
|
}
|
|
24
|
-
exports.useStaticAnimationStyles = useStaticAnimationStyles;
|
|
25
24
|
//# sourceMappingURL=useStaticAnimationStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStaticAnimationStyles.js","sourceRoot":"","sources":["../../../src/lib/hooks/useStaticAnimationStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStaticAnimationStyles.js","sourceRoot":"","sources":["../../../src/lib/hooks/useStaticAnimationStyles.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAGA,4DAUC;AAbD,+BAA8B;AAG9B,SAAgB,wBAAwB,CAAqE,GAAM,EAAE,IAAS;IAC5H,IAAM,MAAM,GAAG,IAAA,cAAM,EAAC,EAAE,CAAC,CAAA;IAEzB,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7C,IAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,eAAO,GAAG,CAAC,CAAC,CAAC,EAAG,EAAlB,CAAkB,CAAC,CAAA;QAExD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;IACnD,CAAC;IAED,OAAO,MAAM,CAAC,OAAiC,CAAA;AACjD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWindowSize =
|
|
3
|
+
exports.useWindowSize = useWindowSize;
|
|
4
4
|
var react_1 = require("react");
|
|
5
5
|
function useWindowSize() {
|
|
6
6
|
var _a = (0, react_1.useState)([]), size = _a[0], setSize = _a[1];
|
|
@@ -16,5 +16,4 @@ function useWindowSize() {
|
|
|
16
16
|
}, []);
|
|
17
17
|
return size;
|
|
18
18
|
}
|
|
19
|
-
exports.useWindowSize = useWindowSize;
|
|
20
19
|
//# sourceMappingURL=useWindowSize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWindowSize.js","sourceRoot":"","sources":["../../../src/lib/hooks/useWindowSize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWindowSize.js","sourceRoot":"","sources":["../../../src/lib/hooks/useWindowSize.ts"],"names":[],"mappings":";;AAEA,sCAkBC;AApBD,+BAA2C;AAE3C,SAAgB,aAAa;IACrB,IAAA,KAAkB,IAAA,gBAAQ,EAAC,EAAE,CAAC,EAA7B,IAAI,QAAA,EAAE,OAAO,QAAgB,CAAA;IAEpC,SAAS,YAAY;QACnB,OAAO,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;IAClD,CAAC;IAED,IAAA,iBAAS,EAAC;QACR,YAAY,EAAE,CAAA;QAEd,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;QAE/C,OAAO;YACL,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;QACpD,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localStorage.js","sourceRoot":"","sources":["../../../src/lib/tools/localStorage.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAC3C,yCAA4C;AAY5C;IAKE,sBAAY,IAAO;QAFX,qBAAgB,GAAsC,EAAE,CAAA;QAG9D,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;IACzB,CAAC;IAEM,sCAAe,GAAtB;QACE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"localStorage.js","sourceRoot":"","sources":["../../../src/lib/tools/localStorage.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAC3C,yCAA4C;AAY5C;IAKE,sBAAY,IAAO;QAFX,qBAAgB,GAAsC,EAAE,CAAA;QAG9D,IAAI,CAAC,WAAW,GAAG,IAAI,CAA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AC;gBAED,OAAO,QAAQ,CAAA;YACjB,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;QAED,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAC1B,CAAC;IAEM,6BAAM,GAAb,UAAc,GAAW,EAAE,OAAoC;QAA/D,iBAgBC;QAfC,IAAM,OAAO,GAAG,UAAC,KAAmB;YAClC,IAAM,UAAU,GAAG,KAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;YAE1C,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,MAAK,UAAU,EAAE,CAAC;gBAC9B,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,KAAI,CAAC,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,CAAC,CAAA;YACvD,CAAC;QACH,CAAC,CAAA;QAED,IAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACrD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAE3C,OAAO;YACL,KAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;YAC9C,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QAChD,CAAC,CAAA;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAvLD,IAuLC;AAvLY,oCAAY"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.attachMediaListener = attachMediaListener;
|
|
4
|
+
exports.getMediaQuery = getMediaQuery;
|
|
5
|
+
exports.isMediaQuery = isMediaQuery;
|
|
4
6
|
/**
|
|
5
7
|
* Older versions of Safari (shipped withCatalina and before) do not support addEventListener on matchMedia
|
|
6
8
|
* https://stackoverflow.com/questions/56466261/matchmedia-addlistener-marked-as-deprecated-addeventlistener-equivalent
|
|
@@ -15,14 +17,12 @@ function attachMediaListener(query, callback) {
|
|
|
15
17
|
return function () { return query.removeListener(callback); };
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
exports.attachMediaListener = attachMediaListener;
|
|
19
20
|
function getMediaQuery(query) {
|
|
20
21
|
var _a;
|
|
21
22
|
if (!query)
|
|
22
23
|
return '';
|
|
23
24
|
return (_a = query === null || query === void 0 ? void 0 : query.trim()) === null || _a === void 0 ? void 0 : _a.replace('@media screen and ', '');
|
|
24
25
|
}
|
|
25
|
-
exports.getMediaQuery = getMediaQuery;
|
|
26
26
|
function isMediaQuery(query, initialValue) {
|
|
27
27
|
if (initialValue === void 0) { initialValue = false; }
|
|
28
28
|
var media = getMediaQuery(query);
|
|
@@ -31,5 +31,4 @@ function isMediaQuery(query, initialValue) {
|
|
|
31
31
|
}
|
|
32
32
|
return initialValue;
|
|
33
33
|
}
|
|
34
|
-
exports.isMediaQuery = isMediaQuery;
|
|
35
34
|
//# sourceMappingURL=mediaQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaQuery.js","sourceRoot":"","sources":["../../../src/lib/tools/mediaQuery.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"mediaQuery.js","sourceRoot":"","sources":["../../../src/lib/tools/mediaQuery.ts"],"names":[],"mappings":";;AAMA,kDAQC;AAED,sCAGC;AAED,oCAQC;AA3BD;;;KAGK;AACL,SAAgB,mBAAmB,CAAC,KAAqB,EAAE,QAA4B;IACrF,IAAI,CAAC;QACH,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAC1C,OAAO,cAAM,OAAA,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAA7C,CAA6C,CAAA;IAC5D,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAC3B,OAAO,cAAM,OAAA,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAA9B,CAA8B,CAAA;IAC7C,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,KAAa;;IACzC,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAA;IACrB,OAAO,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,0CAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;AACzD,CAAC;AAED,SAAgB,YAAY,CAAC,KAAa,EAAE,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAC9D,IAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IAElC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,YAAY,IAAI,MAAM,EAAE,CAAC;QAC5D,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAA;IACzC,CAAC;IAED,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
package/dist/lib/tools/modal.js
CHANGED
|
@@ -11,7 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
14
|
+
exports.modalsState = void 0;
|
|
15
|
+
exports.modalInferIndexes = modalInferIndexes;
|
|
16
|
+
exports.modalScrollLock = modalScrollLock;
|
|
15
17
|
var types_1 = require("@codeleap/types");
|
|
16
18
|
var store_1 = require("@codeleap/store");
|
|
17
19
|
var overlapIndex = 99;
|
|
@@ -33,7 +35,6 @@ function modalInferIndexes(visible, id) {
|
|
|
33
35
|
}
|
|
34
36
|
exports.modalsState.set({ indexes: indexes });
|
|
35
37
|
}
|
|
36
|
-
exports.modalInferIndexes = modalInferIndexes;
|
|
37
38
|
function modalScrollLock(to, modalIdentifier) {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
var modalId = (_a = exports.modalsState.value) === null || _a === void 0 ? void 0 : _a.currentModal;
|
|
@@ -58,5 +59,4 @@ function modalScrollLock(to, modalIdentifier) {
|
|
|
58
59
|
htmlStyle.overflowY = 'auto';
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
exports.modalScrollLock = modalScrollLock;
|
|
62
62
|
//# sourceMappingURL=modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/lib/tools/modal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/lib/tools/modal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,8CAkBC;AAED,0CAyBC;AApDD,yCAA4C;AAC5C,yCAA6C;AAE7C,IAAM,YAAY,GAAG,EAAE,CAAA;AAEV,QAAA,WAAW,GAAG,IAAA,mBAAW,EAAmE,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;AAE7I,SAAgB,iBAAiB,CAAC,OAAgB,EAAE,EAAU;;IAC5D,IAAM,OAAO,gBAAQ,MAAA,mBAAW,CAAC,KAAK,0CAAE,OAAO,CAAE,CAAA;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,EAAE,CAAC,GAAG,YAAY,CAAA;IAC5B,CAAC;SAAM,CAAC;QACN,IAAI,YAAY,GAAG,CAAC,CAAA;QAEpB,KAAK,IAAM,GAAG,IAAI,OAAO,EAAE,CAAC;YAC1B,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,EAAE,CAAC;gBAChC,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;YAC7B,CAAC;QACH,CAAC;QAED,OAAO,CAAC,EAAE,CAAC,GAAG,YAAY,GAAG,YAAY,CAAA;IAC3C,CAAC;IAED,mBAAW,CA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AC;AACH,CAAC,CAAA;AAhBY,QAAA,YAAY,gBAgBxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stopPropagation =
|
|
3
|
+
exports.stopPropagation = stopPropagation;
|
|
4
4
|
function stopPropagation(event) {
|
|
5
5
|
var _a;
|
|
6
6
|
var tryCalls = [
|
|
@@ -16,5 +16,4 @@ function stopPropagation(event) {
|
|
|
16
16
|
catch (e) { }
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
exports.stopPropagation = stopPropagation;
|
|
20
19
|
//# sourceMappingURL=stopPropagation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stopPropagation.js","sourceRoot":"","sources":["../../../src/lib/utils/stopPropagation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stopPropagation.js","sourceRoot":"","sources":["../../../src/lib/utils/stopPropagation.ts"],"names":[],"mappings":";;AAEA,0CAYC;AAZD,SAAgB,eAAe,CAAC,KAAU;;IACxC,IAAM,QAAQ,GAAG;QACf,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;QAClC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;QACjC,MAAA,KAAK,CAAC,WAAW,0CAAE,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAgB;KACnF,CAAA;IAED,KAAmB,UAAQ,EAAR,qBAAQ,EAAR,sBAAQ,EAAR,IAAQ,EAAE,CAAC;QAAzB,IAAM,IAAI,iBAAA;QACb,IAAI,CAAC;YACH,IAAI,EAAE,CAAA;QACR,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;IAChB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/lib/utils/test.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAErC,IAAM,SAAS,GAAG,UAAC,KAA0B;IAClD,IAAI,EAAE,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,MAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,aAAa,CAAC,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,CAAA;IAEjF,IAAI,kBAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/lib/utils/test.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAErC,IAAM,SAAS,GAAG,UAAC,KAA0B;IAClD,IAAI,EAAE,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,MAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,aAAa,CAAC,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,EAAE,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,CAAA;IAEjF,IAAI,kBAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5B,EAAE,GAAG,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,CAAA;IAC5C,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AARY,QAAA,SAAS,aAQrB"}
|
package/dist/types/utility.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICSS } from '@codeleap/styles';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { JSX } from 'react';
|
|
3
3
|
export type StylesOf<C extends string> = Partial<Record<C, ICSS>>;
|
|
4
4
|
type WithChildren<T> = T & {
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -27,7 +27,7 @@ export type ElementMap = {
|
|
|
27
27
|
};
|
|
28
28
|
export type NativeHTMLElement = keyof ElementMap;
|
|
29
29
|
export type HTMLProps<T extends NativeHTMLElement> = ElementMap[T];
|
|
30
|
-
export type ComponentWithDefaultProps<P> = ((props: P) =>
|
|
30
|
+
export type ComponentWithDefaultProps<P> = ((props: P) => React.ReactElement) & {
|
|
31
31
|
defaultProps?: Partial<P>;
|
|
32
32
|
};
|
|
33
33
|
export type ComponentCommonProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
|
|
@@ -9,57 +9,57 @@
|
|
|
9
9
|
},
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/config": "
|
|
13
|
-
"@codeleap/hooks": "
|
|
14
|
-
"@codeleap/i18n": "
|
|
15
|
-
"@codeleap/logger": "
|
|
16
|
-
"@codeleap/query": "
|
|
17
|
-
"@codeleap/types": "
|
|
18
|
-
"@codeleap/utils": "
|
|
19
|
-
"@codeleap/store": "
|
|
20
|
-
"@types/react-slick": "^0.23.13"
|
|
12
|
+
"@codeleap/config": "6.0.1",
|
|
13
|
+
"@codeleap/hooks": "6.0.1",
|
|
14
|
+
"@codeleap/i18n": "6.0.1",
|
|
15
|
+
"@codeleap/logger": "6.0.1",
|
|
16
|
+
"@codeleap/query": "6.0.1",
|
|
17
|
+
"@codeleap/types": "6.0.1",
|
|
18
|
+
"@codeleap/utils": "6.0.1",
|
|
19
|
+
"@codeleap/store": "6.0.1"
|
|
21
20
|
},
|
|
22
21
|
"scripts": {
|
|
23
22
|
"build": "tsc --build",
|
|
24
23
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@fastify/deepmerge": "1.
|
|
28
|
-
"@radix-ui/react-progress": "
|
|
29
|
-
"@radix-ui/react-slider": "1.
|
|
30
|
-
"@radix-ui/react-tooltip": "
|
|
31
|
-
"@tiptap/
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
26
|
+
"@fastify/deepmerge": "3.1.0",
|
|
27
|
+
"@radix-ui/react-progress": "1.1.7",
|
|
28
|
+
"@radix-ui/react-slider": "1.3.6",
|
|
29
|
+
"@radix-ui/react-tooltip": "1.2.8",
|
|
30
|
+
"@tiptap/pm": "^3.7.0",
|
|
31
|
+
"@tiptap/react": "^3.7.0",
|
|
32
|
+
"@tiptap/starter-kit": "^3.7.0",
|
|
33
|
+
"embla-carousel-autoplay": "^8.6.0",
|
|
34
|
+
"embla-carousel-react": "^8.6.0",
|
|
35
|
+
"imask": "^7.6.1",
|
|
36
|
+
"masonic": "4.1.0",
|
|
37
|
+
"motion": "12.23.24",
|
|
38
|
+
"react-circular-progressbar": "2.2.0",
|
|
39
|
+
"react-colorful": "5.6.1",
|
|
40
|
+
"react-datepicker": "8.7.0",
|
|
38
41
|
"react-dropzone": "^14.2.3",
|
|
39
42
|
"react-image-crop": "^10.1.8",
|
|
40
|
-
"react-
|
|
43
|
+
"react-imask": "^7.6.1",
|
|
41
44
|
"react-number-format": "^5.4.2",
|
|
42
|
-
"react-select": "
|
|
43
|
-
"react-
|
|
44
|
-
"slick-carousel": "^1.8.1",
|
|
45
|
+
"react-select": "5.10.2",
|
|
46
|
+
"react-textarea-autosize": "^8.5.9",
|
|
45
47
|
"uuid": "13.0.0"
|
|
46
48
|
},
|
|
47
49
|
"peerDependencies": {
|
|
48
|
-
"@codeleap/types": "
|
|
49
|
-
"@codeleap/utils": "
|
|
50
|
-
"@codeleap/hooks": "
|
|
51
|
-
"@codeleap/i18n": "
|
|
52
|
-
"@codeleap/query": "
|
|
53
|
-
"@codeleap/logger": "
|
|
54
|
-
"@codeleap/styles": "
|
|
55
|
-
"@codeleap/store": "
|
|
56
|
-
"@emotion/react": "11.
|
|
50
|
+
"@codeleap/types": "6.0.1",
|
|
51
|
+
"@codeleap/utils": "6.0.1",
|
|
52
|
+
"@codeleap/hooks": "6.0.1",
|
|
53
|
+
"@codeleap/i18n": "6.0.1",
|
|
54
|
+
"@codeleap/query": "6.0.1",
|
|
55
|
+
"@codeleap/logger": "6.0.1",
|
|
56
|
+
"@codeleap/styles": "6.0.1",
|
|
57
|
+
"@codeleap/store": "6.0.1",
|
|
58
|
+
"@emotion/react": "11.14.0",
|
|
57
59
|
"@reach/router": "^1.3.4",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"react": "
|
|
61
|
-
"react-dom": "18.2.0",
|
|
62
|
-
"react-select": "*",
|
|
60
|
+
"dayjs": "1.11.18",
|
|
61
|
+
"react": "19.1.0",
|
|
62
|
+
"react-dom": "19.1.0",
|
|
63
63
|
"typescript": "5.5.2"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
|
|
@@ -16,32 +16,34 @@
|
|
|
16
16
|
"@codeleap/query": "workspace:*",
|
|
17
17
|
"@codeleap/types": "workspace:*",
|
|
18
18
|
"@codeleap/utils": "workspace:*",
|
|
19
|
-
"@codeleap/store": "workspace:*"
|
|
20
|
-
"@types/react-slick": "^0.23.13"
|
|
19
|
+
"@codeleap/store": "workspace:*"
|
|
21
20
|
},
|
|
22
21
|
"scripts": {
|
|
23
22
|
"build": "tsc --build",
|
|
24
23
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@fastify/deepmerge": "1.
|
|
28
|
-
"@radix-ui/react-progress": "
|
|
29
|
-
"@radix-ui/react-slider": "1.
|
|
30
|
-
"@radix-ui/react-tooltip": "
|
|
31
|
-
"@tiptap/
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
26
|
+
"@fastify/deepmerge": "3.1.0",
|
|
27
|
+
"@radix-ui/react-progress": "1.1.7",
|
|
28
|
+
"@radix-ui/react-slider": "1.3.6",
|
|
29
|
+
"@radix-ui/react-tooltip": "1.2.8",
|
|
30
|
+
"@tiptap/pm": "^3.7.0",
|
|
31
|
+
"@tiptap/react": "^3.7.0",
|
|
32
|
+
"@tiptap/starter-kit": "^3.7.0",
|
|
33
|
+
"embla-carousel-autoplay": "^8.6.0",
|
|
34
|
+
"embla-carousel-react": "^8.6.0",
|
|
35
|
+
"imask": "^7.6.1",
|
|
36
|
+
"masonic": "4.1.0",
|
|
37
|
+
"motion": "12.23.24",
|
|
38
|
+
"react-circular-progressbar": "2.2.0",
|
|
39
|
+
"react-colorful": "5.6.1",
|
|
40
|
+
"react-datepicker": "8.7.0",
|
|
38
41
|
"react-dropzone": "^14.2.3",
|
|
39
42
|
"react-image-crop": "^10.1.8",
|
|
40
|
-
"react-
|
|
43
|
+
"react-imask": "^7.6.1",
|
|
41
44
|
"react-number-format": "^5.4.2",
|
|
42
|
-
"react-select": "
|
|
43
|
-
"react-
|
|
44
|
-
"slick-carousel": "^1.8.1",
|
|
45
|
+
"react-select": "5.10.2",
|
|
46
|
+
"react-textarea-autosize": "^8.5.9",
|
|
45
47
|
"uuid": "13.0.0"
|
|
46
48
|
},
|
|
47
49
|
"peerDependencies": {
|
|
@@ -53,13 +55,11 @@
|
|
|
53
55
|
"@codeleap/logger": "workspace:*",
|
|
54
56
|
"@codeleap/styles": "workspace:*",
|
|
55
57
|
"@codeleap/store": "workspace:*",
|
|
56
|
-
"@emotion/react": "11.
|
|
58
|
+
"@emotion/react": "11.14.0",
|
|
57
59
|
"@reach/router": "^1.3.4",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"react": "
|
|
61
|
-
"react-dom": "18.2.0",
|
|
62
|
-
"react-select": "*",
|
|
60
|
+
"dayjs": "1.11.18",
|
|
61
|
+
"react": "19.1.0",
|
|
62
|
+
"react-dom": "19.1.0",
|
|
63
63
|
"typescript": "5.5.2"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -32,7 +32,7 @@ export const ActionIcon = (props: ActionIconProps) => {
|
|
|
32
32
|
|
|
33
33
|
const isPressable = TypeGuards.isFunction(onPress) && !disabled
|
|
34
34
|
|
|
35
|
-
const WrapperComponent:
|
|
35
|
+
const WrapperComponent: any = isPressable ? Touchable : View
|
|
36
36
|
|
|
37
37
|
const handlePress = (e) => {
|
|
38
38
|
if (!isPressable) return
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { View } from '../View'
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react'
|
|
3
3
|
import { TypeGuards } from '@codeleap/types'
|
|
4
4
|
import { ActivityIndicatorProps } from './types'
|
|
5
5
|
import { useStylesFor } from '../../lib/hooks/useStylesFor'
|
|
@@ -9,7 +9,7 @@ import { AnyRecord, IJSX, StyledComponentProps, StyledComponentWithProps } from
|
|
|
9
9
|
export * from './styles'
|
|
10
10
|
export * from './types'
|
|
11
11
|
|
|
12
|
-
export const ActivityIndicator =
|
|
12
|
+
export const ActivityIndicator = (props: ActivityIndicatorProps) => {
|
|
13
13
|
const {
|
|
14
14
|
style,
|
|
15
15
|
component: Component,
|
|
@@ -31,12 +31,11 @@ export const ActivityIndicator = forwardRef<HTMLDivElement, ActivityIndicatorPro
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<Component
|
|
34
|
-
ref={ref}
|
|
35
34
|
{...rest}
|
|
36
35
|
style={[styles.wrapper, _size]}
|
|
37
36
|
/>
|
|
38
37
|
)
|
|
39
|
-
}
|
|
38
|
+
}
|
|
40
39
|
|
|
41
40
|
ActivityIndicator.styleRegistryName = 'ActivityIndicator'
|
|
42
41
|
ActivityIndicator.elements = ['wrapper']
|
|
@@ -15,7 +15,7 @@ export type BadgeProps =
|
|
|
15
15
|
innerWrapperProps?: Partial<ViewProps>
|
|
16
16
|
textProps?: Partial<TextProps>
|
|
17
17
|
getBadgeContent?: (props: BadgeContent) => string
|
|
18
|
-
renderBadgeContent?: (props: BadgeContent & { content: string }) =>
|
|
18
|
+
renderBadgeContent?: (props: BadgeContent & { content: string }) => React.ReactElement
|
|
19
19
|
disabled?: boolean
|
|
20
20
|
badge?: number | boolean
|
|
21
21
|
}
|