@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
|
@@ -1947,6 +1947,23 @@ var fullScreenModal = {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
};
|
|
1949
1949
|
|
|
1950
|
+
var spacing = 4;
|
|
1951
|
+
|
|
1952
|
+
var highlight = {
|
|
1953
|
+
borderRadius: {
|
|
1954
|
+
base: spacing * 5
|
|
1955
|
+
},
|
|
1956
|
+
regular: {
|
|
1957
|
+
backgroundColor: colors.accentLight
|
|
1958
|
+
},
|
|
1959
|
+
dark: {
|
|
1960
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
1961
|
+
},
|
|
1962
|
+
padding: {
|
|
1963
|
+
base: spacing * 5
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1950
1967
|
var iconButton = {
|
|
1951
1968
|
backgroundColor: 'transparent',
|
|
1952
1969
|
width: 40,
|
|
@@ -2119,7 +2136,7 @@ var breakpoints = {
|
|
|
2119
2136
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2120
2137
|
|
|
2121
2138
|
var theme = {
|
|
2122
|
-
spacing:
|
|
2139
|
+
spacing: spacing,
|
|
2123
2140
|
colors: colors,
|
|
2124
2141
|
palettes: {
|
|
2125
2142
|
lateOcean: lateOceanColorPalette
|
|
@@ -2132,6 +2149,7 @@ var theme = {
|
|
|
2132
2149
|
feedbackMessage: feedbackMessage,
|
|
2133
2150
|
forms: forms,
|
|
2134
2151
|
fullScreenModal: fullScreenModal,
|
|
2152
|
+
highlight: highlight,
|
|
2135
2153
|
iconButton: iconButton,
|
|
2136
2154
|
listItem: listItem,
|
|
2137
2155
|
pageLoader: pageLoader,
|
|
@@ -3025,6 +3043,22 @@ function FullScreenModal(_ref2) {
|
|
|
3025
3043
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
3026
3044
|
FullScreenModal.Body = FullScreenModalBody;
|
|
3027
3045
|
|
|
3046
|
+
function Highlight(_ref) {
|
|
3047
|
+
var _ref$variant = _ref.variant,
|
|
3048
|
+
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
3049
|
+
children = _ref.children;
|
|
3050
|
+
|
|
3051
|
+
var _useTheme = /*#__PURE__*/useTheme(),
|
|
3052
|
+
highlight = _useTheme.kitt.highlight;
|
|
3053
|
+
|
|
3054
|
+
return /*#__PURE__*/jsx(View, {
|
|
3055
|
+
borderRadius: highlight.borderRadius,
|
|
3056
|
+
padding: highlight.padding,
|
|
3057
|
+
backgroundColor: highlight[variant].backgroundColor,
|
|
3058
|
+
children: children
|
|
3059
|
+
});
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3028
3062
|
var _excluded$9 = ["as", "children"];
|
|
3029
3063
|
function StyleWebWrapper(_ref) {
|
|
3030
3064
|
var as = _ref.as,
|
|
@@ -5101,5 +5135,5 @@ function MatchWindowSize(_ref) {
|
|
|
5101
5135
|
return children;
|
|
5102
5136
|
}
|
|
5103
5137
|
|
|
5104
|
-
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 };
|
|
5138
|
+
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 };
|
|
5105
5139
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|