@ornikar/kitt-universal 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.0 → 32.5.2
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 +8 -11
- 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/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +3 -2
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3 -9
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +0 -5
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +0 -3
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +0 -5
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +33 -39
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +33 -39
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +33 -39
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +22 -4
- package/dist/index-node-22.17.cjs.web.js +57 -63
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +33 -39
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +22 -4
- package/dist/index-node-22.17.es.web.mjs +57 -63
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +39 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +63 -66
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +10 -19
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +10 -19
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +10 -19
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +10 -19
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +10 -19
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +10 -19
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +10 -19
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +10 -19
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +22 -4
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -673,10 +673,6 @@ const button = {
|
|
|
673
673
|
default: 40,
|
|
674
674
|
medium: 48
|
|
675
675
|
},
|
|
676
|
-
minHeight: {
|
|
677
|
-
default: 40,
|
|
678
|
-
medium: 48
|
|
679
|
-
},
|
|
680
676
|
maxHeight: 48,
|
|
681
677
|
icon: {
|
|
682
678
|
medium: {
|
|
@@ -2131,8 +2127,8 @@ const typography = {
|
|
|
2131
2127
|
allowedFontWeights: ['semibold']
|
|
2132
2128
|
},
|
|
2133
2129
|
'heading-l': {
|
|
2134
|
-
fontSize:
|
|
2135
|
-
lineHeight:
|
|
2130
|
+
fontSize: 40,
|
|
2131
|
+
lineHeight: 48,
|
|
2136
2132
|
allowedFontWeights: ['semibold']
|
|
2137
2133
|
},
|
|
2138
2134
|
'heading-m': {
|
|
@@ -2141,19 +2137,14 @@ const typography = {
|
|
|
2141
2137
|
allowedFontWeights: ['semibold']
|
|
2142
2138
|
},
|
|
2143
2139
|
'heading-s': {
|
|
2144
|
-
fontSize:
|
|
2145
|
-
lineHeight:
|
|
2146
|
-
allowedFontWeights: ['
|
|
2140
|
+
fontSize: 18,
|
|
2141
|
+
lineHeight: 20,
|
|
2142
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2147
2143
|
},
|
|
2148
2144
|
'heading-xs': {
|
|
2149
|
-
fontSize: 20,
|
|
2150
|
-
lineHeight: 24,
|
|
2151
|
-
allowedFontWeights: ['semibold']
|
|
2152
|
-
},
|
|
2153
|
-
'heading-xxs': {
|
|
2154
2145
|
fontSize: 16,
|
|
2155
|
-
lineHeight:
|
|
2156
|
-
allowedFontWeights: ['
|
|
2146
|
+
lineHeight: 18,
|
|
2147
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2157
2148
|
}
|
|
2158
2149
|
}
|
|
2159
2150
|
},
|
|
@@ -2220,17 +2211,17 @@ const typography = {
|
|
|
2220
2211
|
configs: {
|
|
2221
2212
|
'label-large': {
|
|
2222
2213
|
fontSize: 16,
|
|
2223
|
-
lineHeight:
|
|
2214
|
+
lineHeight: 24,
|
|
2224
2215
|
allowedFontWeights: ['semibold']
|
|
2225
2216
|
},
|
|
2226
2217
|
'label-medium': {
|
|
2227
2218
|
fontSize: 14,
|
|
2228
|
-
lineHeight:
|
|
2219
|
+
lineHeight: 20,
|
|
2229
2220
|
allowedFontWeights: ['semibold']
|
|
2230
2221
|
},
|
|
2231
2222
|
'label-small': {
|
|
2232
2223
|
fontSize: 12,
|
|
2233
|
-
lineHeight:
|
|
2224
|
+
lineHeight: 16,
|
|
2234
2225
|
allowedFontWeights: ['semibold']
|
|
2235
2226
|
}
|
|
2236
2227
|
}
|
|
@@ -3136,8 +3127,7 @@ function AnimatedContainer$2({
|
|
|
3136
3127
|
borderRadius: 'kitt.button.borderRadius',
|
|
3137
3128
|
backgroundColor: currentBackgroundColor,
|
|
3138
3129
|
width,
|
|
3139
|
-
height
|
|
3140
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3130
|
+
height
|
|
3141
3131
|
});
|
|
3142
3132
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3143
3133
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3855,7 +3845,6 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3855
3845
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3856
3846
|
minWidth: "kitt.button.minWidth",
|
|
3857
3847
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3858
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3859
3848
|
maxHeight: "kitt.button.maxHeight",
|
|
3860
3849
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3861
3850
|
onPress: onPress,
|
|
@@ -6804,10 +6793,11 @@ const DatePicker = /*#__PURE__*/forwardRef(({
|
|
|
6804
6793
|
});
|
|
6805
6794
|
|
|
6806
6795
|
function DocumentPicker({
|
|
6807
|
-
onDocumentUpload,
|
|
6808
6796
|
children,
|
|
6809
6797
|
disabled,
|
|
6810
|
-
documentPickerOptions
|
|
6798
|
+
documentPickerOptions,
|
|
6799
|
+
onDocumentUpload,
|
|
6800
|
+
onGetDocumentAsyncError
|
|
6811
6801
|
}) {
|
|
6812
6802
|
const childElement = Children.only(children);
|
|
6813
6803
|
return /*#__PURE__*/cloneElement(childElement, {
|
|
@@ -6816,12 +6806,22 @@ function DocumentPicker({
|
|
|
6816
6806
|
onPress: async () => {
|
|
6817
6807
|
if (disabled) return;
|
|
6818
6808
|
childElement.props.onPress?.();
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6809
|
+
let result;
|
|
6810
|
+
try {
|
|
6811
|
+
result = await getDocumentAsync({
|
|
6812
|
+
...documentPickerOptions,
|
|
6813
|
+
multiple: false
|
|
6814
|
+
});
|
|
6815
|
+
} catch (error) {
|
|
6816
|
+
onGetDocumentAsyncError?.();
|
|
6817
|
+
result = {
|
|
6818
|
+
canceled: true,
|
|
6819
|
+
assets: null
|
|
6820
|
+
};
|
|
6821
|
+
}
|
|
6822
|
+
const file = result.assets?.at(0)?.file;
|
|
6823
|
+
if (!result.canceled && file) {
|
|
6824
|
+
onDocumentUpload(file);
|
|
6825
6825
|
}
|
|
6826
6826
|
},
|
|
6827
6827
|
disabled
|
|
@@ -10647,10 +10647,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10647
10647
|
button: {
|
|
10648
10648
|
minWidth: theme.button.minWidth,
|
|
10649
10649
|
maxWidth: theme.button.maxWidth,
|
|
10650
|
-
minHeight: {
|
|
10651
|
-
default: theme.button.minHeight.default,
|
|
10652
|
-
medium: theme.button.minHeight.medium
|
|
10653
|
-
},
|
|
10654
10650
|
maxHeight: theme.button.maxHeight,
|
|
10655
10651
|
height: {
|
|
10656
10652
|
default: theme.button.height.default,
|
|
@@ -11272,7 +11268,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11272
11268
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11273
11269
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11274
11270
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11275
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11276
11271
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11277
11272
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11278
11273
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11296,7 +11291,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11296
11291
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11297
11292
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11298
11293
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11299
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11300
11294
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11301
11295
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11302
11296
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13068,7 +13062,7 @@ function StoryTitleLevel4({
|
|
|
13068
13062
|
return /*#__PURE__*/jsx(View, {
|
|
13069
13063
|
marginBottom: 10,
|
|
13070
13064
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13071
|
-
base: "
|
|
13065
|
+
base: "heading-s",
|
|
13072
13066
|
color: useStoryBlockColor(color),
|
|
13073
13067
|
numberOfLines: numberOfLines,
|
|
13074
13068
|
children: children
|
|
@@ -13676,7 +13670,7 @@ function ToastContent({
|
|
|
13676
13670
|
flexGrow: 1,
|
|
13677
13671
|
flexShrink: 1,
|
|
13678
13672
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13679
|
-
base: "
|
|
13673
|
+
base: "heading-xs",
|
|
13680
13674
|
color: "white",
|
|
13681
13675
|
children: title
|
|
13682
13676
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13692,7 +13686,7 @@ function ToastContent({
|
|
|
13692
13686
|
borderColor: "white",
|
|
13693
13687
|
onPress: onPress,
|
|
13694
13688
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13695
|
-
base: "
|
|
13689
|
+
base: "heading-xs",
|
|
13696
13690
|
color: "white",
|
|
13697
13691
|
children: actionLabel
|
|
13698
13692
|
})
|