@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
|
@@ -1824,6 +1824,23 @@ const fullScreenModal = {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
|
+
const spacing = 4;
|
|
1828
|
+
|
|
1829
|
+
const highlight = {
|
|
1830
|
+
borderRadius: {
|
|
1831
|
+
base: spacing * 5
|
|
1832
|
+
},
|
|
1833
|
+
regular: {
|
|
1834
|
+
backgroundColor: colors.accentLight
|
|
1835
|
+
},
|
|
1836
|
+
dark: {
|
|
1837
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
1838
|
+
},
|
|
1839
|
+
padding: {
|
|
1840
|
+
base: spacing * 5
|
|
1841
|
+
}
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1827
1844
|
const iconButton = {
|
|
1828
1845
|
backgroundColor: 'transparent',
|
|
1829
1846
|
width: 40,
|
|
@@ -1996,7 +2013,7 @@ const breakpoints = {
|
|
|
1996
2013
|
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
1997
2014
|
|
|
1998
2015
|
const theme = {
|
|
1999
|
-
spacing
|
|
2016
|
+
spacing,
|
|
2000
2017
|
colors,
|
|
2001
2018
|
palettes: {
|
|
2002
2019
|
lateOcean: lateOceanColorPalette
|
|
@@ -2009,6 +2026,7 @@ const theme = {
|
|
|
2009
2026
|
feedbackMessage,
|
|
2010
2027
|
forms,
|
|
2011
2028
|
fullScreenModal,
|
|
2029
|
+
highlight,
|
|
2012
2030
|
iconButton,
|
|
2013
2031
|
listItem,
|
|
2014
2032
|
pageLoader,
|
|
@@ -2835,6 +2853,23 @@ function FullScreenModal({
|
|
|
2835
2853
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2836
2854
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2837
2855
|
|
|
2856
|
+
function Highlight({
|
|
2857
|
+
variant = 'regular',
|
|
2858
|
+
children
|
|
2859
|
+
}) {
|
|
2860
|
+
const {
|
|
2861
|
+
kitt: {
|
|
2862
|
+
highlight
|
|
2863
|
+
}
|
|
2864
|
+
} = /*#__PURE__*/styled.useTheme();
|
|
2865
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
2866
|
+
borderRadius: highlight.borderRadius,
|
|
2867
|
+
padding: highlight.padding,
|
|
2868
|
+
backgroundColor: highlight[variant].backgroundColor,
|
|
2869
|
+
children: children
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2838
2873
|
function StyleWebWrapper({
|
|
2839
2874
|
as,
|
|
2840
2875
|
children,
|
|
@@ -4846,6 +4881,7 @@ exports.ExternalLink = ExternalLink;
|
|
|
4846
4881
|
exports.Flex = Flex;
|
|
4847
4882
|
exports.FullScreenModal = FullScreenModal;
|
|
4848
4883
|
exports.HStack = HStack;
|
|
4884
|
+
exports.Highlight = Highlight;
|
|
4849
4885
|
exports.Icon = Icon;
|
|
4850
4886
|
exports.IconButton = IconButton;
|
|
4851
4887
|
exports.InputEmail = InputEmail;
|