@ornikar/kitt-universal 31.0.1 → 31.1.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 +14 -0
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +93 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +93 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/colors.d.ts +93 -0
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts +2 -0
- package/dist/definitions/utils/storybook/ChromaticReducedMotionDecorator.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +109 -2
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +109 -2
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +109 -0
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +109 -0
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +109 -2
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +109 -2
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +111 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +111 -2
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +96 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +96 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +96 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +96 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +96 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +96 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +96 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +96 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -6,7 +6,7 @@ import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularI
|
|
|
6
6
|
import { Animated, Easing, StyleSheet, Modal, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
7
7
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
|
-
import Animated$1, { useAnimatedStyle, withTiming, Easing as Easing$1, runOnJS, useSharedValue, withSpring, interpolateColor, useAnimatedProps, withDelay, withRepeat, interpolate } from 'react-native-reanimated';
|
|
9
|
+
import Animated$1, { useAnimatedStyle, withTiming, Easing as Easing$1, runOnJS, useSharedValue, withSpring, interpolateColor, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
|
|
10
10
|
import { CSSTransition } from 'react-transition-group';
|
|
11
11
|
import { parse } from '@twemoji/parser';
|
|
12
12
|
import Downshift, { useSelect } from 'downshift';
|
|
@@ -20,6 +20,7 @@ import Svg, { Circle as Circle$1 } from 'react-native-svg';
|
|
|
20
20
|
import { useFloating, autoUpdate, offset, autoPlacement, shift, arrow } from '@floating-ui/react-dom';
|
|
21
21
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
22
22
|
import { makeDecorator } from '@storybook/addons';
|
|
23
|
+
import isChromatic from 'chromatic/isChromatic';
|
|
23
24
|
|
|
24
25
|
const View = View$1;
|
|
25
26
|
const ScrollView = ScrollView$1;
|
|
@@ -159,6 +160,102 @@ const colors = {
|
|
|
159
160
|
overlay: {
|
|
160
161
|
dark: deepPurpleColorPalette['grey-alpha.50'],
|
|
161
162
|
light: deepPurpleColorPalette['white-alpha.80']
|
|
163
|
+
},
|
|
164
|
+
// Bumper semantic tokens
|
|
165
|
+
// Should be kept in sync with the light theme in bumper
|
|
166
|
+
// https://github.com/ornikar/kitt/blob/79e367e962c957c016c4df67dbcf515c8f45ff0e/@ornikar/bumper/src/themes/light.ts#L6
|
|
167
|
+
bumper: {
|
|
168
|
+
content: {
|
|
169
|
+
base: {
|
|
170
|
+
hi: deepPurpleColorPalette['grey.9'],
|
|
171
|
+
mid: deepPurpleColorPalette['grey.7'],
|
|
172
|
+
low: deepPurpleColorPalette['grey.5'],
|
|
173
|
+
onContrasted: {
|
|
174
|
+
hi: deepPurpleColorPalette['grey.0'],
|
|
175
|
+
mid: deepPurpleColorPalette['white-alpha.80'],
|
|
176
|
+
low: deepPurpleColorPalette['white-alpha.60']
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
180
|
+
promo: deepPurpleColorPalette['lightning.9'],
|
|
181
|
+
info: deepPurpleColorPalette['blue.7'],
|
|
182
|
+
success: deepPurpleColorPalette['green.7'],
|
|
183
|
+
warning: deepPurpleColorPalette['yellow.7'],
|
|
184
|
+
danger: deepPurpleColorPalette['red.7'],
|
|
185
|
+
muted: deepPurpleColorPalette['beige.6'],
|
|
186
|
+
disabled: deepPurpleColorPalette['grey.3']
|
|
187
|
+
},
|
|
188
|
+
bg: {
|
|
189
|
+
base: {
|
|
190
|
+
hi: {
|
|
191
|
+
default: deepPurpleColorPalette['beige.2'],
|
|
192
|
+
pressed: deepPurpleColorPalette['beige.3']
|
|
193
|
+
},
|
|
194
|
+
mid: {
|
|
195
|
+
default: deepPurpleColorPalette['beige.1'],
|
|
196
|
+
pressed: deepPurpleColorPalette['beige.2']
|
|
197
|
+
},
|
|
198
|
+
low: {
|
|
199
|
+
default: deepPurpleColorPalette['grey.0'],
|
|
200
|
+
pressed: deepPurpleColorPalette['beige.1']
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
accent: {
|
|
204
|
+
default: deepPurpleColorPalette['deepPurple.8'],
|
|
205
|
+
pressed: deepPurpleColorPalette['deepPurple.7']
|
|
206
|
+
},
|
|
207
|
+
promo: {
|
|
208
|
+
hi: {
|
|
209
|
+
default: deepPurpleColorPalette['lightning.9'],
|
|
210
|
+
pressed: deepPurpleColorPalette['lightning.8']
|
|
211
|
+
},
|
|
212
|
+
mid: {
|
|
213
|
+
default: deepPurpleColorPalette['lightning.5'],
|
|
214
|
+
pressed: deepPurpleColorPalette['lightning.4']
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
highlight: {
|
|
218
|
+
default: deepPurpleColorPalette['blue.1'],
|
|
219
|
+
pressed: deepPurpleColorPalette['blue.2']
|
|
220
|
+
},
|
|
221
|
+
info: {
|
|
222
|
+
hi: deepPurpleColorPalette['blue.6'],
|
|
223
|
+
mid: deepPurpleColorPalette['blue.1']
|
|
224
|
+
},
|
|
225
|
+
success: {
|
|
226
|
+
hi: deepPurpleColorPalette['green.6'],
|
|
227
|
+
mid: deepPurpleColorPalette['green.1']
|
|
228
|
+
},
|
|
229
|
+
warning: {
|
|
230
|
+
hi: deepPurpleColorPalette['yellow.6'],
|
|
231
|
+
mid: deepPurpleColorPalette['yellow.1']
|
|
232
|
+
},
|
|
233
|
+
danger: {
|
|
234
|
+
hi: deepPurpleColorPalette['red.6'],
|
|
235
|
+
mid: deepPurpleColorPalette['red.1']
|
|
236
|
+
},
|
|
237
|
+
disabled: {
|
|
238
|
+
hi: deepPurpleColorPalette['grey.3'],
|
|
239
|
+
mid: deepPurpleColorPalette['grey.1']
|
|
240
|
+
},
|
|
241
|
+
overlay: deepPurpleColorPalette['grey-alpha.50']
|
|
242
|
+
},
|
|
243
|
+
border: {
|
|
244
|
+
base: {
|
|
245
|
+
hi: deepPurpleColorPalette['grey.9'],
|
|
246
|
+
mid: deepPurpleColorPalette['beige.3'],
|
|
247
|
+
onContrasted: {
|
|
248
|
+
hi: deepPurpleColorPalette['grey.0'],
|
|
249
|
+
mid: deepPurpleColorPalette['white-alpha.20']
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
253
|
+
info: deepPurpleColorPalette['blue.6'],
|
|
254
|
+
success: deepPurpleColorPalette['green.6'],
|
|
255
|
+
warning: deepPurpleColorPalette['yellow.6'],
|
|
256
|
+
danger: deepPurpleColorPalette['red.6'],
|
|
257
|
+
disabled: deepPurpleColorPalette['grey.2']
|
|
258
|
+
}
|
|
162
259
|
}
|
|
163
260
|
};
|
|
164
261
|
|
|
@@ -13170,6 +13267,16 @@ const TypographyLink = /*#__PURE__*/forwardRef(({
|
|
|
13170
13267
|
});
|
|
13171
13268
|
});
|
|
13172
13269
|
|
|
13270
|
+
const ChromaticReducedMotionDecorator = makeDecorator({
|
|
13271
|
+
name: 'ChromaticReducedMotionDecorator',
|
|
13272
|
+
parameterName: 'chromaticReducedMotion',
|
|
13273
|
+
wrapper: (storyFn, context) => /*#__PURE__*/jsxs(Fragment, {
|
|
13274
|
+
children: [isChromatic() ? /*#__PURE__*/jsx(ReducedMotionConfig, {
|
|
13275
|
+
mode: ReduceMotion.Always
|
|
13276
|
+
}) : null, storyFn(context)]
|
|
13277
|
+
})
|
|
13278
|
+
});
|
|
13279
|
+
|
|
13173
13280
|
function KittThemeProvider({
|
|
13174
13281
|
isSSR,
|
|
13175
13282
|
children,
|
|
@@ -13526,5 +13633,5 @@ function VerticalSteps({
|
|
|
13526
13633
|
VerticalSteps.Step = Step;
|
|
13527
13634
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13528
13635
|
|
|
13529
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, 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, 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 };
|
|
13636
|
+
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, 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, 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 };
|
|
13530
13637
|
//# sourceMappingURL=index-node-22.17.es.web.mjs.map
|