@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
|
@@ -1941,6 +1941,23 @@ const fullScreenModal = {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
|
+
const spacing = 4;
|
|
1945
|
+
|
|
1946
|
+
const highlight = {
|
|
1947
|
+
borderRadius: {
|
|
1948
|
+
base: spacing * 5
|
|
1949
|
+
},
|
|
1950
|
+
regular: {
|
|
1951
|
+
backgroundColor: colors.accentLight
|
|
1952
|
+
},
|
|
1953
|
+
dark: {
|
|
1954
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
1955
|
+
},
|
|
1956
|
+
padding: {
|
|
1957
|
+
base: spacing * 5
|
|
1958
|
+
}
|
|
1959
|
+
};
|
|
1960
|
+
|
|
1944
1961
|
const iconButton = {
|
|
1945
1962
|
backgroundColor: 'transparent',
|
|
1946
1963
|
width: 40,
|
|
@@ -2113,7 +2130,7 @@ const breakpoints = {
|
|
|
2113
2130
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
2114
2131
|
|
|
2115
2132
|
const theme = {
|
|
2116
|
-
spacing
|
|
2133
|
+
spacing,
|
|
2117
2134
|
colors,
|
|
2118
2135
|
palettes: {
|
|
2119
2136
|
lateOcean: lateOceanColorPalette
|
|
@@ -2126,6 +2143,7 @@ const theme = {
|
|
|
2126
2143
|
feedbackMessage,
|
|
2127
2144
|
forms,
|
|
2128
2145
|
fullScreenModal,
|
|
2146
|
+
highlight,
|
|
2129
2147
|
iconButton,
|
|
2130
2148
|
listItem,
|
|
2131
2149
|
pageLoader,
|
|
@@ -3554,6 +3572,23 @@ function FullScreenModal({
|
|
|
3554
3572
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
3555
3573
|
FullScreenModal.Body = FullScreenModalBody;
|
|
3556
3574
|
|
|
3575
|
+
function Highlight({
|
|
3576
|
+
variant = 'regular',
|
|
3577
|
+
children
|
|
3578
|
+
}) {
|
|
3579
|
+
const {
|
|
3580
|
+
kitt: {
|
|
3581
|
+
highlight
|
|
3582
|
+
}
|
|
3583
|
+
} = /*#__PURE__*/styled.useTheme();
|
|
3584
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
3585
|
+
borderRadius: highlight.borderRadius,
|
|
3586
|
+
padding: highlight.padding,
|
|
3587
|
+
backgroundColor: highlight[variant].backgroundColor,
|
|
3588
|
+
children: children
|
|
3589
|
+
});
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3557
3592
|
const ContentView = /*#__PURE__*/styled__default.View.withConfig({
|
|
3558
3593
|
displayName: "ListItemContent__ContentView",
|
|
3559
3594
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
@@ -5565,6 +5600,7 @@ exports.ExternalLink = ExternalLink;
|
|
|
5565
5600
|
exports.Flex = Flex;
|
|
5566
5601
|
exports.FullScreenModal = FullScreenModal;
|
|
5567
5602
|
exports.HStack = HStack;
|
|
5603
|
+
exports.Highlight = Highlight;
|
|
5568
5604
|
exports.Icon = Icon;
|
|
5569
5605
|
exports.IconButton = IconButton;
|
|
5570
5606
|
exports.InputEmail = InputEmail;
|