@reillymc/react-native-components 0.12.1 → 0.12.3
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/actions/action/Action.js +1 -1
- package/lib/actions/action/ActionBase.js +1 -1
- package/lib/actions/action/IconAction.js +1 -1
- package/lib/actions/action/IconActionBase.js +1 -1
- package/lib/actions/action/PressableBase.js +1 -1
- package/lib/actions/action/StateTint.js +1 -1
- package/lib/actions/button/Button.js +1 -1
- package/lib/actions/button/ButtonBase.js +1 -1
- package/lib/actions/button/IconButton.js +1 -1
- package/lib/actions/button/IconButtonBase.js +1 -1
- package/lib/actions/surface/InteractionSurface.js +1 -1
- package/lib/actions/surface/StateLayer.js +1 -1
- package/lib/actions/swipeAction/SwipeAction.js +1 -1
- package/lib/display/avatar/Avatar.js +1 -1
- package/lib/display/badge/Badge.js +1 -1
- package/lib/display/contentRow/ContentRow.js +1 -1
- package/lib/display/index.js +1 -1
- package/lib/display/listItem/ListItem.js +1 -1
- package/lib/display/rating/Rating.js +1 -1
- package/lib/display/tag/Tag.js +1 -1
- package/lib/display/tag/TagIcon.js +1 -1
- package/lib/display/toggleIndicator/ToggleIndicator.js +1 -0
- package/lib/display/toggleIndicator/ToggleIndicator.theme.js +1 -0
- package/lib/display/toggleIndicator/index.js +1 -0
- package/lib/feedback/toast/Toast.js +1 -1
- package/lib/forms/field/Field.js +1 -1
- package/lib/forms/field/Field.theme.js +1 -1
- package/lib/forms/field/FieldAction.js +1 -1
- package/lib/forms/field/FieldIcon.js +1 -1
- package/lib/forms/field/FieldNumberInput.js +1 -1
- package/lib/forms/field/FieldRow.js +1 -1
- package/lib/forms/field/FieldSurface.js +1 -1
- package/lib/forms/field/FieldSurfacePressLayer.js +1 -1
- package/lib/forms/field/FieldTextInput.js +1 -1
- package/lib/forms/formContainer/FormContainer.js +1 -1
- package/lib/forms/formRow/FormRow.js +1 -1
- package/lib/forms/input/TextInput.js +1 -1
- package/lib/forms/input/TextInput.theme.js +1 -0
- package/lib/forms/input/comboboxInput/ComboboxBlurGuard.web.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInput.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInput.theme.js +1 -1
- package/lib/forms/input/comboboxInput/ComboboxInputBase.js +1 -1
- package/lib/forms/input/counterInput/CounterControl.js +1 -1
- package/lib/forms/input/counterInput/CounterInput.js +1 -1
- package/lib/forms/input/counterInput/CounterInput.theme.js +1 -0
- package/lib/forms/input/numberInput/NumberInput.js +1 -1
- package/lib/forms/input/numberInput/NumberInput.theme.js +1 -0
- package/lib/forms/input/ratingInput/AnimatedStar.js +1 -1
- package/lib/forms/input/ratingInput/RatingControl.js +1 -1
- package/lib/forms/input/ratingInput/RatingInput.js +1 -1
- package/lib/forms/input/ratingInput/RatingInput.theme.js +1 -1
- package/lib/forms/input/selectionInput/SelectionControl.js +1 -1
- package/lib/forms/input/selectionInput/SelectionInput.js +1 -1
- package/lib/forms/input/selectionInput/SelectionInput.theme.js +1 -1
- package/lib/forms/input/shared/SegmentedInputSegments.js +1 -0
- package/lib/forms/input/timeInput/TimeInput.js +1 -1
- package/lib/forms/input/timeInput/TimeInput.theme.js +1 -0
- package/lib/forms/input/toggleInput/ToggleControl.js +1 -1
- package/lib/forms/input/toggleInput/ToggleInput.js +1 -1
- package/lib/forms/input/toggleInput/ToggleInput.theme.js +1 -1
- package/lib/icons/Icon.js +1 -1
- package/lib/icons/IconBase.js +1 -1
- package/lib/icons/index.js +1 -1
- package/lib/icons/ui/ArrowBoth.js +1 -1
- package/lib/icons/ui/Check.js +1 -1
- package/lib/icons/ui/ChevronDown.js +1 -1
- package/lib/icons/ui/Circle.js +1 -1
- package/lib/icons/ui/CircleFilled.js +1 -1
- package/lib/icons/ui/Clock.js +1 -1
- package/lib/icons/ui/Dash.js +1 -1
- package/lib/icons/ui/Exclamation.js +1 -1
- package/lib/icons/ui/InfinityGlyph.js +1 -1
- package/lib/icons/ui/NumberGlyph.js +1 -1
- package/lib/icons/ui/Plus.js +1 -1
- package/lib/icons/ui/StarBorder.js +1 -1
- package/lib/icons/ui/StarFull.js +1 -1
- package/lib/icons/ui/StarHalf.js +1 -1
- package/lib/icons/ui/index.js +1 -1
- package/lib/layout/collapsiblePanel/CollapsiblePanel.js +1 -1
- package/lib/layout/swipeable/SwipeableContainer.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.ios.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.js +1 -1
- package/lib/overlays/anchoredContainer/AnchoredContainer.web.js +1 -1
- package/lib/overlays/anchoredContainer/InlineMount.js +1 -1
- package/lib/overlays/anchoredContainer/OverlayMount.js +1 -1
- package/lib/overlays/menu/Menu.js +1 -1
- package/lib/overlays/menu/MenuItem.js +1 -1
- package/lib/overlays/menu/VirtualizedListContextResetter.js +1 -0
- package/lib/overlays/menu/VirtualizedListContextResetter.web.js +1 -0
- package/lib/theme/ThemeProvider.js +1 -1
- package/lib/theme/createAppTheme.js +1 -1
- package/lib/theme/icons.js +1 -1
- package/lib/theme/size.js +0 -0
- package/lib/theme/themeDefinitions.js +1 -1
- package/lib/types/display/index.d.ts +1 -0
- package/lib/types/display/index.d.ts.map +1 -1
- package/lib/types/display/toggleIndicator/ToggleIndicator.d.ts +25 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.d.ts.map +1 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.theme.d.ts +3 -0
- package/lib/types/display/toggleIndicator/ToggleIndicator.theme.d.ts.map +1 -0
- package/lib/types/display/toggleIndicator/index.d.ts +2 -0
- package/lib/types/display/toggleIndicator/index.d.ts.map +1 -0
- package/lib/types/forms/field/Field.d.ts +7 -3
- package/lib/types/forms/field/Field.d.ts.map +1 -1
- package/lib/types/forms/field/Field.theme.d.ts +7 -7
- package/lib/types/forms/field/Field.theme.d.ts.map +1 -1
- package/lib/types/forms/field/FieldContext.d.ts +1 -1
- package/lib/types/forms/field/FieldRow.d.ts.map +1 -1
- package/lib/types/forms/field/FieldSurface.d.ts +3 -0
- package/lib/types/forms/field/FieldSurface.d.ts.map +1 -1
- package/lib/types/forms/field/FieldTextInput.d.ts +2 -5
- package/lib/types/forms/field/FieldTextInput.d.ts.map +1 -1
- package/lib/types/forms/field/index.d.ts +1 -1
- package/lib/types/forms/field/index.d.ts.map +1 -1
- package/lib/types/forms/index.d.ts +2 -2
- package/lib/types/forms/index.d.ts.map +1 -1
- package/lib/types/forms/input/TextInput.d.ts +5 -1
- package/lib/types/forms/input/TextInput.d.ts.map +1 -1
- package/lib/types/forms/input/TextInput.theme.d.ts +7 -0
- package/lib/types/forms/input/TextInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts +6 -5
- package/lib/types/forms/input/comboboxInput/ComboboxInput.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts +6 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts +3 -0
- package/lib/types/forms/input/comboboxInput/ComboboxInputBase.d.ts.map +1 -1
- package/lib/types/forms/input/comboboxInput/index.d.ts +1 -0
- package/lib/types/forms/input/comboboxInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterControl.d.ts +3 -0
- package/lib/types/forms/input/counterInput/CounterControl.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterInput.d.ts +3 -0
- package/lib/types/forms/input/counterInput/CounterInput.d.ts.map +1 -1
- package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts +8 -0
- package/lib/types/forms/input/counterInput/CounterInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/counterInput/index.d.ts +1 -0
- package/lib/types/forms/input/counterInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/index.d.ts +6 -5
- package/lib/types/forms/input/index.d.ts.map +1 -1
- package/lib/types/forms/input/numberInput/NumberInput.d.ts +3 -0
- package/lib/types/forms/input/numberInput/NumberInput.d.ts.map +1 -1
- package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts +8 -0
- package/lib/types/forms/input/numberInput/NumberInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/numberInput/index.d.ts +1 -0
- package/lib/types/forms/input/numberInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/ratingInput/RatingInput.d.ts.map +1 -1
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts +2 -0
- package/lib/types/forms/input/ratingInput/RatingInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/selectionInput/SelectionControl.d.ts.map +1 -1
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts +2 -0
- package/lib/types/forms/input/selectionInput/SelectionInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts +11 -0
- package/lib/types/forms/input/shared/SegmentedInputSegments.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts +3 -0
- package/lib/types/forms/input/timeInput/TimeInput.d.ts.map +1 -1
- package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts +11 -0
- package/lib/types/forms/input/timeInput/TimeInput.theme.d.ts.map +1 -0
- package/lib/types/forms/input/timeInput/index.d.ts +1 -0
- package/lib/types/forms/input/timeInput/index.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts +3 -4
- package/lib/types/forms/input/toggleInput/ToggleControl.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts +3 -4
- package/lib/types/forms/input/toggleInput/ToggleInput.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts +2 -12
- package/lib/types/forms/input/toggleInput/ToggleInput.theme.d.ts.map +1 -1
- package/lib/types/forms/input/toggleInput/index.d.ts +1 -1
- package/lib/types/forms/input/toggleInput/index.d.ts.map +1 -1
- package/lib/types/icons/index.d.ts +1 -0
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/overlays/menu/Menu.d.ts.map +1 -1
- package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts +3 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.d.ts.map +1 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts +3 -0
- package/lib/types/overlays/menu/VirtualizedListContextResetter.web.d.ts.map +1 -0
- package/lib/types/theme/icons.d.ts +3 -3
- package/lib/types/theme/icons.d.ts.map +1 -1
- package/lib/types/theme/index.d.ts +1 -0
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/size.d.ts +2 -0
- package/lib/types/theme/size.d.ts.map +1 -0
- package/lib/types/theme/theme.d.ts +12 -2
- package/lib/types/theme/theme.d.ts.map +1 -1
- package/lib/types/theme/themeDefinitions.d.ts.map +1 -1
- package/lib/typography/text/HighlightedText.js +1 -1
- package/lib/typography/text/Text.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import { type FieldNumberInputProps } from "../../field";
|
|
3
4
|
import type { CounterInputProps } from "./CounterInput";
|
|
5
|
+
import type { CounterInputTheme } from "./CounterInput.theme";
|
|
4
6
|
export type CounterControlProps = {
|
|
5
7
|
value?: string;
|
|
6
8
|
onChange?: (value: string) => void;
|
|
@@ -12,6 +14,7 @@ export type CounterControlProps = {
|
|
|
12
14
|
placeholder?: string;
|
|
13
15
|
maxLength?: number;
|
|
14
16
|
onSubmitEditing?: FieldNumberInputProps["onSubmitEditing"];
|
|
17
|
+
theme?: DeepPartial<CounterInputTheme>;
|
|
15
18
|
};
|
|
16
19
|
export declare const CounterControl: FC<CounterControlProps>;
|
|
17
20
|
//# sourceMappingURL=CounterControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CounterControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAGH,KAAK,qBAAqB,EAI7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,WAAW,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ElD,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import type { ComponentIconAssets } from "../../../icons/componentIconAssets";
|
|
3
4
|
import { type FieldComponentProps, type FieldNumberInputProps } from "../../field";
|
|
5
|
+
import type { CounterInputTheme } from "./CounterInput.theme";
|
|
4
6
|
export type CounterInputIcons = ComponentIconAssets<"decrease" | "increase">;
|
|
5
7
|
export type CounterInputProps = FieldComponentProps & Pick<FieldNumberInputProps, "placeholder" | "maxLength" | "onSubmitEditing" | "keyboardType"> & {
|
|
6
8
|
value?: string;
|
|
@@ -9,6 +11,7 @@ export type CounterInputProps = FieldComponentProps & Pick<FieldNumberInputProps
|
|
|
9
11
|
interval?: number;
|
|
10
12
|
min?: number;
|
|
11
13
|
max?: number;
|
|
14
|
+
theme?: DeepPartial<CounterInputTheme>;
|
|
12
15
|
};
|
|
13
16
|
/**
|
|
14
17
|
* Numeric input with increment and decrement actions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CounterInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC7B,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,UAAU,GAAG,UAAU,CAAC,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAC/C,IAAI,CACA,qBAAqB,EACrB,aAAa,GAAG,WAAW,GAAG,iBAAiB,GAAG,cAAc,CACnE,GAAG;IACA,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;CAC1C,CAAC;AAEN;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+B9C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThemeFactory } from "../../../theme/theme";
|
|
2
|
+
import type { FieldTextInputTheme, FieldTheme } from "../../field";
|
|
3
|
+
export type CounterInputTheme = {
|
|
4
|
+
surface: FieldTheme["surface"];
|
|
5
|
+
textInput: FieldTextInputTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare const defaultCounterInputTheme: ThemeFactory<"counterInput">;
|
|
8
|
+
//# sourceMappingURL=CounterInput.theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CounterInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/CounterInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,YAAY,CAAC,cAAc,CAKhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/counterInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { ComboboxInputProps } from "./comboboxInput";
|
|
1
|
+
export type { ComboboxInputProps, ComboboxInputTheme } from "./comboboxInput";
|
|
2
2
|
export { ComboboxInput, type ComboboxInputHandle, type ComboboxValue, } from "./comboboxInput";
|
|
3
|
-
export type { CounterInputProps } from "./counterInput";
|
|
3
|
+
export type { CounterInputProps, CounterInputTheme } from "./counterInput";
|
|
4
4
|
export { CounterInput } from "./counterInput";
|
|
5
|
-
export type { FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputValue, NumberValue, RangeValue, } from "./numberInput";
|
|
5
|
+
export type { FractionValue, NumberInputHandle, NumberInputPlaceholders, NumberInputProps, NumberInputTheme, NumberInputValue, NumberValue, RangeValue, } from "./numberInput";
|
|
6
6
|
export { NumberInput } from "./numberInput";
|
|
7
7
|
export type { RatingInputProps } from "./ratingInput";
|
|
8
8
|
export { RatingInput } from "./ratingInput";
|
|
@@ -10,9 +10,10 @@ export type { SelectionInputProps } from "./selectionInput";
|
|
|
10
10
|
export { SelectionInput } from "./selectionInput";
|
|
11
11
|
export type { TextInputProps } from "./TextInput";
|
|
12
12
|
export { TextInput } from "./TextInput";
|
|
13
|
-
export type {
|
|
13
|
+
export type { TextInputTheme } from "./TextInput.theme";
|
|
14
|
+
export type { TimeInputHandle, TimeInputPlaceholders, TimeInputProps, TimeInputTheme, TimeInputValue, } from "./timeInput";
|
|
14
15
|
export { TimeInput } from "./timeInput";
|
|
15
|
-
export type { ToggleInputProps } from "./toggleInput";
|
|
16
|
+
export type { ToggleInputProps, ToggleInputTheme, } from "./toggleInput";
|
|
16
17
|
export { ToggleInput } from "./toggleInput";
|
|
17
18
|
export type { ValueItem, ValueItemComplex, ValueItemSimple, } from "./valueItem";
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EACH,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,aAAa,GACrB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACR,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,YAAY,EACR,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACR,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACR,SAAS,EACT,gBAAgB,EAChB,eAAe,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type FC, type Ref } from "react";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import type { ComponentIconAssets } from "../../../icons/componentIconAssets";
|
|
3
4
|
import { type FieldComponentProps, type FieldNumberInputProps } from "../../field";
|
|
4
5
|
import { type SegmentedInputHandle } from "../shared/useSegmentedInputNavigation";
|
|
6
|
+
import type { NumberInputTheme } from "./NumberInput.theme";
|
|
5
7
|
export type NumberInputHandle = SegmentedInputHandle & {
|
|
6
8
|
clear: () => void;
|
|
7
9
|
};
|
|
@@ -34,6 +36,7 @@ export type NumberInputProps = FieldComponentProps & Pick<FieldNumberInputProps,
|
|
|
34
36
|
value?: NumberInputValue;
|
|
35
37
|
placeholder?: NumberInputPlaceholders;
|
|
36
38
|
ref?: Ref<NumberInputHandle>;
|
|
39
|
+
theme?: DeepPartial<NumberInputTheme>;
|
|
37
40
|
onChange?: (e: NumberInputValue) => void;
|
|
38
41
|
};
|
|
39
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/numberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/numberInput/NumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,EAAuB,MAAM,OAAO,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,OAAO,EAGH,KAAK,mBAAmB,EAExB,KAAK,qBAAqB,EAG7B,MAAM,aAAa,CAAC;AAErB,OAAO,EACH,KAAK,oBAAoB,EAE5B,MAAM,uCAAuC,CAAC;AAS/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACnD,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IAAE,cAAc,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AACtE,MAAM,MAAM,UAAU,GAAG;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG;IACxB,cAAc,EAAE,UAAU,CAAC;IAC3B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;AAExE,MAAM,MAAM,uBAAuB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,eAAe,CAAC,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAC9C,IAAI,CACA,qBAAqB,EACnB,WAAW,GACX,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,gBAAgB,CACrB,GAAG;IACA,YAAY,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAC5C,sBAAsB,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3C,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC5C,CAAC;AAaN;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA8I5C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThemeFactory } from "../../../theme/theme";
|
|
2
|
+
import type { FieldTextInputTheme, FieldTheme } from "../../field";
|
|
3
|
+
export type NumberInputTheme = {
|
|
4
|
+
surface: FieldTheme["surface"];
|
|
5
|
+
textInput: FieldTextInputTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare const defaultNumberInputTheme: ThemeFactory<"numberInput">;
|
|
8
|
+
//# sourceMappingURL=NumberInput.theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/numberInput/NumberInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,aAAa,CAK9D,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { FractionValue, NumberInputHandle, NumberInputIcons, NumberInputPlaceholders, NumberInputProps, NumberInputValue, NumberValue, RangeValue, } from "./NumberInput";
|
|
2
2
|
export { NumberInput } from "./NumberInput";
|
|
3
|
+
export type { NumberInputTheme } from "./NumberInput.theme";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/numberInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/numberInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,UAAU,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/ratingInput/RatingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"RatingInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/ratingInput/RatingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAS,KAAK,mBAAmB,EAAgB,MAAM,aAAa,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAC9C,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC,GAAG;IAC3C,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEN,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuB5C,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ColorValue } from "react-native";
|
|
2
2
|
import type { RatingIconVariant } from "../../../display/rating";
|
|
3
3
|
import type { ThemeFactory } from "../../../theme/theme";
|
|
4
|
+
import type { FieldTheme } from "../../field";
|
|
4
5
|
export type RatingInputTheme = {
|
|
5
6
|
icon: {
|
|
6
7
|
color: Record<RatingIconVariant, ColorValue>;
|
|
7
8
|
};
|
|
9
|
+
surface: FieldTheme["surface"];
|
|
8
10
|
};
|
|
9
11
|
export declare const defaultRatingInputTheme: ThemeFactory<"ratingInput">;
|
|
10
12
|
//# sourceMappingURL=RatingInput.theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/ratingInput/RatingInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"RatingInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/ratingInput/RatingInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE;QACF,KAAK,EAAE,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;KAChD,CAAC;IACF,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,aAAa,CAO9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/selectionInput/SelectionControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,KAAK,qBAAqB,CAAC,CAAC,IAAI;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,iFAOlC,qBAAqB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"SelectionControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/selectionInput/SelectionControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,KAAK,qBAAqB,CAAC,CAAC,IAAI;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,iFAOlC,qBAAqB,CAAC,CAAC,CAAC,gCAmE1B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ThemeFactory } from "../../../theme/theme";
|
|
2
|
+
import type { FieldTheme } from "../../field";
|
|
2
3
|
export type SelectionInputTheme = {
|
|
3
4
|
selectionContainer: {
|
|
4
5
|
gap: number;
|
|
5
6
|
};
|
|
7
|
+
surface: FieldTheme["surface"];
|
|
6
8
|
};
|
|
7
9
|
export declare const defaultSelectionInputTheme: ThemeFactory<"selectionInput">;
|
|
8
10
|
//# sourceMappingURL=SelectionInput.theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/selectionInput/SelectionInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectionInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/selectionInput/SelectionInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAC9B,kBAAkB,EAAE;QAChB,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,gBAAgB,CAQpE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import type { SegmentedInputDisplaySegment } from "./useSegmentedInputNavigation";
|
|
4
|
+
export type SegmentedInputSegmentsProps<K extends string> = {
|
|
5
|
+
segments: readonly SegmentedInputDisplaySegment<K>[];
|
|
6
|
+
renderSegment: (segment: SegmentedInputDisplaySegment<K>, index: number) => ReactNode;
|
|
7
|
+
keyExtractor?: (segment: SegmentedInputDisplaySegment<K>, index: number) => string | number;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
};
|
|
10
|
+
export declare const SegmentedInputSegments: <K extends string>({ segments, renderSegment, keyExtractor, style, }: SegmentedInputSegmentsProps<K>) => import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SegmentedInputSegments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedInputSegments.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/shared/SegmentedInputSegments.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAElF,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,MAAM,IAAI;IACxD,QAAQ,EAAE,SAAS,4BAA4B,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,aAAa,EAAE,CACX,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,EACxC,KAAK,EAAE,MAAM,KACZ,SAAS,CAAC;IACf,YAAY,CAAC,EAAE,CACX,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,EACxC,KAAK,EAAE,MAAM,KACZ,MAAM,GAAG,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,EAAE,mDAKtD,2BAA2B,CAAC,CAAC,CAAC,gCAQhC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type FC, type Ref } from "react";
|
|
2
|
+
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
3
|
import type { ComponentIconAssets } from "../../../icons/componentIconAssets";
|
|
3
4
|
import { type FieldComponentProps, type FieldNumberInputProps } from "../../field";
|
|
4
5
|
import { type SegmentedInputHandle } from "../shared/useSegmentedInputNavigation";
|
|
6
|
+
import type { TimeInputTheme } from "./TimeInput.theme";
|
|
5
7
|
export type TimeInputValue = {
|
|
6
8
|
hours: string;
|
|
7
9
|
minutes: string;
|
|
@@ -18,6 +20,7 @@ export type TimeInputProps = FieldComponentProps & Pick<FieldNumberInputProps, "
|
|
|
18
20
|
value?: TimeInputValue;
|
|
19
21
|
placeholder?: TimeInputPlaceholders;
|
|
20
22
|
ref?: Ref<TimeInputHandle>;
|
|
23
|
+
theme?: DeepPartial<TimeInputTheme>;
|
|
21
24
|
onChange?: (e: TimeInputValue) => void;
|
|
22
25
|
};
|
|
23
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/timeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TimeInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/timeInput/TimeInput.tsx"],"names":[],"mappings":"AAAA,OAA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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ThemeFactory } from "../../../theme/theme";
|
|
2
|
+
import type { FieldTextInputTheme, FieldTheme } from "../../field";
|
|
3
|
+
export type TimeInputTheme = {
|
|
4
|
+
unitLabel: {
|
|
5
|
+
paddingStart: number;
|
|
6
|
+
};
|
|
7
|
+
surface: FieldTheme["surface"];
|
|
8
|
+
textInput: FieldTextInputTheme;
|
|
9
|
+
};
|
|
10
|
+
export declare const defaultTimeInputTheme: ThemeFactory<"timeInput">;
|
|
11
|
+
//# sourceMappingURL=TimeInput.theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/timeInput/TimeInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,SAAS,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAS1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/timeInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,cAAc,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/timeInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,cAAc,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
+
import { type ToggleIndicatorProps } from "../../../display/toggleIndicator";
|
|
2
3
|
import type { IconComponentProps } from "../../../icons/IconComponentProps";
|
|
3
|
-
import type {
|
|
4
|
-
type ToggleControlProps<G extends string> = {
|
|
4
|
+
import type { ToggleInputTheme } from "./ToggleInput.theme";
|
|
5
|
+
type ToggleControlProps<G extends string> = Pick<ToggleIndicatorProps<G>, "appearance" | "value"> & {
|
|
5
6
|
label?: string;
|
|
6
|
-
value: boolean;
|
|
7
7
|
onChange?: (value: boolean) => void;
|
|
8
|
-
appearance: ToggleAppearance;
|
|
9
8
|
themeOverrides?: DeepPartial<ToggleInputTheme>;
|
|
10
9
|
} & Partial<IconComponentProps<G>>;
|
|
11
10
|
export declare const ToggleControl: <G extends string>({ label, value, onChange, appearance, themeOverrides, iconSet, iconName, }: ToggleControlProps<G>) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ToggleControl.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAEH,KAAK,oBAAoB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAI5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,KAAK,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAC5C,oBAAoB,CAAC,CAAC,CAAC,EACvB,YAAY,GAAG,OAAO,CACzB,GAAG;IACA,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAClD,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,EAAE,4EAQ7C,kBAAkB,CAAC,CAAC,CAAC,gCAwCvB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { DeepPartial } from "@reillymc/es-utils";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ToggleAppearance } from "../../../display/toggleIndicator";
|
|
3
3
|
import type { IconComponentProps } from "../../../icons/IconComponentProps";
|
|
4
4
|
import { type FieldComponentProps } from "../../field";
|
|
5
|
-
import type {
|
|
6
|
-
export type ToggleInputIcons = ComponentIconAssets<"outline" | "fill" | "check">;
|
|
5
|
+
import type { ToggleInputTheme } from "./ToggleInput.theme";
|
|
7
6
|
export type ToggleInputProps<G extends string> = Omit<FieldComponentProps, "error" | "required" | "hideLabel"> & {
|
|
8
7
|
value?: boolean;
|
|
9
8
|
onChange?: (value: boolean) => void;
|
|
@@ -15,5 +14,5 @@ export type ToggleInputProps<G extends string> = Omit<FieldComponentProps, "erro
|
|
|
15
14
|
*
|
|
16
15
|
* Selected toggles show the provided icon, or a built-in check when omitted.
|
|
17
16
|
*/
|
|
18
|
-
export declare const ToggleInput: <G extends string>({ label, value, onChange, appearance, theme: themeOverrides, iconSet, iconName, ...fieldProps }: ToggleInputProps<G>) => import("react").JSX.Element;
|
|
17
|
+
export declare const ToggleInput: <G extends string>({ label, value, onChange, appearance, variant, theme: themeOverrides, iconSet, iconName, ...fieldProps }: ToggleInputProps<G>) => import("react").JSX.Element;
|
|
19
18
|
//# sourceMappingURL=ToggleInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ToggleInput.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAS,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CACjD,mBAAmB,EACnB,OAAO,GAAG,UAAU,GAAG,WAAW,CACrC,GAAG;IACA,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,KAAK,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CACzC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,EAAE,0GAU3C,gBAAgB,CAAC,CAAC,CAAC,gCA0BrB,CAAC"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ToggleIndicatorTheme } from "../../../display/toggleIndicator";
|
|
2
2
|
import type { ThemeFactory } from "../../../theme/theme";
|
|
3
|
-
import type { InputVariant } from "../../field";
|
|
4
|
-
export type ToggleAppearance = "primary" | "secondary";
|
|
5
3
|
export type ToggleInputTheme = {
|
|
6
|
-
indicator:
|
|
7
|
-
surfaceSize: Record<InputVariant, number>;
|
|
8
|
-
iconSize: Record<InputVariant, number>;
|
|
9
|
-
color: {
|
|
10
|
-
selected: Record<ToggleAppearance, ColorValue>;
|
|
11
|
-
deselected: ColorValue;
|
|
12
|
-
icon: Record<ToggleAppearance, ColorValue>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
4
|
+
indicator: ToggleIndicatorTheme;
|
|
15
5
|
label: {
|
|
16
6
|
gap: number;
|
|
17
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ToggleInput.theme.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/ToggleInput.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,aAAa,CAQ9D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ToggleInputProps } from "./ToggleInput";
|
|
2
2
|
export { ToggleInput } from "./ToggleInput";
|
|
3
3
|
export type { ToggleInputTheme } from "./ToggleInput.theme";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/forms/input/toggleInput/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { IconSet, IconSetGlyphMap, IconSetItemProps } from "./base";
|
|
2
2
|
export { Icon, type IconProps } from "./Icon";
|
|
3
|
+
export { IconBase, type IconBaseProps } from "./IconBase";
|
|
3
4
|
export type { IconComponentProps } from "./IconComponentProps";
|
|
4
5
|
export { type UiIconName, UiIcons } from "./ui";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,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,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,KAAK,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/overlays/menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/overlays/menu/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,aAAa,EAClB,KAAK,cAAc,EAEtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,MAAM,SAAS,GAAG;IACpB,eAAe,EAAE,UAAU,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,OAAO,IAAI;IACjC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9B,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAE/B;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CACZ,aAAa,CAAC,CAAC,CAAC,EACd,MAAM,GACN,YAAY,GACZ,cAAc,GACd,UAAU,GACV,YAAY,GACZ,OAAO,GACP,uBAAuB,GACvB,8BAA8B,CACnC,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,CAAC,EAAG,6HAUtB,SAAS,CAAC,CAAC,CAAC,gCA+Dd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualizedListContextResetter.d.ts","sourceRoot":"","sources":["../../../../src/overlays/menu/VirtualizedListContextResetter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9D,eAAO,MAAM,8BAA8B,EACrB,aAAa,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualizedListContextResetter.web.d.ts","sourceRoot":"","sources":["../../../../src/overlays/menu/VirtualizedListContextResetter.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9D,eAAO,MAAM,8BAA8B,EACxB,aAAa,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { RatingIcons } from "../display/rating/Rating";
|
|
2
|
+
import type { ToggleIndicatorIcons } from "../display/toggleIndicator/ToggleIndicator";
|
|
2
3
|
import type { FieldIcons } from "../forms/field/Field";
|
|
3
4
|
import type { CounterInputIcons } from "../forms/input/counterInput";
|
|
4
5
|
import type { NumberInputIcons } from "../forms/input/numberInput";
|
|
5
6
|
import type { RatingInputIcons } from "../forms/input/ratingInput";
|
|
6
7
|
import type { SelectionInputIcons } from "../forms/input/selectionInput";
|
|
7
8
|
import type { TimeInputIcons } from "../forms/input/timeInput";
|
|
8
|
-
import type { ToggleInputIcons } from "../forms/input/toggleInput";
|
|
9
9
|
import type { AnyIconSet, IconSet } from "../icons/base";
|
|
10
10
|
type ComponentIcons = {
|
|
11
11
|
counterInput: CounterInputIcons;
|
|
@@ -15,7 +15,7 @@ type ComponentIcons = {
|
|
|
15
15
|
ratingInput: RatingInputIcons;
|
|
16
16
|
selectionInput: SelectionInputIcons;
|
|
17
17
|
timeInput: TimeInputIcons;
|
|
18
|
-
|
|
18
|
+
toggleIndicator: ToggleIndicatorIcons;
|
|
19
19
|
};
|
|
20
20
|
export type Icons = {
|
|
21
21
|
[K in keyof ComponentIcons]: {
|
|
@@ -81,7 +81,7 @@ export declare const defaultIcons: {
|
|
|
81
81
|
iconName: string;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
toggleIndicator: {
|
|
85
85
|
outline: {
|
|
86
86
|
iconSet: IconSet<import("../icons").UiIconName>;
|
|
87
87
|
iconName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/theme/icons.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,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AC,CAAC,GAAG;YACtB,OAAO,EAAE,UAAU,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;SACpB;KACJ;CACJ,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;KACvB,QAAQ,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE;SACvB,IAAI,IAAI,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC;KAC1D;CACJ,CAAC;AASF,MAAM,MAAM,oBAAoB,GAAG;KAC9B,QAAQ,IAAI,MAAM,cAAc,GAAG;SAC/B,MAAM,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG;YAClC,OAAO,EAAE,UAAU,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;SACpB;KACJ;CACJ,CAAC;AAkBF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCvB,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,YAAY,aAAa,KAAG,KAetD,CAAC"}
|
|
@@ -2,6 +2,7 @@ export { type ColorScheme, darkColorScheme, lightColorScheme } from "./colors";
|
|
|
2
2
|
export { type AppThemeFactory, createAppTheme } from "./createAppTheme";
|
|
3
3
|
export type { IconOverrides } from "./icons";
|
|
4
4
|
export type { Palette, PaletteOverrides } from "./palette";
|
|
5
|
+
export type { SizeVariant } from "./size";
|
|
5
6
|
export type { Systems, SystemsOverrides } from "./systems";
|
|
6
7
|
export type { Theme, ThemeOverrides } from "./theme";
|
|
7
8
|
export { type UseSystemsResult, useSystems } from "./useSystems";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,KAAK,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAE,KAAK,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../src/theme/size.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -16,14 +16,19 @@ import type { ListItemTheme } from "../display/listItem/ListItem";
|
|
|
16
16
|
import type { RatingTheme } from "../display/rating/Rating";
|
|
17
17
|
import type { TagTheme } from "../display/tag/Tag";
|
|
18
18
|
import type { TagIconTheme } from "../display/tag/TagIcon";
|
|
19
|
+
import type { ToggleIndicatorTheme } from "../display/toggleIndicator/ToggleIndicator";
|
|
19
20
|
import type { ToastTheme } from "../feedback/toast/Toast";
|
|
20
21
|
import type { FieldTheme } from "../forms/field";
|
|
21
22
|
import type { FormContainerTheme } from "../forms/formContainer/FormContainer";
|
|
22
23
|
import type { FormRowTheme } from "../forms/formRow/FormRow";
|
|
23
|
-
import type { ComboboxInputTheme } from "../forms/input/comboboxInput/ComboboxInput";
|
|
24
|
+
import type { ComboboxInputTheme } from "../forms/input/comboboxInput/ComboboxInput.theme";
|
|
25
|
+
import type { CounterInputTheme } from "../forms/input/counterInput/CounterInput.theme";
|
|
26
|
+
import type { NumberInputTheme } from "../forms/input/numberInput/NumberInput.theme";
|
|
24
27
|
import type { RatingInputTheme } from "../forms/input/ratingInput";
|
|
25
28
|
import type { SelectionInputTheme } from "../forms/input/selectionInput";
|
|
26
|
-
import type {
|
|
29
|
+
import type { TextInputTheme } from "../forms/input/TextInput.theme";
|
|
30
|
+
import type { TimeInputTheme } from "../forms/input/timeInput/TimeInput.theme";
|
|
31
|
+
import type { ToggleInputTheme } from "../forms/input/toggleInput/ToggleInput.theme";
|
|
27
32
|
import type { IconTheme } from "../icons/Icon";
|
|
28
33
|
import type { IconBaseTheme } from "../icons/IconBase";
|
|
29
34
|
import type { AnchoredContainerTheme } from "../overlays/anchoredContainer/AnchoredContainer";
|
|
@@ -47,8 +52,13 @@ export interface Theme {
|
|
|
47
52
|
iconButton: IconButtonTheme;
|
|
48
53
|
stateLayer: StateLayerTheme;
|
|
49
54
|
field: FieldTheme;
|
|
55
|
+
textInput: TextInputTheme;
|
|
56
|
+
numberInput: NumberInputTheme;
|
|
57
|
+
counterInput: CounterInputTheme;
|
|
58
|
+
timeInput: TimeInputTheme;
|
|
50
59
|
selectionInput: SelectionInputTheme;
|
|
51
60
|
toggleInput: ToggleInputTheme;
|
|
61
|
+
toggleIndicator: ToggleIndicatorTheme;
|
|
52
62
|
comboboxInput: ComboboxInputTheme;
|
|
53
63
|
rating: RatingTheme;
|
|
54
64
|
ratingInput: RatingInputTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,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IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,aAAa,EAAE,kBAAkB,CAAC;IAClC,OAAO,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,KAAK,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeDefinitions.d.ts","sourceRoot":"","sources":["../../../src/theme/themeDefinitions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themeDefinitions.d.ts","sourceRoot":"","sources":["../../../src/theme/themeDefinitions.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG;KAC1B,CAAC,IAAI,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAsCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _excluded=["text","highlight","textStyles","theme","variant"];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{StyleSheet}from"react-native";import{useComponent}from"../../internal";import{Text}from"./Text";import{createElement as _createElement}from"react";import{jsx as _jsx}from"react/jsx-runtime";var escapeForRegex=value=>value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var splitHighlight=(text,highlight)=>{if(!highlight)return[{text,highlighted:false,offset:0}];var lowerHighlight=highlight.toLowerCase();var pattern=new RegExp(`(${escapeForRegex(highlight)})`,"gi");var parts=[];var offset=0;for(var part of text.split(pattern)){if(part==="")continue;parts.push({text:part,highlighted:part.toLowerCase()===lowerHighlight,offset});offset+=part.length;}return parts;};export var HighlightedText=t0=>{var $=_c(22);var props;var t1;var t2;var t3;var textStyles;var themeOverrides;if($[0]!==t0){t1=t0.text;t2=t0.highlight;textStyles=t0.textStyles;themeOverrides=t0.theme;t3=t0.variant;props=_objectWithoutProperties(t0,_excluded);$[0]=t0;$[1]=props;$[2]=t1;$[3]=t2;$[4]=t3;$[5]=textStyles;$[6]=themeOverrides;}else{props=$[1];t1=$[2];t2=$[3];t3=$[4];textStyles=$[5];themeOverrides=$[6];}var text=t1===undefined?"":t1;var highlight=t2===undefined?"":t2;var variant=t3===undefined?"body":t3;var t4;if($[7]!==themeOverrides){t4={themeOverrides};$[7]=themeOverrides;$[8]=t4;}else{t4=$[8];}var _useComponent=useComponent("highlightedText",t4),theme=_useComponent.theme;var t5;if($[9]!==highlight||$[10]!==props||$[11]!==text||$[12]!==textStyles||$[13]!==theme||$[14]!==variant){var parts=splitHighlight(text,highlight);var t6;if($[16]!==textStyles){t6=[styles.textWrapper,textStyles];$[16]=textStyles;$[17]=t6;}else{t6=$[17];}var t7;if($[18]!==props||$[19]!==theme||$[20]!==variant){t7=part=>_createElement(Text,{...props,variant:variant,key:part.offset,theme:{color:theme.color,font:{[variant]:{weight:part.highlighted?theme.highlightedWeight[variant]:undefined}}}},part.text);$[18]=props;$[19]=theme;$[20]=variant;$[21]=t7;}else{t7=$[21];}t5=_jsx(Text,{style:t6,children:parts.map(t7)});$[9]=highlight;$[10]=props;$[11]=text;$[12]=textStyles;$[13]=theme;$[14]=variant;$[15]=t5;}else{t5=$[15];}return t5;};var styles=StyleSheet.create({textWrapper:{display:"flex",flexDirection:"row"}});
|