@ornikar/kitt-universal 32.5.4-canary.9a20239c7f70ea30ccc58f4e866b2322585529c6.0 → 32.7.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 +8 -10
- 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/native-base/KittNativeBaseProvider.d.ts +20 -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/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 +47 -31
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +47 -31
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +47 -31
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +46 -31
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +47 -31
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +46 -31
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +47 -31
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +46 -31
- 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/tsbuildinfo +1 -1
- package/package.json +2 -2
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,
|
|
@@ -10494,6 +10483,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10494
10483
|
'3xl': Number.MAX_SAFE_INTEGER,
|
|
10495
10484
|
xs: Number.MAX_SAFE_INTEGER
|
|
10496
10485
|
}, spaces.positive), {}, {
|
|
10486
|
+
// Bumper retrofitting
|
|
10487
|
+
'radius.none': 0,
|
|
10488
|
+
'radius.s': 2,
|
|
10489
|
+
'radius.m': 4,
|
|
10490
|
+
'radius.l': 8,
|
|
10491
|
+
'radius.circle': 1000,
|
|
10497
10492
|
kitt: {
|
|
10498
10493
|
actionCard: {
|
|
10499
10494
|
borderRadius: theme.actionCard.borderRadius
|
|
@@ -10897,6 +10892,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10897
10892
|
app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.borderWidths
|
|
10898
10893
|
},
|
|
10899
10894
|
sizes: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, spaces.positive), spaces.negative), overridenNativeBaseSizeandSpaceScale), {}, {
|
|
10895
|
+
// Bumper retrofitting
|
|
10896
|
+
'size.16': 16,
|
|
10897
|
+
'size.20': 20,
|
|
10898
|
+
'size.24': 24,
|
|
10899
|
+
'size.32': 32,
|
|
10900
|
+
'size.48': 48,
|
|
10901
|
+
'size.64': 64,
|
|
10902
|
+
'size.80': 80,
|
|
10903
|
+
'size.96': 96,
|
|
10904
|
+
'size.120': 120,
|
|
10905
|
+
'size.144': 144,
|
|
10906
|
+
'size.176': 176,
|
|
10907
|
+
'size.208': 208,
|
|
10900
10908
|
kitt: {
|
|
10901
10909
|
avatar: {
|
|
10902
10910
|
size: theme.avatar.size,
|
|
@@ -10909,10 +10917,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10909
10917
|
button: {
|
|
10910
10918
|
minWidth: theme.button.minWidth,
|
|
10911
10919
|
maxWidth: theme.button.maxWidth,
|
|
10912
|
-
minHeight: {
|
|
10913
|
-
"default": theme.button.minHeight["default"],
|
|
10914
|
-
medium: theme.button.minHeight.medium
|
|
10915
|
-
},
|
|
10916
10920
|
maxHeight: theme.button.maxHeight,
|
|
10917
10921
|
height: {
|
|
10918
10922
|
"default": theme.button.height["default"],
|
|
@@ -11302,6 +11306,20 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11302
11306
|
app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.sizes
|
|
11303
11307
|
}),
|
|
11304
11308
|
space: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, spaces.positive), spaces.negative), overridenNativeBaseSizeandSpaceScale), {}, {
|
|
11309
|
+
// Bumper retrofitting
|
|
11310
|
+
'space.none': 0,
|
|
11311
|
+
'space.2': 2,
|
|
11312
|
+
'space.4': 4,
|
|
11313
|
+
'space.8': 8,
|
|
11314
|
+
'space.12': 12,
|
|
11315
|
+
'space.16': 16,
|
|
11316
|
+
'space.24': 24,
|
|
11317
|
+
'space.32': 32,
|
|
11318
|
+
'space.40': 40,
|
|
11319
|
+
'space.48': 48,
|
|
11320
|
+
'space.56': 56,
|
|
11321
|
+
'space.64': 64,
|
|
11322
|
+
'space.80': 80,
|
|
11305
11323
|
kitt: {
|
|
11306
11324
|
bottomSheet: {
|
|
11307
11325
|
container: {
|
|
@@ -11529,7 +11547,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11529
11547
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
11530
11548
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
11531
11549
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
11532
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
|
|
11533
11550
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
11534
11551
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
11535
11552
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
@@ -11553,7 +11570,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11553
11570
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
11554
11571
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
11555
11572
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
11556
|
-
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
|
|
11557
11573
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
11558
11574
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
11559
11575
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
@@ -13334,7 +13350,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
13334
13350
|
return /*#__PURE__*/jsx(View, {
|
|
13335
13351
|
marginBottom: 10,
|
|
13336
13352
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13337
|
-
base: "
|
|
13353
|
+
base: "heading-s",
|
|
13338
13354
|
color: useStoryBlockColor(color),
|
|
13339
13355
|
numberOfLines: numberOfLines,
|
|
13340
13356
|
children: children
|
|
@@ -13955,7 +13971,7 @@ function ToastContent(_ref) {
|
|
|
13955
13971
|
flexGrow: 1,
|
|
13956
13972
|
flexShrink: 1,
|
|
13957
13973
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13958
|
-
base: "
|
|
13974
|
+
base: "heading-xs",
|
|
13959
13975
|
color: "white",
|
|
13960
13976
|
children: title
|
|
13961
13977
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13971,7 +13987,7 @@ function ToastContent(_ref) {
|
|
|
13971
13987
|
borderColor: "white",
|
|
13972
13988
|
onPress: onPress,
|
|
13973
13989
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13974
|
-
base: "
|
|
13990
|
+
base: "heading-xs",
|
|
13975
13991
|
color: "white",
|
|
13976
13992
|
children: actionLabel
|
|
13977
13993
|
})
|