@ornikar/kitt-universal 25.37.0 → 25.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/definitions/forms/Radio/Radio.d.ts +12 -6
- package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +5 -4
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +5 -4
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +5 -4
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +5 -4
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +5 -4
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +5 -4
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +4 -3
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [25.38.1](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.38.0...@ornikar/kitt-universal@25.38.1) (2024-12-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ornikar/kitt-universal
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [25.38.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.37.0...@ornikar/kitt-universal@25.38.0) (2024-12-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **kitt-universal/radio:** extend supported types for value [no issue] ([#2522](https://github.com/ornikar/kitt/issues/2522)) ([41a74ca](https://github.com/ornikar/kitt/commit/41a74ca884a3937e5e000624c940ce8278c60433))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [25.37.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.36.1...@ornikar/kitt-universal@25.37.0) (2024-12-13)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { GestureResponderEvent
|
|
3
|
-
|
|
1
|
+
import type { ForwardedRef, ReactNode } from 'react';
|
|
2
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
3
|
+
import { type PressableProps } from '../../native-base/primitives';
|
|
4
|
+
type RadioValue = string | number | Date;
|
|
5
|
+
export interface RadioProps<Value extends RadioValue = RadioValue> {
|
|
4
6
|
id?: string;
|
|
5
7
|
testID?: string;
|
|
6
8
|
name?: string;
|
|
@@ -8,10 +10,14 @@ export interface RadioProps {
|
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
right?: boolean;
|
|
10
12
|
children?: NonNullable<ReactNode>;
|
|
11
|
-
value:
|
|
12
|
-
onChange?: (newValue:
|
|
13
|
+
value: Value;
|
|
14
|
+
onChange?: (newValue: Value, event: GestureResponderEvent) => void;
|
|
13
15
|
onBlur?: () => void;
|
|
14
16
|
onFocus?: () => void;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
declare function Radio<Value extends RadioValue>({ id, checked, value, disabled, children, testID, onChange, onFocus, onBlur }: RadioProps<Value>, ref: ForwardedRef<PressableProps>): ReactNode;
|
|
19
|
+
declare const RadioWithRef: <Value extends RadioValue>(props: RadioProps<Value> & {
|
|
20
|
+
ref?: ForwardedRef<PressableProps> | undefined;
|
|
21
|
+
}) => ReturnType<typeof Radio>;
|
|
22
|
+
export { RadioWithRef as Radio };
|
|
17
23
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/forms/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/forms/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9E,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,iBAAS,KAAK,CAAC,KAAK,SAAS,UAAU,EACrC,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,KAAK,CAAC,EAChG,GAAG,EAAE,YAAY,CAAC,cAAc,CAAC,GAChC,SAAS,CA2CX;AAED,QAAA,MAAM,YAAY;;MAEb,WAAW,YAAY,CAAC,CAAC;AAE9B,OAAO,EAAE,YAAY,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -7129,7 +7129,7 @@ function OuterCircle({
|
|
|
7129
7129
|
});
|
|
7130
7130
|
}
|
|
7131
7131
|
|
|
7132
|
-
|
|
7132
|
+
function Radio({
|
|
7133
7133
|
id,
|
|
7134
7134
|
checked,
|
|
7135
7135
|
value,
|
|
@@ -7139,7 +7139,7 @@ const Radio = /*#__PURE__*/forwardRef(({
|
|
|
7139
7139
|
onChange,
|
|
7140
7140
|
onFocus,
|
|
7141
7141
|
onBlur
|
|
7142
|
-
}, ref)
|
|
7142
|
+
}, ref) {
|
|
7143
7143
|
return /*#__PURE__*/jsx(Pressable, {
|
|
7144
7144
|
ref: ref,
|
|
7145
7145
|
testID: testID,
|
|
@@ -7182,7 +7182,8 @@ const Radio = /*#__PURE__*/forwardRef(({
|
|
|
7182
7182
|
}) : null]
|
|
7183
7183
|
})
|
|
7184
7184
|
});
|
|
7185
|
-
}
|
|
7185
|
+
}
|
|
7186
|
+
const RadioWithRef = /*#__PURE__*/forwardRef(Radio);
|
|
7186
7187
|
|
|
7187
7188
|
function AnimatedContainer$1({
|
|
7188
7189
|
children,
|
|
@@ -13731,5 +13732,5 @@ function VerticalSteps(_ref) {
|
|
|
13731
13732
|
VerticalSteps.Step = Step;
|
|
13732
13733
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13733
13734
|
|
|
13734
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13735
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13735
13736
|
//# sourceMappingURL=index-metro.es.android.js.map
|