@codeleap/mobile 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/Registry.js.map +1 -1
- package/dist/components/ActionIcon/index.d.ts +2 -3
- package/dist/components/ActionIcon/index.js +5 -11
- package/dist/components/ActionIcon/index.js.map +1 -1
- package/dist/components/ActivityIndicator/index.d.ts +2 -2
- package/dist/components/ActivityIndicator/index.js +2 -2
- package/dist/components/ActivityIndicator/index.js.map +1 -1
- package/dist/components/ActivityIndicator/types.d.ts +0 -1
- package/dist/components/Autocomplete/index.d.ts +2 -3
- package/dist/components/Autocomplete/index.js +15 -18
- package/dist/components/Autocomplete/index.js.map +1 -1
- package/dist/components/Autocomplete/types.d.ts +1 -2
- package/dist/components/Avatar/components/Badge.d.ts +1 -2
- package/dist/components/Avatar/components/Badge.js +2 -2
- package/dist/components/Avatar/components/Badge.js.map +1 -1
- package/dist/components/Avatar/components/Content.d.ts +1 -1
- package/dist/components/Avatar/components/Content.js +3 -7
- package/dist/components/Avatar/components/Content.js.map +1 -1
- package/dist/components/Avatar/components/Illustration.d.ts +1 -2
- package/dist/components/Avatar/components/Illustration.js +2 -5
- package/dist/components/Avatar/components/Illustration.js.map +1 -1
- package/dist/components/Avatar/components/OverlayIcon.d.ts +1 -2
- package/dist/components/Avatar/components/OverlayIcon.js +2 -3
- package/dist/components/Avatar/components/OverlayIcon.js.map +1 -1
- package/dist/components/Avatar/components/Text.d.ts +1 -2
- package/dist/components/Avatar/components/Text.js +2 -1
- package/dist/components/Avatar/components/Text.js.map +1 -1
- package/dist/components/Avatar/components/Wrapper.d.ts +1 -2
- package/dist/components/Avatar/components/Wrapper.js +3 -6
- package/dist/components/Avatar/components/Wrapper.js.map +1 -1
- package/dist/components/Avatar/context.d.ts +108 -111
- package/dist/components/Avatar/context.js.map +1 -1
- package/dist/components/Avatar/index.d.ts +6 -7
- package/dist/components/Avatar/index.js +2 -6
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/AvatarGroup/index.d.ts +2 -3
- package/dist/components/AvatarGroup/index.js +2 -4
- package/dist/components/AvatarGroup/index.js.map +1 -1
- package/dist/components/Backdrop/index.d.ts +2 -3
- package/dist/components/Backdrop/index.js +4 -8
- package/dist/components/Backdrop/index.js.map +1 -1
- package/dist/components/Badge/index.d.ts +2 -3
- package/dist/components/Badge/index.js +5 -9
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/types.d.ts +1 -2
- package/dist/components/Button/index.js +3 -9
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Calendar/index.d.ts +2 -3
- package/dist/components/Calendar/index.js +5 -4
- package/dist/components/Calendar/index.js.map +1 -1
- package/dist/components/CalendarInput/index.d.ts +2 -3
- package/dist/components/CalendarInput/index.js +11 -12
- package/dist/components/CalendarInput/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -3
- package/dist/components/Checkbox/index.js +9 -15
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/DatePickerModal/index.d.ts +2 -3
- package/dist/components/DatePickerModal/index.js +13 -21
- package/dist/components/DatePickerModal/index.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Button.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Button.js +2 -2
- package/dist/components/EmptyPlaceholder/components/Button.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Content.d.ts +1 -1
- package/dist/components/EmptyPlaceholder/components/Content.js +6 -8
- package/dist/components/EmptyPlaceholder/components/Content.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Illustration.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Illustration.js +2 -5
- package/dist/components/EmptyPlaceholder/components/Illustration.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Info.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Info.js +2 -5
- package/dist/components/EmptyPlaceholder/components/Info.js.map +1 -1
- package/dist/components/EmptyPlaceholder/components/Loading.d.ts +1 -2
- package/dist/components/EmptyPlaceholder/components/Loading.js +3 -4
- package/dist/components/EmptyPlaceholder/components/Loading.js.map +1 -1
- package/dist/components/EmptyPlaceholder/context.d.ts +4 -5
- package/dist/components/EmptyPlaceholder/context.js.map +1 -1
- package/dist/components/EmptyPlaceholder/index.d.ts +5 -6
- package/dist/components/EmptyPlaceholder/index.js +2 -6
- package/dist/components/EmptyPlaceholder/index.js.map +1 -1
- package/dist/components/FileInput/index.d.ts +1 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/Grid/index.js +11 -10
- package/dist/components/Grid/index.js.map +1 -1
- package/dist/components/Grid/types.d.ts +0 -1
- package/dist/components/Icon/index.d.ts +1 -2
- package/dist/components/Icon/index.js +3 -5
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Image/index.js +9 -15
- package/dist/components/Image/index.js.map +1 -1
- package/dist/components/Image/types.d.ts +1 -2
- package/dist/components/ImageView/Spotlight.d.ts +4 -4
- package/dist/components/ImageView/Spotlight.js +4 -5
- package/dist/components/ImageView/Spotlight.js.map +1 -1
- package/dist/components/ImageView/component.d.ts +1 -2
- package/dist/components/ImageView/component.js +4 -2
- package/dist/components/ImageView/component.js.map +1 -1
- package/dist/components/InputBase/index.js +3 -16
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +3 -4
- package/dist/components/InputBase/useInputBase.d.ts +2 -3
- package/dist/components/InputBase/useInputBase.js +1 -1
- package/dist/components/InputBase/useInputBase.js.map +1 -1
- package/dist/components/InputBase/useInputBasePartialStyles.js.map +1 -1
- package/dist/components/InputOverlay/index.d.ts +3 -4
- package/dist/components/InputOverlay/index.js +6 -21
- package/dist/components/InputOverlay/index.js.map +1 -1
- package/dist/components/InputOverlay/store.js.map +1 -1
- package/dist/components/List/index.js +5 -4
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/List/types.d.ts +0 -1
- package/dist/components/LoadingOverlay/index.d.ts +2 -3
- package/dist/components/LoadingOverlay/index.js +5 -7
- package/dist/components/LoadingOverlay/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +2 -3
- package/dist/components/Modal/index.js +13 -39
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +0 -1
- package/dist/components/NumberIncrement/index.js +5 -7
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/useNumberIncrement.d.ts +3 -4
- package/dist/components/NumberIncrement/useNumberIncrement.js.map +1 -1
- package/dist/components/Pager/PagerDots.d.ts +1 -2
- package/dist/components/Pager/PagerDots.js +3 -6
- package/dist/components/Pager/PagerDots.js.map +1 -1
- package/dist/components/Pager/PagerItem.d.ts +1 -2
- package/dist/components/Pager/PagerItem.js +3 -2
- package/dist/components/Pager/PagerItem.js.map +1 -1
- package/dist/components/Pager/index.d.ts +2 -3
- package/dist/components/Pager/index.js +9 -16
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/Pager/types.d.ts +2 -2
- package/dist/components/PaginationIndicator/index.d.ts +2 -3
- package/dist/components/PaginationIndicator/index.js +3 -3
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/PaginationIndicator/types.d.ts +2 -3
- package/dist/components/PlacesAutocomplete/index.d.ts +6 -7
- package/dist/components/PlacesAutocomplete/index.js +11 -17
- package/dist/components/PlacesAutocomplete/index.js.map +1 -1
- package/dist/components/PlacesAutocomplete/types.d.ts +3 -4
- package/dist/components/RadioInput/index.d.ts +2 -3
- package/dist/components/RadioInput/index.js +4 -22
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RefreshControl/index.d.ts +2 -3
- package/dist/components/RefreshControl/index.js +2 -2
- package/dist/components/RefreshControl/index.js.map +1 -1
- package/dist/components/Scroll/index.d.ts +2 -3
- package/dist/components/Scroll/index.js +9 -12
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/SearchInput/index.d.ts +7 -4
- package/dist/components/SearchInput/index.js +4 -3
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/context.d.ts +3 -24
- package/dist/components/SectionFilters/index.d.ts +1 -2
- package/dist/components/SectionFilters/index.js +5 -7
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/useSectionFilters.js.map +1 -1
- package/dist/components/Sections/index.d.ts +2 -3
- package/dist/components/Sections/index.js +5 -4
- package/dist/components/Sections/index.js.map +1 -1
- package/dist/components/Sections/types.d.ts +0 -1
- package/dist/components/SegmentedControl/Option.d.ts +1 -1
- package/dist/components/SegmentedControl/Option.js +7 -13
- package/dist/components/SegmentedControl/Option.js.map +1 -1
- package/dist/components/SegmentedControl/index.js +16 -26
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/types.d.ts +2 -3
- package/dist/components/Select/index.d.ts +2 -3
- package/dist/components/Select/index.js +20 -25
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/types.d.ts +2 -3
- package/dist/components/Slider/index.d.ts +2 -3
- package/dist/components/Slider/index.js +23 -38
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/types.d.ts +0 -1
- package/dist/components/SortablePhotos/index.d.ts +2 -3
- package/dist/components/SortablePhotos/index.js +7 -18
- package/dist/components/SortablePhotos/index.js.map +1 -1
- package/dist/components/SortablePhotos/useSortablePhotos.d.ts +0 -2
- package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -1
- package/dist/components/Switch/index.d.ts +2 -3
- package/dist/components/Switch/index.js +9 -13
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Tabs/Context.d.ts +2 -3
- package/dist/components/Tabs/Context.js +2 -1
- package/dist/components/Tabs/Context.js.map +1 -1
- package/dist/components/Tabs/Panel.d.ts +1 -1
- package/dist/components/Tabs/Panel.js +3 -5
- package/dist/components/Tabs/Panel.js.map +1 -1
- package/dist/components/Tabs/Tab.d.ts +1 -2
- package/dist/components/Tabs/Tab.js +12 -16
- package/dist/components/Tabs/Tab.js.map +1 -1
- package/dist/components/Tabs/TabList.d.ts +1 -2
- package/dist/components/Tabs/TabList.js +2 -1
- package/dist/components/Tabs/TabList.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +197 -192
- package/dist/components/Tabs/index.js +2 -6
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Text/index.js +5 -7
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Text/types.d.ts +2 -2
- package/dist/components/TextInput/index.js +13 -14
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/types.d.ts +0 -1
- package/dist/components/TextInput/useTextInput.d.ts +2 -3
- package/dist/components/TimeInput/index.d.ts +2 -3
- package/dist/components/TimeInput/index.js +8 -12
- package/dist/components/TimeInput/index.js.map +1 -1
- package/dist/components/Touchable/index.js +5 -10
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/types.d.ts +0 -1
- package/dist/components/View/index.d.ts +4 -6
- package/dist/components/View/index.js +4 -3
- package/dist/components/View/index.js.map +1 -1
- package/dist/components/View/types.d.ts +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/PressableRipple/ripple.d.ts +2 -2
- package/dist/modules/PressableRipple/ripple.js +4 -11
- package/dist/modules/PressableRipple/ripple.js.map +1 -1
- package/dist/modules/PressableRipple/styles.d.ts +5 -5
- package/dist/modules/backgroundTimer.js.map +1 -1
- package/dist/modules/reactNavigation.js.map +1 -1
- package/dist/modules/scroll.d.ts +3 -3
- package/dist/modules/scroll.js +3 -4
- package/dist/modules/scroll.js.map +1 -1
- package/dist/modules/textInputMask.d.ts +1 -2
- package/dist/types/index.d.ts +2 -3
- package/dist/types/utility.d.ts +2 -2
- package/dist/utils/NotificationManager/index.js.map +1 -1
- package/dist/utils/OSAlert.js.map +1 -1
- package/dist/utils/StorageManager.js.map +1 -1
- package/dist/utils/Subscription.js.map +1 -1
- package/dist/utils/hooks.d.ts +3 -3
- package/dist/utils/hooks.js.map +1 -1
- package/dist/utils/input.d.ts +1 -1
- package/dist/utils/input.js.map +1 -1
- package/dist/utils/misc.d.ts +0 -1
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/useQueryListRefresh.js.map +1 -1
- package/package.json +30 -32
- package/package.json.bak +14 -16
- package/src/components/Autocomplete/types.ts +1 -1
- package/src/components/Badge/types.ts +1 -1
- package/src/components/FileInput/index.tsx +2 -2
- package/src/components/Image/types.ts +1 -1
- package/src/components/ImageView/Spotlight.tsx +2 -2
- package/src/components/ImageView/component.tsx +1 -0
- package/src/components/InputBase/types.ts +3 -3
- package/src/components/InputBase/useInputBase.ts +1 -1
- package/src/components/Pager/PagerItem.tsx +1 -1
- package/src/components/Pager/index.tsx +1 -0
- package/src/components/Pager/types.ts +1 -1
- package/src/components/PaginationIndicator/types.ts +2 -2
- package/src/components/PlacesAutocomplete/types.ts +3 -3
- package/src/components/Scroll/index.tsx +1 -1
- package/src/components/SearchInput/index.tsx +7 -3
- package/src/components/SectionFilters/index.tsx +1 -1
- package/src/components/SegmentedControl/types.ts +2 -2
- package/src/components/Select/types.ts +2 -2
- package/src/components/Slider/index.tsx +1 -0
- package/src/components/Text/types.ts +2 -2
- package/src/components/View/index.tsx +1 -1
- package/src/components/View/types.ts +2 -2
- package/src/components/components.ts +1 -1
- package/src/index.ts +0 -1
- package/src/modules/scroll.tsx +1 -1
- package/src/types/index.ts +2 -2
- package/src/types/utility.ts +2 -2
- package/src/utils/hooks.ts +3 -3
- package/dist/deprecated/index.d.ts +0 -2
- package/dist/deprecated/index.js +0 -5
- package/dist/deprecated/index.js.map +0 -1
- package/dist/deprecated/modals/Context.d.ts +0 -48
- package/dist/deprecated/modals/Context.js +0 -187
- package/dist/deprecated/modals/Context.js.map +0 -1
- package/dist/deprecated/modals/components.d.ts +0 -15
- package/dist/deprecated/modals/components.js +0 -53
- package/dist/deprecated/modals/components.js.map +0 -1
- package/dist/deprecated/modals/index.d.ts +0 -10
- package/dist/deprecated/modals/index.js +0 -9
- package/dist/deprecated/modals/index.js.map +0 -1
- package/dist/deprecated/permissions/Context.d.ts +0 -53
- package/dist/deprecated/permissions/Context.js +0 -208
- package/dist/deprecated/permissions/Context.js.map +0 -1
- package/dist/deprecated/permissions/index.d.ts +0 -5
- package/dist/deprecated/permissions/index.js +0 -4
- package/dist/deprecated/permissions/index.js.map +0 -1
- package/dist/deprecated/permissions/package/Manager.d.ts +0 -23
- package/dist/deprecated/permissions/package/Manager.js +0 -84
- package/dist/deprecated/permissions/package/Manager.js.map +0 -1
- package/dist/deprecated/permissions/package/Permission.d.ts +0 -19
- package/dist/deprecated/permissions/package/Permission.js +0 -65
- package/dist/deprecated/permissions/package/Permission.js.map +0 -1
- package/dist/deprecated/permissions/package/index.d.ts +0 -3
- package/dist/deprecated/permissions/package/index.js +0 -5
- package/dist/deprecated/permissions/package/index.js.map +0 -1
- package/dist/deprecated/permissions/package/types.d.ts +0 -31
- package/dist/deprecated/permissions/package/types.js +0 -2
- package/dist/deprecated/permissions/package/types.js.map +0 -1
- package/dist/deprecated/permissions/types.d.ts +0 -16
- package/dist/deprecated/permissions/types.js +0 -2
- package/dist/deprecated/permissions/types.js.map +0 -1
- package/mobile-packages.code-workspace +0 -27
- package/src/deprecated/index.ts +0 -2
- package/src/deprecated/modals/Context.tsx +0 -259
- package/src/deprecated/modals/components.tsx +0 -84
- package/src/deprecated/modals/index.ts +0 -13
- package/src/deprecated/permissions/Context.tsx +0 -316
- package/src/deprecated/permissions/index.ts +0 -16
- package/src/deprecated/permissions/package/Manager.ts +0 -123
- package/src/deprecated/permissions/package/Permission.ts +0 -79
- package/src/deprecated/permissions/package/index.ts +0 -3
- package/src/deprecated/permissions/package/types.ts +0 -43
- package/src/deprecated/permissions/types.ts +0 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Calendar/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
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M,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,OAAO,OAAO;YACZ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,CAAC,CAAC,WAAW,CAAA;IACjB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAA;IAE1B,OAAO,CACL,KAAC,UAAU,IACT,UAAU,EAAE,gBAAgB,EAC5B,OAAO,EAAE,YAAsB,EAC/B,WAAW,EAAE,WAAW,KACpB,aAAa,EACjB,WAAW,EAAE;YACX,GAAG,WAAW;YACd,GAAG,aAAa,EAAE,WAAW;SAC9B,EACD,KAAK,EAAE,MAAM,EAAE,OAAO,EACtB,WAAW,EAAE,MAAM,EAAE,MAAM,EAC3B,KAAK,EAAE;YACL,GAAG,MAAM,EAAE,QAAQ;YACnB,GAAG,aAAa,EAAE,KAAK;SACxB,GACD,CACH,CAAA;AACH,CAAC,CAAA;AAED,QAAQ,CAAC,iBAAiB,GAAG,UAAU,CAAA;AACvC,QAAQ,CAAC,QAAQ,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;AACrD,QAAQ,CAAC,WAAW,GAAG,SAAS,CAAA;AAEhC,QAAQ,CAAC,gBAAgB,GAAG,CAAsB,MAAS,EAAE,EAAE;IAC7D,OAAO,QAA+E,CAAA;AACxF,CAAC,CAAA;AAED,QAAQ,CAAC,YAAY,GAAG,EAA4B,CAAA;AAEpD,mBAAmB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles';
|
|
3
2
|
import { CalendarInputProps } from './types';
|
|
4
3
|
export * from './styles';
|
|
5
4
|
export * from './types';
|
|
6
5
|
export declare const CalendarInput: {
|
|
7
|
-
(props: CalendarInputProps): JSX.Element;
|
|
6
|
+
(props: CalendarInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
styleRegistryName: string;
|
|
9
8
|
elements: string[];
|
|
10
9
|
rootElement: string;
|
|
11
|
-
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<CalendarInputProps,
|
|
10
|
+
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<CalendarInputProps, typeof styles>) => IJSX;
|
|
12
11
|
defaultProps: Partial<CalendarInputProps>;
|
|
13
12
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
2
3
|
import { useCompositionStyles } from '@codeleap/styles';
|
|
3
4
|
import { MobileStyleRegistry } from '../../Registry';
|
|
4
5
|
import { useStylesFor } from '../../hooks';
|
|
@@ -30,17 +31,15 @@ export const CalendarInput = (props) => {
|
|
|
30
31
|
}
|
|
31
32
|
return dateUtils.removeTimezoneAndFormat(inputValue, format);
|
|
32
33
|
}, [inputValue, format]);
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}}/>
|
|
43
|
-
</InputOverlay.Layout>);
|
|
34
|
+
return (_jsx(InputOverlay.Layout, { style: styles.wrapper, position: calendarPosition, gap: gap, isOpen: isOpen, mode: overlay ? 'overlay' : 'content', hideOverlay: disabled, id: id, content: _jsx(Calendar, { style: compositionStyles.calendar, value: inputValue, onValueChange: onInputValueChange, ...calendarProps }), children: _jsx(TextInput, { placeholder: 'Select Date', disabled: disabled, ...textInputProps, style: compositionStyles.input, value: formattedValue, onValueChange: () => inputValue, onPress: disabled ? undefined : toggle, innerWrapperProps: {
|
|
35
|
+
rippleDisabled: true,
|
|
36
|
+
}, focused: isOpen, leftIcon: !leftIcon ? null : {
|
|
37
|
+
...leftIcon,
|
|
38
|
+
onPress: toggle,
|
|
39
|
+
}, rightIcon: !rightIcon ? null : {
|
|
40
|
+
...rightIcon,
|
|
41
|
+
onPress: toggle,
|
|
42
|
+
} }) }));
|
|
44
43
|
};
|
|
45
44
|
CalendarInput.styleRegistryName = 'CalendarInput';
|
|
46
45
|
CalendarInput.elements = ['wrapper', 'calendar', 'input'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CalendarInput/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CalendarInput/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAyC,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAEnE,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AAEvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,EACJ,KAAK,EACL,KAAK,EACL,aAAa,EACb,QAAQ,EACR,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,uBAAuB,EACvB,KAAK,EACL,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GAAG,EAAE,CAAC;IACN,gBAAgB,EAAE,MAAM;IACxB,uBAAuB,EAAE,KAAK;IAC9B,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,IAAI;CACiB,CAAA;AAEhC,mBAAmB,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CheckboxProps } from './types';
|
|
3
2
|
import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles';
|
|
4
3
|
export * from './styles';
|
|
5
4
|
export * from './types';
|
|
6
5
|
export declare const Checkbox: {
|
|
7
|
-
(props: CheckboxProps): JSX.Element;
|
|
6
|
+
(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
styleRegistryName: string;
|
|
9
8
|
rootElement: string;
|
|
10
9
|
elements: string[];
|
|
11
|
-
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<CheckboxProps,
|
|
10
|
+
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<CheckboxProps, typeof styles>) => IJSX;
|
|
12
11
|
defaultProps: Partial<CheckboxProps>;
|
|
13
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { View } from '../View';
|
|
3
3
|
import { InputBase, InputBaseDefaultOrder, selectInputBaseProps } from '../InputBase';
|
|
4
4
|
import { useAnimatedVariantStyles } from '../..';
|
|
@@ -58,23 +58,17 @@ export const Checkbox = (props) => {
|
|
|
58
58
|
// @ts-expect-error
|
|
59
59
|
const _checkboxOnLeft = checkboxOnLeft ?? styles.__props?.checkboxOnLeft;
|
|
60
60
|
const hasError = validation?.showError || forceError;
|
|
61
|
-
return
|
|
61
|
+
return _jsx(InputBase, { ...inputBaseProps, ref: wrapperRef, error: hasError ? validation?.message || forceError : null, debugName: debugName, wrapper: Touchable, style: styles, wrapperProps: {
|
|
62
62
|
onPress: () => onInputValueChange(!inputValue),
|
|
63
63
|
disabled,
|
|
64
64
|
rippleDisabled: true,
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
disabled && styles['checkmarkWrapper:disabled'],
|
|
73
|
-
]}>
|
|
74
|
-
<Icon name={checkIcon} style={[styles.checkmark, disabled && styles['checkmark:disabled']]}/>
|
|
75
|
-
</View>
|
|
76
|
-
</View>
|
|
77
|
-
</InputBase>;
|
|
65
|
+
}, order: _checkboxOnLeft ? reversedOrder : InputBaseDefaultOrder, children: _jsx(View, { animated: true, animatedStyle: boxAnimation, style: [
|
|
66
|
+
styles.box,
|
|
67
|
+
disabled && styles['box:disabled'],
|
|
68
|
+
], children: _jsx(View, { animated: true, animatedStyle: checkmarkWrapperAnimation, style: [
|
|
69
|
+
styles.checkmarkWrapper,
|
|
70
|
+
disabled && styles['checkmarkWrapper:disabled'],
|
|
71
|
+
], children: _jsx(Icon, { name: checkIcon, style: [styles.checkmark, disabled && styles['checkmark:disabled']] }) }) }) });
|
|
78
72
|
};
|
|
79
73
|
Checkbox.styleRegistryName = 'Checkbox';
|
|
80
74
|
Checkbox.rootElement = 'wrapper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MA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;AAED,QAAQ,CAAC,YAAY,GAAG;IACtB,SAAS,EAAE,OAAkB;CACJ,CAAA;AAE3B,mBAAmB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DatePickerModalProps } from './types';
|
|
3
2
|
import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles';
|
|
4
3
|
export * from './styles';
|
|
5
4
|
export * from './types';
|
|
6
5
|
export declare const DatePickerModal: {
|
|
7
|
-
(props: DatePickerModalProps): JSX.Element;
|
|
6
|
+
(props: DatePickerModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
styleRegistryName: string;
|
|
9
8
|
elements: string[];
|
|
10
9
|
rootElement: string;
|
|
11
|
-
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<DatePickerModalProps,
|
|
10
|
+
withVariantTypes<S extends AnyRecord>(styles: S): (props: StyledComponentProps<DatePickerModalProps, typeof styles>) => IJSX;
|
|
12
11
|
defaultProps: Partial<DatePickerModalProps>;
|
|
13
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import React, { useMemo, useRef } from 'react';
|
|
2
3
|
import { TypeGuards } from '@codeleap/types';
|
|
3
4
|
import { useConditionalState } from '@codeleap/hooks';
|
|
@@ -14,7 +15,7 @@ export * from './styles';
|
|
|
14
15
|
export * from './types';
|
|
15
16
|
const OuterInputComponent = (props) => {
|
|
16
17
|
const { debugName, toggle, valueLabel, placeholder, ...otherProps } = props;
|
|
17
|
-
return
|
|
18
|
+
return _jsx(TextInput, { debugName: `${debugName} outer input`, onPress: toggle, ...otherProps, value: TypeGuards.isString(valueLabel) ? valueLabel : '', placeholder: TypeGuards.isString(placeholder) ? placeholder : '' });
|
|
18
19
|
};
|
|
19
20
|
const defaultFormatDate = (_date) => {
|
|
20
21
|
if (!_date)
|
|
@@ -25,14 +26,11 @@ const defaultFormatDate = (_date) => {
|
|
|
25
26
|
const DefaultFooter = (props) => {
|
|
26
27
|
const { debugName, commitDate, showDoneButton, confirm, confirmButtonProps = {}, cancelButtonProps = {}, toggle, cancelStyles, confirmStyles, doneStyles, } = props;
|
|
27
28
|
if (commitDate == 'onConfirm') {
|
|
28
|
-
return
|
|
29
|
-
<Button debugName={`${debugName} cancel button`} style={cancelStyles} text={`Cancel`} onPress={toggle} {...cancelButtonProps}/>
|
|
30
|
-
<Button debugName={`${debugName} confirm button`} style={confirmStyles} text={`Confirm`} onPress={confirm} {...confirmButtonProps}/>
|
|
31
|
-
</>;
|
|
29
|
+
return _jsxs(_Fragment, { children: [_jsx(Button, { debugName: `${debugName} cancel button`, style: cancelStyles, text: `Cancel`, onPress: toggle, ...cancelButtonProps }), _jsx(Button, { debugName: `${debugName} confirm button`, style: confirmStyles, text: `Confirm`, onPress: confirm, ...confirmButtonProps })] });
|
|
32
30
|
}
|
|
33
31
|
if (!showDoneButton)
|
|
34
32
|
return null;
|
|
35
|
-
return
|
|
33
|
+
return _jsx(Button, { debugName: `${debugName} done button`, onPress: confirm, text: 'Done', style: doneStyles });
|
|
36
34
|
};
|
|
37
35
|
export const DatePickerModal = (props) => {
|
|
38
36
|
const allProps = {
|
|
@@ -58,7 +56,7 @@ export const DatePickerModal = (props) => {
|
|
|
58
56
|
_onConfirm?.(tempDate.current);
|
|
59
57
|
}
|
|
60
58
|
};
|
|
61
|
-
const modalFooter =
|
|
59
|
+
const modalFooter = _jsx(Footer, { ...allProps, confirm: onConfirm, doneStyles: compositionStyles?.doneButton, cancelStyles: compositionStyles?.cancelButton, confirmStyles: compositionStyles?.confirmButton, confirmButtonProps: confirmButtonProps, cancelButtonProps: cancelButtonProps, showDoneButton: showDoneButton, debugName: debugName, visible: visible, toggle: toggle, valueLabel: formattedDate });
|
|
62
60
|
const wrapperProps = isCustomModal ? {
|
|
63
61
|
title: label,
|
|
64
62
|
description: description,
|
|
@@ -74,20 +72,14 @@ export const DatePickerModal = (props) => {
|
|
|
74
72
|
const newValue = inputValue ?? initialDate;
|
|
75
73
|
return newValue instanceof Date ? newValue : new Date(newValue);
|
|
76
74
|
}, [inputValue, initialDate]);
|
|
77
|
-
return (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
}} locale={locale}
|
|
87
|
-
// @ts-expect-error
|
|
88
|
-
textColor={styles?.picker?.color} theme='light' androidVariant='iosClone' onConfirm={onInputValueChange} minimumDate={minimumDate} maximumDate={maximumDate} {...datePickerProps} mode={mode}/>
|
|
89
|
-
</Wrapper>
|
|
90
|
-
</>);
|
|
75
|
+
return (_jsxs(_Fragment, { children: [!hideInput ? _jsx(OuterInput, { ...allProps, style: compositionStyles?.input, value: inputValue, debugName: debugName, visible: visible, toggle: toggle, onValueChange: onInputValueChange, valueLabel: formattedDate }) : null, _jsx(Wrapper, { ...wrapperProps, children: _jsx(DatePicker, { modal: !isCustomModal, open: visible, onCancel: toggle, date: date, onDateChange: (currentDate) => {
|
|
76
|
+
tempDate.current = currentDate;
|
|
77
|
+
if (commitDate === 'onChange') {
|
|
78
|
+
onInputValueChange(currentDate);
|
|
79
|
+
}
|
|
80
|
+
}, locale: locale,
|
|
81
|
+
// @ts-expect-error
|
|
82
|
+
textColor: styles?.picker?.color, theme: 'light', androidVariant: 'iosClone', onConfirm: onInputValueChange, minimumDate: minimumDate, maximumDate: maximumDate, ...datePickerProps, mode: mode }) })] }));
|
|
91
83
|
};
|
|
92
84
|
DatePickerModal.styleRegistryName = 'DatePickerModal';
|
|
93
85
|
DatePickerModal.elements = [...Modal.elements, 'input', 'picker', 'doneButton', 'confirmButton', 'cancelButton'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DatePickerModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,UAAU,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAyC,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAa,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AAEvB,MAAM,mBAAmB,GAAgD,CAAC,KAAK,EAAE,EAAE;IACjF,MAAM,EACJ,SAAS,EACT,MAAM,EACN,UAAU,EACV,WAAW,EACX,GAAG,UAAU,EACd,GAAG,KAAK,CAAA;IAET,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DatePickerModal/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,UAAU,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,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AAc,EAAE,IAAI;IACpB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;CACW,CAAA;AAElC,mBAAmB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAA"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EmptyPlaceholderButtonProps } from '../types';
|
|
3
|
-
export declare const EmptyPlaceholderButton: (props: EmptyPlaceholderButtonProps) => JSX.Element;
|
|
2
|
+
export declare const EmptyPlaceholderButton: (props: EmptyPlaceholderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCompositionStyles } from '@codeleap/styles';
|
|
3
3
|
import { useEmptyPlaceholderContext } from '../context';
|
|
4
4
|
import { Button } from '../../Button';
|
|
@@ -9,6 +9,6 @@ export const EmptyPlaceholderButton = (props) => {
|
|
|
9
9
|
const displayText = text || buttonText;
|
|
10
10
|
if (!TypeGuards.isFunction(onPress))
|
|
11
11
|
return null;
|
|
12
|
-
return (
|
|
12
|
+
return (_jsx(Button, { ...buttonProps, onPress: onPress, debugName: `emptyPlaceholderButton:${buttonText}`, style: buttonStyles, text: displayText }));
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAkC,EAAE,EAAE;IAC3E,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAA;IAE/F,MAAM,YAAY,GAAG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAE3D,MAAM,WAAW,GAAG,IAAI,IAAI,UAAU,CAAA;IAEtC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAA;IAEhD,OAAO,CACL,KAAC,MAAM,OACD,WAAW,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,0BAA0B,UAAU,EAAE,EACjD,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,WAAW,GACjB,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const EmptyPlaceholderContent: ({ children }: React.PropsWithChildren) => JSX.Element;
|
|
2
|
+
export declare const EmptyPlaceholderContent: ({ children }: React.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEmptyPlaceholderContext } from '../context';
|
|
3
3
|
import { View } from '../../View';
|
|
4
4
|
import { logger } from '@codeleap/logger';
|
|
@@ -14,20 +14,18 @@ const orderMap = {
|
|
|
14
14
|
export const EmptyPlaceholderContent = ({ children }) => {
|
|
15
15
|
const { loading, styles, order } = useEmptyPlaceholderContext();
|
|
16
16
|
if (loading) {
|
|
17
|
-
return
|
|
17
|
+
return _jsx(EmptyPlaceholderLoading, {});
|
|
18
18
|
}
|
|
19
19
|
if (children) {
|
|
20
|
-
return
|
|
20
|
+
return _jsx(View, { style: styles.wrapper, children: children });
|
|
21
21
|
}
|
|
22
|
-
return (
|
|
23
|
-
{order.map(componentKey => {
|
|
22
|
+
return (_jsx(View, { style: styles.wrapper, children: order.map(componentKey => {
|
|
24
23
|
const Component = orderMap[componentKey];
|
|
25
24
|
if (!Component) {
|
|
26
25
|
logger.warn(`[EmptyPlaceholder] Component "${componentKey}" not found in orderMap`);
|
|
27
26
|
return null;
|
|
28
27
|
}
|
|
29
|
-
return
|
|
30
|
-
})}
|
|
31
|
-
</View>);
|
|
28
|
+
return _jsx(Component, {}, 'emptyPlaceholder:' + componentKey);
|
|
29
|
+
}) }));
|
|
32
30
|
};
|
|
33
31
|
//# sourceMappingURL=Content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Content.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAG7D,MAAM,QAAQ,GAAmD;IAC/D,YAAY,EAAE,4BAA4B;IAC1C,IAAI,EAAE,oBAAoB;IAC1B,MAAM,EAAE,sBAAsB;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAE,EAAE;IAC/E,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,0BAA0B,EAAE,CAAA;IAE/D,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAC,uBAAuB,KAAG,CAAA;IACpC,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,YAAG,QAAQ,GAAQ,CAAA;IACvD,CAAC;IAED,OAAO,CACL,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,YACxB,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;YACxB,MAAM,SAAS,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAA;YAExC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,CAAC,iCAAiC,YAAY,yBAAyB,CAAC,CAAA;gBACnF,OAAO,IAAI,CAAA;YACb,CAAC;YAED,OAAO,KAAC,SAAS,MAAM,mBAAmB,GAAG,YAAY,CAAI,CAAA;QAC/D,CAAC,CAAC,GACG,CACR,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EmptyPlaceholderIllustrationProps } from '../types';
|
|
3
|
-
export declare const EmptyPlaceholderIllustration: (props: EmptyPlaceholderIllustrationProps) => JSX.Element;
|
|
2
|
+
export declare const EmptyPlaceholderIllustration: (props: EmptyPlaceholderIllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Icon } from '../../Icon';
|
|
3
3
|
import { Image } from '../../Image';
|
|
4
4
|
import { useEmptyPlaceholderContext } from '../context';
|
|
5
5
|
export const EmptyPlaceholderIllustration = (props) => {
|
|
6
6
|
const { icon, image, styles } = useEmptyPlaceholderContext(props);
|
|
7
|
-
return
|
|
8
|
-
{icon ? <Icon name={icon} style={styles.icon}/> : null}
|
|
9
|
-
{image ? <Image source={image} style={styles.image}/> : null}
|
|
10
|
-
</>;
|
|
7
|
+
return _jsxs(_Fragment, { children: [icon ? _jsx(Icon, { name: icon, style: styles.icon }) : null, image ? _jsx(Image, { source: image, style: styles.image }) : null] });
|
|
11
8
|
};
|
|
12
9
|
//# sourceMappingURL=Illustration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Illustration.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Illustration.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Illustration.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Illustration.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAwC,EAAE,EAAE;IACvF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAA;IAEjE,OAAO,8BACJ,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAe,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACjE,KAAK,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EmptyPlaceholderInfoProps } from '../types';
|
|
3
|
-
export declare const EmptyPlaceholderInfo: (props: EmptyPlaceholderInfoProps) => JSX.Element;
|
|
2
|
+
export declare const EmptyPlaceholderInfo: (props: EmptyPlaceholderInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Text } from '../../Text';
|
|
3
3
|
import { useEmptyPlaceholderContext } from '../context';
|
|
4
4
|
export const EmptyPlaceholderInfo = (props) => {
|
|
5
5
|
const { title, description, styles, itemName } = useEmptyPlaceholderContext(props);
|
|
6
6
|
const emptyText = title || (itemName && `No ${itemName} found.`);
|
|
7
|
-
return
|
|
8
|
-
{title || itemName ? <Text text={emptyText} style={styles.title}/> : null}
|
|
9
|
-
{description ? <Text text={description} style={styles.description}/> : null}
|
|
10
|
-
</>;
|
|
7
|
+
return _jsxs(_Fragment, { children: [title || itemName ? _jsx(Text, { text: emptyText, style: styles.title }) : null, description ? _jsx(Text, { text: description, style: styles.description }) : null] });
|
|
11
8
|
};
|
|
12
9
|
//# sourceMappingURL=Info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Info.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Info.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAE,EAAE;IACvE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAA;IAElF,MAAM,SAAS,GAAG,KAAK,IAAI,CAAC,QAAQ,IAAI,MAAM,QAAQ,SAAS,CAAC,CAAA;IAEhE,OAAO,8BACJ,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACzE,WAAW,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,IAC3E,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const EmptyPlaceholderLoading: () => JSX.Element;
|
|
1
|
+
export declare const EmptyPlaceholderLoading: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { useCompositionStyles } from '@codeleap/styles';
|
|
3
4
|
import { useEmptyPlaceholderContext } from '../context';
|
|
@@ -9,10 +10,8 @@ export const EmptyPlaceholderLoading = () => {
|
|
|
9
10
|
if (!loading)
|
|
10
11
|
return null;
|
|
11
12
|
if (React.isValidElement(LoadingComponent)) {
|
|
12
|
-
return
|
|
13
|
+
return _jsx(_Fragment, { children: LoadingComponent });
|
|
13
14
|
}
|
|
14
|
-
return (
|
|
15
|
-
<ActivityIndicator style={activityIndicatorStyles}/>
|
|
16
|
-
</View>);
|
|
15
|
+
return (_jsx(View, { style: [styles.wrapper, styles['wrapper:loading']], children: _jsx(ActivityIndicator, { style: activityIndicatorStyles }) }));
|
|
17
16
|
};
|
|
18
17
|
//# sourceMappingURL=Loading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../../src/components/EmptyPlaceholder/components/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAA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AAA;IAChC,CAAC;IAED,OAAO,CACL,KAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC,YACtD,KAAC,iBAAiB,IAAC,KAAK,EAAE,uBAAuB,GAAI,GAChD,CACR,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EmptyPlaceholderCtxValue } from './types';
|
|
3
2
|
export declare const EmptyPlaceholderContext: import("react").Context<EmptyPlaceholderCtxValue>;
|
|
4
3
|
export declare const useEmptyPlaceholderContext: <T = EmptyPlaceholderCtxValue>(providedProps?: Partial<T>) => {
|
|
5
4
|
description?: string;
|
|
6
5
|
onPress?: import("@codeleap/types").AnyFunction;
|
|
7
6
|
loading?: boolean;
|
|
7
|
+
image?: import("../Image").ImageProps["source"];
|
|
8
8
|
title?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
order?: ("info" | "button" | "illustration")[];
|
|
9
|
+
icon?: import("@codeleap/styles").AppIcon;
|
|
10
|
+
order?: Array<"info" | "illustration" | "button">;
|
|
12
11
|
buttonText?: string;
|
|
13
12
|
itemName?: string;
|
|
14
|
-
LoadingComponent?: import("react").ReactElement
|
|
13
|
+
LoadingComponent?: import("react").ReactElement;
|
|
15
14
|
styles: import("@codeleap/styles").StyleRecord<import("./styles").EmptyPlaceholderComposition>;
|
|
16
15
|
} & Partial<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/components/EmptyPlaceholder/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,EAA8B,CAAC,CAAA;AAEpF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAA+B,gBAA4B,EAAE,EAAE,EAAE;IACzG,MAAM,GAAG,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAA;IAE/C,IAAI,CAAC,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/components/EmptyPlaceholder/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,EAA8B,CAAC,CAAA;AAEpF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAA+B,gBAA4B,EAAE,EAAE,EAAE;IACzG,MAAM,GAAG,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAA;IAE/C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAA;IACH,CAAC;IAED,OAAO;QACL,GAAG,GAAG;QACN,GAAG,aAAa;KACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EmptyPlaceholderProps } from './types';
|
|
3
2
|
import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles';
|
|
4
3
|
export * from './styles';
|
|
5
4
|
export * from './types';
|
|
6
5
|
export declare const EmptyPlaceholder: {
|
|
7
|
-
(props: EmptyPlaceholderProps): JSX.Element;
|
|
6
|
+
(props: EmptyPlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
styleRegistryName: string;
|
|
9
8
|
elements: string[];
|
|
10
9
|
rootElement: string;
|
|
11
|
-
Info: (props: import("./types").EmptyPlaceholderInfoProps) => JSX.Element;
|
|
12
|
-
Button: (props: import("./types").EmptyPlaceholderButtonProps) => JSX.Element;
|
|
13
|
-
Illustration: (props: import("./types").EmptyPlaceholderIllustrationProps) => JSX.Element;
|
|
14
|
-
withVariantTypes<S extends AnyRecord>(styles: S): ((props: StyledComponentProps<EmptyPlaceholderProps,
|
|
10
|
+
Info: (props: import("./types").EmptyPlaceholderInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Button: (props: import("./types").EmptyPlaceholderButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Illustration: (props: import("./types").EmptyPlaceholderIllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
withVariantTypes<S extends AnyRecord>(styles: S): ((props: StyledComponentProps<EmptyPlaceholderProps, typeof styles>) => IJSX) & Pick<typeof EmptyPlaceholder, "Button" | "Illustration" | "Info">;
|
|
15
14
|
defaultProps: Partial<EmptyPlaceholderProps>;
|
|
16
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { MobileStyleRegistry } from '../../Registry';
|
|
3
3
|
import { useStylesFor } from '../../hooks';
|
|
4
4
|
import { EmptyPlaceholderContext } from './context';
|
|
@@ -14,11 +14,7 @@ export const EmptyPlaceholder = (props) => {
|
|
|
14
14
|
...props,
|
|
15
15
|
};
|
|
16
16
|
const styles = useStylesFor(EmptyPlaceholder.styleRegistryName, style);
|
|
17
|
-
return (
|
|
18
|
-
<EmptyPlaceholderContent>
|
|
19
|
-
{children}
|
|
20
|
-
</EmptyPlaceholderContent>
|
|
21
|
-
</EmptyPlaceholderContext.Provider>);
|
|
17
|
+
return (_jsx(EmptyPlaceholderContext.Provider, { value: { ...contextValue, styles }, children: _jsx(EmptyPlaceholderContent, { children: children }) }));
|
|
22
18
|
};
|
|
23
19
|
EmptyPlaceholder.styleRegistryName = 'EmptyPlaceholder';
|
|
24
20
|
EmptyPlaceholder.elements = ['wrapper', 'loader', 'title', 'description', 'image', 'icon'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/EmptyPlaceholder/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"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CAAC,YAAY,GAAG,4BAA4B,CAAA;AAE5D,gBAAgB,CAAC,gBAAgB,GAAG,CAAsB,MAAS,EAAE,EAAE;IACrE,OAAO,gBAAqK,CAAA;AAC9K,CAAC,CAAA;AAED,gBAAgB,CAAC,YAAY,GAAG;IAC9B,KAAK,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC;CACR,CAAA;AAEnC,mBAAmB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Options } from 'react-native-image-crop-picker';
|
|
3
3
|
import { FileInputImageSource, FileInputProps, FileInputRef, FileResult } from './types';
|
|
4
4
|
export * from './types';
|
|
5
|
-
export declare const FileInput: ((props: FileInputProps) =>
|
|
5
|
+
export declare const FileInput: ((props: FileInputProps) => React.ReactElement) & {
|
|
6
6
|
defaultProps: Partial<FileInputProps>;
|
|
7
7
|
};
|
|
8
8
|
export declare const useFileInput: () => {
|
|
@@ -26,7 +26,7 @@ const _FileInput = forwardRef((fileInputProps, ref) => {
|
|
|
26
26
|
...fileInputProps,
|
|
27
27
|
...FileInput.defaultProps,
|
|
28
28
|
};
|
|
29
|
-
const resolveWithFile = useRef();
|
|
29
|
+
const resolveWithFile = useRef(undefined);
|
|
30
30
|
const handleResolve = (files) => {
|
|
31
31
|
if (resolveWithFile.current) {
|
|
32
32
|
resolveWithFile?.current?.(files);
|