@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
|
@@ -673,6 +673,10 @@ const button = {
|
|
|
673
673
|
default: 40,
|
|
674
674
|
medium: 48
|
|
675
675
|
},
|
|
676
|
+
minHeight: {
|
|
677
|
+
default: 40,
|
|
678
|
+
medium: 48
|
|
679
|
+
},
|
|
676
680
|
maxHeight: 48,
|
|
677
681
|
icon: {
|
|
678
682
|
medium: {
|
|
@@ -1120,6 +1124,7 @@ const inputStatesStyle = {
|
|
|
1120
1124
|
color: deepPurpleColorPalette.black
|
|
1121
1125
|
},
|
|
1122
1126
|
hover: {
|
|
1127
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1123
1128
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1124
1129
|
color: deepPurpleColorPalette.black
|
|
1125
1130
|
},
|
|
@@ -2125,8 +2130,8 @@ const typography = {
|
|
|
2125
2130
|
allowedFontWeights: ['semibold']
|
|
2126
2131
|
},
|
|
2127
2132
|
'heading-l': {
|
|
2128
|
-
fontSize:
|
|
2129
|
-
lineHeight:
|
|
2133
|
+
fontSize: 38,
|
|
2134
|
+
lineHeight: 44,
|
|
2130
2135
|
allowedFontWeights: ['semibold']
|
|
2131
2136
|
},
|
|
2132
2137
|
'heading-m': {
|
|
@@ -2135,14 +2140,19 @@ const typography = {
|
|
|
2135
2140
|
allowedFontWeights: ['semibold']
|
|
2136
2141
|
},
|
|
2137
2142
|
'heading-s': {
|
|
2138
|
-
fontSize:
|
|
2139
|
-
lineHeight:
|
|
2140
|
-
allowedFontWeights: ['
|
|
2143
|
+
fontSize: 24,
|
|
2144
|
+
lineHeight: 28,
|
|
2145
|
+
allowedFontWeights: ['semibold']
|
|
2141
2146
|
},
|
|
2142
2147
|
'heading-xs': {
|
|
2148
|
+
fontSize: 20,
|
|
2149
|
+
lineHeight: 24,
|
|
2150
|
+
allowedFontWeights: ['semibold']
|
|
2151
|
+
},
|
|
2152
|
+
'heading-xxs': {
|
|
2143
2153
|
fontSize: 16,
|
|
2144
|
-
lineHeight:
|
|
2145
|
-
allowedFontWeights: ['
|
|
2154
|
+
lineHeight: 20,
|
|
2155
|
+
allowedFontWeights: ['semibold']
|
|
2146
2156
|
}
|
|
2147
2157
|
}
|
|
2148
2158
|
},
|
|
@@ -2209,17 +2219,17 @@ const typography = {
|
|
|
2209
2219
|
configs: {
|
|
2210
2220
|
'label-large': {
|
|
2211
2221
|
fontSize: 16,
|
|
2212
|
-
lineHeight:
|
|
2222
|
+
lineHeight: 20,
|
|
2213
2223
|
allowedFontWeights: ['semibold']
|
|
2214
2224
|
},
|
|
2215
2225
|
'label-medium': {
|
|
2216
2226
|
fontSize: 14,
|
|
2217
|
-
lineHeight:
|
|
2227
|
+
lineHeight: 18,
|
|
2218
2228
|
allowedFontWeights: ['semibold']
|
|
2219
2229
|
},
|
|
2220
2230
|
'label-small': {
|
|
2221
2231
|
fontSize: 12,
|
|
2222
|
-
lineHeight:
|
|
2232
|
+
lineHeight: 14,
|
|
2223
2233
|
allowedFontWeights: ['semibold']
|
|
2224
2234
|
}
|
|
2225
2235
|
}
|
|
@@ -3125,7 +3135,8 @@ function AnimatedContainer$2({
|
|
|
3125
3135
|
borderRadius: 'kitt.button.borderRadius',
|
|
3126
3136
|
backgroundColor: currentBackgroundColor,
|
|
3127
3137
|
width,
|
|
3128
|
-
height
|
|
3138
|
+
height,
|
|
3139
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3129
3140
|
});
|
|
3130
3141
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3131
3142
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3843,6 +3854,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3843
3854
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3844
3855
|
minWidth: "kitt.button.minWidth",
|
|
3845
3856
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3857
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3846
3858
|
maxHeight: "kitt.button.maxHeight",
|
|
3847
3859
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3848
3860
|
onPress: onPress,
|
|
@@ -5525,29 +5537,11 @@ function InputPressable({
|
|
|
5525
5537
|
}
|
|
5526
5538
|
|
|
5527
5539
|
function InputTextContainer({
|
|
5528
|
-
children
|
|
5529
|
-
isHovered
|
|
5540
|
+
children
|
|
5530
5541
|
}) {
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
borderRadius: input.borderRadius
|
|
5535
|
-
});
|
|
5536
|
-
const animatedBackground = useAnimatedStyle(() => {
|
|
5537
|
-
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5538
|
-
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5539
|
-
return {
|
|
5540
|
-
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5541
|
-
duration: 200
|
|
5542
|
-
})
|
|
5543
|
-
};
|
|
5544
|
-
}, [isHovered, theme]);
|
|
5545
|
-
return /*#__PURE__*/jsx(Animated.View, {
|
|
5546
|
-
style: [styles, animatedBackground],
|
|
5547
|
-
children: /*#__PURE__*/jsx(View, {
|
|
5548
|
-
position: "relative",
|
|
5549
|
-
children: children
|
|
5550
|
-
})
|
|
5542
|
+
return /*#__PURE__*/jsx(View, {
|
|
5543
|
+
position: "relative",
|
|
5544
|
+
children: children
|
|
5551
5545
|
});
|
|
5552
5546
|
}
|
|
5553
5547
|
|
|
@@ -5572,44 +5566,39 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
5572
5566
|
base: 'body-m'
|
|
5573
5567
|
});
|
|
5574
5568
|
const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
|
|
5575
|
-
return /*#__PURE__*/
|
|
5576
|
-
children: ({
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
justifyContent: "center",
|
|
5609
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5610
|
-
children: right
|
|
5611
|
-
}) : null]
|
|
5612
|
-
})
|
|
5569
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5570
|
+
children: [/*#__PURE__*/jsx(Input, {
|
|
5571
|
+
ref: ref,
|
|
5572
|
+
multiline: multiline,
|
|
5573
|
+
id: id,
|
|
5574
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5575
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5576
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5577
|
+
inputMode: inputMode,
|
|
5578
|
+
autoComplete: autoComplete,
|
|
5579
|
+
autoCorrect: autoCorrect,
|
|
5580
|
+
textContentType: textContentType,
|
|
5581
|
+
fontSize: fontSizeForNativeBase,
|
|
5582
|
+
lineHeight:
|
|
5583
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5584
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5585
|
+
shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
|
|
5586
|
+
fontWeight: "bodies.regular",
|
|
5587
|
+
fontFamily: "bodies.regular",
|
|
5588
|
+
py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
|
|
5589
|
+
variant: variant,
|
|
5590
|
+
...props,
|
|
5591
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5592
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5593
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
5594
|
+
position: "absolute",
|
|
5595
|
+
right: 0,
|
|
5596
|
+
top: 0,
|
|
5597
|
+
bottom: 0,
|
|
5598
|
+
justifyContent: "center",
|
|
5599
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5600
|
+
children: right
|
|
5601
|
+
}) : null]
|
|
5613
5602
|
});
|
|
5614
5603
|
});
|
|
5615
5604
|
|
|
@@ -10621,6 +10610,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10621
10610
|
button: {
|
|
10622
10611
|
minWidth: theme.button.minWidth,
|
|
10623
10612
|
maxWidth: theme.button.maxWidth,
|
|
10613
|
+
minHeight: {
|
|
10614
|
+
default: theme.button.minHeight.default,
|
|
10615
|
+
medium: theme.button.minHeight.medium
|
|
10616
|
+
},
|
|
10624
10617
|
maxHeight: theme.button.maxHeight,
|
|
10625
10618
|
height: {
|
|
10626
10619
|
default: theme.button.height.default,
|
|
@@ -11242,6 +11235,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11242
11235
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11243
11236
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11244
11237
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11238
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11245
11239
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11246
11240
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11247
11241
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11265,6 +11259,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11265
11259
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11266
11260
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11267
11261
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11262
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11268
11263
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11269
11264
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11270
11265
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13036,7 +13031,7 @@ function StoryTitleLevel4({
|
|
|
13036
13031
|
return /*#__PURE__*/jsx(View, {
|
|
13037
13032
|
marginBottom: 10,
|
|
13038
13033
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13039
|
-
base: "
|
|
13034
|
+
base: "body-l",
|
|
13040
13035
|
color: useStoryBlockColor(color),
|
|
13041
13036
|
numberOfLines: numberOfLines,
|
|
13042
13037
|
children: children
|
|
@@ -13644,7 +13639,7 @@ function ToastContent({
|
|
|
13644
13639
|
flexGrow: 1,
|
|
13645
13640
|
flexShrink: 1,
|
|
13646
13641
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13647
|
-
base: "
|
|
13642
|
+
base: "body-m",
|
|
13648
13643
|
color: "white",
|
|
13649
13644
|
children: title
|
|
13650
13645
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13660,7 +13655,7 @@ function ToastContent({
|
|
|
13660
13655
|
borderColor: "white",
|
|
13661
13656
|
onPress: onPress,
|
|
13662
13657
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13663
|
-
base: "
|
|
13658
|
+
base: "body-m",
|
|
13664
13659
|
color: "white",
|
|
13665
13660
|
children: actionLabel
|
|
13666
13661
|
})
|