@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
|
@@ -51,7 +51,7 @@ function SpinningIcon({
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
const IconContainer
|
|
54
|
+
const IconContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
55
55
|
displayName: "Icon__IconContainer",
|
|
56
56
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
57
57
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], ({
|
|
@@ -73,7 +73,7 @@ function Icon({
|
|
|
73
73
|
const clonedIcon = /*#__PURE__*/react.cloneElement(icon, {
|
|
74
74
|
color
|
|
75
75
|
});
|
|
76
|
-
return /*#__PURE__*/jsxRuntime.jsx(IconContainer
|
|
76
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
77
77
|
align: align,
|
|
78
78
|
size: size,
|
|
79
79
|
color: color,
|
|
@@ -606,7 +606,7 @@ const StyledButtonText = /*#__PURE__*/styled__default(Typography.Text).withConfi
|
|
|
606
606
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
607
607
|
return 'color: inherit';
|
|
608
608
|
});
|
|
609
|
-
const StyledIconContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
609
|
+
const StyledIconContainer$1 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
610
610
|
displayName: "ButtonContent__StyledIconContainer",
|
|
611
611
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
612
612
|
})(["", ""], ({
|
|
@@ -629,7 +629,7 @@ function ButtonIcon({
|
|
|
629
629
|
iconPosition,
|
|
630
630
|
testID
|
|
631
631
|
}) {
|
|
632
|
-
return /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer, {
|
|
632
|
+
return /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer$1, {
|
|
633
633
|
$iconPosition: iconPosition,
|
|
634
634
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
635
635
|
icon: icon,
|
|
@@ -777,7 +777,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
777
777
|
});
|
|
778
778
|
});
|
|
779
779
|
|
|
780
|
-
const Container$
|
|
780
|
+
const Container$3 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
781
781
|
displayName: "Card__Container",
|
|
782
782
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
783
783
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], ({
|
|
@@ -797,7 +797,7 @@ function Card({
|
|
|
797
797
|
children,
|
|
798
798
|
type
|
|
799
799
|
}) {
|
|
800
|
-
return /*#__PURE__*/jsxRuntime.jsx(Container$
|
|
800
|
+
return /*#__PURE__*/jsxRuntime.jsx(Container$3, {
|
|
801
801
|
type: type,
|
|
802
802
|
children: children
|
|
803
803
|
});
|
|
@@ -1142,7 +1142,7 @@ const SelectedInnerRadio = /*#__PURE__*/styled__default(BabelPluginStyledCompone
|
|
|
1142
1142
|
}) => theme.kitt.forms.radio.checked.innerSize, ({
|
|
1143
1143
|
theme
|
|
1144
1144
|
}) => theme.kitt.forms.radio.checked.innerSize / 2);
|
|
1145
|
-
const Container$
|
|
1145
|
+
const Container$2 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.Pressable).withConfig({
|
|
1146
1146
|
displayName: "Radio__Container",
|
|
1147
1147
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
1148
1148
|
})(["flex-direction:row;align-items:center;"]);
|
|
@@ -1160,7 +1160,7 @@ function Radio({
|
|
|
1160
1160
|
disabled = false,
|
|
1161
1161
|
children
|
|
1162
1162
|
}) {
|
|
1163
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Container$
|
|
1163
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Container$2, {
|
|
1164
1164
|
nativeID: id,
|
|
1165
1165
|
disabled: disabled,
|
|
1166
1166
|
accessibilityRole: "radio",
|
|
@@ -1327,7 +1327,7 @@ function FullScreenModalHeader({
|
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
const Container$
|
|
1330
|
+
const Container$1 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1331
1331
|
displayName: "FullScreenModal__Container",
|
|
1332
1332
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1333
1333
|
})(["flex:1;background-color:", ";"], ({
|
|
@@ -1336,7 +1336,7 @@ const Container$2 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReac
|
|
|
1336
1336
|
function FullScreenModal({
|
|
1337
1337
|
children
|
|
1338
1338
|
}) {
|
|
1339
|
-
return /*#__PURE__*/jsxRuntime.jsx(Container$
|
|
1339
|
+
return /*#__PURE__*/jsxRuntime.jsx(Container$1, {
|
|
1340
1340
|
children: children
|
|
1341
1341
|
});
|
|
1342
1342
|
}
|
|
@@ -1671,47 +1671,32 @@ function Loader({
|
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
})
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
})
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
}) => theme.kitt.spacing * 4, ({
|
|
1701
|
-
theme
|
|
1702
|
-
}) => theme.kitt.spacing);
|
|
1703
|
-
const IconContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1704
|
-
displayName: "Message__IconContainer",
|
|
1705
|
-
componentId: "kitt-universal__sc-c6400e-2"
|
|
1706
|
-
})(["margin-right:", "px;"], ({
|
|
1707
|
-
theme
|
|
1708
|
-
}) => theme.kitt.spacing * 4);
|
|
1709
|
-
const Content = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.Text).withConfig({
|
|
1710
|
-
displayName: "Message__Content",
|
|
1711
|
-
componentId: "kitt-universal__sc-c6400e-3"
|
|
1712
|
-
})(["text-align:", ";flex:1;"], ({
|
|
1713
|
-
centeredText
|
|
1714
|
-
}) => centeredText ? 'center' : 'left');
|
|
1674
|
+
function IconContent({
|
|
1675
|
+
type,
|
|
1676
|
+
color
|
|
1677
|
+
}) {
|
|
1678
|
+
switch (type) {
|
|
1679
|
+
case 'warning':
|
|
1680
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertCircleIcon, {
|
|
1681
|
+
color: color
|
|
1682
|
+
});
|
|
1683
|
+
|
|
1684
|
+
case 'success':
|
|
1685
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.CheckIcon, {
|
|
1686
|
+
color: color
|
|
1687
|
+
});
|
|
1688
|
+
|
|
1689
|
+
case 'danger':
|
|
1690
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertTriangleIcon, {
|
|
1691
|
+
color: color
|
|
1692
|
+
});
|
|
1693
|
+
|
|
1694
|
+
default:
|
|
1695
|
+
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.InfoIcon, {
|
|
1696
|
+
color: color
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1715
1700
|
|
|
1716
1701
|
const getColorByType = type => {
|
|
1717
1702
|
switch (type) {
|
|
@@ -1726,61 +1711,125 @@ const getColorByType = type => {
|
|
|
1726
1711
|
return 'black';
|
|
1727
1712
|
}
|
|
1728
1713
|
};
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
switch (type) {
|
|
1732
|
-
case 'warning':
|
|
1733
|
-
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.AlertCircleIcon, {});
|
|
1734
|
-
|
|
1714
|
+
const getIconButtonColor = messageType => {
|
|
1715
|
+
switch (messageType) {
|
|
1735
1716
|
case 'success':
|
|
1736
|
-
return /*#__PURE__*/jsxRuntime.jsx(kittIcons.CheckIcon, {});
|
|
1737
|
-
|
|
1738
1717
|
case 'danger':
|
|
1739
|
-
return
|
|
1718
|
+
return 'white';
|
|
1740
1719
|
|
|
1720
|
+
case 'warning':
|
|
1741
1721
|
default:
|
|
1742
|
-
return
|
|
1722
|
+
return 'black';
|
|
1743
1723
|
}
|
|
1744
|
-
}
|
|
1724
|
+
};
|
|
1745
1725
|
|
|
1746
|
-
|
|
1726
|
+
const StyledMessageContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1727
|
+
displayName: "BaseMessage__StyledMessageContainer",
|
|
1728
|
+
componentId: "kitt-universal__sc-eepeiz-0"
|
|
1729
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], ({
|
|
1730
|
+
$insets
|
|
1731
|
+
}) => $insets?.top ?? 0, ({
|
|
1732
|
+
theme,
|
|
1733
|
+
$hasNoRadius
|
|
1734
|
+
}) => $hasNoRadius ? 0 : theme.kitt.spacing * 5, ({
|
|
1735
|
+
theme,
|
|
1736
|
+
$type
|
|
1737
|
+
}) => theme.kitt.feedbackMessage[$type].backgroundColor);
|
|
1738
|
+
const StyledDismissWrapper = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1739
|
+
displayName: "BaseMessage__StyledDismissWrapper",
|
|
1740
|
+
componentId: "kitt-universal__sc-eepeiz-1"
|
|
1741
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], ({
|
|
1742
|
+
theme
|
|
1743
|
+
}) => {
|
|
1744
|
+
const {
|
|
1745
|
+
spacing
|
|
1746
|
+
} = theme.kitt;
|
|
1747
|
+
return `${spacing * 2.5}px ${spacing * 2}px 0 ${spacing * 5}px`;
|
|
1748
|
+
});
|
|
1749
|
+
const StyledIconContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1750
|
+
displayName: "BaseMessage__StyledIconContainer",
|
|
1751
|
+
componentId: "kitt-universal__sc-eepeiz-2"
|
|
1752
|
+
})(["margin:", ";"], ({
|
|
1753
|
+
theme
|
|
1754
|
+
}) => {
|
|
1755
|
+
const {
|
|
1756
|
+
spacing
|
|
1757
|
+
} = theme.kitt;
|
|
1758
|
+
return `${spacing}px ${spacing * 5}px 0 0`;
|
|
1759
|
+
});
|
|
1760
|
+
const StyledTextContent = /*#__PURE__*/styled__default(Typography.Text).withConfig({
|
|
1761
|
+
displayName: "BaseMessage__StyledTextContent",
|
|
1762
|
+
componentId: "kitt-universal__sc-eepeiz-3"
|
|
1763
|
+
})(["flex:1;text-align:", ";"], ({
|
|
1764
|
+
$isCenteredText
|
|
1765
|
+
}) => $isCenteredText ? 'center' : 'left');
|
|
1766
|
+
const StyledMessageContent = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1767
|
+
displayName: "BaseMessage__StyledMessageContent",
|
|
1768
|
+
componentId: "kitt-universal__sc-eepeiz-4"
|
|
1769
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], ({
|
|
1770
|
+
theme
|
|
1771
|
+
}) => {
|
|
1772
|
+
const {
|
|
1773
|
+
spacing
|
|
1774
|
+
} = theme.kitt;
|
|
1775
|
+
return `${spacing * 4}px ${spacing * 5}px`;
|
|
1776
|
+
});
|
|
1777
|
+
function BaseMessage({
|
|
1747
1778
|
type = 'info',
|
|
1748
1779
|
children,
|
|
1749
|
-
|
|
1750
|
-
centeredText
|
|
1751
|
-
|
|
1752
|
-
|
|
1780
|
+
hasNoRadius,
|
|
1781
|
+
centeredText,
|
|
1782
|
+
insets,
|
|
1783
|
+
onDismiss
|
|
1753
1784
|
}) {
|
|
1754
1785
|
const color = getColorByType(type);
|
|
1755
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1756
|
-
type: type,
|
|
1757
|
-
|
|
1758
|
-
insets: insets,
|
|
1759
|
-
children: [
|
|
1760
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1786
|
+
return /*#__PURE__*/jsxRuntime.jsxs(StyledMessageContainer, {
|
|
1787
|
+
$type: type,
|
|
1788
|
+
$hasNoRadius: hasNoRadius,
|
|
1789
|
+
$insets: insets,
|
|
1790
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(StyledMessageContent, {
|
|
1791
|
+
children: [centeredText ? null : /*#__PURE__*/jsxRuntime.jsx(StyledIconContainer, {
|
|
1792
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
1793
|
+
color: color,
|
|
1794
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(IconContent, {
|
|
1795
|
+
type: type,
|
|
1796
|
+
color: color
|
|
1797
|
+
})
|
|
1798
|
+
})
|
|
1799
|
+
}), /*#__PURE__*/jsxRuntime.jsx(StyledTextContent, {
|
|
1800
|
+
$isCenteredText: centeredText,
|
|
1801
|
+
base: "body",
|
|
1770
1802
|
color: color,
|
|
1771
1803
|
children: children
|
|
1772
|
-
})
|
|
1773
|
-
}), onDismiss ? /*#__PURE__*/jsxRuntime.jsx(
|
|
1774
|
-
|
|
1775
|
-
|
|
1804
|
+
})]
|
|
1805
|
+
}), onDismiss ? /*#__PURE__*/jsxRuntime.jsx(StyledDismissWrapper, {
|
|
1806
|
+
children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
1807
|
+
color: getIconButtonColor(type),
|
|
1776
1808
|
icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.XIcon, {}),
|
|
1777
|
-
|
|
1778
|
-
color: color
|
|
1809
|
+
onPress: onDismiss
|
|
1779
1810
|
})
|
|
1780
1811
|
}) : null]
|
|
1781
1812
|
});
|
|
1782
1813
|
}
|
|
1783
1814
|
|
|
1815
|
+
function Message({
|
|
1816
|
+
type = 'info',
|
|
1817
|
+
children,
|
|
1818
|
+
hasNoRadius,
|
|
1819
|
+
centeredText,
|
|
1820
|
+
insets,
|
|
1821
|
+
onDismiss
|
|
1822
|
+
}) {
|
|
1823
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseMessage, {
|
|
1824
|
+
insets: insets,
|
|
1825
|
+
hasNoRadius: hasNoRadius,
|
|
1826
|
+
type: type,
|
|
1827
|
+
centeredText: centeredText,
|
|
1828
|
+
onDismiss: onDismiss,
|
|
1829
|
+
children: children
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1784
1833
|
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
1785
1834
|
const OverlayPressable = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.Pressable).withConfig({
|
|
1786
1835
|
displayName: "Overlay__OverlayPressable",
|
|
@@ -1936,19 +1985,22 @@ function Notification({
|
|
|
1936
1985
|
type,
|
|
1937
1986
|
children,
|
|
1938
1987
|
centeredText,
|
|
1939
|
-
|
|
1988
|
+
insets,
|
|
1989
|
+
onDelete,
|
|
1990
|
+
onDismiss
|
|
1940
1991
|
}) {
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1992
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
1993
|
+
if (onDelete) {
|
|
1994
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
return /*#__PURE__*/jsxRuntime.jsx(BaseMessage, {
|
|
1999
|
+
hasNoRadius: true,
|
|
1946
2000
|
type: type,
|
|
1947
2001
|
centeredText: centeredText,
|
|
1948
|
-
insets:
|
|
1949
|
-
|
|
1950
|
-
},
|
|
1951
|
-
onDismiss: onDelete,
|
|
2002
|
+
insets: insets,
|
|
2003
|
+
onDismiss: onDismiss,
|
|
1952
2004
|
children: children
|
|
1953
2005
|
});
|
|
1954
2006
|
}
|
|
@@ -1982,12 +2034,16 @@ function SkeletonContent({
|
|
|
1982
2034
|
});
|
|
1983
2035
|
}
|
|
1984
2036
|
|
|
2037
|
+
const SkeletonContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
2038
|
+
displayName: "Skeleton__SkeletonContainer",
|
|
2039
|
+
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
2040
|
+
})(["overflow:hidden;"]);
|
|
1985
2041
|
function Skeleton({
|
|
1986
2042
|
isLoading,
|
|
1987
2043
|
style
|
|
1988
2044
|
}) {
|
|
1989
2045
|
const [width, setWidth] = react.useState(0);
|
|
1990
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
2046
|
+
return /*#__PURE__*/jsxRuntime.jsx(SkeletonContainer, {
|
|
1991
2047
|
style: style,
|
|
1992
2048
|
onLayout: ({
|
|
1993
2049
|
nativeEvent
|
|
@@ -2000,16 +2056,16 @@ function Skeleton({
|
|
|
2000
2056
|
}
|
|
2001
2057
|
const Bar = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2002
2058
|
displayName: "Skeleton__Bar",
|
|
2003
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2004
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2059
|
+
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
2060
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], ({
|
|
2005
2061
|
theme
|
|
2006
2062
|
}) => theme.kitt.spacing * 2, ({
|
|
2007
2063
|
theme
|
|
2008
2064
|
}) => theme.kitt.spacing * 2);
|
|
2009
2065
|
const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2010
2066
|
displayName: "Skeleton__Circle",
|
|
2011
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2012
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2067
|
+
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
2068
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], ({
|
|
2013
2069
|
theme
|
|
2014
2070
|
}) => theme.kitt.spacing * 12, ({
|
|
2015
2071
|
theme
|
|
@@ -2018,8 +2074,8 @@ const Circle = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
|
2018
2074
|
}) => theme.kitt.spacing * 6);
|
|
2019
2075
|
const Square = /*#__PURE__*/styled__default(Skeleton).withConfig({
|
|
2020
2076
|
displayName: "Skeleton__Square",
|
|
2021
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2022
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2077
|
+
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
2078
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], ({
|
|
2023
2079
|
theme
|
|
2024
2080
|
}) => theme.kitt.spacing * 12, ({
|
|
2025
2081
|
theme
|
|
@@ -2460,6 +2516,8 @@ const colorsLateOceanTheme = {
|
|
|
2460
2516
|
success: lateOceanColorPalette.viride,
|
|
2461
2517
|
correct: lateOceanColorPalette.viride,
|
|
2462
2518
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2519
|
+
info: lateOceanColorPalette.aero,
|
|
2520
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2463
2521
|
separator: lateOceanColorPalette.black100,
|
|
2464
2522
|
hover: lateOceanColorPalette.black100,
|
|
2465
2523
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2484,7 +2542,7 @@ const avatar = {
|
|
|
2484
2542
|
}
|
|
2485
2543
|
};
|
|
2486
2544
|
|
|
2487
|
-
const
|
|
2545
|
+
const button = {
|
|
2488
2546
|
borderRadius: '30px',
|
|
2489
2547
|
borderWidth: {
|
|
2490
2548
|
disabled: '2px',
|
|
@@ -2575,12 +2633,18 @@ const cardLateOceanTheme = {
|
|
|
2575
2633
|
}
|
|
2576
2634
|
};
|
|
2577
2635
|
|
|
2578
|
-
const
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2636
|
+
const feedbackMessage = {
|
|
2637
|
+
danger: {
|
|
2638
|
+
backgroundColor: colorsLateOceanTheme.danger
|
|
2639
|
+
},
|
|
2640
|
+
success: {
|
|
2641
|
+
backgroundColor: colorsLateOceanTheme.success
|
|
2642
|
+
},
|
|
2643
|
+
info: {
|
|
2644
|
+
backgroundColor: colorsLateOceanTheme.info
|
|
2645
|
+
},
|
|
2646
|
+
warning: {
|
|
2647
|
+
backgroundColor: colorsLateOceanTheme.warning
|
|
2584
2648
|
}
|
|
2585
2649
|
};
|
|
2586
2650
|
|
|
@@ -2772,14 +2836,14 @@ const iconButton = {
|
|
|
2772
2836
|
},
|
|
2773
2837
|
disabled: {
|
|
2774
2838
|
scale: 1,
|
|
2775
|
-
backgroundColor:
|
|
2776
|
-
borderColor:
|
|
2839
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
2840
|
+
borderColor: button.disabled.borderColor
|
|
2777
2841
|
},
|
|
2778
2842
|
default: {
|
|
2779
|
-
pressedBackgroundColor:
|
|
2843
|
+
pressedBackgroundColor: button.default.pressedBackgroundColor
|
|
2780
2844
|
},
|
|
2781
2845
|
white: {
|
|
2782
|
-
pressedBackgroundColor:
|
|
2846
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
2783
2847
|
}
|
|
2784
2848
|
};
|
|
2785
2849
|
|
|
@@ -2880,9 +2944,9 @@ const theme = {
|
|
|
2880
2944
|
lateOcean: lateOceanColorPalette
|
|
2881
2945
|
},
|
|
2882
2946
|
avatar,
|
|
2883
|
-
button
|
|
2947
|
+
button,
|
|
2884
2948
|
card: cardLateOceanTheme,
|
|
2885
|
-
feedbackMessage
|
|
2949
|
+
feedbackMessage,
|
|
2886
2950
|
forms,
|
|
2887
2951
|
typography: typographyLateOceanTheme,
|
|
2888
2952
|
tag: tagLateOceanTheme,
|
|
@@ -2902,24 +2966,6 @@ function TimePicker() {
|
|
|
2902
2966
|
});
|
|
2903
2967
|
}
|
|
2904
2968
|
|
|
2905
|
-
var Arrow = function (props) {
|
|
2906
|
-
return /*#__PURE__*/jsxRuntime.jsx("svg", { ...props,
|
|
2907
|
-
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2908
|
-
fillRule: "evenodd",
|
|
2909
|
-
clipRule: "evenodd",
|
|
2910
|
-
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",
|
|
2911
|
-
fill: "currentColor"
|
|
2912
|
-
})
|
|
2913
|
-
});
|
|
2914
|
-
};
|
|
2915
|
-
|
|
2916
|
-
Arrow.defaultProps = {
|
|
2917
|
-
width: "36",
|
|
2918
|
-
height: "8",
|
|
2919
|
-
viewBox: "0 0 36 9",
|
|
2920
|
-
fill: "none",
|
|
2921
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2922
|
-
};
|
|
2923
2969
|
const StyledTooltipView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
2924
2970
|
displayName: "TooltipView__StyledTooltipView",
|
|
2925
2971
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
@@ -2940,7 +2986,7 @@ const StyledTooltipContent = /*#__PURE__*/styled__default(BabelPluginStyledCompo
|
|
|
2940
2986
|
function ArrowView(props) {
|
|
2941
2987
|
const theme = /*#__PURE__*/styled.useTheme();
|
|
2942
2988
|
return /*#__PURE__*/jsxRuntime.jsx(BabelPluginStyledComponentsReactNative.View, { ...props,
|
|
2943
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2989
|
+
children: /*#__PURE__*/jsxRuntime.jsx(kittIcons.TooltipArrowIcon, {
|
|
2944
2990
|
color: theme.kitt.tooltip.backgroundColor
|
|
2945
2991
|
})
|
|
2946
2992
|
});
|