@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
|
@@ -673,10 +673,6 @@ const button = {
|
|
|
673
673
|
default: 40,
|
|
674
674
|
medium: 48
|
|
675
675
|
},
|
|
676
|
-
minHeight: {
|
|
677
|
-
default: 40,
|
|
678
|
-
medium: 48
|
|
679
|
-
},
|
|
680
676
|
maxHeight: 48,
|
|
681
677
|
icon: {
|
|
682
678
|
medium: {
|
|
@@ -2131,8 +2127,8 @@ const typography = {
|
|
|
2131
2127
|
allowedFontWeights: ['semibold']
|
|
2132
2128
|
},
|
|
2133
2129
|
'heading-l': {
|
|
2134
|
-
fontSize:
|
|
2135
|
-
lineHeight:
|
|
2130
|
+
fontSize: 40,
|
|
2131
|
+
lineHeight: 48,
|
|
2136
2132
|
allowedFontWeights: ['semibold']
|
|
2137
2133
|
},
|
|
2138
2134
|
'heading-m': {
|
|
@@ -2141,19 +2137,14 @@ const typography = {
|
|
|
2141
2137
|
allowedFontWeights: ['semibold']
|
|
2142
2138
|
},
|
|
2143
2139
|
'heading-s': {
|
|
2144
|
-
fontSize:
|
|
2145
|
-
lineHeight:
|
|
2146
|
-
allowedFontWeights: ['
|
|
2140
|
+
fontSize: 18,
|
|
2141
|
+
lineHeight: 20,
|
|
2142
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2147
2143
|
},
|
|
2148
2144
|
'heading-xs': {
|
|
2149
|
-
fontSize: 20,
|
|
2150
|
-
lineHeight: 24,
|
|
2151
|
-
allowedFontWeights: ['semibold']
|
|
2152
|
-
},
|
|
2153
|
-
'heading-xxs': {
|
|
2154
2145
|
fontSize: 16,
|
|
2155
|
-
lineHeight:
|
|
2156
|
-
allowedFontWeights: ['
|
|
2146
|
+
lineHeight: 18,
|
|
2147
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2157
2148
|
}
|
|
2158
2149
|
}
|
|
2159
2150
|
},
|
|
@@ -2220,17 +2211,17 @@ const typography = {
|
|
|
2220
2211
|
configs: {
|
|
2221
2212
|
'label-large': {
|
|
2222
2213
|
fontSize: 16,
|
|
2223
|
-
lineHeight:
|
|
2214
|
+
lineHeight: 24,
|
|
2224
2215
|
allowedFontWeights: ['semibold']
|
|
2225
2216
|
},
|
|
2226
2217
|
'label-medium': {
|
|
2227
2218
|
fontSize: 14,
|
|
2228
|
-
lineHeight:
|
|
2219
|
+
lineHeight: 20,
|
|
2229
2220
|
allowedFontWeights: ['semibold']
|
|
2230
2221
|
},
|
|
2231
2222
|
'label-small': {
|
|
2232
2223
|
fontSize: 12,
|
|
2233
|
-
lineHeight:
|
|
2224
|
+
lineHeight: 16,
|
|
2234
2225
|
allowedFontWeights: ['semibold']
|
|
2235
2226
|
}
|
|
2236
2227
|
}
|
|
@@ -3136,8 +3127,7 @@ function AnimatedContainer$2({
|
|
|
3136
3127
|
borderRadius: 'kitt.button.borderRadius',
|
|
3137
3128
|
backgroundColor: currentBackgroundColor,
|
|
3138
3129
|
width,
|
|
3139
|
-
height
|
|
3140
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3130
|
+
height
|
|
3141
3131
|
});
|
|
3142
3132
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3143
3133
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3855,7 +3845,6 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3855
3845
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3856
3846
|
minWidth: "kitt.button.minWidth",
|
|
3857
3847
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3858
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3859
3848
|
maxHeight: "kitt.button.maxHeight",
|
|
3860
3849
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3861
3850
|
onPress: onPress,
|
|
@@ -10240,6 +10229,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10240
10229
|
xs: Number.MAX_SAFE_INTEGER,
|
|
10241
10230
|
// Allow values like kitt.X
|
|
10242
10231
|
...spaces.positive,
|
|
10232
|
+
// Bumper retrofitting
|
|
10233
|
+
'radius.none': 0,
|
|
10234
|
+
'radius.s': 2,
|
|
10235
|
+
'radius.m': 4,
|
|
10236
|
+
'radius.l': 8,
|
|
10237
|
+
'radius.circle': 1000,
|
|
10243
10238
|
kitt: {
|
|
10244
10239
|
actionCard: {
|
|
10245
10240
|
borderRadius: theme.actionCard.borderRadius
|
|
@@ -10646,6 +10641,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10646
10641
|
...spaces.positive,
|
|
10647
10642
|
...spaces.negative,
|
|
10648
10643
|
...overridenNativeBaseSizeandSpaceScale,
|
|
10644
|
+
// Bumper retrofitting
|
|
10645
|
+
'size.16': 16,
|
|
10646
|
+
'size.20': 20,
|
|
10647
|
+
'size.24': 24,
|
|
10648
|
+
'size.32': 32,
|
|
10649
|
+
'size.48': 48,
|
|
10650
|
+
'size.64': 64,
|
|
10651
|
+
'size.80': 80,
|
|
10652
|
+
'size.96': 96,
|
|
10653
|
+
'size.120': 120,
|
|
10654
|
+
'size.144': 144,
|
|
10655
|
+
'size.176': 176,
|
|
10656
|
+
'size.208': 208,
|
|
10649
10657
|
kitt: {
|
|
10650
10658
|
avatar: {
|
|
10651
10659
|
size: theme.avatar.size,
|
|
@@ -10658,10 +10666,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10658
10666
|
button: {
|
|
10659
10667
|
minWidth: theme.button.minWidth,
|
|
10660
10668
|
maxWidth: theme.button.maxWidth,
|
|
10661
|
-
minHeight: {
|
|
10662
|
-
default: theme.button.minHeight.default,
|
|
10663
|
-
medium: theme.button.minHeight.medium
|
|
10664
|
-
},
|
|
10665
10669
|
maxHeight: theme.button.maxHeight,
|
|
10666
10670
|
height: {
|
|
10667
10671
|
default: theme.button.height.default,
|
|
@@ -11054,6 +11058,20 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11054
11058
|
...spaces.positive,
|
|
11055
11059
|
...spaces.negative,
|
|
11056
11060
|
...overridenNativeBaseSizeandSpaceScale,
|
|
11061
|
+
// Bumper retrofitting
|
|
11062
|
+
'space.none': 0,
|
|
11063
|
+
'space.2': 2,
|
|
11064
|
+
'space.4': 4,
|
|
11065
|
+
'space.8': 8,
|
|
11066
|
+
'space.12': 12,
|
|
11067
|
+
'space.16': 16,
|
|
11068
|
+
'space.24': 24,
|
|
11069
|
+
'space.32': 32,
|
|
11070
|
+
'space.40': 40,
|
|
11071
|
+
'space.48': 48,
|
|
11072
|
+
'space.56': 56,
|
|
11073
|
+
'space.64': 64,
|
|
11074
|
+
'space.80': 80,
|
|
11057
11075
|
kitt: {
|
|
11058
11076
|
bottomSheet: {
|
|
11059
11077
|
container: {
|
|
@@ -11283,7 +11301,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11283
11301
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11284
11302
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11285
11303
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11286
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11287
11304
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11288
11305
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11289
11306
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11307,7 +11324,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11307
11324
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11308
11325
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11309
11326
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11310
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11311
11327
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11312
11328
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11313
11329
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13079,7 +13095,7 @@ function StoryTitleLevel4({
|
|
|
13079
13095
|
return /*#__PURE__*/jsx(View, {
|
|
13080
13096
|
marginBottom: 10,
|
|
13081
13097
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13082
|
-
base: "
|
|
13098
|
+
base: "heading-s",
|
|
13083
13099
|
color: useStoryBlockColor(color),
|
|
13084
13100
|
numberOfLines: numberOfLines,
|
|
13085
13101
|
children: children
|
|
@@ -13687,7 +13703,7 @@ function ToastContent({
|
|
|
13687
13703
|
flexGrow: 1,
|
|
13688
13704
|
flexShrink: 1,
|
|
13689
13705
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13690
|
-
base: "
|
|
13706
|
+
base: "heading-xs",
|
|
13691
13707
|
color: "white",
|
|
13692
13708
|
children: title
|
|
13693
13709
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13703,7 +13719,7 @@ function ToastContent({
|
|
|
13703
13719
|
borderColor: "white",
|
|
13704
13720
|
onPress: onPress,
|
|
13705
13721
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13706
|
-
base: "
|
|
13722
|
+
base: "heading-xs",
|
|
13707
13723
|
color: "white",
|
|
13708
13724
|
children: actionLabel
|
|
13709
13725
|
})
|