@ornikar/kitt-universal 28.0.1 → 28.1.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 +10 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +4 -4
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +388 -1114
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +2 -1
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +20 -13
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +20 -13
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +22 -15
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +22 -15
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +22 -15
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +22 -15
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +20 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +20 -13
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3198,7 +3198,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
|
3198
3198
|
nativeFontFamily: nativeFontFamily
|
|
3199
3199
|
};
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
3202
3202
|
var _typographyType$base;
|
|
3203
3203
|
var accessibilityRole = _ref2.accessibilityRole,
|
|
3204
3204
|
legacyBase = _ref2.base,
|
|
@@ -3250,6 +3250,7 @@ function Typography(_ref2) {
|
|
|
3250
3250
|
});
|
|
3251
3251
|
}
|
|
3252
3252
|
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
3253
|
+
ref: ref,
|
|
3253
3254
|
accessibilityRole: accessibilityRole || undefined,
|
|
3254
3255
|
fontSize: fontSizeForNativeBase,
|
|
3255
3256
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
@@ -3268,31 +3269,35 @@ function Typography(_ref2) {
|
|
|
3268
3269
|
value: color,
|
|
3269
3270
|
children: content
|
|
3270
3271
|
}) : content;
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
return /*#__PURE__*/jsx(
|
|
3272
|
+
});
|
|
3273
|
+
var TypographyText = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3274
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3275
|
+
ref: ref,
|
|
3274
3276
|
accessibilityRole: null
|
|
3275
3277
|
}, props));
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
+
});
|
|
3279
|
+
var TypographyParagraph = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3278
3280
|
// role 'paragraph' does not exist in native, it's a web feature only.
|
|
3279
|
-
return /*#__PURE__*/jsx(
|
|
3281
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3282
|
+
ref: ref,
|
|
3280
3283
|
accessibilityRole: Platform.OS === 'web' ? 'paragraph' : null
|
|
3281
3284
|
}, props));
|
|
3282
|
-
}
|
|
3285
|
+
});
|
|
3283
3286
|
var createHeading = function (level, defaultBase) {
|
|
3284
3287
|
// https://github.com/necolas/react-native-web/issues/401
|
|
3285
|
-
|
|
3286
|
-
return /*#__PURE__*/jsx(
|
|
3288
|
+
var TypographyHeading = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3289
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread(_objectSpread({
|
|
3290
|
+
ref: ref,
|
|
3287
3291
|
accessibilityRole: "header",
|
|
3288
3292
|
base: defaultBase
|
|
3289
3293
|
}, props), {}, {
|
|
3290
3294
|
"aria-level": level
|
|
3291
3295
|
}));
|
|
3292
|
-
}
|
|
3296
|
+
});
|
|
3293
3297
|
TypographyHeading.displayName = "TypographyHeading".concat(level);
|
|
3294
3298
|
return TypographyHeading;
|
|
3295
3299
|
};
|
|
3300
|
+
var Typography = TypographyBase;
|
|
3296
3301
|
Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
|
|
3297
3302
|
Typography.Text = TypographyText;
|
|
3298
3303
|
Typography.Paragraph = TypographyParagraph;
|
|
@@ -10546,6 +10551,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10546
10551
|
button: {
|
|
10547
10552
|
minWidth: theme.button.minWidth,
|
|
10548
10553
|
maxWidth: theme.button.maxWidth,
|
|
10554
|
+
maxHeight: theme.button.maxHeight,
|
|
10549
10555
|
height: {
|
|
10550
10556
|
"default": theme.button.height["default"],
|
|
10551
10557
|
medium: theme.button.height.medium
|
|
@@ -13957,7 +13963,7 @@ function TypographyLinkWebWrapper(_ref) {
|
|
|
13957
13963
|
}
|
|
13958
13964
|
|
|
13959
13965
|
var _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
13960
|
-
|
|
13966
|
+
var TypographyLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13961
13967
|
var children = _ref.children,
|
|
13962
13968
|
disabled = _ref.disabled,
|
|
13963
13969
|
noUnderline = _ref.noUnderline,
|
|
@@ -13968,6 +13974,7 @@ function TypographyLink(_ref) {
|
|
|
13968
13974
|
return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
|
|
13969
13975
|
hasNoUnderline: noUnderline,
|
|
13970
13976
|
children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
13977
|
+
ref: ref,
|
|
13971
13978
|
underline: !noUnderline,
|
|
13972
13979
|
color: disabled ? 'black-disabled' : undefined,
|
|
13973
13980
|
href: href,
|
|
@@ -13997,7 +14004,7 @@ function TypographyLink(_ref) {
|
|
|
13997
14004
|
children: children
|
|
13998
14005
|
}))
|
|
13999
14006
|
});
|
|
14000
|
-
}
|
|
14007
|
+
});
|
|
14001
14008
|
|
|
14002
14009
|
function KittThemeProvider(_ref) {
|
|
14003
14010
|
var isSSR = _ref.isSSR,
|