@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
|
@@ -697,10 +697,6 @@ const button = {
|
|
|
697
697
|
default: 40,
|
|
698
698
|
medium: 48
|
|
699
699
|
},
|
|
700
|
-
minHeight: {
|
|
701
|
-
default: 40,
|
|
702
|
-
medium: 48
|
|
703
|
-
},
|
|
704
700
|
maxHeight: 48,
|
|
705
701
|
icon: {
|
|
706
702
|
medium: {
|
|
@@ -2155,8 +2151,8 @@ const typography = {
|
|
|
2155
2151
|
allowedFontWeights: ['semibold']
|
|
2156
2152
|
},
|
|
2157
2153
|
'heading-l': {
|
|
2158
|
-
fontSize:
|
|
2159
|
-
lineHeight:
|
|
2154
|
+
fontSize: 40,
|
|
2155
|
+
lineHeight: 48,
|
|
2160
2156
|
allowedFontWeights: ['semibold']
|
|
2161
2157
|
},
|
|
2162
2158
|
'heading-m': {
|
|
@@ -2165,19 +2161,14 @@ const typography = {
|
|
|
2165
2161
|
allowedFontWeights: ['semibold']
|
|
2166
2162
|
},
|
|
2167
2163
|
'heading-s': {
|
|
2168
|
-
fontSize:
|
|
2169
|
-
lineHeight:
|
|
2170
|
-
allowedFontWeights: ['
|
|
2164
|
+
fontSize: 18,
|
|
2165
|
+
lineHeight: 20,
|
|
2166
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2171
2167
|
},
|
|
2172
2168
|
'heading-xs': {
|
|
2173
|
-
fontSize: 20,
|
|
2174
|
-
lineHeight: 24,
|
|
2175
|
-
allowedFontWeights: ['semibold']
|
|
2176
|
-
},
|
|
2177
|
-
'heading-xxs': {
|
|
2178
2169
|
fontSize: 16,
|
|
2179
|
-
lineHeight:
|
|
2180
|
-
allowedFontWeights: ['
|
|
2170
|
+
lineHeight: 18,
|
|
2171
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2181
2172
|
}
|
|
2182
2173
|
}
|
|
2183
2174
|
},
|
|
@@ -2244,17 +2235,17 @@ const typography = {
|
|
|
2244
2235
|
configs: {
|
|
2245
2236
|
'label-large': {
|
|
2246
2237
|
fontSize: 16,
|
|
2247
|
-
lineHeight:
|
|
2238
|
+
lineHeight: 24,
|
|
2248
2239
|
allowedFontWeights: ['semibold']
|
|
2249
2240
|
},
|
|
2250
2241
|
'label-medium': {
|
|
2251
2242
|
fontSize: 14,
|
|
2252
|
-
lineHeight:
|
|
2243
|
+
lineHeight: 20,
|
|
2253
2244
|
allowedFontWeights: ['semibold']
|
|
2254
2245
|
},
|
|
2255
2246
|
'label-small': {
|
|
2256
2247
|
fontSize: 12,
|
|
2257
|
-
lineHeight:
|
|
2248
|
+
lineHeight: 16,
|
|
2258
2249
|
allowedFontWeights: ['semibold']
|
|
2259
2250
|
}
|
|
2260
2251
|
}
|
|
@@ -3160,8 +3151,7 @@ function AnimatedContainer$2({
|
|
|
3160
3151
|
borderRadius: 'kitt.button.borderRadius',
|
|
3161
3152
|
backgroundColor: currentBackgroundColor,
|
|
3162
3153
|
width,
|
|
3163
|
-
height
|
|
3164
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3154
|
+
height
|
|
3165
3155
|
});
|
|
3166
3156
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
3167
3157
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3879,7 +3869,6 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
3879
3869
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3880
3870
|
minWidth: "kitt.button.minWidth",
|
|
3881
3871
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3882
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3883
3872
|
maxHeight: "kitt.button.maxHeight",
|
|
3884
3873
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3885
3874
|
onPress: onPress,
|
|
@@ -6828,10 +6817,11 @@ const DatePicker = /*#__PURE__*/React.forwardRef(({
|
|
|
6828
6817
|
});
|
|
6829
6818
|
|
|
6830
6819
|
function DocumentPicker({
|
|
6831
|
-
onDocumentUpload,
|
|
6832
6820
|
children,
|
|
6833
6821
|
disabled,
|
|
6834
|
-
documentPickerOptions
|
|
6822
|
+
documentPickerOptions,
|
|
6823
|
+
onDocumentUpload,
|
|
6824
|
+
onGetDocumentAsyncError
|
|
6835
6825
|
}) {
|
|
6836
6826
|
const childElement = React.Children.only(children);
|
|
6837
6827
|
return /*#__PURE__*/React.cloneElement(childElement, {
|
|
@@ -6840,12 +6830,22 @@ function DocumentPicker({
|
|
|
6840
6830
|
onPress: async () => {
|
|
6841
6831
|
if (disabled) return;
|
|
6842
6832
|
childElement.props.onPress?.();
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6833
|
+
let result;
|
|
6834
|
+
try {
|
|
6835
|
+
result = await expoDocumentPicker.getDocumentAsync({
|
|
6836
|
+
...documentPickerOptions,
|
|
6837
|
+
multiple: false
|
|
6838
|
+
});
|
|
6839
|
+
} catch (error) {
|
|
6840
|
+
onGetDocumentAsyncError?.();
|
|
6841
|
+
result = {
|
|
6842
|
+
canceled: true,
|
|
6843
|
+
assets: null
|
|
6844
|
+
};
|
|
6845
|
+
}
|
|
6846
|
+
const file = result.assets?.at(0)?.file;
|
|
6847
|
+
if (!result.canceled && file) {
|
|
6848
|
+
onDocumentUpload(file);
|
|
6849
6849
|
}
|
|
6850
6850
|
},
|
|
6851
6851
|
disabled
|
|
@@ -10671,10 +10671,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10671
10671
|
button: {
|
|
10672
10672
|
minWidth: theme.button.minWidth,
|
|
10673
10673
|
maxWidth: theme.button.maxWidth,
|
|
10674
|
-
minHeight: {
|
|
10675
|
-
default: theme.button.minHeight.default,
|
|
10676
|
-
medium: theme.button.minHeight.medium
|
|
10677
|
-
},
|
|
10678
10674
|
maxHeight: theme.button.maxHeight,
|
|
10679
10675
|
height: {
|
|
10680
10676
|
default: theme.button.height.default,
|
|
@@ -11296,7 +11292,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11296
11292
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11297
11293
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11298
11294
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11299
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11300
11295
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11301
11296
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11302
11297
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11320,7 +11315,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11320
11315
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11321
11316
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11322
11317
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11323
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11324
11318
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11325
11319
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11326
11320
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13092,7 +13086,7 @@ function StoryTitleLevel4({
|
|
|
13092
13086
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13093
13087
|
marginBottom: 10,
|
|
13094
13088
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
13095
|
-
base: "
|
|
13089
|
+
base: "heading-s",
|
|
13096
13090
|
color: useStoryBlockColor(color),
|
|
13097
13091
|
numberOfLines: numberOfLines,
|
|
13098
13092
|
children: children
|
|
@@ -13700,7 +13694,7 @@ function ToastContent({
|
|
|
13700
13694
|
flexGrow: 1,
|
|
13701
13695
|
flexShrink: 1,
|
|
13702
13696
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13703
|
-
base: "
|
|
13697
|
+
base: "heading-xs",
|
|
13704
13698
|
color: "white",
|
|
13705
13699
|
children: title
|
|
13706
13700
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -13716,7 +13710,7 @@ function ToastContent({
|
|
|
13716
13710
|
borderColor: "white",
|
|
13717
13711
|
onPress: onPress,
|
|
13718
13712
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13719
|
-
base: "
|
|
13713
|
+
base: "heading-xs",
|
|
13720
13714
|
color: "white",
|
|
13721
13715
|
children: actionLabel
|
|
13722
13716
|
})
|