@ornikar/kitt-universal 27.3.0 → 27.4.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/CHANGELOG.md +11 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Highlight/AnimatedContainer/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/cardModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/dialogModal.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +24 -11
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +24 -11
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +24 -11
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +21 -9
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +24 -11
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +21 -9
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +24 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +21 -9
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +10 -6
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +10 -6
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +10 -6
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +10 -6
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +10 -6
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +10 -6
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +10 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +10 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -743,7 +743,7 @@ const webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
|
|
|
743
743
|
const maxWidth = 540;
|
|
744
744
|
const overlayHorizontalPadding = 24;
|
|
745
745
|
const cardModal = {
|
|
746
|
-
borderRadius:
|
|
746
|
+
borderRadius: spacing * 2,
|
|
747
747
|
maxWidth,
|
|
748
748
|
maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
|
|
749
749
|
minHeight: 280,
|
|
@@ -835,7 +835,7 @@ const webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
|
|
|
835
835
|
const webAnimationOverlayDuration$1 = 250;
|
|
836
836
|
const webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
|
|
837
837
|
const dialogModal = {
|
|
838
|
-
borderRadius:
|
|
838
|
+
borderRadius: spacing * 2,
|
|
839
839
|
maxWidth: 540,
|
|
840
840
|
overlayPadding: {
|
|
841
841
|
horizontal: 24,
|
|
@@ -1804,10 +1804,10 @@ const highlight = {
|
|
|
1804
1804
|
},
|
|
1805
1805
|
primary: {
|
|
1806
1806
|
default: {
|
|
1807
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1807
|
+
backgroundColor: deepPurpleColorPalette['blue.1']
|
|
1808
1808
|
},
|
|
1809
1809
|
hover: {
|
|
1810
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1810
|
+
backgroundColor: deepPurpleColorPalette['blue.2']
|
|
1811
1811
|
}
|
|
1812
1812
|
},
|
|
1813
1813
|
secondary: {
|
|
@@ -1828,10 +1828,14 @@ const highlight = {
|
|
|
1828
1828
|
},
|
|
1829
1829
|
dark: {
|
|
1830
1830
|
default: {
|
|
1831
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1831
|
+
backgroundColor: deepPurpleColorPalette['grey.0'],
|
|
1832
|
+
borderWidth: 1,
|
|
1833
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1832
1834
|
},
|
|
1833
1835
|
hover: {
|
|
1834
|
-
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1836
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1837
|
+
borderWidth: 1,
|
|
1838
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1835
1839
|
}
|
|
1836
1840
|
},
|
|
1837
1841
|
success: {
|
|
@@ -8151,13 +8155,16 @@ function AnimatedCaret({
|
|
|
8151
8155
|
function AnimatedContainer({
|
|
8152
8156
|
children,
|
|
8153
8157
|
size,
|
|
8154
|
-
animatedStyles
|
|
8158
|
+
animatedStyles,
|
|
8159
|
+
variant
|
|
8155
8160
|
}) {
|
|
8156
8161
|
const sx = useSx();
|
|
8157
8162
|
const theme = useTheme();
|
|
8158
8163
|
const styles = sx({
|
|
8159
8164
|
borderRadius: theme.kitt.highlight.borderRadius,
|
|
8160
|
-
padding: theme.kitt.highlight.padding[size]
|
|
8165
|
+
padding: theme.kitt.highlight.padding[size],
|
|
8166
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8167
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor
|
|
8161
8168
|
});
|
|
8162
8169
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
8163
8170
|
style: [styles, animatedStyles],
|
|
@@ -8281,6 +8288,8 @@ function Highlight({
|
|
|
8281
8288
|
borderRadius: "kitt.highlight.borderRadius",
|
|
8282
8289
|
padding: theme.kitt.highlight.padding[size],
|
|
8283
8290
|
backgroundColor: `kitt.highlight.${variant}.default.backgroundColor`,
|
|
8291
|
+
borderWidth: theme.kitt.highlight[variant].default.borderWidth,
|
|
8292
|
+
borderColor: theme.kitt.highlight[variant].default.borderColor,
|
|
8284
8293
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
8285
8294
|
space: highlightStyle[size].spaceBetween,
|
|
8286
8295
|
children: [icon && /*#__PURE__*/jsx(View, {
|
|
@@ -8735,6 +8744,8 @@ const getColorByType = type => {
|
|
|
8735
8744
|
switch (type) {
|
|
8736
8745
|
case 'success':
|
|
8737
8746
|
case 'danger':
|
|
8747
|
+
case 'info':
|
|
8748
|
+
return 'white';
|
|
8738
8749
|
case 'warning':
|
|
8739
8750
|
default:
|
|
8740
8751
|
return 'black';
|
|
@@ -8744,6 +8755,8 @@ const getIconButtonColor = messageType => {
|
|
|
8744
8755
|
switch (messageType) {
|
|
8745
8756
|
case 'success':
|
|
8746
8757
|
case 'danger':
|
|
8758
|
+
case 'info':
|
|
8759
|
+
return 'ghost';
|
|
8747
8760
|
case 'warning':
|
|
8748
8761
|
default:
|
|
8749
8762
|
return 'black';
|
|
@@ -8764,7 +8777,7 @@ function BaseMessage({
|
|
|
8764
8777
|
justifyContent: "space-between",
|
|
8765
8778
|
minHeight: "kitt.feedbackMessage.minHeight",
|
|
8766
8779
|
paddingTop: insets?.top,
|
|
8767
|
-
borderRadius: hasNoRadius ? undefined : 'kitt.
|
|
8780
|
+
borderRadius: hasNoRadius ? undefined : 'kitt.2',
|
|
8768
8781
|
backgroundColor: `kitt.feedbackMessage.${type}.backgroundColor`,
|
|
8769
8782
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
8770
8783
|
flexGrow: 1,
|
|
@@ -8772,9 +8785,9 @@ function BaseMessage({
|
|
|
8772
8785
|
alignSelf: "center",
|
|
8773
8786
|
alignItems: "flex-start",
|
|
8774
8787
|
paddingY: "kitt.4",
|
|
8775
|
-
paddingX: "kitt.
|
|
8788
|
+
paddingX: "kitt.4",
|
|
8776
8789
|
children: [centeredText ? null : /*#__PURE__*/jsx(View, {
|
|
8777
|
-
marginRight: "kitt.
|
|
8790
|
+
marginRight: "kitt.2",
|
|
8778
8791
|
children: /*#__PURE__*/jsx(Icon, {
|
|
8779
8792
|
color: color,
|
|
8780
8793
|
icon: /*#__PURE__*/jsx(IconContent, {
|