@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
package/dist/index.es.js
CHANGED
|
@@ -761,7 +761,7 @@ var webAnimationOverlayEasing$2 = [0.42, 0, 1, 1];
|
|
|
761
761
|
var maxWidth = 540;
|
|
762
762
|
var overlayHorizontalPadding = 24;
|
|
763
763
|
var cardModal = {
|
|
764
|
-
borderRadius:
|
|
764
|
+
borderRadius: spacing * 2,
|
|
765
765
|
maxWidth: maxWidth,
|
|
766
766
|
maxWidthWithPadding: maxWidth + overlayHorizontalPadding * 2,
|
|
767
767
|
minHeight: 280,
|
|
@@ -853,7 +853,7 @@ var webAnimationContentEasing$1 = [0.77, 0, 0.175, 1];
|
|
|
853
853
|
var webAnimationOverlayDuration$1 = 250;
|
|
854
854
|
var webAnimationOverlayEasing$1 = [0.42, 0, 1, 1];
|
|
855
855
|
var dialogModal = {
|
|
856
|
-
borderRadius:
|
|
856
|
+
borderRadius: spacing * 2,
|
|
857
857
|
maxWidth: 540,
|
|
858
858
|
overlayPadding: {
|
|
859
859
|
horizontal: 24,
|
|
@@ -1822,10 +1822,10 @@ var highlight = {
|
|
|
1822
1822
|
},
|
|
1823
1823
|
primary: {
|
|
1824
1824
|
"default": {
|
|
1825
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1825
|
+
backgroundColor: deepPurpleColorPalette['blue.1']
|
|
1826
1826
|
},
|
|
1827
1827
|
hover: {
|
|
1828
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1828
|
+
backgroundColor: deepPurpleColorPalette['blue.2']
|
|
1829
1829
|
}
|
|
1830
1830
|
},
|
|
1831
1831
|
secondary: {
|
|
@@ -1846,10 +1846,14 @@ var highlight = {
|
|
|
1846
1846
|
},
|
|
1847
1847
|
dark: {
|
|
1848
1848
|
"default": {
|
|
1849
|
-
backgroundColor: deepPurpleColorPalette['
|
|
1849
|
+
backgroundColor: deepPurpleColorPalette['grey.0'],
|
|
1850
|
+
borderWidth: 1,
|
|
1851
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1850
1852
|
},
|
|
1851
1853
|
hover: {
|
|
1852
|
-
backgroundColor: deepPurpleColorPalette['beige.1']
|
|
1854
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1855
|
+
borderWidth: 1,
|
|
1856
|
+
borderColor: deepPurpleColorPalette['beige.3']
|
|
1853
1857
|
}
|
|
1854
1858
|
},
|
|
1855
1859
|
success: {
|
|
@@ -8427,12 +8431,15 @@ function AnimatedCaret(_ref) {
|
|
|
8427
8431
|
function AnimatedContainer(_ref) {
|
|
8428
8432
|
var children = _ref.children,
|
|
8429
8433
|
size = _ref.size,
|
|
8430
|
-
animatedStyles = _ref.animatedStyles
|
|
8434
|
+
animatedStyles = _ref.animatedStyles,
|
|
8435
|
+
variant = _ref.variant;
|
|
8431
8436
|
var sx = useSx();
|
|
8432
8437
|
var theme = useTheme();
|
|
8433
8438
|
var styles = sx({
|
|
8434
8439
|
borderRadius: theme.kitt.highlight.borderRadius,
|
|
8435
|
-
padding: theme.kitt.highlight.padding[size]
|
|
8440
|
+
padding: theme.kitt.highlight.padding[size],
|
|
8441
|
+
borderWidth: theme.kitt.highlight[variant]["default"].borderWidth,
|
|
8442
|
+
borderColor: theme.kitt.highlight[variant]["default"].borderColor
|
|
8436
8443
|
});
|
|
8437
8444
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
8438
8445
|
style: [styles, animatedStyles],
|
|
@@ -8566,6 +8573,8 @@ function Highlight(_ref) {
|
|
|
8566
8573
|
borderRadius: "kitt.highlight.borderRadius",
|
|
8567
8574
|
padding: theme.kitt.highlight.padding[size],
|
|
8568
8575
|
backgroundColor: "kitt.highlight.".concat(variant, ".default.backgroundColor"),
|
|
8576
|
+
borderWidth: theme.kitt.highlight[variant]["default"].borderWidth,
|
|
8577
|
+
borderColor: theme.kitt.highlight[variant]["default"].borderColor,
|
|
8569
8578
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
8570
8579
|
space: highlightStyle[size].spaceBetween,
|
|
8571
8580
|
children: [icon && /*#__PURE__*/jsx(View, {
|
|
@@ -9021,6 +9030,8 @@ var getColorByType = function (type) {
|
|
|
9021
9030
|
switch (type) {
|
|
9022
9031
|
case 'success':
|
|
9023
9032
|
case 'danger':
|
|
9033
|
+
case 'info':
|
|
9034
|
+
return 'white';
|
|
9024
9035
|
case 'warning':
|
|
9025
9036
|
default:
|
|
9026
9037
|
return 'black';
|
|
@@ -9030,6 +9041,8 @@ var getIconButtonColor = function (messageType) {
|
|
|
9030
9041
|
switch (messageType) {
|
|
9031
9042
|
case 'success':
|
|
9032
9043
|
case 'danger':
|
|
9044
|
+
case 'info':
|
|
9045
|
+
return 'ghost';
|
|
9033
9046
|
case 'warning':
|
|
9034
9047
|
default:
|
|
9035
9048
|
return 'black';
|
|
@@ -9050,7 +9063,7 @@ function BaseMessage(_ref) {
|
|
|
9050
9063
|
justifyContent: "space-between",
|
|
9051
9064
|
minHeight: "kitt.feedbackMessage.minHeight",
|
|
9052
9065
|
paddingTop: insets === null || insets === void 0 ? void 0 : insets.top,
|
|
9053
|
-
borderRadius: hasNoRadius ? undefined : 'kitt.
|
|
9066
|
+
borderRadius: hasNoRadius ? undefined : 'kitt.2',
|
|
9054
9067
|
backgroundColor: "kitt.feedbackMessage.".concat(type, ".backgroundColor"),
|
|
9055
9068
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
9056
9069
|
flexGrow: 1,
|
|
@@ -9058,9 +9071,9 @@ function BaseMessage(_ref) {
|
|
|
9058
9071
|
alignSelf: "center",
|
|
9059
9072
|
alignItems: "flex-start",
|
|
9060
9073
|
paddingY: "kitt.4",
|
|
9061
|
-
paddingX: "kitt.
|
|
9074
|
+
paddingX: "kitt.4",
|
|
9062
9075
|
children: [centeredText ? null : /*#__PURE__*/jsx(View, {
|
|
9063
|
-
marginRight: "kitt.
|
|
9076
|
+
marginRight: "kitt.2",
|
|
9064
9077
|
children: /*#__PURE__*/jsx(Icon, {
|
|
9065
9078
|
color: color,
|
|
9066
9079
|
icon: /*#__PURE__*/jsx(IconContent, {
|