@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
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
.kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
|
|
7
7
|
.kitt-u_opacityExit_ogyytm1{opacity:1;}
|
|
8
8
|
.kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
|
|
9
|
+
.kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
|
|
9
10
|
/* Overlay animation styles - uses CSS variables for theme values */
|
|
10
11
|
.FullscreenModalAnimation-module_overlay-enter__L1J1X {
|
|
11
12
|
opacity: 0;
|
|
@@ -671,6 +671,10 @@ const button = {
|
|
|
671
671
|
default: 40,
|
|
672
672
|
medium: 48
|
|
673
673
|
},
|
|
674
|
+
minHeight: {
|
|
675
|
+
default: 40,
|
|
676
|
+
medium: 48
|
|
677
|
+
},
|
|
674
678
|
maxHeight: 48,
|
|
675
679
|
icon: {
|
|
676
680
|
medium: {
|
|
@@ -1118,6 +1122,7 @@ const inputStatesStyle = {
|
|
|
1118
1122
|
color: deepPurpleColorPalette.black
|
|
1119
1123
|
},
|
|
1120
1124
|
hover: {
|
|
1125
|
+
backgroundColor: deepPurpleColorPalette['beige.1'],
|
|
1121
1126
|
borderColor: deepPurpleColorPalette['beige.4'],
|
|
1122
1127
|
color: deepPurpleColorPalette.black
|
|
1123
1128
|
},
|
|
@@ -2123,8 +2128,8 @@ const typography = {
|
|
|
2123
2128
|
allowedFontWeights: ['semibold']
|
|
2124
2129
|
},
|
|
2125
2130
|
'heading-l': {
|
|
2126
|
-
fontSize:
|
|
2127
|
-
lineHeight:
|
|
2131
|
+
fontSize: 38,
|
|
2132
|
+
lineHeight: 44,
|
|
2128
2133
|
allowedFontWeights: ['semibold']
|
|
2129
2134
|
},
|
|
2130
2135
|
'heading-m': {
|
|
@@ -2133,14 +2138,19 @@ const typography = {
|
|
|
2133
2138
|
allowedFontWeights: ['semibold']
|
|
2134
2139
|
},
|
|
2135
2140
|
'heading-s': {
|
|
2136
|
-
fontSize:
|
|
2137
|
-
lineHeight:
|
|
2138
|
-
allowedFontWeights: ['
|
|
2141
|
+
fontSize: 24,
|
|
2142
|
+
lineHeight: 28,
|
|
2143
|
+
allowedFontWeights: ['semibold']
|
|
2139
2144
|
},
|
|
2140
2145
|
'heading-xs': {
|
|
2146
|
+
fontSize: 20,
|
|
2147
|
+
lineHeight: 24,
|
|
2148
|
+
allowedFontWeights: ['semibold']
|
|
2149
|
+
},
|
|
2150
|
+
'heading-xxs': {
|
|
2141
2151
|
fontSize: 16,
|
|
2142
|
-
lineHeight:
|
|
2143
|
-
allowedFontWeights: ['
|
|
2152
|
+
lineHeight: 20,
|
|
2153
|
+
allowedFontWeights: ['semibold']
|
|
2144
2154
|
}
|
|
2145
2155
|
}
|
|
2146
2156
|
},
|
|
@@ -2207,17 +2217,17 @@ const typography = {
|
|
|
2207
2217
|
configs: {
|
|
2208
2218
|
'label-large': {
|
|
2209
2219
|
fontSize: 16,
|
|
2210
|
-
lineHeight:
|
|
2220
|
+
lineHeight: 20,
|
|
2211
2221
|
allowedFontWeights: ['semibold']
|
|
2212
2222
|
},
|
|
2213
2223
|
'label-medium': {
|
|
2214
2224
|
fontSize: 14,
|
|
2215
|
-
lineHeight:
|
|
2225
|
+
lineHeight: 18,
|
|
2216
2226
|
allowedFontWeights: ['semibold']
|
|
2217
2227
|
},
|
|
2218
2228
|
'label-small': {
|
|
2219
2229
|
fontSize: 12,
|
|
2220
|
-
lineHeight:
|
|
2230
|
+
lineHeight: 14,
|
|
2221
2231
|
allowedFontWeights: ['semibold']
|
|
2222
2232
|
}
|
|
2223
2233
|
}
|
|
@@ -3135,7 +3145,9 @@ function AnimatedContainer$2({
|
|
|
3135
3145
|
},
|
|
3136
3146
|
width: width,
|
|
3137
3147
|
height: height,
|
|
3148
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3138
3149
|
alignSelf: "baseline",
|
|
3150
|
+
justifyContent: "center",
|
|
3139
3151
|
borderRadius: "kitt.button.borderRadius",
|
|
3140
3152
|
backgroundColor: currentBackgroundColor,
|
|
3141
3153
|
children: children
|
|
@@ -3831,6 +3843,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3831
3843
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3832
3844
|
minWidth: "kitt.button.minWidth",
|
|
3833
3845
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3846
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3834
3847
|
maxHeight: "kitt.button.maxHeight",
|
|
3835
3848
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3836
3849
|
onPress: onPress,
|
|
@@ -5359,30 +5372,11 @@ function InputPressable({
|
|
|
5359
5372
|
});
|
|
5360
5373
|
}
|
|
5361
5374
|
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
const sx = useSx();
|
|
5368
|
-
const styles = sx({
|
|
5369
|
-
borderRadius: input.borderRadius
|
|
5370
|
-
});
|
|
5371
|
-
const animatedBackground = useAnimatedStyle(() => {
|
|
5372
|
-
const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
|
|
5373
|
-
const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
|
|
5374
|
-
return {
|
|
5375
|
-
backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
|
|
5376
|
-
duration: 200
|
|
5377
|
-
})
|
|
5378
|
-
};
|
|
5379
|
-
}, [isHovered, theme]);
|
|
5380
|
-
return /*#__PURE__*/jsx(Animated$1.View, {
|
|
5381
|
-
style: [styles, animatedBackground],
|
|
5382
|
-
children: /*#__PURE__*/jsx(View, {
|
|
5383
|
-
position: "relative",
|
|
5384
|
-
children: children
|
|
5385
|
-
})
|
|
5375
|
+
const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
|
|
5376
|
+
function InputTextContainer(props) {
|
|
5377
|
+
return /*#__PURE__*/jsx("div", {
|
|
5378
|
+
className: inputTextContainer,
|
|
5379
|
+
...props
|
|
5386
5380
|
});
|
|
5387
5381
|
}
|
|
5388
5382
|
|
|
@@ -5406,44 +5400,39 @@ const InputText = /*#__PURE__*/forwardRef(({
|
|
|
5406
5400
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5407
5401
|
base: 'body-m'
|
|
5408
5402
|
});
|
|
5409
|
-
return /*#__PURE__*/
|
|
5410
|
-
children: ({
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
justifyContent: "center",
|
|
5443
|
-
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5444
|
-
children: right
|
|
5445
|
-
}) : null]
|
|
5446
|
-
})
|
|
5403
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
5404
|
+
children: [/*#__PURE__*/jsx(Input, {
|
|
5405
|
+
ref: ref,
|
|
5406
|
+
multiline: multiline,
|
|
5407
|
+
id: id,
|
|
5408
|
+
isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
|
|
5409
|
+
isHovered: internalForceState ? internalForceState === 'hover' : undefined,
|
|
5410
|
+
isFocused: internalForceState ? internalForceState === 'focus' : undefined,
|
|
5411
|
+
inputMode: inputMode,
|
|
5412
|
+
autoComplete: autoComplete,
|
|
5413
|
+
autoCorrect: autoCorrect,
|
|
5414
|
+
textContentType: textContentType,
|
|
5415
|
+
fontSize: fontSizeForNativeBase,
|
|
5416
|
+
lineHeight:
|
|
5417
|
+
// On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
|
|
5418
|
+
// This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
|
|
5419
|
+
fontSizeForNativeBase,
|
|
5420
|
+
fontWeight: "bodies.regular",
|
|
5421
|
+
fontFamily: "bodies.regular",
|
|
5422
|
+
py: !multiline && "web" !== 'web' ? 0 : undefined,
|
|
5423
|
+
variant: variant,
|
|
5424
|
+
...props,
|
|
5425
|
+
height: multiline ? height : 'kitt.forms.input.minHeight',
|
|
5426
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
5427
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
5428
|
+
position: "absolute",
|
|
5429
|
+
right: 0,
|
|
5430
|
+
top: 0,
|
|
5431
|
+
bottom: 0,
|
|
5432
|
+
justifyContent: "center",
|
|
5433
|
+
padding: theme.kitt.forms.input.rightContainer.padding,
|
|
5434
|
+
children: right
|
|
5435
|
+
}) : null]
|
|
5447
5436
|
});
|
|
5448
5437
|
});
|
|
5449
5438
|
|
|
@@ -9935,6 +9924,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9935
9924
|
button: {
|
|
9936
9925
|
minWidth: theme.button.minWidth,
|
|
9937
9926
|
maxWidth: theme.button.maxWidth,
|
|
9927
|
+
minHeight: {
|
|
9928
|
+
default: theme.button.minHeight.default,
|
|
9929
|
+
medium: theme.button.minHeight.medium
|
|
9930
|
+
},
|
|
9938
9931
|
maxHeight: theme.button.maxHeight,
|
|
9939
9932
|
height: {
|
|
9940
9933
|
default: theme.button.height.default,
|
|
@@ -10556,6 +10549,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10556
10549
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10557
10550
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10558
10551
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10552
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
10559
10553
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10560
10554
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10561
10555
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -10579,6 +10573,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10579
10573
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10580
10574
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10581
10575
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10576
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
10582
10577
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10583
10578
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10584
10579
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -12406,7 +12401,7 @@ function StoryTitleLevel4({
|
|
|
12406
12401
|
return /*#__PURE__*/jsx(View, {
|
|
12407
12402
|
marginBottom: 10,
|
|
12408
12403
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
12409
|
-
base: "
|
|
12404
|
+
base: "body-l",
|
|
12410
12405
|
color: useStoryBlockColor(color),
|
|
12411
12406
|
numberOfLines: numberOfLines,
|
|
12412
12407
|
children: children
|
|
@@ -12955,7 +12950,7 @@ function ToastContent({
|
|
|
12955
12950
|
flexGrow: 1,
|
|
12956
12951
|
flexShrink: 1,
|
|
12957
12952
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
12958
|
-
base: "
|
|
12953
|
+
base: "body-m",
|
|
12959
12954
|
color: "white",
|
|
12960
12955
|
children: title
|
|
12961
12956
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -12971,7 +12966,7 @@ function ToastContent({
|
|
|
12971
12966
|
borderColor: "white",
|
|
12972
12967
|
onPress: onPress,
|
|
12973
12968
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
12974
|
-
base: "
|
|
12969
|
+
base: "body-m",
|
|
12975
12970
|
color: "white",
|
|
12976
12971
|
children: actionLabel
|
|
12977
12972
|
})
|