@ornikar/kitt-universal 32.6.0 → 32.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/definitions/ReadMore/ReadMore.d.ts +10 -0
- package/dist/definitions/ReadMore/ReadMore.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +105 -65
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +105 -65
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +94 -51
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +101 -57
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +95 -53
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +101 -58
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +107 -61
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +114 -67
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/translations/fr-FR.json +3 -1
|
@@ -12,7 +12,7 @@ import { parse } from '@twemoji/parser';
|
|
|
12
12
|
import * as WebBrowser from 'expo-web-browser';
|
|
13
13
|
import Downshift from 'downshift';
|
|
14
14
|
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
|
|
15
|
-
import { FormattedMessage } from 'react-intl';
|
|
15
|
+
import { FormattedMessage, defineMessages } from 'react-intl';
|
|
16
16
|
import { getDocumentAsync } from 'expo-document-picker';
|
|
17
17
|
import { launchImageLibraryAsync } from 'expo-image-picker';
|
|
18
18
|
import { useDebouncedCallback } from 'use-debounce';
|
|
@@ -12504,6 +12504,99 @@ Picker.Option = PickerOption;
|
|
|
12504
12504
|
*/
|
|
12505
12505
|
Picker.UnsafeInternalItem = PickerItem;
|
|
12506
12506
|
|
|
12507
|
+
function TypographyLinkWebWrapper({
|
|
12508
|
+
children,
|
|
12509
|
+
...props
|
|
12510
|
+
}) {
|
|
12511
|
+
return children;
|
|
12512
|
+
}
|
|
12513
|
+
|
|
12514
|
+
const TypographyLink = /*#__PURE__*/forwardRef(({
|
|
12515
|
+
children,
|
|
12516
|
+
disabled,
|
|
12517
|
+
noUnderline,
|
|
12518
|
+
href,
|
|
12519
|
+
hrefAttrs,
|
|
12520
|
+
onPress,
|
|
12521
|
+
...otherProps
|
|
12522
|
+
}, ref) => {
|
|
12523
|
+
return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
|
|
12524
|
+
hasNoUnderline: noUnderline,
|
|
12525
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
12526
|
+
ref: ref,
|
|
12527
|
+
underline: !noUnderline,
|
|
12528
|
+
color: disabled ? 'black-disabled' : undefined,
|
|
12529
|
+
href: href,
|
|
12530
|
+
hrefAttrs: hrefAttrs,
|
|
12531
|
+
accessibilityRole: "link",
|
|
12532
|
+
dataSet: {
|
|
12533
|
+
// remove data-kitt-universal when we delete kitt web. See :global(a) in Link styles.module.css
|
|
12534
|
+
'kitt-universal': 'true'
|
|
12535
|
+
},
|
|
12536
|
+
_web: {
|
|
12537
|
+
// @ts-expect-error: This is only used on web where 'not-allowed' and 'pointer' are valid cursor values
|
|
12538
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
12539
|
+
transitionProperty: 'color',
|
|
12540
|
+
transitionDuration: '0.2s',
|
|
12541
|
+
transitionTimingFunction: 'ease-in-out'
|
|
12542
|
+
}
|
|
12543
|
+
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
12544
|
+
// _active={{
|
|
12545
|
+
// underline: !!noUnderline,
|
|
12546
|
+
// }}
|
|
12547
|
+
// _hover={{
|
|
12548
|
+
// underline: !!noUnderline,
|
|
12549
|
+
// }}
|
|
12550
|
+
,
|
|
12551
|
+
onPress: disabled ? undefined : onPress,
|
|
12552
|
+
...otherProps,
|
|
12553
|
+
children: children
|
|
12554
|
+
})
|
|
12555
|
+
});
|
|
12556
|
+
});
|
|
12557
|
+
|
|
12558
|
+
const messages = defineMessages({
|
|
12559
|
+
seeMore: {
|
|
12560
|
+
id: "shared.components.ReadMore.seeMore"
|
|
12561
|
+
},
|
|
12562
|
+
seeLess: {
|
|
12563
|
+
id: "shared.components.ReadMore.seeLess"
|
|
12564
|
+
}
|
|
12565
|
+
});
|
|
12566
|
+
function ReadMore({
|
|
12567
|
+
lines,
|
|
12568
|
+
children,
|
|
12569
|
+
textColor = 'bumper.content.base.hi',
|
|
12570
|
+
noUnderline = false
|
|
12571
|
+
}) {
|
|
12572
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
12573
|
+
const nbOfLines = isExpanded ? undefined : lines;
|
|
12574
|
+
const messageProps = isExpanded ? messages.seeLess : messages.seeMore;
|
|
12575
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
12576
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
12577
|
+
flexShrink: 1,
|
|
12578
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12579
|
+
textAlign: "left",
|
|
12580
|
+
numberOfLines: nbOfLines,
|
|
12581
|
+
ellipsizeMode: "tail",
|
|
12582
|
+
children: children
|
|
12583
|
+
})
|
|
12584
|
+
}), lines ? /*#__PURE__*/jsx(View, {
|
|
12585
|
+
children: /*#__PURE__*/jsx(TypographyLink, {
|
|
12586
|
+
noUnderline: noUnderline,
|
|
12587
|
+
color: textColor,
|
|
12588
|
+
variant: "bold",
|
|
12589
|
+
onPress: () => {
|
|
12590
|
+
setIsExpanded(prev => !prev);
|
|
12591
|
+
},
|
|
12592
|
+
children: /*#__PURE__*/jsx(FormattedMessage, {
|
|
12593
|
+
...messageProps
|
|
12594
|
+
})
|
|
12595
|
+
})
|
|
12596
|
+
}) : null]
|
|
12597
|
+
});
|
|
12598
|
+
}
|
|
12599
|
+
|
|
12507
12600
|
const SvgStripesinline = props => /*#__PURE__*/jsx("svg", {
|
|
12508
12601
|
viewBox: "0 0 453 71",
|
|
12509
12602
|
fill: "none",
|
|
@@ -14154,57 +14247,6 @@ function TypographyEmoji({
|
|
|
14154
14247
|
});
|
|
14155
14248
|
}
|
|
14156
14249
|
|
|
14157
|
-
function TypographyLinkWebWrapper({
|
|
14158
|
-
children,
|
|
14159
|
-
...props
|
|
14160
|
-
}) {
|
|
14161
|
-
return children;
|
|
14162
|
-
}
|
|
14163
|
-
|
|
14164
|
-
const TypographyLink = /*#__PURE__*/forwardRef(({
|
|
14165
|
-
children,
|
|
14166
|
-
disabled,
|
|
14167
|
-
noUnderline,
|
|
14168
|
-
href,
|
|
14169
|
-
hrefAttrs,
|
|
14170
|
-
onPress,
|
|
14171
|
-
...otherProps
|
|
14172
|
-
}, ref) => {
|
|
14173
|
-
return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
|
|
14174
|
-
hasNoUnderline: noUnderline,
|
|
14175
|
-
children: /*#__PURE__*/jsx(Typography, {
|
|
14176
|
-
ref: ref,
|
|
14177
|
-
underline: !noUnderline,
|
|
14178
|
-
color: disabled ? 'black-disabled' : undefined,
|
|
14179
|
-
href: href,
|
|
14180
|
-
hrefAttrs: hrefAttrs,
|
|
14181
|
-
accessibilityRole: "link",
|
|
14182
|
-
dataSet: {
|
|
14183
|
-
// remove data-kitt-universal when we delete kitt web. See :global(a) in Link styles.module.css
|
|
14184
|
-
'kitt-universal': 'true'
|
|
14185
|
-
},
|
|
14186
|
-
_web: {
|
|
14187
|
-
// @ts-expect-error: This is only used on web where 'not-allowed' and 'pointer' are valid cursor values
|
|
14188
|
-
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
14189
|
-
transitionProperty: 'color',
|
|
14190
|
-
transitionDuration: '0.2s',
|
|
14191
|
-
transitionTimingFunction: 'ease-in-out'
|
|
14192
|
-
}
|
|
14193
|
-
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
14194
|
-
// _active={{
|
|
14195
|
-
// underline: !!noUnderline,
|
|
14196
|
-
// }}
|
|
14197
|
-
// _hover={{
|
|
14198
|
-
// underline: !!noUnderline,
|
|
14199
|
-
// }}
|
|
14200
|
-
,
|
|
14201
|
-
onPress: disabled ? undefined : onPress,
|
|
14202
|
-
...otherProps,
|
|
14203
|
-
children: children
|
|
14204
|
-
})
|
|
14205
|
-
});
|
|
14206
|
-
});
|
|
14207
|
-
|
|
14208
14250
|
const ChromaticReducedMotionDecorator = makeDecorator({
|
|
14209
14251
|
name: 'ChromaticReducedMotionDecorator',
|
|
14210
14252
|
parameterName: 'chromaticReducedMotion',
|
|
@@ -14572,5 +14614,5 @@ function VerticalSteps({
|
|
|
14572
14614
|
VerticalSteps.Step = Step;
|
|
14573
14615
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14574
14616
|
|
|
14575
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, 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, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
14617
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, 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, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ReadMore, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
14576
14618
|
//# sourceMappingURL=index-node-22.17.es.mjs.map
|