@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
package/dist/index.es.js
CHANGED
|
@@ -691,10 +691,6 @@ var button = {
|
|
|
691
691
|
"default": 40,
|
|
692
692
|
medium: 48
|
|
693
693
|
},
|
|
694
|
-
minHeight: {
|
|
695
|
-
"default": 40,
|
|
696
|
-
medium: 48
|
|
697
|
-
},
|
|
698
694
|
maxHeight: 48,
|
|
699
695
|
icon: {
|
|
700
696
|
medium: {
|
|
@@ -2149,8 +2145,8 @@ var typography = {
|
|
|
2149
2145
|
allowedFontWeights: ['semibold']
|
|
2150
2146
|
},
|
|
2151
2147
|
'heading-l': {
|
|
2152
|
-
fontSize:
|
|
2153
|
-
lineHeight:
|
|
2148
|
+
fontSize: 40,
|
|
2149
|
+
lineHeight: 48,
|
|
2154
2150
|
allowedFontWeights: ['semibold']
|
|
2155
2151
|
},
|
|
2156
2152
|
'heading-m': {
|
|
@@ -2159,19 +2155,14 @@ var typography = {
|
|
|
2159
2155
|
allowedFontWeights: ['semibold']
|
|
2160
2156
|
},
|
|
2161
2157
|
'heading-s': {
|
|
2162
|
-
fontSize:
|
|
2163
|
-
lineHeight:
|
|
2164
|
-
allowedFontWeights: ['
|
|
2158
|
+
fontSize: 18,
|
|
2159
|
+
lineHeight: 20,
|
|
2160
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2165
2161
|
},
|
|
2166
2162
|
'heading-xs': {
|
|
2167
|
-
fontSize: 20,
|
|
2168
|
-
lineHeight: 24,
|
|
2169
|
-
allowedFontWeights: ['semibold']
|
|
2170
|
-
},
|
|
2171
|
-
'heading-xxs': {
|
|
2172
2163
|
fontSize: 16,
|
|
2173
|
-
lineHeight:
|
|
2174
|
-
allowedFontWeights: ['
|
|
2164
|
+
lineHeight: 18,
|
|
2165
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2175
2166
|
}
|
|
2176
2167
|
}
|
|
2177
2168
|
},
|
|
@@ -2238,17 +2229,17 @@ var typography = {
|
|
|
2238
2229
|
configs: {
|
|
2239
2230
|
'label-large': {
|
|
2240
2231
|
fontSize: 16,
|
|
2241
|
-
lineHeight:
|
|
2232
|
+
lineHeight: 24,
|
|
2242
2233
|
allowedFontWeights: ['semibold']
|
|
2243
2234
|
},
|
|
2244
2235
|
'label-medium': {
|
|
2245
2236
|
fontSize: 14,
|
|
2246
|
-
lineHeight:
|
|
2237
|
+
lineHeight: 20,
|
|
2247
2238
|
allowedFontWeights: ['semibold']
|
|
2248
2239
|
},
|
|
2249
2240
|
'label-small': {
|
|
2250
2241
|
fontSize: 12,
|
|
2251
|
-
lineHeight:
|
|
2242
|
+
lineHeight: 16,
|
|
2252
2243
|
allowedFontWeights: ['semibold']
|
|
2253
2244
|
}
|
|
2254
2245
|
}
|
|
@@ -3160,8 +3151,7 @@ function AnimatedContainer$2(_ref) {
|
|
|
3160
3151
|
borderRadius: 'kitt.button.borderRadius',
|
|
3161
3152
|
backgroundColor: currentBackgroundColor,
|
|
3162
3153
|
width: width,
|
|
3163
|
-
height: height
|
|
3164
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3154
|
+
height: height
|
|
3165
3155
|
});
|
|
3166
3156
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3167
3157
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3881,7 +3871,6 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3881
3871
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3882
3872
|
minWidth: "kitt.button.minWidth",
|
|
3883
3873
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3884
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3885
3874
|
maxHeight: "kitt.button.maxHeight",
|
|
3886
3875
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3887
3876
|
onPress: onPress,
|
|
@@ -6904,15 +6893,16 @@ var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6904
6893
|
});
|
|
6905
6894
|
|
|
6906
6895
|
function DocumentPicker(_ref) {
|
|
6907
|
-
var
|
|
6908
|
-
children = _ref.children,
|
|
6896
|
+
var children = _ref.children,
|
|
6909
6897
|
disabled = _ref.disabled,
|
|
6910
|
-
documentPickerOptions = _ref.documentPickerOptions
|
|
6898
|
+
documentPickerOptions = _ref.documentPickerOptions,
|
|
6899
|
+
onDocumentUpload = _ref.onDocumentUpload,
|
|
6900
|
+
onGetDocumentAsyncError = _ref.onGetDocumentAsyncError;
|
|
6911
6901
|
var childElement = Children.only(children);
|
|
6912
6902
|
var handlePickDocument = /*#__PURE__*/function () {
|
|
6913
6903
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6914
|
-
var _childElement$props$o, _childElement$props, _result$assets
|
|
6915
|
-
var result;
|
|
6904
|
+
var _childElement$props$o, _childElement$props, _result$assets;
|
|
6905
|
+
var result, file;
|
|
6916
6906
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
6917
6907
|
while (1) switch (_context.prev = _context.next) {
|
|
6918
6908
|
case 0:
|
|
@@ -6923,20 +6913,33 @@ function DocumentPicker(_ref) {
|
|
|
6923
6913
|
return _context.abrupt("return");
|
|
6924
6914
|
case 2:
|
|
6925
6915
|
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
6926
|
-
_context.
|
|
6916
|
+
_context.prev = 3;
|
|
6917
|
+
_context.next = 6;
|
|
6927
6918
|
return getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
|
|
6928
6919
|
multiple: false
|
|
6929
6920
|
}));
|
|
6930
|
-
case
|
|
6921
|
+
case 6:
|
|
6931
6922
|
result = _context.sent;
|
|
6932
|
-
|
|
6933
|
-
|
|
6923
|
+
_context.next = 13;
|
|
6924
|
+
break;
|
|
6925
|
+
case 9:
|
|
6926
|
+
_context.prev = 9;
|
|
6927
|
+
_context.t0 = _context["catch"](3);
|
|
6928
|
+
onGetDocumentAsyncError === null || onGetDocumentAsyncError === void 0 || onGetDocumentAsyncError();
|
|
6929
|
+
result = {
|
|
6930
|
+
canceled: true,
|
|
6931
|
+
assets: null
|
|
6932
|
+
};
|
|
6933
|
+
case 13:
|
|
6934
|
+
file = (_result$assets = result.assets) === null || _result$assets === void 0 || (_result$assets = _result$assets.at(0)) === null || _result$assets === void 0 ? void 0 : _result$assets.file;
|
|
6935
|
+
if (!result.canceled && file) {
|
|
6936
|
+
onDocumentUpload(file);
|
|
6934
6937
|
}
|
|
6935
|
-
case
|
|
6938
|
+
case 15:
|
|
6936
6939
|
case "end":
|
|
6937
6940
|
return _context.stop();
|
|
6938
6941
|
}
|
|
6939
|
-
}, _callee);
|
|
6942
|
+
}, _callee, null, [[3, 9]]);
|
|
6940
6943
|
}));
|
|
6941
6944
|
return function () {
|
|
6942
6945
|
return _ref2.apply(this, arguments);
|
|
@@ -10895,10 +10898,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10895
10898
|
button: {
|
|
10896
10899
|
minWidth: theme.button.minWidth,
|
|
10897
10900
|
maxWidth: theme.button.maxWidth,
|
|
10898
|
-
minHeight: {
|
|
10899
|
-
"default": theme.button.minHeight["default"],
|
|
10900
|
-
medium: theme.button.minHeight.medium
|
|
10901
|
-
},
|
|
10902
10901
|
maxHeight: theme.button.maxHeight,
|
|
10903
10902
|
height: {
|
|
10904
10903
|
"default": theme.button.height["default"],
|
|
@@ -11515,7 +11514,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11515
11514
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
11516
11515
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
11517
11516
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
11518
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
|
|
11519
11517
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
11520
11518
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
11521
11519
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
@@ -11539,7 +11537,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11539
11537
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
11540
11538
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
11541
11539
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
11542
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
|
|
11543
11540
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
11544
11541
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
11545
11542
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
@@ -13320,7 +13317,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
13320
13317
|
return /*#__PURE__*/jsx(View, {
|
|
13321
13318
|
marginBottom: 10,
|
|
13322
13319
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13323
|
-
base: "
|
|
13320
|
+
base: "heading-s",
|
|
13324
13321
|
color: useStoryBlockColor(color),
|
|
13325
13322
|
numberOfLines: numberOfLines,
|
|
13326
13323
|
children: children
|
|
@@ -13941,7 +13938,7 @@ function ToastContent(_ref) {
|
|
|
13941
13938
|
flexGrow: 1,
|
|
13942
13939
|
flexShrink: 1,
|
|
13943
13940
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13944
|
-
base: "
|
|
13941
|
+
base: "heading-xs",
|
|
13945
13942
|
color: "white",
|
|
13946
13943
|
children: title
|
|
13947
13944
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13957,7 +13954,7 @@ function ToastContent(_ref) {
|
|
|
13957
13954
|
borderColor: "white",
|
|
13958
13955
|
onPress: onPress,
|
|
13959
13956
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13960
|
-
base: "
|
|
13957
|
+
base: "heading-xs",
|
|
13961
13958
|
color: "white",
|
|
13962
13959
|
children: actionLabel
|
|
13963
13960
|
})
|