@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
|
@@ -2035,6 +2035,23 @@ var fullScreenModal = {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
};
|
|
2037
2037
|
|
|
2038
|
+
var spacing = 4;
|
|
2039
|
+
|
|
2040
|
+
var highlight = {
|
|
2041
|
+
borderRadius: {
|
|
2042
|
+
base: spacing * 5
|
|
2043
|
+
},
|
|
2044
|
+
regular: {
|
|
2045
|
+
backgroundColor: colors.accentLight
|
|
2046
|
+
},
|
|
2047
|
+
dark: {
|
|
2048
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
2049
|
+
},
|
|
2050
|
+
padding: {
|
|
2051
|
+
base: spacing * 5
|
|
2052
|
+
}
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2038
2055
|
var iconButton = {
|
|
2039
2056
|
backgroundColor: 'transparent',
|
|
2040
2057
|
width: 40,
|
|
@@ -2207,7 +2224,7 @@ var breakpoints = {
|
|
|
2207
2224
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2208
2225
|
|
|
2209
2226
|
var theme = {
|
|
2210
|
-
spacing:
|
|
2227
|
+
spacing: spacing,
|
|
2211
2228
|
colors: colors,
|
|
2212
2229
|
palettes: {
|
|
2213
2230
|
lateOcean: lateOceanColorPalette
|
|
@@ -2220,6 +2237,7 @@ var theme = {
|
|
|
2220
2237
|
feedbackMessage: feedbackMessage,
|
|
2221
2238
|
forms: forms,
|
|
2222
2239
|
fullScreenModal: fullScreenModal,
|
|
2240
|
+
highlight: highlight,
|
|
2223
2241
|
iconButton: iconButton,
|
|
2224
2242
|
listItem: listItem,
|
|
2225
2243
|
pageLoader: pageLoader,
|
|
@@ -3710,6 +3728,22 @@ function FullScreenModal(_ref2) {
|
|
|
3710
3728
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
3711
3729
|
FullScreenModal.Body = FullScreenModalBody;
|
|
3712
3730
|
|
|
3731
|
+
function Highlight(_ref) {
|
|
3732
|
+
var _ref$variant = _ref.variant,
|
|
3733
|
+
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
3734
|
+
children = _ref.children;
|
|
3735
|
+
|
|
3736
|
+
var _useTheme = /*#__PURE__*/useTheme(),
|
|
3737
|
+
highlight = _useTheme.kitt.highlight;
|
|
3738
|
+
|
|
3739
|
+
return /*#__PURE__*/jsx(View, {
|
|
3740
|
+
borderRadius: highlight.borderRadius,
|
|
3741
|
+
padding: highlight.padding,
|
|
3742
|
+
backgroundColor: highlight[variant].backgroundColor,
|
|
3743
|
+
children: children
|
|
3744
|
+
});
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3713
3747
|
var _excluded$7 = ["children"];
|
|
3714
3748
|
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
3715
3749
|
displayName: "ListItemContent__ContentView"
|
|
@@ -5748,5 +5782,5 @@ function MatchWindowSize(_ref) {
|
|
|
5748
5782
|
return children;
|
|
5749
5783
|
}
|
|
5750
5784
|
|
|
5751
|
-
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 };
|
|
5785
|
+
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 };
|
|
5752
5786
|
//# sourceMappingURL=index-browser-all.es.js.map
|