@ornikar/kitt-universal 4.0.0 → 4.1.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/BaseMessage/BaseMessage.d.ts +16 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/helper.d.ts +6 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
- package/dist/definitions/Message/Message.d.ts +4 -12
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +8 -8
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +4 -9
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts +11 -0
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +174 -148
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +174 -148
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +174 -148
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +183 -155
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +183 -137
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +183 -137
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +21 -13
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +21 -13
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +21 -13
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +21 -13
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +21 -13
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +21 -13
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { UserIcon, EyeOffIcon, EyeIcon,
|
|
3
|
+
import { UserIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
4
4
|
export * from '@ornikar/kitt-icons';
|
|
5
|
-
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, Pressable, TextInput, ActivityIndicator,
|
|
5
|
+
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, Pressable, TextInput, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
|
|
6
6
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
7
7
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { useRef, useEffect, cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children } from 'react';
|
|
@@ -51,7 +51,7 @@ function SpinningIcon(_ref) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
var IconContainer
|
|
54
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
55
55
|
displayName: "Icon__IconContainer"
|
|
56
56
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
57
57
|
var color = _ref.color;
|
|
@@ -77,7 +77,7 @@ function Icon(_ref5) {
|
|
|
77
77
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
78
78
|
color: color
|
|
79
79
|
});
|
|
80
|
-
return /*#__PURE__*/jsx(IconContainer
|
|
80
|
+
return /*#__PURE__*/jsx(IconContainer, {
|
|
81
81
|
align: align,
|
|
82
82
|
size: size,
|
|
83
83
|
color: color,
|
|
@@ -609,7 +609,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
609
609
|
if (Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
|
|
610
610
|
return 'color: inherit';
|
|
611
611
|
});
|
|
612
|
-
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
612
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
613
613
|
displayName: "ButtonContent__StyledIconContainer"
|
|
614
614
|
})(["", ""], function (_ref2) {
|
|
615
615
|
var theme = _ref2.theme,
|
|
@@ -629,7 +629,7 @@ function ButtonIcon(_ref3) {
|
|
|
629
629
|
spin = _ref3.spin,
|
|
630
630
|
iconPosition = _ref3.iconPosition,
|
|
631
631
|
testID = _ref3.testID;
|
|
632
|
-
return /*#__PURE__*/jsx(StyledIconContainer, {
|
|
632
|
+
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
633
633
|
$iconPosition: iconPosition,
|
|
634
634
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
635
635
|
icon: icon,
|
|
@@ -789,7 +789,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
789
789
|
});
|
|
790
790
|
});
|
|
791
791
|
|
|
792
|
-
var Container$
|
|
792
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
793
793
|
displayName: "Card__Container"
|
|
794
794
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
795
795
|
var theme = _ref.theme,
|
|
@@ -812,7 +812,7 @@ var Container$6 = /*#__PURE__*/styled.View.withConfig({
|
|
|
812
812
|
function Card(_ref6) {
|
|
813
813
|
var children = _ref6.children,
|
|
814
814
|
type = _ref6.type;
|
|
815
|
-
return /*#__PURE__*/jsx(Container$
|
|
815
|
+
return /*#__PURE__*/jsx(Container$5, {
|
|
816
816
|
type: type,
|
|
817
817
|
children: children
|
|
818
818
|
});
|
|
@@ -1227,7 +1227,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
|
1227
1227
|
var theme = _ref14.theme;
|
|
1228
1228
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1229
1229
|
});
|
|
1230
|
-
var Container$
|
|
1230
|
+
var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1231
1231
|
displayName: "Radio__Container"
|
|
1232
1232
|
})(["flex-direction:row;align-items:center;"]);
|
|
1233
1233
|
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
@@ -1244,7 +1244,7 @@ function Radio(_ref16) {
|
|
|
1244
1244
|
_ref16$disabled = _ref16.disabled,
|
|
1245
1245
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1246
1246
|
children = _ref16.children;
|
|
1247
|
-
return /*#__PURE__*/jsxs(Container$
|
|
1247
|
+
return /*#__PURE__*/jsxs(Container$4, {
|
|
1248
1248
|
nativeID: id,
|
|
1249
1249
|
disabled: disabled,
|
|
1250
1250
|
accessibilityRole: "radio",
|
|
@@ -1422,7 +1422,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1422
1422
|
});
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
|
-
var Container$
|
|
1425
|
+
var Container$3 = /*#__PURE__*/styled.View.withConfig({
|
|
1426
1426
|
displayName: "FullScreenModal__Container"
|
|
1427
1427
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
1428
1428
|
var theme = _ref.theme;
|
|
@@ -1430,7 +1430,7 @@ var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
|
1430
1430
|
});
|
|
1431
1431
|
function FullScreenModal(_ref2) {
|
|
1432
1432
|
var children = _ref2.children;
|
|
1433
|
-
return /*#__PURE__*/jsx(Container$
|
|
1433
|
+
return /*#__PURE__*/jsx(Container$3, {
|
|
1434
1434
|
children: children
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
@@ -1844,55 +1844,32 @@ function LargeLoader(_ref) {
|
|
|
1844
1844
|
});
|
|
1845
1845
|
}
|
|
1846
1846
|
|
|
1847
|
-
|
|
1848
|
-
var
|
|
1849
|
-
|
|
1850
|
-
displayName: "Message__Container"
|
|
1851
|
-
})(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
|
|
1852
|
-
var theme = _ref.theme,
|
|
1853
|
-
noRadius = _ref.noRadius;
|
|
1854
|
-
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
1855
|
-
}, function (_ref2) {
|
|
1856
|
-
var theme = _ref2.theme,
|
|
1857
|
-
type = _ref2.type;
|
|
1858
|
-
return theme.kitt.feedbackMessage.backgroundColors[type];
|
|
1859
|
-
}, function (_ref3) {
|
|
1860
|
-
var theme = _ref3.theme;
|
|
1861
|
-
return theme.kitt.spacing * 4;
|
|
1862
|
-
}, function (_ref4) {
|
|
1863
|
-
var theme = _ref4.theme;
|
|
1864
|
-
return theme.kitt.spacing * 4;
|
|
1865
|
-
}, function (_ref5) {
|
|
1866
|
-
var theme = _ref5.theme;
|
|
1867
|
-
return theme.kitt.spacing * 4;
|
|
1868
|
-
}, function (_ref6) {
|
|
1869
|
-
var _insets$top;
|
|
1847
|
+
function IconContent(_ref) {
|
|
1848
|
+
var type = _ref.type,
|
|
1849
|
+
color = _ref.color;
|
|
1870
1850
|
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
}
|
|
1893
|
-
var centeredText = _ref10.centeredText;
|
|
1894
|
-
return centeredText ? 'center' : 'left';
|
|
1895
|
-
});
|
|
1851
|
+
switch (type) {
|
|
1852
|
+
case 'warning':
|
|
1853
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {
|
|
1854
|
+
color: color
|
|
1855
|
+
});
|
|
1856
|
+
|
|
1857
|
+
case 'success':
|
|
1858
|
+
return /*#__PURE__*/jsx(CheckIcon, {
|
|
1859
|
+
color: color
|
|
1860
|
+
});
|
|
1861
|
+
|
|
1862
|
+
case 'danger':
|
|
1863
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {
|
|
1864
|
+
color: color
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
default:
|
|
1868
|
+
return /*#__PURE__*/jsx(InfoIcon, {
|
|
1869
|
+
color: color
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1896
1873
|
|
|
1897
1874
|
var getColorByType = function (type) {
|
|
1898
1875
|
switch (type) {
|
|
@@ -1907,63 +1884,117 @@ var getColorByType = function (type) {
|
|
|
1907
1884
|
return 'black';
|
|
1908
1885
|
}
|
|
1909
1886
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
switch (type) {
|
|
1913
|
-
case 'warning':
|
|
1914
|
-
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1915
|
-
|
|
1887
|
+
var getIconButtonColor = function (messageType) {
|
|
1888
|
+
switch (messageType) {
|
|
1916
1889
|
case 'success':
|
|
1917
|
-
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1918
|
-
|
|
1919
1890
|
case 'danger':
|
|
1920
|
-
return
|
|
1891
|
+
return 'white';
|
|
1921
1892
|
|
|
1893
|
+
case 'warning':
|
|
1922
1894
|
default:
|
|
1923
|
-
return
|
|
1895
|
+
return 'black';
|
|
1924
1896
|
}
|
|
1925
|
-
}
|
|
1897
|
+
};
|
|
1926
1898
|
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1899
|
+
var StyledMessageContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1900
|
+
displayName: "BaseMessage__StyledMessageContainer"
|
|
1901
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
1902
|
+
var _$insets$top;
|
|
1903
|
+
|
|
1904
|
+
var $insets = _ref.$insets;
|
|
1905
|
+
return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
|
|
1906
|
+
}, function (_ref2) {
|
|
1907
|
+
var theme = _ref2.theme,
|
|
1908
|
+
$hasNoRadius = _ref2.$hasNoRadius;
|
|
1909
|
+
return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
|
|
1910
|
+
}, function (_ref3) {
|
|
1911
|
+
var theme = _ref3.theme,
|
|
1912
|
+
$type = _ref3.$type;
|
|
1913
|
+
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
1914
|
+
});
|
|
1915
|
+
var StyledDismissWrapper = /*#__PURE__*/styled.View.withConfig({
|
|
1916
|
+
displayName: "BaseMessage__StyledDismissWrapper"
|
|
1917
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
1918
|
+
var theme = _ref4.theme;
|
|
1919
|
+
var spacing = theme.kitt.spacing;
|
|
1920
|
+
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
1921
|
+
});
|
|
1922
|
+
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1923
|
+
displayName: "BaseMessage__StyledIconContainer"
|
|
1924
|
+
})(["margin:", ";"], function (_ref5) {
|
|
1925
|
+
var theme = _ref5.theme;
|
|
1926
|
+
var spacing = theme.kitt.spacing;
|
|
1927
|
+
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
1928
|
+
});
|
|
1929
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1930
|
+
displayName: "BaseMessage__StyledTextContent"
|
|
1931
|
+
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
1932
|
+
var $isCenteredText = _ref6.$isCenteredText;
|
|
1933
|
+
return $isCenteredText ? 'center' : 'left';
|
|
1934
|
+
});
|
|
1935
|
+
var StyledMessageContent = /*#__PURE__*/styled.View.withConfig({
|
|
1936
|
+
displayName: "BaseMessage__StyledMessageContent"
|
|
1937
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
1938
|
+
var theme = _ref7.theme;
|
|
1939
|
+
var spacing = theme.kitt.spacing;
|
|
1940
|
+
return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
|
|
1941
|
+
});
|
|
1942
|
+
function BaseMessage(_ref8) {
|
|
1943
|
+
var _ref8$type = _ref8.type,
|
|
1944
|
+
type = _ref8$type === void 0 ? 'info' : _ref8$type,
|
|
1945
|
+
children = _ref8.children,
|
|
1946
|
+
hasNoRadius = _ref8.hasNoRadius,
|
|
1947
|
+
centeredText = _ref8.centeredText,
|
|
1948
|
+
insets = _ref8.insets,
|
|
1949
|
+
onDismiss = _ref8.onDismiss;
|
|
1937
1950
|
var color = getColorByType(type);
|
|
1938
|
-
return /*#__PURE__*/jsxs(
|
|
1939
|
-
type: type,
|
|
1940
|
-
|
|
1941
|
-
insets: insets,
|
|
1942
|
-
children: [
|
|
1943
|
-
children: /*#__PURE__*/jsx(
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1951
|
+
return /*#__PURE__*/jsxs(StyledMessageContainer, {
|
|
1952
|
+
$type: type,
|
|
1953
|
+
$hasNoRadius: hasNoRadius,
|
|
1954
|
+
$insets: insets,
|
|
1955
|
+
children: [/*#__PURE__*/jsxs(StyledMessageContent, {
|
|
1956
|
+
children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
|
|
1957
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
1958
|
+
color: color,
|
|
1959
|
+
icon: /*#__PURE__*/jsx(IconContent, {
|
|
1960
|
+
type: type,
|
|
1961
|
+
color: color
|
|
1962
|
+
})
|
|
1963
|
+
})
|
|
1964
|
+
}), /*#__PURE__*/jsx(StyledTextContent, {
|
|
1965
|
+
$isCenteredText: centeredText,
|
|
1966
|
+
base: "body",
|
|
1953
1967
|
color: color,
|
|
1954
1968
|
children: children
|
|
1955
|
-
})
|
|
1956
|
-
}), onDismiss ? /*#__PURE__*/jsx(
|
|
1957
|
-
|
|
1958
|
-
|
|
1969
|
+
})]
|
|
1970
|
+
}), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
|
|
1971
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
1972
|
+
color: getIconButtonColor(type),
|
|
1959
1973
|
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1960
|
-
|
|
1961
|
-
color: color
|
|
1974
|
+
onPress: onDismiss
|
|
1962
1975
|
})
|
|
1963
1976
|
}) : null]
|
|
1964
1977
|
});
|
|
1965
1978
|
}
|
|
1966
1979
|
|
|
1980
|
+
function Message(_ref) {
|
|
1981
|
+
var _ref$type = _ref.type,
|
|
1982
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
1983
|
+
children = _ref.children,
|
|
1984
|
+
hasNoRadius = _ref.hasNoRadius,
|
|
1985
|
+
centeredText = _ref.centeredText,
|
|
1986
|
+
insets = _ref.insets,
|
|
1987
|
+
onDismiss = _ref.onDismiss;
|
|
1988
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
1989
|
+
insets: insets,
|
|
1990
|
+
hasNoRadius: hasNoRadius,
|
|
1991
|
+
type: type,
|
|
1992
|
+
centeredText: centeredText,
|
|
1993
|
+
onDismiss: onDismiss,
|
|
1994
|
+
children: children
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1967
1998
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1968
1999
|
|
|
1969
2000
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -2122,19 +2153,22 @@ function Notification(_ref) {
|
|
|
2122
2153
|
var type = _ref.type,
|
|
2123
2154
|
children = _ref.children,
|
|
2124
2155
|
centeredText = _ref.centeredText,
|
|
2125
|
-
|
|
2156
|
+
insets = _ref.insets,
|
|
2157
|
+
onDelete = _ref.onDelete,
|
|
2158
|
+
onDismiss = _ref.onDismiss;
|
|
2126
2159
|
|
|
2127
|
-
|
|
2128
|
-
|
|
2160
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2161
|
+
if (onDelete) {
|
|
2162
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2129
2165
|
|
|
2130
|
-
return /*#__PURE__*/jsx(
|
|
2131
|
-
|
|
2166
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2167
|
+
hasNoRadius: true,
|
|
2132
2168
|
type: type,
|
|
2133
2169
|
centeredText: centeredText,
|
|
2134
|
-
insets:
|
|
2135
|
-
|
|
2136
|
-
},
|
|
2137
|
-
onDismiss: onDelete,
|
|
2170
|
+
insets: insets,
|
|
2171
|
+
onDismiss: onDismiss,
|
|
2138
2172
|
children: children
|
|
2139
2173
|
});
|
|
2140
2174
|
}
|
|
@@ -2202,6 +2236,9 @@ function SkeletonContent(_ref3) {
|
|
|
2202
2236
|
});
|
|
2203
2237
|
}
|
|
2204
2238
|
|
|
2239
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2240
|
+
displayName: "Skeleton__SkeletonContainer"
|
|
2241
|
+
})(["overflow:hidden;"]);
|
|
2205
2242
|
function Skeleton(_ref) {
|
|
2206
2243
|
var isLoading = _ref.isLoading,
|
|
2207
2244
|
style = _ref.style;
|
|
@@ -2211,7 +2248,7 @@ function Skeleton(_ref) {
|
|
|
2211
2248
|
width = _useState2[0],
|
|
2212
2249
|
setWidth = _useState2[1];
|
|
2213
2250
|
|
|
2214
|
-
return /*#__PURE__*/jsx(
|
|
2251
|
+
return /*#__PURE__*/jsx(SkeletonContainer, {
|
|
2215
2252
|
style: style,
|
|
2216
2253
|
onLayout: function onLayout(_ref2) {
|
|
2217
2254
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -2225,7 +2262,7 @@ function Skeleton(_ref) {
|
|
|
2225
2262
|
}
|
|
2226
2263
|
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2227
2264
|
displayName: "Skeleton__Bar"
|
|
2228
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2265
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
2229
2266
|
var theme = _ref3.theme;
|
|
2230
2267
|
return theme.kitt.spacing * 2;
|
|
2231
2268
|
}, function (_ref4) {
|
|
@@ -2234,7 +2271,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2234
2271
|
});
|
|
2235
2272
|
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2236
2273
|
displayName: "Skeleton__Circle"
|
|
2237
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2274
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
2238
2275
|
var theme = _ref5.theme;
|
|
2239
2276
|
return theme.kitt.spacing * 12;
|
|
2240
2277
|
}, function (_ref6) {
|
|
@@ -2246,7 +2283,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2246
2283
|
});
|
|
2247
2284
|
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2248
2285
|
displayName: "Skeleton__Square"
|
|
2249
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2286
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
2250
2287
|
var theme = _ref8.theme;
|
|
2251
2288
|
return theme.kitt.spacing * 12;
|
|
2252
2289
|
}, function (_ref9) {
|
|
@@ -2701,6 +2738,8 @@ var colorsLateOceanTheme = {
|
|
|
2701
2738
|
success: lateOceanColorPalette.viride,
|
|
2702
2739
|
correct: lateOceanColorPalette.viride,
|
|
2703
2740
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2741
|
+
info: lateOceanColorPalette.aero,
|
|
2742
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2704
2743
|
separator: lateOceanColorPalette.black100,
|
|
2705
2744
|
hover: lateOceanColorPalette.black100,
|
|
2706
2745
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2725,7 +2764,7 @@ var avatar = {
|
|
|
2725
2764
|
}
|
|
2726
2765
|
};
|
|
2727
2766
|
|
|
2728
|
-
var
|
|
2767
|
+
var button = {
|
|
2729
2768
|
borderRadius: '30px',
|
|
2730
2769
|
borderWidth: {
|
|
2731
2770
|
disabled: '2px',
|
|
@@ -2816,12 +2855,18 @@ var cardLateOceanTheme = {
|
|
|
2816
2855
|
}
|
|
2817
2856
|
};
|
|
2818
2857
|
|
|
2819
|
-
var
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2858
|
+
var feedbackMessage = {
|
|
2859
|
+
danger: {
|
|
2860
|
+
backgroundColor: colorsLateOceanTheme.danger
|
|
2861
|
+
},
|
|
2862
|
+
success: {
|
|
2863
|
+
backgroundColor: colorsLateOceanTheme.success
|
|
2864
|
+
},
|
|
2865
|
+
info: {
|
|
2866
|
+
backgroundColor: colorsLateOceanTheme.info
|
|
2867
|
+
},
|
|
2868
|
+
warning: {
|
|
2869
|
+
backgroundColor: colorsLateOceanTheme.warning
|
|
2825
2870
|
}
|
|
2826
2871
|
};
|
|
2827
2872
|
|
|
@@ -3017,14 +3062,14 @@ var iconButton = {
|
|
|
3017
3062
|
},
|
|
3018
3063
|
disabled: {
|
|
3019
3064
|
scale: 1,
|
|
3020
|
-
backgroundColor:
|
|
3021
|
-
borderColor:
|
|
3065
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3066
|
+
borderColor: button.disabled.borderColor
|
|
3022
3067
|
},
|
|
3023
3068
|
"default": {
|
|
3024
|
-
pressedBackgroundColor:
|
|
3069
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
3025
3070
|
},
|
|
3026
3071
|
white: {
|
|
3027
|
-
pressedBackgroundColor:
|
|
3072
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
3028
3073
|
}
|
|
3029
3074
|
};
|
|
3030
3075
|
|
|
@@ -3125,9 +3170,9 @@ var theme = {
|
|
|
3125
3170
|
lateOcean: lateOceanColorPalette
|
|
3126
3171
|
},
|
|
3127
3172
|
avatar: avatar,
|
|
3128
|
-
button:
|
|
3173
|
+
button: button,
|
|
3129
3174
|
card: cardLateOceanTheme,
|
|
3130
|
-
feedbackMessage:
|
|
3175
|
+
feedbackMessage: feedbackMessage,
|
|
3131
3176
|
forms: forms,
|
|
3132
3177
|
typography: typographyLateOceanTheme,
|
|
3133
3178
|
tag: tagLateOceanTheme,
|
|
@@ -3301,25 +3346,6 @@ function TimePicker(_ref) {
|
|
|
3301
3346
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3302
3347
|
|
|
3303
3348
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3304
|
-
|
|
3305
|
-
var Arrow = function (props) {
|
|
3306
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
3307
|
-
children: /*#__PURE__*/jsx("path", {
|
|
3308
|
-
fillRule: "evenodd",
|
|
3309
|
-
clipRule: "evenodd",
|
|
3310
|
-
d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
|
|
3311
|
-
fill: "currentColor"
|
|
3312
|
-
})
|
|
3313
|
-
}));
|
|
3314
|
-
};
|
|
3315
|
-
|
|
3316
|
-
Arrow.defaultProps = {
|
|
3317
|
-
width: "36",
|
|
3318
|
-
height: "8",
|
|
3319
|
-
viewBox: "0 0 36 9",
|
|
3320
|
-
fill: "none",
|
|
3321
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3322
|
-
};
|
|
3323
3349
|
var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
|
|
3324
3350
|
displayName: "TooltipView__StyledTooltipView"
|
|
3325
3351
|
})(["align-items:center;"]);
|
|
@@ -3342,7 +3368,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
|
|
|
3342
3368
|
function ArrowView(props) {
|
|
3343
3369
|
var theme = /*#__PURE__*/useTheme();
|
|
3344
3370
|
return /*#__PURE__*/jsx(View, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
3345
|
-
children: /*#__PURE__*/jsx(
|
|
3371
|
+
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3346
3372
|
color: theme.kitt.tooltip.backgroundColor
|
|
3347
3373
|
})
|
|
3348
3374
|
}));
|