@ornikar/kitt-universal 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0 → 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.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 +12 -4
- package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +1 -2
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +4 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +9 -3
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +5 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +69 -74
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +69 -74
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +69 -74
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +1 -0
- package/dist/index-node-22.17.cjs.web.js +70 -75
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +69 -74
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +1 -0
- package/dist/index-node-22.17.es.web.mjs +70 -75
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +71 -77
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +72 -78
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +20 -10
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +20 -10
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +20 -10
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +20 -10
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +20 -10
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +20 -10
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +20 -10
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +20 -10
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -689,6 +689,10 @@ var button = {
|
|
|
689
689
|
"default": 40,
|
|
690
690
|
medium: 48
|
|
691
691
|
},
|
|
692
|
+
minHeight: {
|
|
693
|
+
"default": 40,
|
|
694
|
+
medium: 48
|
|
695
|
+
},
|
|
692
696
|
maxHeight: 48,
|
|
693
697
|
icon: {
|
|
694
698
|
medium: {
|
|
@@ -1136,6 +1140,7 @@ var inputStatesStyle = {
|
|
|
1136
1140
|
color: deepPurpleColorPalette.black
|
|
1137
1141
|
},
|
|
1138
1142
|
hover: {
|
|
1143
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1139
1144
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1140
1145
|
color: deepPurpleColorPalette.black
|
|
1141
1146
|
},
|
|
@@ -2141,8 +2146,8 @@ var typography = {
|
|
|
2141
2146
|
allowedFontWeights: ['semibold']
|
|
2142
2147
|
},
|
|
2143
2148
|
'heading-l': {
|
|
2144
|
-
fontSize:
|
|
2145
|
-
lineHeight:
|
|
2149
|
+
fontSize: 38,
|
|
2150
|
+
lineHeight: 44,
|
|
2146
2151
|
allowedFontWeights: ['semibold']
|
|
2147
2152
|
},
|
|
2148
2153
|
'heading-m': {
|
|
@@ -2151,14 +2156,19 @@ var typography = {
|
|
|
2151
2156
|
allowedFontWeights: ['semibold']
|
|
2152
2157
|
},
|
|
2153
2158
|
'heading-s': {
|
|
2154
|
-
fontSize:
|
|
2155
|
-
lineHeight:
|
|
2156
|
-
allowedFontWeights: ['
|
|
2159
|
+
fontSize: 24,
|
|
2160
|
+
lineHeight: 28,
|
|
2161
|
+
allowedFontWeights: ['semibold']
|
|
2157
2162
|
},
|
|
2158
2163
|
'heading-xs': {
|
|
2164
|
+
fontSize: 20,
|
|
2165
|
+
lineHeight: 24,
|
|
2166
|
+
allowedFontWeights: ['semibold']
|
|
2167
|
+
},
|
|
2168
|
+
'heading-xxs': {
|
|
2159
2169
|
fontSize: 16,
|
|
2160
|
-
lineHeight:
|
|
2161
|
-
allowedFontWeights: ['
|
|
2170
|
+
lineHeight: 20,
|
|
2171
|
+
allowedFontWeights: ['semibold']
|
|
2162
2172
|
}
|
|
2163
2173
|
}
|
|
2164
2174
|
},
|
|
@@ -2225,17 +2235,17 @@ var typography = {
|
|
|
2225
2235
|
configs: {
|
|
2226
2236
|
'label-large': {
|
|
2227
2237
|
fontSize: 16,
|
|
2228
|
-
lineHeight:
|
|
2238
|
+
lineHeight: 20,
|
|
2229
2239
|
allowedFontWeights: ['semibold']
|
|
2230
2240
|
},
|
|
2231
2241
|
'label-medium': {
|
|
2232
2242
|
fontSize: 14,
|
|
2233
|
-
lineHeight:
|
|
2243
|
+
lineHeight: 18,
|
|
2234
2244
|
allowedFontWeights: ['semibold']
|
|
2235
2245
|
},
|
|
2236
2246
|
'label-small': {
|
|
2237
2247
|
fontSize: 12,
|
|
2238
|
-
lineHeight:
|
|
2248
|
+
lineHeight: 14,
|
|
2239
2249
|
allowedFontWeights: ['semibold']
|
|
2240
2250
|
}
|
|
2241
2251
|
}
|
|
@@ -3156,7 +3166,9 @@ function AnimatedContainer$2(_ref) {
|
|
|
3156
3166
|
},
|
|
3157
3167
|
width: width,
|
|
3158
3168
|
height: height,
|
|
3169
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3159
3170
|
alignSelf: "baseline",
|
|
3171
|
+
justifyContent: "center",
|
|
3160
3172
|
borderRadius: "kitt.button.borderRadius",
|
|
3161
3173
|
backgroundColor: currentBackgroundColor,
|
|
3162
3174
|
children: children
|
|
@@ -3855,6 +3867,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3855
3867
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3856
3868
|
minWidth: "kitt.button.minWidth",
|
|
3857
3869
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3870
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3858
3871
|
maxHeight: "kitt.button.maxHeight",
|
|
3859
3872
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3860
3873
|
onPress: onPress,
|
|
@@ -5433,30 +5446,11 @@ function InputPressable(_ref) {
|
|
|
5433
5446
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
|
|
5434
5447
|
}
|
|
5435
5448
|
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
var styles = sx({
|
|
5442
|
-
borderRadius: input.borderRadius
|
|
5443
|
-
});
|
|
5444
|
-
var animatedBackground = useAnimatedStyle(function () {
|
|
5445
|
-
var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5446
|
-
var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5447
|
-
return {
|
|
5448
|
-
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5449
|
-
duration: 200
|
|
5450
|
-
})
|
|
5451
|
-
};
|
|
5452
|
-
}, [isHovered, theme]);
|
|
5453
|
-
return /*#__PURE__*/jsx(Animated$1.View, {
|
|
5454
|
-
style: [styles, animatedBackground],
|
|
5455
|
-
children: /*#__PURE__*/jsx(View, {
|
|
5456
|
-
position: "relative",
|
|
5457
|
-
children: children
|
|
5458
|
-
})
|
|
5459
|
-
});
|
|
5449
|
+
var inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
|
|
5450
|
+
function InputTextContainer(props) {
|
|
5451
|
+
return /*#__PURE__*/jsx("div", _objectSpread({
|
|
5452
|
+
className: inputTextContainer
|
|
5453
|
+
}, props));
|
|
5460
5454
|
}
|
|
5461
5455
|
|
|
5462
5456
|
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
@@ -5485,47 +5479,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5485
5479
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5486
5480
|
base: 'body-m'
|
|
5487
5481
|
});
|
|
5488
|
-
return /*#__PURE__*/
|
|
5489
|
-
children:
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
justifyContent: "center",
|
|
5524
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5525
|
-
children: right
|
|
5526
|
-
}) : null]
|
|
5527
|
-
});
|
|
5528
|
-
}
|
|
5482
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5483
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
|
|
5484
|
+
ref: ref,
|
|
5485
|
+
multiline: multiline,
|
|
5486
|
+
id: id,
|
|
5487
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5488
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5489
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5490
|
+
inputMode: inputMode,
|
|
5491
|
+
autoComplete: autoComplete,
|
|
5492
|
+
autoCorrect: autoCorrect,
|
|
5493
|
+
textContentType: textContentType,
|
|
5494
|
+
fontSize: fontSizeForNativeBase,
|
|
5495
|
+
lineHeight:
|
|
5496
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5497
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5498
|
+
fontSizeForNativeBase,
|
|
5499
|
+
fontWeight: "bodies.regular",
|
|
5500
|
+
fontFamily: "bodies.regular",
|
|
5501
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5502
|
+
variant: variant
|
|
5503
|
+
}, props), {}, {
|
|
5504
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5505
|
+
onSubmitEditing: multiline ? function () {
|
|
5506
|
+
return null;
|
|
5507
|
+
} : onSubmitEditing
|
|
5508
|
+
})), right ? /*#__PURE__*/jsx(View, {
|
|
5509
|
+
position: "absolute",
|
|
5510
|
+
right: 0,
|
|
5511
|
+
top: 0,
|
|
5512
|
+
bottom: 0,
|
|
5513
|
+
justifyContent: "center",
|
|
5514
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5515
|
+
children: right
|
|
5516
|
+
}) : null]
|
|
5529
5517
|
});
|
|
5530
5518
|
});
|
|
5531
5519
|
|
|
@@ -10129,6 +10117,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10129
10117
|
button: {
|
|
10130
10118
|
minWidth: theme.button.minWidth,
|
|
10131
10119
|
maxWidth: theme.button.maxWidth,
|
|
10120
|
+
minHeight: {
|
|
10121
|
+
"default": theme.button.minHeight["default"],
|
|
10122
|
+
medium: theme.button.minHeight.medium
|
|
10123
|
+
},
|
|
10132
10124
|
maxHeight: theme.button.maxHeight,
|
|
10133
10125
|
height: {
|
|
10134
10126
|
"default": theme.button.height["default"],
|
|
@@ -10745,6 +10737,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10745
10737
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
10746
10738
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
10747
10739
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
10740
|
+
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
|
|
10748
10741
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
10749
10742
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
10750
10743
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
@@ -10768,6 +10761,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10768
10761
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
10769
10762
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
10770
10763
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
10764
|
+
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
|
|
10771
10765
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
10772
10766
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
10773
10767
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
@@ -12598,7 +12592,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
12598
12592
|
return /*#__PURE__*/jsx(View, {
|
|
12599
12593
|
marginBottom: 10,
|
|
12600
12594
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
12601
|
-
base: "
|
|
12595
|
+
base: "body-l",
|
|
12602
12596
|
color: useStoryBlockColor(color),
|
|
12603
12597
|
numberOfLines: numberOfLines,
|
|
12604
12598
|
children: children
|
|
@@ -13151,7 +13145,7 @@ function ToastContent(_ref) {
|
|
|
13151
13145
|
flexGrow: 1,
|
|
13152
13146
|
flexShrink: 1,
|
|
13153
13147
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13154
|
-
base: "
|
|
13148
|
+
base: "body-m",
|
|
13155
13149
|
color: "white",
|
|
13156
13150
|
children: title
|
|
13157
13151
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13167,7 +13161,7 @@ function ToastContent(_ref) {
|
|
|
13167
13161
|
borderColor: "white",
|
|
13168
13162
|
onPress: onPress,
|
|
13169
13163
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13170
|
-
base: "
|
|
13164
|
+
base: "body-m",
|
|
13171
13165
|
color: "white",
|
|
13172
13166
|
children: actionLabel
|
|
13173
13167
|
})
|