@ornikar/kitt-universal 9.7.0 → 9.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/dist/definitions/Highlight/Highlight.d.ts +9 -0
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +12 -0
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/spacing.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/spacing.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +36 -2
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +36 -2
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +36 -2
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +36 -2
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +37 -1
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +37 -1
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +19 -1
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +19 -1
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +19 -1
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +19 -1
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +19 -1
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +19 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2034,6 +2034,23 @@ var fullScreenModal = {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
};
|
|
2036
2036
|
|
|
2037
|
+
var spacing = 4;
|
|
2038
|
+
|
|
2039
|
+
var highlight = {
|
|
2040
|
+
borderRadius: {
|
|
2041
|
+
base: spacing * 5
|
|
2042
|
+
},
|
|
2043
|
+
regular: {
|
|
2044
|
+
backgroundColor: colors.accentLight
|
|
2045
|
+
},
|
|
2046
|
+
dark: {
|
|
2047
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
2048
|
+
},
|
|
2049
|
+
padding: {
|
|
2050
|
+
base: spacing * 5
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2037
2054
|
var iconButton = {
|
|
2038
2055
|
backgroundColor: 'transparent',
|
|
2039
2056
|
width: 40,
|
|
@@ -2206,7 +2223,7 @@ var breakpoints = {
|
|
|
2206
2223
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2207
2224
|
|
|
2208
2225
|
var theme = {
|
|
2209
|
-
spacing:
|
|
2226
|
+
spacing: spacing,
|
|
2210
2227
|
colors: colors,
|
|
2211
2228
|
palettes: {
|
|
2212
2229
|
lateOcean: lateOceanColorPalette
|
|
@@ -2219,6 +2236,7 @@ var theme = {
|
|
|
2219
2236
|
feedbackMessage: feedbackMessage,
|
|
2220
2237
|
forms: forms,
|
|
2221
2238
|
fullScreenModal: fullScreenModal,
|
|
2239
|
+
highlight: highlight,
|
|
2222
2240
|
iconButton: iconButton,
|
|
2223
2241
|
listItem: listItem,
|
|
2224
2242
|
pageLoader: pageLoader,
|
|
@@ -3657,6 +3675,22 @@ function FullScreenModal(_ref2) {
|
|
|
3657
3675
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
3658
3676
|
FullScreenModal.Body = FullScreenModalBody;
|
|
3659
3677
|
|
|
3678
|
+
function Highlight(_ref) {
|
|
3679
|
+
var _ref$variant = _ref.variant,
|
|
3680
|
+
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
3681
|
+
children = _ref.children;
|
|
3682
|
+
|
|
3683
|
+
var _useTheme = /*#__PURE__*/useTheme(),
|
|
3684
|
+
highlight = _useTheme.kitt.highlight;
|
|
3685
|
+
|
|
3686
|
+
return /*#__PURE__*/jsx(View, {
|
|
3687
|
+
borderRadius: highlight.borderRadius,
|
|
3688
|
+
padding: highlight.padding,
|
|
3689
|
+
backgroundColor: highlight[variant].backgroundColor,
|
|
3690
|
+
children: children
|
|
3691
|
+
});
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3660
3694
|
var _excluded$7 = ["children"];
|
|
3661
3695
|
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
3662
3696
|
displayName: "ListItemContent__ContentView"
|
|
@@ -5704,5 +5738,5 @@ function withTheme(WrappedComponent) {
|
|
|
5704
5738
|
});
|
|
5705
5739
|
}
|
|
5706
5740
|
|
|
5707
|
-
export { Actions, Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
5741
|
+
export { Actions, Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Highlight, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
5708
5742
|
//# sourceMappingURL=index-browser-all.es.ios.js.map
|