@impulse-ui-native/data-state 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ImpulseUI Native contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, PropsWithChildren } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
  import { PressableProps, ViewStyle } from 'react-native';
4
- import { IconProps } from '@impulse-ui-native/icon';
5
+ import { IconProps } from '@impulse-ui-native/icon/types';
5
6
  import { ViewProps } from '@impulse-ui-native/primitives';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
8
8
  interface StateActionsFooterProps extends ViewProps {
9
9
  onPressPrimaryAction: PressableProps["onPress"];
@@ -37,11 +37,11 @@ interface DataViewProps extends ViewProps {
37
37
  emptyViewProps: StateViewProps;
38
38
  }
39
39
 
40
- declare const ErrorView: react.NamedExoticComponent<ErrorViewProps>;
40
+ declare const ErrorView: react.MemoExoticComponent<(props: ErrorViewProps) => react_jsx_runtime.JSX.Element>;
41
41
 
42
- declare const EmptyView: react.NamedExoticComponent<EmptyViewProps>;
42
+ declare const EmptyView: react.MemoExoticComponent<(props: EmptyViewProps) => react_jsx_runtime.JSX.Element>;
43
43
 
44
- declare const LoadingView: react.NamedExoticComponent<LoadingViewProps>;
44
+ declare const LoadingView: react.MemoExoticComponent<(props: LoadingViewProps) => react_jsx_runtime.JSX.Element>;
45
45
 
46
46
  declare const DataView: react.MemoExoticComponent<(props: PropsWithChildren<DataViewProps>) => react_jsx_runtime.JSX.Element>;
47
47
 
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ import { useComponentsTokens as useComponentsTokens5 } from "@impulse-ui-native/
136
136
 
137
137
  // src/components/empty-details.tsx
138
138
  import { memo as memo5 } from "react";
139
- import { EmptyIcon } from "@impulse-ui-native/icon";
139
+ import { EmptyIcon } from "@impulse-ui-native/icon/icons/empty";
140
140
  import { Typography, View as View5 } from "@impulse-ui-native/primitives";
141
141
  import { useComponentsTokens as useComponentsTokens3 } from "@impulse-ui-native/theme";
142
142
 
@@ -199,7 +199,7 @@ var EmptyDetails = memo5(function EmptyDetails2(props) {
199
199
 
200
200
  // src/components/error-details.tsx
201
201
  import { memo as memo6 } from "react";
202
- import { CloudXIcon } from "@impulse-ui-native/icon";
202
+ import { CloudXIcon } from "@impulse-ui-native/icon/icons/cloud-x";
203
203
  import { Typography as Typography2, View as View6 } from "@impulse-ui-native/primitives";
204
204
  import { useComponentsTokens as useComponentsTokens4 } from "@impulse-ui-native/theme";
205
205
  import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/error-view.tsx","../src/components/empty-view.tsx","../src/components/loading-view.tsx","../src/components/data-view.tsx","../src/components/empty-details.tsx","../src/components/state-actions-footer.tsx","../src/components/error-details.tsx"],"sourcesContent":["import { memo } from \"react\";\r\n\r\nimport { View } from \"@impulse-ui-native/primitives\";\r\n\r\nimport { ErrorViewProps } from \"../types\";\r\n\r\nexport const ErrorView = memo(function ErrorView(props: ErrorViewProps) {\r\n const {\r\n variant,\r\n text,\r\n error,\r\n onPressPrimaryAction,\r\n onPressSecondaryAction,\r\n primaryActionLabel,\r\n secondaryActionLabel,\r\n contentContainerStyle,\r\n children,\r\n ...rest\r\n } = props;\r\n\r\n return (\r\n <View {...rest}>\r\n <View style={contentContainerStyle}>{children}</View>\r\n </View>\r\n );\r\n});\r\n","import { memo } from \"react\";\r\n\r\nimport { View } from \"@impulse-ui-native/primitives\";\r\n\r\nimport { EmptyViewProps } from \"../types\";\r\n\r\nexport const EmptyView = memo(function EmptyView(props: EmptyViewProps) {\r\n const {\r\n variant,\r\n text,\r\n isEmpty,\r\n onPressPrimaryAction,\r\n primaryActionLabel,\r\n onPressSecondaryAction,\r\n secondaryActionLabel,\r\n contentContainerStyle,\r\n children,\r\n ...rest\r\n } = props;\r\n\r\n return (\r\n <View {...rest}>\r\n <View style={contentContainerStyle}>{children}</View>\r\n </View>\r\n );\r\n});\r\n","import { memo, useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { LayoutChangeEvent, StyleProp, ViewStyle } from \"react-native\";\r\nimport Animated, {\r\n Easing,\r\n useAnimatedStyle,\r\n useSharedValue,\r\n withTiming,\r\n} from \"react-native-reanimated\";\r\nimport { scheduleOnRN } from \"react-native-worklets\";\r\n\r\nimport { View } from \"@impulse-ui-native/primitives\";\r\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\r\n\r\nimport { LoadingViewProps } from \"../types\";\r\n\r\nexport const LoadingView = memo(function LoadingView(props: LoadingViewProps) {\r\n const {\r\n loading,\r\n children,\r\n LoadingComponent,\r\n contentContainerStyle,\r\n style,\r\n ...rest\r\n } = props;\r\n\r\n const tokens = useComponentsTokens().dataState.loading;\r\n\r\n const [shouldMountLoader, setShouldMountLoader] = useState(loading);\r\n const [loaderHeight, setLoaderHeight] = useState(0);\r\n\r\n const loaderOpacity = useSharedValue(loading ? 1 : 0);\r\n const childrenOpacity = useSharedValue(loading ? 0 : 1);\r\n\r\n const onLoaderLayout = useCallback((event: LayoutChangeEvent) => {\r\n const height = event.nativeEvent.layout.height;\r\n\r\n setLoaderHeight((prev) => {\r\n if (prev === height) {\r\n return prev;\r\n }\r\n\r\n return height;\r\n });\r\n }, []);\r\n\r\n const containerStyle = useMemo<StyleProp<ViewStyle>>(\r\n () => [\r\n {\r\n position: \"relative\",\r\n minHeight: shouldMountLoader ? loaderHeight : undefined,\r\n },\r\n style,\r\n ],\r\n [loaderHeight, shouldMountLoader, style],\r\n );\r\n\r\n const loaderStyles = useAnimatedStyle(() => ({\r\n position: \"absolute\",\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n top: 0,\r\n zIndex: tokens.loaderZIndex,\r\n opacity: loaderOpacity.value,\r\n }));\r\n\r\n const childrenStyles = useAnimatedStyle(() => ({\r\n opacity: childrenOpacity.value,\r\n }));\r\n\r\n const childrenContainerStyles = useMemo(\r\n () => [contentContainerStyle, childrenStyles],\r\n [contentContainerStyle, childrenStyles],\r\n );\r\n\r\n useEffect(() => {\r\n if (loading) {\r\n setShouldMountLoader(true);\r\n\r\n loaderOpacity.value = 1;\r\n childrenOpacity.value = 0;\r\n\r\n return;\r\n }\r\n\r\n loaderOpacity.value = withTiming(\r\n 0,\r\n {\r\n duration: tokens.transitionDuration,\r\n easing: Easing.linear,\r\n },\r\n (finished) => {\r\n if (finished) {\r\n scheduleOnRN(setShouldMountLoader, false);\r\n }\r\n },\r\n );\r\n\r\n childrenOpacity.value = withTiming(1, {\r\n duration: tokens.transitionDuration,\r\n easing: Easing.linear,\r\n });\r\n }, [loading, loaderOpacity, childrenOpacity, tokens.transitionDuration]);\r\n\r\n return (\r\n <View {...rest} style={containerStyle}>\r\n <Animated.View style={childrenContainerStyles}>{children}</Animated.View>\r\n\r\n {shouldMountLoader ? (\r\n <Animated.View style={loaderStyles} pointerEvents=\"auto\">\r\n <View onLayout={onLoaderLayout}>\r\n <LoadingComponent />\r\n </View>\r\n </Animated.View>\r\n ) : null}\r\n </View>\r\n );\r\n});\r\n","import { memo, PropsWithChildren, useMemo } from \"react\";\r\n\r\nimport { View } from \"@impulse-ui-native/primitives\";\r\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\r\n\r\nimport { DataViewProps } from \"../types\";\r\nimport { EmptyDetails } from \"./empty-details\";\r\nimport { ErrorDetails } from \"./error-details\";\r\nimport { LoadingView } from \"./loading-view\";\r\n\r\nexport const DataView = memo((props: PropsWithChildren<DataViewProps>) => {\r\n const tokens = useComponentsTokens().dataState;\r\n const {\r\n error,\r\n isEmpty,\r\n loading,\r\n errorViewProps,\r\n emptyViewProps,\r\n LoadingComponent,\r\n contentContainerStyle,\r\n children,\r\n ...rest\r\n } = props;\r\n\r\n const content = useMemo(() => {\r\n if (!error && !isEmpty) {\r\n return null;\r\n }\r\n\r\n return (\r\n <View\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n zIndex={tokens.content.zIndex}\r\n >\r\n {error ? <ErrorDetails {...errorViewProps} /> : null}\r\n {isEmpty ? <EmptyDetails {...emptyViewProps} /> : null}\r\n </View>\r\n );\r\n }, [error, isEmpty, errorViewProps, emptyViewProps, tokens.content.zIndex]);\r\n\r\n return (\r\n <LoadingView\r\n {...rest}\r\n LoadingComponent={LoadingComponent}\r\n contentContainerStyle={contentContainerStyle}\r\n loading={loading}\r\n >\r\n {!error && !isEmpty && !loading ? children : null}\r\n {content}\r\n </LoadingView>\r\n );\r\n});\r\n","import { memo } from \"react\";\r\n\r\nimport { EmptyIcon } from \"@impulse-ui-native/icon\";\r\nimport { Typography, View } from \"@impulse-ui-native/primitives\";\r\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\r\n\r\nimport { StateViewProps } from \"../types\";\r\nimport { StateActionsFooter } from \"./state-actions-footer\";\r\n\r\nexport const EmptyDetails = memo(function EmptyDetails(props: StateViewProps) {\r\n const tokens = useComponentsTokens().dataState.details;\r\n\r\n return (\r\n <View alignItems=\"center\" justifyContent=\"center\" gap={tokens.gap}>\r\n <EmptyIcon\r\n width={tokens.iconSize}\r\n height={tokens.iconSize}\r\n variant={props.variant}\r\n color={tokens.iconColor}\r\n />\r\n <Typography.Body>{props.text}</Typography.Body>\r\n <StateActionsFooter\r\n onPressPrimaryAction={props.onPressPrimaryAction}\r\n primaryActionLabel={props.primaryActionLabel}\r\n onPressSecondaryAction={props.onPressSecondaryAction}\r\n secondaryActionLabel={props.secondaryActionLabel}\r\n />\r\n </View>\r\n );\r\n});\r\n","import { memo } from \"react\";\r\n\r\nimport { Button, View } from \"@impulse-ui-native/primitives\";\r\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\r\n\r\nimport { StateActionsFooterProps } from \"../types\";\r\n\r\nexport const StateActionsFooter = memo(function StateActionsFooter(\r\n props: StateActionsFooterProps,\r\n) {\r\n const tokens = useComponentsTokens().dataState.actionsFooter;\r\n const {\r\n onPressPrimaryAction,\r\n onPressSecondaryAction,\r\n primaryActionLabel,\r\n secondaryActionLabel,\r\n ...rest\r\n } = props;\r\n\r\n return (\r\n <View\r\n flexDirection=\"row\"\r\n gap={tokens.gap}\r\n justifyContent=\"center\"\r\n alignItems=\"center\"\r\n {...rest}\r\n >\r\n <Button onPress={props.onPressPrimaryAction}>\r\n {props.primaryActionLabel}\r\n </Button>\r\n {props.onPressSecondaryAction ? (\r\n <Button variant=\"outlined\" onPress={props.onPressSecondaryAction}>\r\n {props.secondaryActionLabel}\r\n </Button>\r\n ) : null}\r\n </View>\r\n );\r\n});\r\n","import { memo } from \"react\";\r\n\r\nimport { CloudXIcon } from \"@impulse-ui-native/icon\";\r\nimport { Typography, View } from \"@impulse-ui-native/primitives\";\r\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\r\n\r\nimport { StateViewProps } from \"../types\";\r\nimport { StateActionsFooter } from \"./state-actions-footer\";\r\n\r\nexport const ErrorDetails = memo(function ErrorDetails(props: StateViewProps) {\r\n const tokens = useComponentsTokens().dataState.details;\r\n\r\n return (\r\n <View alignItems=\"center\" justifyContent=\"center\" gap={tokens.gap}>\r\n <CloudXIcon\r\n width={tokens.iconSize}\r\n height={tokens.iconSize}\r\n variant={props.variant}\r\n color={tokens.iconColor}\r\n />\r\n <Typography.Body>{props.text}</Typography.Body>\r\n <StateActionsFooter\r\n onPressPrimaryAction={props.onPressPrimaryAction}\r\n primaryActionLabel={props.primaryActionLabel}\r\n onPressSecondaryAction={props.onPressSecondaryAction}\r\n secondaryActionLabel={props.secondaryActionLabel}\r\n />\r\n </View>\r\n );\r\n});\r\n"],"mappings":";AAAA,SAAS,YAAY;AAErB,SAAS,YAAY;AAoBf;AAhBC,IAAM,YAAY,KAAK,SAASA,WAAU,OAAuB;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE,oBAAC,QAAM,GAAG,MACR,8BAAC,QAAK,OAAO,uBAAwB,UAAS,GAChD;AAEJ,CAAC;;;ACzBD,SAAS,QAAAC,aAAY;AAErB,SAAS,QAAAC,aAAY;AAoBf,gBAAAC,YAAA;AAhBC,IAAM,YAAYF,MAAK,SAASG,WAAU,OAAuB;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE,gBAAAD,KAACD,OAAA,EAAM,GAAG,MACR,0BAAAC,KAACD,OAAA,EAAK,OAAO,uBAAwB,UAAS,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;AAAA,EAEJ,GAAG,CAAC,OAAO,SAAS,gBAAgB,gBAAgB,OAAO,QAAQ,MAAM,CAAC;AAE1E,SACE,gBAAAC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MAEC;AAAA,SAAC,SAAS,CAAC,WAAW,CAAC,UAAU,WAAW;AAAA,QAC5C;AAAA;AAAA;AAAA,EACH;AAEJ,CAAC;","names":["ErrorView","memo","View","jsx","EmptyView","memo","View","jsx","LoadingView","memo","useMemo","View","useComponentsTokens","memo","View","useComponentsTokens","memo","View","useComponentsTokens","jsx","jsxs","StateActionsFooter","jsx","jsxs","memo","EmptyDetails","useComponentsTokens","View","memo","Typography","View","useComponentsTokens","jsx","jsxs","memo","ErrorDetails","useComponentsTokens","View","Typography","jsx","jsxs","memo","useComponentsTokens","useMemo","View"]}
1
+ {"version":3,"sources":["../src/components/error-view.tsx","../src/components/empty-view.tsx","../src/components/loading-view.tsx","../src/components/data-view.tsx","../src/components/empty-details.tsx","../src/components/state-actions-footer.tsx","../src/components/error-details.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { View } from \"@impulse-ui-native/primitives\";\n\nimport { ErrorViewProps } from \"../types\";\n\nexport const ErrorView = memo(function ErrorView(props: ErrorViewProps) {\n const {\n variant,\n text,\n error,\n onPressPrimaryAction,\n onPressSecondaryAction,\n primaryActionLabel,\n secondaryActionLabel,\n contentContainerStyle,\n children,\n ...rest\n } = props;\n\n return (\n <View {...rest}>\n <View style={contentContainerStyle}>{children}</View>\n </View>\n );\n});\n","import { memo } from \"react\";\n\nimport { View } from \"@impulse-ui-native/primitives\";\n\nimport { EmptyViewProps } from \"../types\";\n\nexport const EmptyView = memo(function EmptyView(props: EmptyViewProps) {\n const {\n variant,\n text,\n isEmpty,\n onPressPrimaryAction,\n primaryActionLabel,\n onPressSecondaryAction,\n secondaryActionLabel,\n contentContainerStyle,\n children,\n ...rest\n } = props;\n\n return (\n <View {...rest}>\n <View style={contentContainerStyle}>{children}</View>\n </View>\n );\n});\n","import { memo, useCallback, useEffect, useMemo, useState } from \"react\";\nimport { LayoutChangeEvent, StyleProp, ViewStyle } from \"react-native\";\nimport Animated, {\n Easing,\n useAnimatedStyle,\n useSharedValue,\n withTiming,\n} from \"react-native-reanimated\";\nimport { scheduleOnRN } from \"react-native-worklets\";\n\nimport { View } from \"@impulse-ui-native/primitives\";\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\n\nimport { LoadingViewProps } from \"../types\";\n\nexport const LoadingView = memo(function LoadingView(props: LoadingViewProps) {\n const {\n loading,\n children,\n LoadingComponent,\n contentContainerStyle,\n style,\n ...rest\n } = props;\n\n const tokens = useComponentsTokens().dataState.loading;\n\n const [shouldMountLoader, setShouldMountLoader] = useState(loading);\n const [loaderHeight, setLoaderHeight] = useState(0);\n\n const loaderOpacity = useSharedValue(loading ? 1 : 0);\n const childrenOpacity = useSharedValue(loading ? 0 : 1);\n\n const onLoaderLayout = useCallback((event: LayoutChangeEvent) => {\n const height = event.nativeEvent.layout.height;\n\n setLoaderHeight((prev) => {\n if (prev === height) {\n return prev;\n }\n\n return height;\n });\n }, []);\n\n const containerStyle = useMemo<StyleProp<ViewStyle>>(\n () => [\n {\n position: \"relative\",\n minHeight: shouldMountLoader ? loaderHeight : undefined,\n },\n style,\n ],\n [loaderHeight, shouldMountLoader, style],\n );\n\n const loaderStyles = useAnimatedStyle(() => ({\n position: \"absolute\",\n bottom: 0,\n left: 0,\n right: 0,\n top: 0,\n zIndex: tokens.loaderZIndex,\n opacity: loaderOpacity.value,\n }));\n\n const childrenStyles = useAnimatedStyle(() => ({\n opacity: childrenOpacity.value,\n }));\n\n const childrenContainerStyles = useMemo(\n () => [contentContainerStyle, childrenStyles],\n [contentContainerStyle, childrenStyles],\n );\n\n useEffect(() => {\n if (loading) {\n setShouldMountLoader(true);\n\n loaderOpacity.value = 1;\n childrenOpacity.value = 0;\n\n return;\n }\n\n loaderOpacity.value = withTiming(\n 0,\n {\n duration: tokens.transitionDuration,\n easing: Easing.linear,\n },\n (finished) => {\n if (finished) {\n scheduleOnRN(setShouldMountLoader, false);\n }\n },\n );\n\n childrenOpacity.value = withTiming(1, {\n duration: tokens.transitionDuration,\n easing: Easing.linear,\n });\n }, [loading, loaderOpacity, childrenOpacity, tokens.transitionDuration]);\n\n return (\n <View {...rest} style={containerStyle}>\n <Animated.View style={childrenContainerStyles}>{children}</Animated.View>\n\n {shouldMountLoader ? (\n <Animated.View style={loaderStyles} pointerEvents=\"auto\">\n <View onLayout={onLoaderLayout}>\n <LoadingComponent />\n </View>\n </Animated.View>\n ) : null}\n </View>\n );\n});\n","import { memo, PropsWithChildren, useMemo } from \"react\";\n\nimport { View } from \"@impulse-ui-native/primitives\";\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\n\nimport { DataViewProps } from \"../types\";\nimport { EmptyDetails } from \"./empty-details\";\nimport { ErrorDetails } from \"./error-details\";\nimport { LoadingView } from \"./loading-view\";\n\nexport const DataView = memo((props: PropsWithChildren<DataViewProps>) => {\n const tokens = useComponentsTokens().dataState;\n const {\n error,\n isEmpty,\n loading,\n errorViewProps,\n emptyViewProps,\n LoadingComponent,\n contentContainerStyle,\n children,\n ...rest\n } = props;\n\n const content = useMemo(() => {\n if (!error && !isEmpty) {\n return null;\n }\n\n return (\n <View\n alignItems=\"center\"\n justifyContent=\"center\"\n zIndex={tokens.content.zIndex}\n >\n {error ? <ErrorDetails {...errorViewProps} /> : null}\n {isEmpty ? <EmptyDetails {...emptyViewProps} /> : null}\n </View>\n );\n }, [error, isEmpty, errorViewProps, emptyViewProps, tokens.content.zIndex]);\n\n return (\n <LoadingView\n {...rest}\n LoadingComponent={LoadingComponent}\n contentContainerStyle={contentContainerStyle}\n loading={loading}\n >\n {!error && !isEmpty && !loading ? children : null}\n {content}\n </LoadingView>\n );\n});\n","import { memo } from \"react\";\n\nimport { EmptyIcon } from \"@impulse-ui-native/icon/icons/empty\";\nimport { Typography, View } from \"@impulse-ui-native/primitives\";\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\n\nimport { StateViewProps } from \"../types\";\nimport { StateActionsFooter } from \"./state-actions-footer\";\n\nexport const EmptyDetails = memo(function EmptyDetails(props: StateViewProps) {\n const tokens = useComponentsTokens().dataState.details;\n\n return (\n <View alignItems=\"center\" justifyContent=\"center\" gap={tokens.gap}>\n <EmptyIcon\n width={tokens.iconSize}\n height={tokens.iconSize}\n variant={props.variant}\n color={tokens.iconColor}\n />\n <Typography.Body>{props.text}</Typography.Body>\n <StateActionsFooter\n onPressPrimaryAction={props.onPressPrimaryAction}\n primaryActionLabel={props.primaryActionLabel}\n onPressSecondaryAction={props.onPressSecondaryAction}\n secondaryActionLabel={props.secondaryActionLabel}\n />\n </View>\n );\n});\n","import { memo } from \"react\";\n\nimport { Button, View } from \"@impulse-ui-native/primitives\";\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\n\nimport { StateActionsFooterProps } from \"../types\";\n\nexport const StateActionsFooter = memo(function StateActionsFooter(\n props: StateActionsFooterProps,\n) {\n const tokens = useComponentsTokens().dataState.actionsFooter;\n const {\n onPressPrimaryAction,\n onPressSecondaryAction,\n primaryActionLabel,\n secondaryActionLabel,\n ...rest\n } = props;\n\n return (\n <View\n flexDirection=\"row\"\n gap={tokens.gap}\n justifyContent=\"center\"\n alignItems=\"center\"\n {...rest}\n >\n <Button onPress={props.onPressPrimaryAction}>\n {props.primaryActionLabel}\n </Button>\n {props.onPressSecondaryAction ? (\n <Button variant=\"outlined\" onPress={props.onPressSecondaryAction}>\n {props.secondaryActionLabel}\n </Button>\n ) : null}\n </View>\n );\n});\n","import { memo } from \"react\";\n\nimport { CloudXIcon } from \"@impulse-ui-native/icon/icons/cloud-x\";\nimport { Typography, View } from \"@impulse-ui-native/primitives\";\nimport { useComponentsTokens } from \"@impulse-ui-native/theme\";\n\nimport { StateViewProps } from \"../types\";\nimport { StateActionsFooter } from \"./state-actions-footer\";\n\nexport const ErrorDetails = memo(function ErrorDetails(props: StateViewProps) {\n const tokens = useComponentsTokens().dataState.details;\n\n return (\n <View alignItems=\"center\" justifyContent=\"center\" gap={tokens.gap}>\n <CloudXIcon\n width={tokens.iconSize}\n height={tokens.iconSize}\n variant={props.variant}\n color={tokens.iconColor}\n />\n <Typography.Body>{props.text}</Typography.Body>\n <StateActionsFooter\n onPressPrimaryAction={props.onPressPrimaryAction}\n primaryActionLabel={props.primaryActionLabel}\n onPressSecondaryAction={props.onPressSecondaryAction}\n secondaryActionLabel={props.secondaryActionLabel}\n />\n </View>\n );\n});\n"],"mappings":";AAAA,SAAS,YAAY;AAErB,SAAS,YAAY;AAoBf;AAhBC,IAAM,YAAY,KAAK,SAASA,WAAU,OAAuB;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE,oBAAC,QAAM,GAAG,MACR,8BAAC,QAAK,OAAO,uBAAwB,UAAS,GAChD;AAEJ,CAAC;;;ACzBD,SAAS,QAAAC,aAAY;AAErB,SAAS,QAAAC,aAAY;AAoBf,gBAAAC,YAAA;AAhBC,IAAM,YAAYF,MAAK,SAASG,WAAU,OAAuB;AACtE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE,gBAAAD,KAACD,OAAA,EAAM,GAAG,MACR,0BAAAC,KAACD,OAAA,EAAK,OAAO,uBAAwB,UAAS,GAChD;AAEJ,CAAC;;;ACzBD,SAAS,QAAAG,OAAM,aAAa,WAAW,SAAS,gBAAgB;AAEhE,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAE7B,SAAS,QAAAC,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AAAA,SAAC,SAAS,CAAC,WAAW,CAAC,UAAU,WAAW;AAAA,QAC5C;AAAA;AAAA;AAAA,EACH;AAEJ,CAAC;","names":["ErrorView","memo","View","jsx","EmptyView","memo","View","jsx","LoadingView","memo","useMemo","View","useComponentsTokens","memo","View","useComponentsTokens","memo","View","useComponentsTokens","jsx","jsxs","StateActionsFooter","jsx","jsxs","memo","EmptyDetails","useComponentsTokens","View","memo","Typography","View","useComponentsTokens","jsx","jsxs","memo","ErrorDetails","useComponentsTokens","View","Typography","jsx","jsxs","memo","useComponentsTokens","useMemo","View"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@impulse-ui-native/data-state",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "source": "src/index.ts",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.mts",
@@ -18,24 +18,24 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "dependencies": {
21
- "@impulse-ui-native/primitives": "2.0.1",
22
- "@impulse-ui-native/theme": "2.0.1",
23
- "@impulse-ui-native/icon": "2.0.1",
24
- "@impulse-ui-native/skeleton": "2.0.1",
25
- "@impulse-ui-native/core": "2.0.1"
21
+ "@impulse-ui-native/core": "2.1.0",
22
+ "@impulse-ui-native/primitives": "2.1.0",
23
+ "@impulse-ui-native/icon": "2.1.0",
24
+ "@impulse-ui-native/skeleton": "2.1.0",
25
+ "@impulse-ui-native/theme": "2.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/react": "~19.2.14",
29
29
  "eslint": "^9.38.0",
30
30
  "prettier": "^3.6.2",
31
- "react": "19.2.0",
32
- "react-native": "0.83.6",
33
- "react-native-reanimated": "4.2.1",
34
- "react-native-worklets": "0.7.4",
35
- "typescript": "~5.9.2",
31
+ "react": "19.2.3",
32
+ "react-native": "0.86.2",
33
+ "react-native-reanimated": "4.5.1",
34
+ "react-native-worklets": "0.10.1",
35
+ "typescript": "~6.0.3",
36
36
  "@impulse-ui-native/eslint-config": "1.0.0",
37
- "@impulse-ui-native/tsconfig": "1.0.0",
38
- "@impulse-ui-native/prettier-config": "1.0.0"
37
+ "@impulse-ui-native/prettier-config": "1.0.0",
38
+ "@impulse-ui-native/tsconfig": "1.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18",