@reillymc/react-native-components 0.11.6 → 0.12.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/lib/components/action/Action.js +1 -1
- package/lib/components/action/Action.styles.js +1 -1
- package/lib/components/action/ActionBase.js +1 -1
- package/lib/components/action/ActionBase.styles.js +1 -0
- package/lib/components/action/IconAction.js +1 -1
- package/lib/components/action/IconAction.styles.js +1 -1
- package/lib/components/action/IconActionBase.js +1 -1
- package/lib/components/action/IconActionBase.styles.js +1 -1
- package/lib/components/action/StateTint.js +1 -0
- package/lib/components/action/StateTint.styles.js +1 -0
- package/lib/components/action/index.js +1 -1
- package/lib/components/alert/AlertIndicator.styles.js +1 -1
- package/lib/components/avatar/Avatar.js +1 -1
- package/lib/components/avatar/Avatar.styles.js +1 -1
- package/lib/components/button/Button.js +1 -1
- package/lib/components/button/Button.styles.js +1 -1
- package/lib/components/button/ButtonBase.js +1 -1
- package/lib/components/button/ButtonBase.styles.js +1 -1
- package/lib/components/button/IconButton.js +1 -1
- package/lib/components/button/IconButton.styles.js +1 -1
- package/lib/components/button/IconButtonBase.js +1 -1
- package/lib/components/button/IconButtonBase.styles.js +1 -1
- package/lib/components/icon/Icon.styles.js +1 -1
- package/lib/components/icon/IconBase.styles.js +1 -1
- package/lib/components/icon/index.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/input/InputAction.js +1 -1
- package/lib/components/input/InputAction.styles.js +1 -1
- package/lib/components/input/InputBase.js +1 -1
- package/lib/components/input/InputBase.styles.js +1 -1
- package/lib/components/input/InputScaffold.js +1 -1
- package/lib/components/input/InputScaffold.styles.js +1 -1
- package/lib/components/input/SelectionInput.js +1 -1
- package/lib/components/input/SelectionInput.styles.js +1 -1
- package/lib/components/input/ToggleInput.js +1 -1
- package/lib/components/input/ToggleInput.styles.js +1 -1
- package/lib/components/listItem/ListItem.js +1 -1
- package/lib/components/menu/Menu.js +1 -1
- package/lib/components/menu/Menu.styles.js +1 -1
- package/lib/components/menu/MenuItem.js +1 -1
- package/lib/components/rating/Rating.styles.js +1 -1
- package/lib/components/surface/InteractionSurface.js +1 -0
- package/lib/components/surface/StateLayer.js +1 -0
- package/lib/components/surface/StateLayer.styles.js +1 -0
- package/lib/components/surface/index.js +1 -0
- package/lib/components/swipe/SwipeAction.js +1 -1
- package/lib/components/tag/Tag.js +1 -1
- package/lib/components/tag/TagIcon.js +1 -1
- package/lib/components/text/Text.styles.js +1 -1
- package/lib/components/text/index.js +1 -1
- package/lib/components/toast/Toast.js +1 -1
- package/lib/components/toast/Toast.styles.js +1 -1
- package/lib/hooks/useTheme.js +1 -1
- package/lib/hooks/useThemedStyles.js +1 -1
- package/lib/providers/ThemeContext.js +1 -1
- package/lib/providers/ThemeProvider.js +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/theme/palette.js +1 -0
- package/lib/theme/styles.js +1 -1
- package/lib/theme/theme.js +1 -1
- package/lib/types/components/action/Action.d.ts +2 -2
- package/lib/types/components/action/Action.d.ts.map +1 -1
- package/lib/types/components/action/Action.styles.d.ts.map +1 -1
- package/lib/types/components/action/ActionBase.d.ts +12 -4
- package/lib/types/components/action/ActionBase.d.ts.map +1 -1
- package/lib/types/components/action/ActionBase.styles.d.ts +3 -0
- package/lib/types/components/action/ActionBase.styles.d.ts.map +1 -0
- package/lib/types/components/action/IconAction.d.ts +3 -12
- package/lib/types/components/action/IconAction.d.ts.map +1 -1
- package/lib/types/components/action/IconAction.styles.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.d.ts +5 -10
- package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -1
- package/lib/types/components/action/StateTint.d.ts +13 -0
- package/lib/types/components/action/StateTint.d.ts.map +1 -0
- package/lib/types/components/action/StateTint.styles.d.ts +3 -0
- package/lib/types/components/action/StateTint.styles.d.ts.map +1 -0
- package/lib/types/components/action/index.d.ts +2 -1
- package/lib/types/components/action/index.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/types/components/button/Button.d.ts +15 -6
- package/lib/types/components/button/Button.d.ts.map +1 -1
- package/lib/types/components/button/Button.styles.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.d.ts +3 -4
- package/lib/types/components/button/ButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.d.ts +7 -8
- package/lib/types/components/button/IconButton.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.d.ts +7 -4
- package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/index.d.ts +1 -1
- package/lib/types/components/button/index.d.ts.map +1 -1
- package/lib/types/components/icon/index.d.ts +0 -1
- package/lib/types/components/icon/index.d.ts.map +1 -1
- package/lib/types/components/index.d.ts +7 -5
- package/lib/types/components/index.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.d.ts +3 -2
- package/lib/types/components/input/InputAction.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.styles.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.d.ts +3 -3
- package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.d.ts +7 -3
- package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
- package/lib/types/components/surface/InteractionSurface.d.ts +7 -0
- package/lib/types/components/surface/InteractionSurface.d.ts.map +1 -0
- package/lib/types/components/surface/StateLayer.d.ts +13 -0
- package/lib/types/components/surface/StateLayer.d.ts.map +1 -0
- package/lib/types/components/surface/StateLayer.styles.d.ts +4 -0
- package/lib/types/components/surface/StateLayer.styles.d.ts.map +1 -0
- package/lib/types/components/surface/index.d.ts +3 -0
- package/lib/types/components/surface/index.d.ts.map +1 -0
- package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.d.ts.map +1 -1
- package/lib/types/components/text/Text.d.ts +2 -2
- package/lib/types/components/text/Text.d.ts.map +1 -1
- package/lib/types/components/text/index.d.ts +0 -1
- package/lib/types/components/text/index.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.d.ts +6 -3
- package/lib/types/components/toast/Toast.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.styles.d.ts +1 -1
- package/lib/types/components/toast/Toast.styles.d.ts.map +1 -1
- package/lib/types/hooks/useTheme.d.ts +6 -1
- package/lib/types/hooks/useTheme.d.ts.map +1 -1
- package/lib/types/hooks/useThemedStyles.d.ts +4 -3
- package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
- package/lib/types/providers/ThemeContext.d.ts +4 -4
- package/lib/types/providers/ThemeContext.d.ts.map +1 -1
- package/lib/types/providers/ThemeProvider.d.ts +9 -6
- package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
- package/lib/types/theme/index.d.ts +4 -3
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/palette.d.ts +28 -0
- package/lib/types/theme/palette.d.ts.map +1 -0
- package/lib/types/theme/styles.d.ts +9 -3
- package/lib/types/theme/styles.d.ts.map +1 -1
- package/lib/types/theme/theme.d.ts +7 -49
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/components/icon/InteractiveIcon.js +0 -1
- package/lib/components/icon/InteractiveIcon.styles.js +0 -1
- package/lib/components/text/InteractiveText.js +0 -1
- package/lib/components/text/InteractiveText.styles.js +0 -1
- package/lib/types/components/icon/InteractiveIcon.d.ts +0 -17
- package/lib/types/components/icon/InteractiveIcon.d.ts.map +0 -1
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts +0 -4
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +0 -1
- package/lib/types/components/text/InteractiveText.d.ts +0 -18
- package/lib/types/components/text/InteractiveText.d.ts.map +0 -1
- package/lib/types/components/text/InteractiveText.styles.d.ts +0 -4
- package/lib/types/components/text/InteractiveText.styles.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,eAAe,GAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EACH,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACvE,YAAY,EACR,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,MAAM,EACN,UAAU,EACV,UAAU,EACV,cAAc,GACjB,MAAM,UAAU,CAAC;AAClB,YAAY,EACR,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACZ,UAAU,GACb,M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W,EAChB,KAAK,YAAY,EACjB,aAAa,EACb,aAAa,GAChB,MAAM,UAAU,CAAC;AAClB,YAAY,EACR,uBAAuB,EACvB,gBAAgB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACH,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,kBAAkB,EAClB,KAAK,uBAAuB,GAC/B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,YAAY,EACR,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACT,UAAU,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACH,eAAe,EACf,IAAI,GACP,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ColorValue } from "react-native";
|
|
2
|
+
import { type IconActionBaseProps } from "../action";
|
|
2
3
|
import type { IconComponentProps } from "../icon";
|
|
3
4
|
import type { InputBaseProps } from "./InputBase";
|
|
4
5
|
export interface InputActionStyles {
|
|
5
|
-
|
|
6
|
+
color: ColorValue;
|
|
6
7
|
}
|
|
7
8
|
export interface InputActionProps extends Pick<IconActionBaseProps, "onPress" | "disabled" | "containerStyle">, Pick<InputBaseProps, "variant"> {
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAction.d.ts","sourceRoot":"","sources":["../../../../src/components/input/InputAction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputAction.d.ts","sourceRoot":"","sources":["../../../../src/components/input/InputAction.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,WAAW,gBACb,SAAQ,IAAI,CACJ,mBAAmB,EACnB,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAC5C,EACD,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;CAAG;AAE1C,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,iDAK3C,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAa1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAction.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/InputAction.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,
|
|
1
|
+
{"version":3,"file":"InputAction.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/InputAction.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,iBAMvD,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { type ColorValue } from "react-native";
|
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
3
|
import type { ValueItem } from "../../common";
|
|
4
4
|
import type { ComponentIconAssets } from "../../theme";
|
|
5
|
-
import { type
|
|
5
|
+
import { type IconBaseStyles } from "../icon";
|
|
6
6
|
import type { InputBaseProps } from "./InputBase";
|
|
7
7
|
import { type InputScaffoldFieldProps } from "./InputScaffold";
|
|
8
|
-
export type SelectionInputState = "enabled" | "disabled"
|
|
8
|
+
export type SelectionInputState = "enabled" | "disabled";
|
|
9
9
|
export type SelectionInputStyles = {
|
|
10
10
|
container: {
|
|
11
11
|
backgroundColor: Record<SelectionInputState, ColorValue>;
|
|
@@ -13,7 +13,7 @@ export type SelectionInputStyles = {
|
|
|
13
13
|
selectionContainer: {
|
|
14
14
|
gap: number;
|
|
15
15
|
};
|
|
16
|
-
icon: Pick<
|
|
16
|
+
icon: Pick<IconBaseStyles, "color">;
|
|
17
17
|
};
|
|
18
18
|
export type SelectionInputIcons = ComponentIconAssets<"showOptions">;
|
|
19
19
|
interface SingleSelection<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectionInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAY,KAAK,c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B,KAAK,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;IACxD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEN,eAAO,MAAM,cAAc;KAAI,CAAC,sJAY7B,mBAAmB,CAAC,CAAC,CAAC;;CAqDxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,GACpC,OAAO,KAAK,KACb,
|
|
1
|
+
{"version":3,"file":"SelectionInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SelectionInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,GACpC,OAAO,KAAK,KACb,oBAcF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type ColorValue } from "react-native";
|
|
1
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import type { ComponentIconAssets } from "../../theme";
|
|
3
|
-
import { type IconComponentProps
|
|
4
|
+
import { type IconComponentProps } from "../icon";
|
|
4
5
|
import type { InputBaseProps, InputVariant } from "./InputBase";
|
|
5
6
|
import type { InputScaffoldFieldProps } from "./InputScaffold";
|
|
6
7
|
type ToggleVariant = "primary" | "secondary";
|
|
@@ -11,8 +12,11 @@ export type ToggleInputStyles = {
|
|
|
11
12
|
[Size in InputVariant]: number;
|
|
12
13
|
};
|
|
13
14
|
color: {
|
|
14
|
-
deselected:
|
|
15
|
-
|
|
15
|
+
deselected: {
|
|
16
|
+
enabled: ColorValue;
|
|
17
|
+
disabled: ColorValue;
|
|
18
|
+
};
|
|
19
|
+
selected: Record<ToggleVariant, ColorValue>;
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
22
|
label: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToggleInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,KAAK,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,EAAE;QACP,IAAI,EAAE;aAAG,IAAI,IAAI,YAAY,GAAG,MAAM;SAAE,CAAC;QACzC,KAAK,EAAE;YACH,UAAU,EAAE;gBACR,OAAO,EAAE,UAAU,CAAC;gBACpB,QAAQ,EAAE,UAAU,CAAC;aACxB,CAAC;YACF,QAAQ,EAAE,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;SAC/C,CAAC;KACL,CAAC;IACF,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CACJ,uBAAuB,EACvB,UAAU,GAAG,OAAO,GAAG,gBAAgB,CAC1C,EACD,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,CAAC;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,KAAK,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,2IAW3C,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCA+E1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,
|
|
1
|
+
{"version":3,"file":"ToggleInput.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/input/ToggleInput.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAO,MAAM,wBAAwB,GAAI,OAAO,KAAK,KAAG,iBAuBvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/listItem/ListItem.tsx"],"names":[],"mapp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e,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,MAAM,MAAM,cAAc,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAwBtC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type ActionBaseProps } from "../action";
|
|
3
|
+
export interface InteractionSurfaceProps extends Pick<ActionBaseProps, "containerStyle" | "disabled" | "onPress" | "hitSlop"> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const InteractionSurface: FC<InteractionSurfaceProps>;
|
|
7
|
+
//# sourceMappingURL=InteractionSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionSurface.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/InteractionSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAG7D,MAAM,WAAW,uBACb,SAAQ,IAAI,CACR,eAAe,EACf,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CACxD;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAY1D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import type { ActionState } from "../action";
|
|
4
|
+
export type StateLayerStyles = {
|
|
5
|
+
color: ColorValue;
|
|
6
|
+
hoverOpacity: number;
|
|
7
|
+
pressedOpacity: number;
|
|
8
|
+
};
|
|
9
|
+
export interface StateLayerProps extends ActionState {
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
}
|
|
12
|
+
export declare const StateLayer: FC<StateLayerProps>;
|
|
13
|
+
//# sourceMappingURL=StateLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateLayer.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/StateLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAEd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6B1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateLayer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/StateLayer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,uBAAuB,GAAI,YAErC,KAAK,KAAG,gBAIT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,KAAK,uBAAuB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACxB,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeAction.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeAction.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EACxC,OAAO,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"SwipeAction.d.ts","sourceRoot":"","sources":["../../../../src/components/swipe/SwipeAction.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EACxC,OAAO,gBAAgB,GAAG,kBAAkB,CAAC,CAAC,CAAC,gCAUlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhF,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,GAAG,EAAE,EAAE,CAAC,QAAQ,CAqB5B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { type TextProps as RnTextProps, type TextStyle } from "react-native";
|
|
2
|
+
import { type ColorValue, type TextProps as RnTextProps, type TextStyle } from "react-native";
|
|
3
3
|
export type TextVariant = "display" | "title" | "heading" | "label" | "body" | "caption";
|
|
4
4
|
export interface TextStyles {
|
|
5
|
-
color:
|
|
5
|
+
color: ColorValue;
|
|
6
6
|
font: {
|
|
7
7
|
[Variant in TextVariant]: {
|
|
8
8
|
family: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,SAAS,IAAI,WAAW,EAE7B,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,WAAW,GACjB,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEhB,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE;SACD,OAAO,IAAI,WAAW,GAAG;YACtB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,EAAE,MAAM,CAAC;SAChB;KACJ,CAAC;CACL;AAED,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC1C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAmB9B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { HighlightedText, type HighlightedTextProps, type HighlightedTextStyles, } from "./HighlightedText";
|
|
2
|
-
export { InteractiveText, type InteractiveTextProps, type InteractiveTextStyles, } from "./InteractiveText";
|
|
3
2
|
export { Text, type TextProps, type TextStyles } from "./Text";
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { FunctionComponent, ReactNode } from "react";
|
|
2
|
-
import { type StyleProp, type ViewStyle } from "react-native";
|
|
2
|
+
import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
|
|
3
3
|
export interface ToastStyles {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
container: {
|
|
5
|
+
backgroundColor: ColorValue;
|
|
6
|
+
padding: number;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
};
|
|
6
9
|
}
|
|
7
10
|
export interface ToastProps {
|
|
8
11
|
action?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACH,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAStB,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE;QACP,eAAe,EAAE,UAAU,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAMD,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,UAAU,CA4B/C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Theme } from "../../theme/theme";
|
|
2
2
|
import type { ToastStyles } from "./Toast";
|
|
3
|
-
export declare const defaultToastStyles: ({ spacing }: Theme) => ToastStyles;
|
|
3
|
+
export declare const defaultToastStyles: ({ color, spacing, border, }: Theme) => ToastStyles;
|
|
4
4
|
//# sourceMappingURL=Toast.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,
|
|
1
|
+
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,6BAIhC,KAAK,KAAG,WAMT,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ThemeContextDefinition } from "../providers";
|
|
2
|
+
/**
|
|
3
|
+
* Reads the active theme. Pass a consumer extension type to see any custom
|
|
4
|
+
* tokens that were provided to `ThemeProvider` (e.g. `useTheme<AppTheme>()`).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTheme<E extends object = Record<never, never>>(): ThemeContextDefinition<E>;
|
|
2
7
|
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,QAAQ,CACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,KACtC,sBAAsB,CAAC,CAAC,CAAC,CAE7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noExplicitAny: any prop definition is permitted */
|
|
2
|
-
import type { ThemeContextDefinition
|
|
2
|
+
import type { ThemeContextDefinition } from "../providers";
|
|
3
3
|
import type { Icons, StyleOverrides, Styles } from "../theme";
|
|
4
|
-
export type
|
|
4
|
+
export type ThemedStyles<E extends object = Record<never, never>> = ThemeContextDefinition<E>;
|
|
5
5
|
type StyleOnlyKey = keyof Styles;
|
|
6
6
|
type IconOnlyKey = keyof Icons;
|
|
7
7
|
type ComponentKey = StyleOnlyKey | IconOnlyKey;
|
|
@@ -22,7 +22,7 @@ type UseStylesReturn<C extends ComponentKey, G = undefined> = [
|
|
|
22
22
|
];
|
|
23
23
|
type AnyGenerator = (...args: any[]) => any;
|
|
24
24
|
type GeneratorResult<G extends AnyGenerator> = ReturnType<G>;
|
|
25
|
-
type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [
|
|
25
|
+
type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemeContextDefinition<any>, infer U] ? U : never;
|
|
26
26
|
type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
|
|
27
27
|
never
|
|
28
28
|
] ? [
|
|
@@ -47,4 +47,5 @@ type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
|
|
|
47
47
|
export declare function useThemedStyles<C extends ComponentKey, G extends AnyGenerator>(componentName: C, generator: G, ...options: UseStylesOptions<G>): UseStylesReturn<C, GeneratorResult<G>>;
|
|
48
48
|
export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<G>): GeneratorResult<G>;
|
|
49
49
|
export declare const useStyles: (componentStyles: StyleOverrides) => Styles;
|
|
50
|
+
export {};
|
|
50
51
|
//# sourceMappingURL=useThemedStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAAA,uF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cAAc,CAAC,CAAC,SAAS,YAAY,IACtC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE7E,KAAK,gBAAgB,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS;IACxE,KAAK;CACR,GACK;IACI,OAAO,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,cAAc,CAAC;KAC3B;CACJ,GACD;IACI,OAAO,EAAE;QACL,MAAM,CAAC,EAAE,cAAc,CAAC;QACxB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;KAC5B;CACJ,CAAC;AAwDR;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC,SAAS,YAAY,EAC1E,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EAClD,SAAS,EAAE,CAAC,EACZ,GAAG,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAChC,eAAe,CAAC,CAAC,CAAC,CAAC;AAmCtB,eAAO,MAAM,SAAS,GAAI,iBAAiB,cAAc,WAgBxD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeContextDefinition {
|
|
3
|
-
theme: Theme;
|
|
1
|
+
import type { Icons, Styles, Theme } from "../theme";
|
|
2
|
+
export interface ThemeContextDefinition<E extends object = Record<never, never>> {
|
|
3
|
+
theme: Theme & E;
|
|
4
4
|
styles: Styles;
|
|
5
5
|
icons: Icons;
|
|
6
6
|
}
|
|
7
|
-
export declare const ThemeContext: import("react").Context<ThemeContextDefinition
|
|
7
|
+
export declare const ThemeContext: import("react").Context<ThemeContextDefinition<Record<never, never>>>;
|
|
8
8
|
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKrD,MAAM,WAAW,sBAAsB,CACnC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,uEAIvB,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
-
import { type Icons, type StyleOverrides, type
|
|
4
|
-
interface ThemeProviderProps {
|
|
5
|
-
|
|
3
|
+
import { type Icons, type StyleOverrides, type ThemeOverrides } from "../theme";
|
|
4
|
+
export interface ThemeProviderProps<E extends object = Record<never, never>> {
|
|
5
|
+
/**
|
|
6
|
+
* The active theme. Consumers may extend it with their own tokens
|
|
7
|
+
* (`ThemeOverrides & E`) and read them back via `useTheme<E>()`.
|
|
8
|
+
*/
|
|
9
|
+
theme?: ThemeOverrides & E;
|
|
6
10
|
styles?: StyleOverrides;
|
|
7
11
|
icons?: DeepPartial<Icons>;
|
|
8
12
|
children?: ReactNode;
|
|
9
13
|
}
|
|
10
|
-
export declare const ThemeProvider:
|
|
11
|
-
export {};
|
|
14
|
+
export declare const ThemeProvider: <E extends object = Record<never, never>>({ theme: initialTheme, styles: initialStyles, icons: initialIcons, children, }: ThemeProviderProps<E>) => import("react").JSX.Element;
|
|
12
15
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACtB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACvE;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,gFAKpE,kBAAkB,CAAC,CAAC,CAAC,gCAUvB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export type { ComponentIconAssets, Icons } from "./icons";
|
|
2
|
+
export { darkPalette, lightPalette, type ThemeColors } from "./palette";
|
|
3
|
+
export { createStyles, type StyleOverrides, type Styles } from "./styles";
|
|
4
|
+
export { createTheme, type Theme, type ThemeOverrides } from "./theme";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
|
+
export type ThemeColors = {
|
|
3
|
+
background: ColorValue;
|
|
4
|
+
foreground: ColorValue;
|
|
5
|
+
inset: ColorValue;
|
|
6
|
+
insetForeground: ColorValue;
|
|
7
|
+
surface: ColorValue;
|
|
8
|
+
surfaceForeground: ColorValue;
|
|
9
|
+
elevated: ColorValue;
|
|
10
|
+
elevatedForeground: ColorValue;
|
|
11
|
+
primary: ColorValue;
|
|
12
|
+
primaryForeground: ColorValue;
|
|
13
|
+
secondary: ColorValue;
|
|
14
|
+
secondaryForeground: ColorValue;
|
|
15
|
+
destructive: ColorValue;
|
|
16
|
+
destructiveForeground: ColorValue;
|
|
17
|
+
muted: ColorValue;
|
|
18
|
+
mutedForeground: ColorValue;
|
|
19
|
+
border: ColorValue;
|
|
20
|
+
tint1: ColorValue;
|
|
21
|
+
tint2: ColorValue;
|
|
22
|
+
tint3: ColorValue;
|
|
23
|
+
tint4: ColorValue;
|
|
24
|
+
tint5: ColorValue;
|
|
25
|
+
};
|
|
26
|
+
export declare const lightPalette: ThemeColors;
|
|
27
|
+
export declare const darkPalette: ThemeColors;
|
|
28
|
+
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/theme/palette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IAEvB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,UAAU,CAAC;IAE5B,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,EAAE,UAAU,CAAC;IAE9B,QAAQ,EAAE,UAAU,CAAC;IACrB,kBAAkB,EAAE,UAAU,CAAC;IAE/B,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,EAAE,UAAU,CAAC;IAC9B,SAAS,EAAE,UAAU,CAAC;IACtB,mBAAmB,EAAE,UAAU,CAAC;IAChC,WAAW,EAAE,UAAU,CAAC;IACxB,qBAAqB,EAAE,UAAU,CAAC;IAElC,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,UAAU,CAAC;IAE5B,MAAM,EAAE,UAAU,CAAC;IAEnB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WA8B1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WA8BzB,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
import type { ActionStyles, AlertIndicatorStyles, AvatarStyles, ButtonBaseStyles, ButtonStyles, DropdownInputStyles, FloatingContainerStyles, HighlightedTextStyles, IconActionBaseStyles, IconActionStyles, IconBaseStyles, IconButtonBaseStyles, IconButtonStyles, IconStyles, InputActionStyles, InputBaseStyles, InputScaffoldStyles,
|
|
2
|
+
import type { ActionBaseStyles, ActionStyles, AlertIndicatorStyles, AvatarStyles, ButtonBaseStyles, ButtonStyles, DropdownInputStyles, FloatingContainerStyles, HighlightedTextStyles, IconActionBaseStyles, IconActionStyles, IconBaseStyles, IconButtonBaseStyles, IconButtonStyles, IconStyles, InputActionStyles, InputBaseStyles, InputScaffoldStyles, ListItemStyles, MenuItemStyles, MenuStyles, RatingInputStyles, RatingStyles, SelectionInputStyles, StateLayerStyles, StateTintStyles, SwipeActionStyles, TagStyles, TextStyles, ToastStyles, ToggleInputStyles } from "../components";
|
|
3
3
|
import type { Theme } from "./theme";
|
|
4
4
|
export type Styles = {
|
|
5
5
|
text: TextStyles;
|
|
6
|
-
interactiveText: InteractiveTextStyles;
|
|
7
6
|
highlightedText: HighlightedTextStyles;
|
|
8
7
|
icon: IconStyles;
|
|
9
8
|
iconBase: IconBaseStyles;
|
|
10
|
-
|
|
9
|
+
actionBase: ActionBaseStyles;
|
|
10
|
+
stateLayer: StateLayerStyles;
|
|
11
|
+
stateTint: StateTintStyles;
|
|
11
12
|
action: ActionStyles;
|
|
12
13
|
iconAction: IconActionStyles;
|
|
13
14
|
iconActionBase: IconActionBaseStyles;
|
|
@@ -49,5 +50,10 @@ export type CreateStyles = (theme: Theme) => Styles;
|
|
|
49
50
|
*/
|
|
50
51
|
export declare const createDefaultStyles: CreateStyles;
|
|
51
52
|
export declare const MergeStyles: (styles: Styles, overrides?: StyleOverrides | undefined) => Styles;
|
|
53
|
+
/**
|
|
54
|
+
* Builds the full `Styles` registry for a theme, optionally merged with
|
|
55
|
+
* consumer style overrides.
|
|
56
|
+
*/
|
|
57
|
+
export declare const createStyles: (theme: Theme, overrides?: StyleOverrides) => Styles;
|
|
52
58
|
export declare const MergeStyleSlice: <T>(base: T, override: unknown) => T;
|
|
53
59
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EACR,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EACR,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,WAAW,EACX,iBAAiB,EACpB,MAAM,eAAe,CAAC;AA+BvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,eAAe,EAAE,qBAAqB,CAAC;IAEvC,IAAI,EA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,eAAO,MAAM,mBAAmB,EAAE,YA0ChC,CAAC;AAEH,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,EACd,YAAW,cAAc,GAAG,SAAc,KAC3C,MAAsC,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,YAAY,GACrB,OAAO,KAAK,EACZ,YAAY,cAAc,KAC3B,MAA4D,CAAC;AAEhE,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,OAAO,KAAG,CACI,CAAC"}
|
|
@@ -16,54 +16,8 @@ export declare const DefaultTheme: {
|
|
|
16
16
|
xxLarge: number;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
color:
|
|
20
|
-
primary: string;
|
|
21
|
-
primaryDark: string;
|
|
22
|
-
primaryLight: string;
|
|
23
|
-
secondary: string;
|
|
24
|
-
secondaryHighlight: string;
|
|
25
|
-
secondaryDisabled: string;
|
|
26
|
-
tertiary: string;
|
|
27
|
-
destructive: string;
|
|
28
|
-
destructiveHighlight: string;
|
|
29
|
-
light: string;
|
|
30
|
-
white: string;
|
|
31
|
-
black: string;
|
|
32
|
-
red: string;
|
|
33
|
-
orange: string;
|
|
34
|
-
green: string;
|
|
35
|
-
blue: string;
|
|
36
|
-
purple: string;
|
|
37
|
-
textPrimary: string;
|
|
38
|
-
textSecondary: string;
|
|
39
|
-
textHighlight: string;
|
|
40
|
-
textInverted: string;
|
|
41
|
-
textDisabled: string;
|
|
42
|
-
textOnPrimary: string;
|
|
43
|
-
textOnSecondary: string;
|
|
44
|
-
textOnDestructive: string;
|
|
45
|
-
background: string;
|
|
46
|
-
backgroundHighlight: string;
|
|
47
|
-
foreground: string;
|
|
48
|
-
foregroundHighlight: string;
|
|
49
|
-
backgroundOverlay: string;
|
|
50
|
-
shadow: string;
|
|
51
|
-
border: string;
|
|
52
|
-
inputBackground: string;
|
|
53
|
-
inputBackgroundDisabled: string;
|
|
54
|
-
inputText: string;
|
|
55
|
-
pressOverlay: string;
|
|
56
|
-
alert: string;
|
|
57
|
-
error: string;
|
|
58
|
-
success: string;
|
|
59
|
-
warning: string;
|
|
60
|
-
};
|
|
19
|
+
color: import("./palette").ThemeColors;
|
|
61
20
|
spacing: {
|
|
62
|
-
screenContentTop: number;
|
|
63
|
-
pageHorizontal: number;
|
|
64
|
-
pageBottom: number;
|
|
65
|
-
pageTop: number;
|
|
66
|
-
navigationActionHorizontal: number;
|
|
67
21
|
large: number;
|
|
68
22
|
medium: number;
|
|
69
23
|
small: number;
|
|
@@ -82,6 +36,10 @@ export declare const DefaultTheme: {
|
|
|
82
36
|
};
|
|
83
37
|
};
|
|
84
38
|
};
|
|
85
|
-
export declare
|
|
86
|
-
|
|
39
|
+
export declare const MergeTheme: <E extends object = Record<never, never>>(first?: ThemeOverrides & E, second?: ThemeOverrides & DeepPartial<NoInfer<E>>) => Theme & E;
|
|
40
|
+
/**
|
|
41
|
+
* Builds a complete theme from a single set of base overrides, optionally
|
|
42
|
+
* deriving additional app-owned tokens from the resolved base theme.
|
|
43
|
+
*/
|
|
44
|
+
export declare const createTheme: <E extends object = Record<never, never>>(overrides?: ThemeOverrides, createExtras?: (theme: Theme) => E) => Theme & E;
|
|
87
45
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,MAAM,KAAK,GAAG,OAAO,YAAY,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CxB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9D,QAAQ,cAAc,GAAG,CAAC,EAC1B,SAAS,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAClD,KAAK,GAAG,CAAoE,CAAC;AAEhF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC/D,YAAY,cAAc,EAC1B,eAAe,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KACnC,KAAK,GAAG,CAMV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/icon/InteractiveIcon.tsx";var _excluded=["pressed","style","disabled"];function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}import{c as _c}from"react/compiler-runtime";import{useStyles}from"../../hooks";import{IconBase}from"./IconBase";import{jsx as _jsx}from"react/jsx-runtime";export var InteractiveIcon=t0=>{var $=_c(11);var iconProps;var pressed;var style;var t1;if($[0]!==t0){pressed=t0.pressed;style=t0.style;t1=t0.disabled;iconProps=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=iconProps;$[2]=pressed;$[3]=style;$[4]=t1;}else{iconProps=$[1];pressed=$[2];style=$[3];t1=$[4];}var disabled=t1===undefined?false:t1;var t2;if($[5]!==style){t2={interactiveIcon:style};$[5]=style;$[6]=t2;}else{t2=$[6];}var _useStyles=useStyles(t2),interactiveIcon=_useStyles.interactiveIcon;var t3=pressed?interactiveIcon.color.pressed:interactiveIcon.color[disabled?"disabled":"enabled"];var t4;if($[7]!==iconProps||$[8]!==interactiveIcon.size||$[9]!==t3){t4=_jsx(IconBase,{...iconProps,size:interactiveIcon.size,color:t3});$[7]=iconProps;$[8]=interactiveIcon.size;$[9]=t3;$[10]=t4;}else{t4=$[10];}return t4;};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defaultIconBaseStyles}from"./IconBase.styles";export var defaultInteractiveIconStyles=theme=>{var iconBase=defaultIconBaseStyles(theme);return{size:iconBase.size,color:{enabled:theme.color.primary,pressed:theme.color.primaryLight,disabled:theme.color.primaryLight}};};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _jsxFileName="/home/runner/work/ReactNativeComponents/ReactNativeComponents/src/components/text/InteractiveText.tsx";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}import{c as _c}from"react/compiler-runtime";import{StyleSheet}from"react-native";import{useThemedStyles}from"../../hooks";import{Text}from"./Text";import{jsx as _jsx}from"react/jsx-runtime";export var InteractiveText=t0=>{var $=_c(17);var pressed=t0.pressed,styleOverrides=t0.style,textVariant=t0.textVariant,children=t0.children,t1=t0.disabled;var disabled=t1===undefined?false:t1;var t2;if($[0]!==styleOverrides){t2={interactiveText:styleOverrides};$[0]=styleOverrides;$[1]=t2;}else{t2=$[1];}var t3;if($[2]!==disabled){t3={disabled};$[2]=disabled;$[3]=t3;}else{t3=$[3];}var t4;if($[4]!==t2||$[5]!==t3){t4={styles:t2,props:t3};$[4]=t2;$[5]=t3;$[6]=t4;}else{t4=$[6];}var _useThemedStyles=useThemedStyles("interactiveText",createStyles,t4),_useThemedStyles2=_slicedToArray(_useThemedStyles,2),styles=_useThemedStyles2[0],t5=_useThemedStyles2[1];var style=t5.style;var t6;if($[7]!==pressed||$[8]!==style){t6=pressed&&{color:style.color.pressed};$[7]=pressed;$[8]=style;$[9]=t6;}else{t6=$[9];}var t7;if($[10]!==styles.label||$[11]!==t6){t7=[styles.label,t6];$[10]=styles.label;$[11]=t6;$[12]=t7;}else{t7=$[12];}var t8;if($[13]!==children||$[14]!==t7||$[15]!==textVariant){t8=_jsx(Text,{numberOfLines:1,variant:textVariant,style:t7,children:children});$[13]=children;$[14]=t7;$[15]=textVariant;$[16]=t8;}else{t8=$[16];}return t8;};var createStyles=({styles:{interactiveText}},{disabled})=>StyleSheet.create({label:{color:interactiveText.color[disabled?"disabled":"enabled"]}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var defaultInteractiveTextStyles=({color})=>({color:{enabled:color.primary,pressed:color.primaryLight,disabled:color.primaryLight}});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PressableStateCallbackType } from "react-native";
|
|
2
|
-
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
-
import { type IconBaseStyles } from "./IconBase";
|
|
4
|
-
import type { IconComponentProps } from "./IconComponentProps";
|
|
5
|
-
export type InteractiveIconState = "enabled" | "disabled" | "pressed";
|
|
6
|
-
export type InteractiveIconStyles = {
|
|
7
|
-
size: IconBaseStyles["size"];
|
|
8
|
-
color: {
|
|
9
|
-
[State in InteractiveIconState]: IconBaseStyles["color"];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export interface InteractiveIconProps extends PressableStateCallbackType {
|
|
13
|
-
style?: DeepPartial<InteractiveIconStyles>;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const InteractiveIcon: <G extends string>({ pressed, style, disabled, ...iconProps }: InteractiveIconProps & IconComponentProps<G>) => import("react").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=InteractiveIcon.d.ts.map
|