@reillymc/react-native-components 0.11.10 → 0.11.11
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/input/dropdownInput/DropdownInput.styles.js +1 -1
- package/lib/components/swipe/SwipeAction.styles.js +1 -1
- package/lib/components/text/HighlightedText.js +1 -1
- package/lib/hooks/useThemedStyles.js +1 -1
- package/lib/icons/componentIconAssets.js +0 -0
- package/lib/icons/componentIcons.js +1 -0
- package/lib/providers/ThemeContext.js +1 -1
- package/lib/providers/ThemeProvider.js +1 -1
- package/lib/style/createThemedStyles.js +1 -0
- package/lib/style/index.js +1 -0
- package/lib/style/styleFactory.js +1 -0
- package/lib/{theme → style}/styles.js +1 -1
- package/lib/theme/index.js +1 -1
- package/lib/theme/theme.js +1 -1
- package/lib/types/components/action/Action.d.ts +1 -7
- package/lib/types/components/action/Action.d.ts.map +1 -1
- package/lib/types/components/action/Action.styles.d.ts +9 -3
- package/lib/types/components/action/Action.styles.d.ts.map +1 -1
- package/lib/types/components/action/IconAction.d.ts +2 -15
- package/lib/types/components/action/IconAction.d.ts.map +1 -1
- package/lib/types/components/action/IconAction.styles.d.ts +17 -3
- package/lib/types/components/action/IconAction.styles.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.d.ts +2 -11
- package/lib/types/components/action/IconActionBase.d.ts.map +1 -1
- package/lib/types/components/action/IconActionBase.styles.d.ts +13 -3
- package/lib/types/components/action/IconActionBase.styles.d.ts.map +1 -1
- package/lib/types/components/action/index.d.ts +3 -3
- package/lib/types/components/action/index.d.ts.map +1 -1
- package/lib/types/components/alert/AlertIndicator.d.ts +2 -8
- package/lib/types/components/alert/AlertIndicator.d.ts.map +1 -1
- package/lib/types/components/alert/AlertIndicator.styles.d.ts +10 -3
- package/lib/types/components/alert/AlertIndicator.styles.d.ts.map +1 -1
- package/lib/types/components/alert/index.d.ts +1 -1
- package/lib/types/components/alert/index.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +2 -20
- package/lib/types/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/types/components/avatar/Avatar.styles.d.ts +21 -3
- package/lib/types/components/avatar/Avatar.styles.d.ts.map +1 -1
- package/lib/types/components/avatar/index.d.ts +1 -1
- package/lib/types/components/avatar/index.d.ts.map +1 -1
- package/lib/types/components/button/Button.d.ts +2 -12
- package/lib/types/components/button/Button.d.ts.map +1 -1
- package/lib/types/components/button/Button.styles.d.ts +14 -3
- package/lib/types/components/button/Button.styles.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.d.ts +1 -12
- package/lib/types/components/button/ButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/ButtonBase.styles.d.ts +14 -3
- package/lib/types/components/button/ButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.d.ts +3 -12
- package/lib/types/components/button/IconButton.d.ts.map +1 -1
- package/lib/types/components/button/IconButton.styles.d.ts +14 -3
- package/lib/types/components/button/IconButton.styles.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.d.ts +3 -12
- package/lib/types/components/button/IconButtonBase.d.ts.map +1 -1
- package/lib/types/components/button/IconButtonBase.styles.d.ts +14 -3
- package/lib/types/components/button/IconButtonBase.styles.d.ts.map +1 -1
- package/lib/types/components/button/index.d.ts +4 -4
- package/lib/types/components/button/index.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts +0 -3
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts +5 -3
- package/lib/types/components/container/anchoredContainer/AnchoredContainer.styles.d.ts.map +1 -1
- package/lib/types/components/container/anchoredContainer/index.d.ts +1 -1
- package/lib/types/components/container/anchoredContainer/index.d.ts.map +1 -1
- package/lib/types/components/container/index.d.ts +1 -1
- package/lib/types/components/container/index.d.ts.map +1 -1
- package/lib/types/components/icon/Icon.d.ts +1 -6
- package/lib/types/components/icon/Icon.d.ts.map +1 -1
- package/lib/types/components/icon/Icon.styles.d.ts +8 -3
- package/lib/types/components/icon/Icon.styles.d.ts.map +1 -1
- package/lib/types/components/icon/IconBase.d.ts +1 -5
- package/lib/types/components/icon/IconBase.d.ts.map +1 -1
- package/lib/types/components/icon/IconBase.styles.d.ts +7 -3
- package/lib/types/components/icon/IconBase.styles.d.ts.map +1 -1
- package/lib/types/components/icon/IconComponentProps.d.ts +1 -1
- package/lib/types/components/icon/IconComponentProps.d.ts.map +1 -1
- package/lib/types/components/icon/InteractiveIcon.d.ts +1 -8
- package/lib/types/components/icon/InteractiveIcon.d.ts.map +1 -1
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts +10 -3
- package/lib/types/components/icon/InteractiveIcon.styles.d.ts.map +1 -1
- package/lib/types/components/icon/index.d.ts +3 -3
- package/lib/types/components/icon/index.d.ts.map +1 -1
- package/lib/types/components/index.d.ts +15 -15
- package/lib/types/components/index.d.ts.map +1 -1
- package/lib/types/components/input/CounterInput.d.ts +1 -1
- package/lib/types/components/input/CounterInput.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.d.ts +1 -4
- package/lib/types/components/input/InputAction.d.ts.map +1 -1
- package/lib/types/components/input/InputAction.styles.d.ts +6 -3
- package/lib/types/components/input/InputAction.styles.d.ts.map +1 -1
- package/lib/types/components/input/InputBase.d.ts +2 -17
- package/lib/types/components/input/InputBase.d.ts.map +1 -1
- package/lib/types/components/input/InputBase.styles.d.ts +19 -3
- package/lib/types/components/input/InputBase.styles.d.ts.map +1 -1
- package/lib/types/components/input/InputScaffold.d.ts +2 -11
- package/lib/types/components/input/InputScaffold.d.ts.map +1 -1
- package/lib/types/components/input/InputScaffold.styles.d.ts +12 -3
- package/lib/types/components/input/InputScaffold.styles.d.ts.map +1 -1
- package/lib/types/components/input/NumberInput.d.ts +1 -1
- package/lib/types/components/input/NumberInput.d.ts.map +1 -1
- package/lib/types/components/input/NumberInputBase.d.ts +0 -1
- package/lib/types/components/input/NumberInputBase.d.ts.map +1 -1
- package/lib/types/components/input/RatingInput.d.ts +1 -2
- package/lib/types/components/input/RatingInput.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.d.ts +2 -13
- package/lib/types/components/input/SelectionInput.d.ts.map +1 -1
- package/lib/types/components/input/SelectionInput.styles.d.ts +14 -3
- package/lib/types/components/input/SelectionInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/TextInput.d.ts +0 -1
- package/lib/types/components/input/TextInput.d.ts.map +1 -1
- package/lib/types/components/input/TimeInput.d.ts +1 -1
- package/lib/types/components/input/TimeInput.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.d.ts +4 -19
- package/lib/types/components/input/ToggleInput.d.ts.map +1 -1
- package/lib/types/components/input/ToggleInput.styles.d.ts +19 -3
- package/lib/types/components/input/ToggleInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts +0 -3
- package/lib/types/components/input/dropdownInput/DropdownInput.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts +5 -3
- package/lib/types/components/input/dropdownInput/DropdownInput.styles.d.ts.map +1 -1
- package/lib/types/components/input/dropdownInput/index.d.ts +1 -1
- package/lib/types/components/input/dropdownInput/index.d.ts.map +1 -1
- package/lib/types/components/input/index.d.ts +8 -8
- package/lib/types/components/input/index.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.d.ts +0 -7
- package/lib/types/components/listItem/ListItem.d.ts.map +1 -1
- package/lib/types/components/listItem/ListItem.styles.d.ts +9 -3
- package/lib/types/components/listItem/ListItem.styles.d.ts.map +1 -1
- package/lib/types/components/listItem/index.d.ts +1 -1
- package/lib/types/components/listItem/index.d.ts.map +1 -1
- package/lib/types/components/menu/Menu.d.ts +2 -9
- package/lib/types/components/menu/Menu.d.ts.map +1 -1
- package/lib/types/components/menu/Menu.styles.d.ts +11 -3
- package/lib/types/components/menu/Menu.styles.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.d.ts +0 -5
- package/lib/types/components/menu/MenuItem.d.ts.map +1 -1
- package/lib/types/components/menu/MenuItem.styles.d.ts +7 -3
- package/lib/types/components/menu/MenuItem.styles.d.ts.map +1 -1
- package/lib/types/components/menu/index.d.ts +2 -2
- package/lib/types/components/menu/index.d.ts.map +1 -1
- package/lib/types/components/rating/Rating.d.ts +3 -9
- package/lib/types/components/rating/Rating.d.ts.map +1 -1
- package/lib/types/components/rating/Rating.styles.d.ts +11 -3
- package/lib/types/components/rating/Rating.styles.d.ts.map +1 -1
- package/lib/types/components/rating/index.d.ts +1 -1
- package/lib/types/components/rating/index.d.ts.map +1 -1
- package/lib/types/components/swipe/SwipeAction.d.ts +0 -3
- package/lib/types/components/swipe/SwipeAction.d.ts.map +1 -1
- package/lib/types/components/swipe/SwipeAction.styles.d.ts +5 -3
- package/lib/types/components/swipe/SwipeAction.styles.d.ts.map +1 -1
- package/lib/types/components/swipe/index.d.ts +1 -1
- package/lib/types/components/swipe/index.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.d.ts +0 -5
- package/lib/types/components/tag/Tag.d.ts.map +1 -1
- package/lib/types/components/tag/Tag.styles.d.ts +7 -3
- package/lib/types/components/tag/Tag.styles.d.ts.map +1 -1
- package/lib/types/components/tag/index.d.ts +1 -1
- package/lib/types/components/tag/index.d.ts.map +1 -1
- package/lib/types/components/text/HighlightedText.d.ts +2 -5
- package/lib/types/components/text/HighlightedText.d.ts.map +1 -1
- package/lib/types/components/text/HighlightedText.styles.d.ts +7 -2
- package/lib/types/components/text/HighlightedText.styles.d.ts.map +1 -1
- package/lib/types/components/text/InteractiveText.d.ts +2 -7
- package/lib/types/components/text/InteractiveText.d.ts.map +1 -1
- package/lib/types/components/text/InteractiveText.styles.d.ts +9 -3
- package/lib/types/components/text/InteractiveText.styles.d.ts.map +1 -1
- package/lib/types/components/text/Text.d.ts +2 -12
- package/lib/types/components/text/Text.d.ts.map +1 -1
- package/lib/types/components/text/Text.styles.d.ts +14 -3
- package/lib/types/components/text/Text.styles.d.ts.map +1 -1
- package/lib/types/components/text/index.d.ts +3 -3
- package/lib/types/components/text/index.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.d.ts +1 -8
- package/lib/types/components/toast/Toast.d.ts.map +1 -1
- package/lib/types/components/toast/Toast.styles.d.ts +10 -3
- package/lib/types/components/toast/Toast.styles.d.ts.map +1 -1
- package/lib/types/components/toast/index.d.ts +1 -1
- package/lib/types/components/toast/index.d.ts.map +1 -1
- package/lib/types/hooks/useTheme.d.ts +2 -2
- package/lib/types/hooks/useThemedStyles.d.ts +25 -23
- package/lib/types/hooks/useThemedStyles.d.ts.map +1 -1
- package/lib/types/icons/componentIconAssets.d.ts +2 -0
- package/lib/types/icons/componentIconAssets.d.ts.map +1 -0
- package/lib/types/{theme/icons.d.ts → icons/componentIcons.d.ts} +17 -18
- package/lib/types/icons/componentIcons.d.ts.map +1 -0
- package/lib/types/icons/index.d.ts +2 -0
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/providers/ThemeContext.d.ts +5 -3
- package/lib/types/providers/ThemeContext.d.ts.map +1 -1
- package/lib/types/providers/ThemeProvider.d.ts +10 -5
- package/lib/types/providers/ThemeProvider.d.ts.map +1 -1
- package/lib/types/style/createThemedStyles.d.ts +5 -0
- package/lib/types/style/createThemedStyles.d.ts.map +1 -0
- package/lib/types/style/index.d.ts +4 -0
- package/lib/types/style/index.d.ts.map +1 -0
- package/lib/types/style/styleFactory.d.ts +3 -0
- package/lib/types/style/styleFactory.d.ts.map +1 -0
- package/lib/types/style/styles.d.ts +51 -0
- package/lib/types/style/styles.d.ts.map +1 -0
- package/lib/types/theme/index.d.ts +1 -3
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/theme.d.ts +1 -6
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/package.json +5 -1
- package/lib/theme/icons.js +0 -1
- package/lib/types/theme/icons.d.ts.map +0 -1
- package/lib/types/theme/styles.d.ts +0 -58
- package/lib/types/theme/styles.d.ts.map +0 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
2
|
+
export interface TagStyles {
|
|
3
|
+
internalSpacing: number;
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
padding: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultTagStyles: StyleFactory<TagStyles>;
|
|
4
8
|
//# sourceMappingURL=Tag.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/Tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,SAAS;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,SAAS,CAOnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { FunctionComponent } from "react";
|
|
2
|
-
import { type TextStyle } from "react-native";
|
|
3
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
|
|
7
|
-
}
|
|
3
|
+
import type { HighlightedTextStyles } from "./HighlightedText.styles";
|
|
4
|
+
import { type TextProps } from "./Text";
|
|
8
5
|
export interface HighlightedTextProps extends Pick<TextProps, "variant"> {
|
|
9
6
|
text?: string;
|
|
10
7
|
textStyles?: TextProps["style"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HighlightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAsC9C,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,iBAAiB,CAAC,oBAAoB,CAoCnE,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
import type { TextVariant } from "./Text.styles";
|
|
4
|
+
export interface HighlightedTextStyles {
|
|
5
|
+
highlightedWeight: Record<TextVariant, TextStyle["fontWeight"]>;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultHighlightedTextStyles: StyleFactory<HighlightedTextStyles>;
|
|
3
8
|
//# sourceMappingURL=HighlightedText.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightedText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HighlightedText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/HighlightedText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IAClC,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE;AAED,eAAO,MAAM,4BAA4B,EAAE,YAAY,CACnD,qBAAqB,CAUvB,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
-
import
|
|
2
|
+
import type { PressableStateCallbackType } from "react-native";
|
|
3
3
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
4
|
+
import type { InteractiveTextStyles } from "./InteractiveText.styles";
|
|
4
5
|
import { type TextProps } from "./Text";
|
|
5
|
-
export type InteractiveTextState = "enabled" | "disabled" | "pressed";
|
|
6
|
-
export type InteractiveTextStyles = {
|
|
7
|
-
color: {
|
|
8
|
-
[State in InteractiveTextState]: ColorValue;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
6
|
export interface InteractiveTextProps extends PressableStateCallbackType {
|
|
12
7
|
children: string;
|
|
13
8
|
style?: DeepPartial<InteractiveTextStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"InteractiveText.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAyBpD,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export type InteractiveTextState = "enabled" | "disabled" | "pressed";
|
|
4
|
+
export type InteractiveTextStyles = {
|
|
5
|
+
color: {
|
|
6
|
+
[State in InteractiveTextState]: ColorValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const defaultInteractiveTextStyles: StyleFactory<InteractiveTextStyles>;
|
|
4
10
|
//# sourceMappingURL=InteractiveText.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"InteractiveText.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/InteractiveText.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE;SACF,KAAK,IAAI,oBAAoB,GAAG,UAAU;KAC9C,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CACnD,qBAAqB,CAOvB,CAAC"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
import { type TextProps as RnTextProps
|
|
3
|
-
|
|
4
|
-
export interface TextStyles {
|
|
5
|
-
color: string;
|
|
6
|
-
font: {
|
|
7
|
-
[Variant in TextVariant]: {
|
|
8
|
-
family: string;
|
|
9
|
-
weight: TextStyle["fontWeight"];
|
|
10
|
-
size: number;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
2
|
+
import { type TextProps as RnTextProps } from "react-native";
|
|
3
|
+
import type { TextVariant } from "./Text.styles";
|
|
14
4
|
export interface TextProps extends RnTextProps {
|
|
15
5
|
variant?: TextVariant;
|
|
16
6
|
children?: ReactNode;
|
|
@@ -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,EAEH,KAAK,SAAS,IAAI,WAAW,
|
|
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,EAEH,KAAK,SAAS,IAAI,WAAW,EAEhC,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,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,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export type TextVariant = "display" | "title" | "heading" | "label" | "body" | "caption";
|
|
4
|
+
export interface TextStyles {
|
|
5
|
+
color: string;
|
|
6
|
+
font: {
|
|
7
|
+
[Variant in TextVariant]: {
|
|
8
|
+
family: string;
|
|
9
|
+
weight: TextStyle["fontWeight"];
|
|
10
|
+
size: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const defaultTextStyles: StyleFactory<TextStyles>;
|
|
4
15
|
//# sourceMappingURL=Text.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,WAAW,GACjB,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,CAAC;AAEhB,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,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,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,UAAU,CAqCrD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { HighlightedText, type HighlightedTextProps
|
|
2
|
-
export { InteractiveText, type InteractiveTextProps
|
|
3
|
-
export { Text, type TextProps
|
|
1
|
+
export { HighlightedText, type HighlightedTextProps } from "./HighlightedText";
|
|
2
|
+
export { InteractiveText, type InteractiveTextProps } from "./InteractiveText";
|
|
3
|
+
export { Text, type TextProps } from "./Text";
|
|
4
4
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { FunctionComponent, ReactNode } from "react";
|
|
2
|
-
import { type
|
|
3
|
-
export interface ToastStyles {
|
|
4
|
-
container: {
|
|
5
|
-
backgroundColor: ColorValue;
|
|
6
|
-
padding: number;
|
|
7
|
-
borderRadius: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
10
3
|
export interface ToastProps {
|
|
11
4
|
action?: ReactNode;
|
|
12
5
|
containerStyle?: StyleProp<ViewStyle>;
|
|
@@ -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,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAShF,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,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
|
+
import type { StyleFactory } from "../../style/styleFactory";
|
|
3
|
+
export interface ToastStyles {
|
|
4
|
+
container: {
|
|
5
|
+
backgroundColor: ColorValue;
|
|
6
|
+
padding: number;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const defaultToastStyles: StyleFactory<ToastStyles>;
|
|
4
11
|
//# 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,
|
|
1
|
+
{"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/Toast.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE;QACP,eAAe,EAAE,UAAU,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AAED,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAUvD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Toast, type ToastProps
|
|
1
|
+
export { Toast, type ToastProps } from "./Toast";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ThemeContextDefinition } from "../providers";
|
|
2
2
|
/**
|
|
3
|
-
* Reads the active theme. Pass a consumer extension type to see any
|
|
4
|
-
*
|
|
3
|
+
* Reads the active theme. Pass a consumer style extension type to see any
|
|
4
|
+
* app-owned style slices (e.g. `useTheme<AppStyles>()`).
|
|
5
5
|
*/
|
|
6
6
|
export declare function useTheme<E extends object = Record<never, never>>(): ThemeContextDefinition<E>;
|
|
7
7
|
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/noExplicitAny: any prop definition is permitted */
|
|
2
|
+
import type { Icons } from "../icons/componentIcons";
|
|
2
3
|
import type { ThemeContextDefinition } from "../providers";
|
|
3
|
-
import
|
|
4
|
+
import { type StyleOverrides, type Styles } from "../style/styles";
|
|
4
5
|
export type ThemedStyles<E extends object = Record<never, never>> = ThemeContextDefinition<E>;
|
|
5
|
-
type StyleOnlyKey = keyof Styles;
|
|
6
|
+
type StyleOnlyKey<E extends object> = keyof Styles | keyof E;
|
|
6
7
|
type IconOnlyKey = keyof Icons;
|
|
7
|
-
type ComponentKey = StyleOnlyKey | IconOnlyKey;
|
|
8
|
-
type ComponentRegistry = {
|
|
9
|
-
[K in keyof Styles | keyof Icons]: K extends keyof Styles ?
|
|
8
|
+
type ComponentKey<E extends object> = StyleOnlyKey<E> | IconOnlyKey;
|
|
9
|
+
type ComponentRegistry<E extends object> = {
|
|
10
|
+
[K in keyof Styles | keyof E | keyof Icons]: (K extends keyof Styles ? {
|
|
10
11
|
style: Styles[K];
|
|
12
|
+
} : K extends keyof E ? {
|
|
13
|
+
style: E[K];
|
|
14
|
+
} : Record<never, never>) & (K extends keyof Icons ? {
|
|
11
15
|
icons: Icons[K];
|
|
12
|
-
} :
|
|
13
|
-
style: Styles[K];
|
|
14
|
-
} : K extends keyof Icons ? {
|
|
15
|
-
icons: Icons[K];
|
|
16
|
-
} : never;
|
|
16
|
+
} : Record<never, never>);
|
|
17
17
|
};
|
|
18
|
-
type StyleResult<C extends
|
|
19
|
-
type UseStylesReturn<C extends ComponentKey
|
|
20
|
-
generated: G,
|
|
21
|
-
component: StyleResult<C>
|
|
22
|
-
];
|
|
18
|
+
type StyleResult<E extends object, C extends ComponentKey<E>> = ComponentRegistry<E>[C];
|
|
19
|
+
type UseStylesReturn<E extends object, C extends ComponentKey<E>, G = undefined> = [generated: G, component: StyleResult<E, C>];
|
|
23
20
|
type AnyGenerator = (...args: any[]) => any;
|
|
24
21
|
type GeneratorResult<G extends AnyGenerator> = ReturnType<G>;
|
|
25
22
|
type GeneratorProps<G extends AnyGenerator> = Parameters<G> extends [ThemeContextDefinition<any>, infer U] ? U : never;
|
|
26
|
-
type
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
type GeneratorExtension<G extends AnyGenerator> = Parameters<G>[0] extends ThemeContextDefinition<infer E> ? E : Record<never, never>;
|
|
24
|
+
type UseStylesOptions<E extends object, G extends AnyGenerator> = [
|
|
25
|
+
GeneratorProps<G>
|
|
26
|
+
] extends [never] ? [
|
|
29
27
|
options?: {
|
|
30
|
-
styles?: StyleOverrides
|
|
28
|
+
styles?: StyleOverrides<E>;
|
|
31
29
|
}
|
|
32
30
|
] : [
|
|
33
31
|
options: {
|
|
34
|
-
styles?: StyleOverrides
|
|
32
|
+
styles?: StyleOverrides<E>;
|
|
35
33
|
props: GeneratorProps<G>;
|
|
36
34
|
}
|
|
37
35
|
];
|
|
@@ -43,9 +41,13 @@ type UseStylesOptions<G extends AnyGenerator> = [GeneratorProps<G>] extends [
|
|
|
43
41
|
* Returns `[generated, { style, icons }]` for the named component.
|
|
44
42
|
* - `useThemedStyles(generator, options?)` — external form.
|
|
45
43
|
* Returns just the generated styles.
|
|
44
|
+
*
|
|
45
|
+
* The style extension is inferred from the generator's context type, so app
|
|
46
|
+
* components can read their own style slices by annotating the generator with
|
|
47
|
+
* the app's `ThemedStyles<AppStyles>` type.
|
|
46
48
|
*/
|
|
47
|
-
export declare function useThemedStyles<
|
|
48
|
-
export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<G>): GeneratorResult<G>;
|
|
49
|
-
export declare const useStyles: (componentStyles: StyleOverrides) => Styles;
|
|
49
|
+
export declare function useThemedStyles<G extends AnyGenerator, C extends ComponentKey<GeneratorExtension<G>> = ComponentKey<GeneratorExtension<G>>>(componentName: C, generator: G, ...options: UseStylesOptions<GeneratorExtension<G>, G>): UseStylesReturn<GeneratorExtension<G>, C, GeneratorResult<G>>;
|
|
50
|
+
export declare function useThemedStyles<G extends AnyGenerator>(generator: G, ...options: UseStylesOptions<GeneratorExtension<G>, G>): GeneratorResult<G>;
|
|
51
|
+
export declare const useStyles: <E extends object = Record<never, never>>(componentStyles: StyleOverrides<E>) => Styles & E;
|
|
50
52
|
export {};
|
|
51
53
|
//# 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,
|
|
1
|
+
{"version":3,"file":"useThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedStyles.tsx"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG/E,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAC5D,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAS9B,KAAK,YAAY,CAAC,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kB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GACvD,eAAe,CAAC,CAAC,CAAC,CAAC;AAmCtB,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC7D,iBAAiB,cAAc,CAAC,CAAC,CAAC,KACnC,MAAM,GAAG,CAmBX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentIconAssets.d.ts","sourceRoot":"","sources":["../../../src/icons/componentIconAssets.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
3
|
import type { CounterInputIcons, InputScaffoldIcons, NumberInputIcons, RatingIcons, RatingInputIcons, SelectionInputIcons, TimeInputIcons, ToggleInputIcons } from "../components";
|
|
4
|
-
import {
|
|
5
|
-
export type ComponentIconAssets<K extends string> = K;
|
|
4
|
+
import type { AnyIconSet, IconSet } from "./base";
|
|
6
5
|
type ComponentIcons = {
|
|
7
6
|
inputScaffold: InputScaffoldIcons;
|
|
8
7
|
counterInput: CounterInputIcons;
|
|
@@ -46,81 +45,81 @@ export declare const createIcons: <C extends ComponentIconsConfig>(config: C & V
|
|
|
46
45
|
export declare const DefaultIcons: {
|
|
47
46
|
inputScaffold: {
|
|
48
47
|
error: {
|
|
49
|
-
iconSet: IconSet<import("
|
|
48
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
50
49
|
iconName: string;
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
52
|
counterInput: {
|
|
54
53
|
decrease: {
|
|
55
|
-
iconSet: IconSet<import("
|
|
54
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
56
55
|
iconName: string;
|
|
57
56
|
};
|
|
58
57
|
increase: {
|
|
59
|
-
iconSet: IconSet<import("
|
|
58
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
60
59
|
iconName: string;
|
|
61
60
|
};
|
|
62
61
|
};
|
|
63
62
|
numberInput: {
|
|
64
63
|
number: {
|
|
65
|
-
iconSet: IconSet<import("
|
|
64
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
66
65
|
iconName: string;
|
|
67
66
|
};
|
|
68
67
|
fraction: {
|
|
69
|
-
iconSet: IconSet<import("
|
|
68
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
70
69
|
iconName: string;
|
|
71
70
|
};
|
|
72
71
|
range: {
|
|
73
|
-
iconSet: IconSet<import("
|
|
72
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
74
73
|
iconName: string;
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
selectionInput: {
|
|
78
77
|
showOptions: {
|
|
79
|
-
iconSet: IconSet<import("
|
|
78
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
80
79
|
iconName: string;
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
82
|
timeInput: {
|
|
84
83
|
time: {
|
|
85
|
-
iconSet: IconSet<import("
|
|
84
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
86
85
|
iconName: string;
|
|
87
86
|
};
|
|
88
87
|
};
|
|
89
88
|
toggleInput: {
|
|
90
89
|
outline: {
|
|
91
|
-
iconSet: IconSet<import("
|
|
90
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
92
91
|
iconName: string;
|
|
93
92
|
};
|
|
94
93
|
};
|
|
95
94
|
rating: {
|
|
96
95
|
empty: {
|
|
97
|
-
iconSet: IconSet<import("
|
|
96
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
98
97
|
iconName: string;
|
|
99
98
|
};
|
|
100
99
|
full: {
|
|
101
|
-
iconSet: IconSet<import("
|
|
100
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
102
101
|
iconName: string;
|
|
103
102
|
};
|
|
104
103
|
half: {
|
|
105
|
-
iconSet: IconSet<import("
|
|
104
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
106
105
|
iconName: string;
|
|
107
106
|
};
|
|
108
107
|
};
|
|
109
108
|
ratingInput: {
|
|
110
109
|
empty: {
|
|
111
|
-
iconSet: IconSet<import("
|
|
110
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
112
111
|
iconName: string;
|
|
113
112
|
};
|
|
114
113
|
full: {
|
|
115
|
-
iconSet: IconSet<import("
|
|
114
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
116
115
|
iconName: string;
|
|
117
116
|
};
|
|
118
117
|
half: {
|
|
119
|
-
iconSet: IconSet<import("
|
|
118
|
+
iconSet: IconSet<import("./ui").UiIconName>;
|
|
120
119
|
iconName: string;
|
|
121
120
|
};
|
|
122
121
|
};
|
|
123
122
|
};
|
|
124
123
|
export declare const MergeIcons: (overrides?: DeepPartial<Icons>) => Icons;
|
|
125
124
|
export {};
|
|
126
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=componentIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/componentIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EACnB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGlD,KAAK,cAAc,GAAG;IAClB,aAAa,EAAE,kBAAkB,CAAC;IAClC,YAAY,EAAE,iBAAiB,CAAC;IACh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;CACJ,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,oBAAoB,EACtD,QAAQ,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,KAC9B,CAAW,CAAC;AAEf,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvB,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,YAAY,WAAW,CAAC,KAAK,CAAC,KAAG,KAc3D,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export type { AnyIconSet, IconSet, IconSetGlyphMap, IconSetItemProps, } from "./base";
|
|
2
|
+
export type { ComponentIconAssets } from "./componentIconAssets";
|
|
3
|
+
export type { Icons } from "./componentIcons";
|
|
2
4
|
export { type UiIconName, UiIcons } from "./ui";
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,UAAU,EACV,OAAO,EACP,eAAe,EACf,gBAAgB,GACnB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,UAAU,EACV,OAAO,EACP,eAAe,EACf,gBAAgB,GACnB,MAAM,QAAQ,CAAC;AAChB,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Icons } from "../icons/componentIcons";
|
|
2
|
+
import { type Styles } from "../style/styles";
|
|
3
|
+
import { type Theme } from "../theme/theme";
|
|
2
4
|
export interface ThemeContextDefinition<E extends object = Record<never, never>> {
|
|
3
|
-
theme: Theme
|
|
4
|
-
styles: Styles;
|
|
5
|
+
theme: Theme;
|
|
6
|
+
styles: Styles & E;
|
|
5
7
|
icons: Icons;
|
|
6
8
|
}
|
|
7
9
|
export declare const ThemeContext: import("react").Context<ThemeContextDefinition<Record<never, never>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/providers/ThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,sBAAsB,CACnC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,uEAIvB,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
3
|
-
import { type Icons
|
|
3
|
+
import { type Icons } from "../icons/componentIcons";
|
|
4
|
+
import type { StyleFactory } from "../style/styleFactory";
|
|
5
|
+
import { type ThemeOverrides } from "../theme/theme";
|
|
4
6
|
export interface ThemeProviderProps<E extends object = Record<never, never>> {
|
|
5
7
|
/**
|
|
6
|
-
* The active theme.
|
|
7
|
-
* (`ThemeOverrides & E`) and read them back via `useTheme<E>()`.
|
|
8
|
+
* The active theme.
|
|
8
9
|
*/
|
|
9
|
-
theme?: ThemeOverrides
|
|
10
|
-
|
|
10
|
+
theme?: ThemeOverrides;
|
|
11
|
+
/**
|
|
12
|
+
* Style overrides factory. App-owned component slices can be added by
|
|
13
|
+
* extending `E`.
|
|
14
|
+
*/
|
|
15
|
+
styles?: StyleFactory<E>;
|
|
11
16
|
icons?: DeepPartial<Icons>;
|
|
12
17
|
children?: ReactNode;
|
|
13
18
|
}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EAAE,KAAK,KAAK,EAAc,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGjE,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IACvE;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACzB,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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
export type StyleRules = StyleSheet.NamedStyles<Record<string, unknown>>;
|
|
3
|
+
export type ThemedStylesFactory<C> = <T extends StyleSheet.NamedStyles<T> | StyleRules, P extends readonly unknown[] = []>(factory: (context: C, ...props: P) => T & StyleRules) => (context: C, ...props: P) => T;
|
|
4
|
+
export declare const createThemedStylesFactory: <C>() => ThemedStylesFactory<C>;
|
|
5
|
+
//# sourceMappingURL=createThemedStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createThemedStyles.d.ts","sourceRoot":"","sources":["../../../src/style/createThemedStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEzE,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CACjC,CAAC,SAAS,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,EAChD,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,EAEjC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,UAAU,KACnD,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,yBAAyB,GACjC,CAAC,OAAK,mBAAmB,CAAC,CAAC,CAGqB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createThemedStylesFactory, type StyleRules, type ThemedStylesFactory, } from "./createThemedStyles";
|
|
2
|
+
export type { StyleFactory } from "./styleFactory";
|
|
3
|
+
export { createDefaultStyles, createStyles, type StyleOverrides, type Styles, } from "./styles";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,KAAK,UAAU,EACf,KAAK,mBAAmB,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,MAAM,GACd,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleFactory.d.ts","sourceRoot":"","sources":["../../../src/style/styleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAChE,KAAK,EAAE,KAAK,KACX,CAAC,CAAC"}
|