@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.web.js
CHANGED
|
@@ -3202,7 +3202,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
|
3202
3202
|
nativeFontFamily: nativeFontFamily
|
|
3203
3203
|
};
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
3206
3206
|
var _typographyType$base;
|
|
3207
3207
|
var accessibilityRole = _ref2.accessibilityRole,
|
|
3208
3208
|
legacyBase = _ref2.base,
|
|
@@ -3254,6 +3254,7 @@ function Typography(_ref2) {
|
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
3256
|
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
3257
|
+
ref: ref,
|
|
3257
3258
|
accessibilityRole: accessibilityRole || undefined,
|
|
3258
3259
|
fontSize: fontSizeForNativeBase,
|
|
3259
3260
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
@@ -3272,31 +3273,35 @@ function Typography(_ref2) {
|
|
|
3272
3273
|
value: color,
|
|
3273
3274
|
children: content
|
|
3274
3275
|
}) : content;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
return /*#__PURE__*/jsx(
|
|
3276
|
+
});
|
|
3277
|
+
var TypographyText = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3278
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3279
|
+
ref: ref,
|
|
3278
3280
|
accessibilityRole: null
|
|
3279
3281
|
}, props));
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
+
});
|
|
3283
|
+
var TypographyParagraph = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3282
3284
|
// role 'paragraph' does not exist in native, it's a web feature only.
|
|
3283
|
-
return /*#__PURE__*/jsx(
|
|
3285
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
|
|
3286
|
+
ref: ref,
|
|
3284
3287
|
accessibilityRole: 'paragraph'
|
|
3285
3288
|
}, props));
|
|
3286
|
-
}
|
|
3289
|
+
});
|
|
3287
3290
|
var createHeading = function (level, defaultBase) {
|
|
3288
3291
|
// https://github.com/necolas/react-native-web/issues/401
|
|
3289
|
-
|
|
3290
|
-
return /*#__PURE__*/jsx(
|
|
3292
|
+
var TypographyHeading = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3293
|
+
return /*#__PURE__*/jsx(TypographyBase, _objectSpread(_objectSpread({
|
|
3294
|
+
ref: ref,
|
|
3291
3295
|
accessibilityRole: "header",
|
|
3292
3296
|
base: defaultBase
|
|
3293
3297
|
}, props), {}, {
|
|
3294
3298
|
"aria-level": level
|
|
3295
3299
|
}));
|
|
3296
|
-
}
|
|
3300
|
+
});
|
|
3297
3301
|
TypographyHeading.displayName = "TypographyHeading".concat(level);
|
|
3298
3302
|
return TypographyHeading;
|
|
3299
3303
|
};
|
|
3304
|
+
var Typography = TypographyBase;
|
|
3300
3305
|
Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
|
|
3301
3306
|
Typography.Text = TypographyText;
|
|
3302
3307
|
Typography.Paragraph = TypographyParagraph;
|
|
@@ -9680,6 +9685,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9680
9685
|
button: {
|
|
9681
9686
|
minWidth: theme.button.minWidth,
|
|
9682
9687
|
maxWidth: theme.button.maxWidth,
|
|
9688
|
+
maxHeight: theme.button.maxHeight,
|
|
9683
9689
|
height: {
|
|
9684
9690
|
"default": theme.button.height["default"],
|
|
9685
9691
|
medium: theme.button.height.medium
|
|
@@ -12938,7 +12944,7 @@ function TypographyLinkWebWrapper(_ref) {
|
|
|
12938
12944
|
}
|
|
12939
12945
|
|
|
12940
12946
|
var _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
12941
|
-
|
|
12947
|
+
var TypographyLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12942
12948
|
var children = _ref.children,
|
|
12943
12949
|
disabled = _ref.disabled,
|
|
12944
12950
|
noUnderline = _ref.noUnderline,
|
|
@@ -12949,6 +12955,7 @@ function TypographyLink(_ref) {
|
|
|
12949
12955
|
return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
|
|
12950
12956
|
hasNoUnderline: noUnderline,
|
|
12951
12957
|
children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
12958
|
+
ref: ref,
|
|
12952
12959
|
underline: !noUnderline,
|
|
12953
12960
|
color: disabled ? 'black-disabled' : undefined,
|
|
12954
12961
|
href: href,
|
|
@@ -12978,7 +12985,7 @@ function TypographyLink(_ref) {
|
|
|
12978
12985
|
children: children
|
|
12979
12986
|
}))
|
|
12980
12987
|
});
|
|
12981
|
-
}
|
|
12988
|
+
});
|
|
12982
12989
|
|
|
12983
12990
|
function KittThemeProvider(_ref) {
|
|
12984
12991
|
var isSSR = _ref.isSSR,
|