@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
|
@@ -671,10 +671,6 @@ const button = {
|
|
|
671
671
|
default: 40,
|
|
672
672
|
medium: 48
|
|
673
673
|
},
|
|
674
|
-
minHeight: {
|
|
675
|
-
default: 40,
|
|
676
|
-
medium: 48
|
|
677
|
-
},
|
|
678
674
|
maxHeight: 48,
|
|
679
675
|
icon: {
|
|
680
676
|
medium: {
|
|
@@ -2129,8 +2125,8 @@ const typography = {
|
|
|
2129
2125
|
allowedFontWeights: ['semibold']
|
|
2130
2126
|
},
|
|
2131
2127
|
'heading-l': {
|
|
2132
|
-
fontSize:
|
|
2133
|
-
lineHeight:
|
|
2128
|
+
fontSize: 40,
|
|
2129
|
+
lineHeight: 48,
|
|
2134
2130
|
allowedFontWeights: ['semibold']
|
|
2135
2131
|
},
|
|
2136
2132
|
'heading-m': {
|
|
@@ -2139,19 +2135,14 @@ const typography = {
|
|
|
2139
2135
|
allowedFontWeights: ['semibold']
|
|
2140
2136
|
},
|
|
2141
2137
|
'heading-s': {
|
|
2142
|
-
fontSize:
|
|
2143
|
-
lineHeight:
|
|
2144
|
-
allowedFontWeights: ['
|
|
2138
|
+
fontSize: 18,
|
|
2139
|
+
lineHeight: 20,
|
|
2140
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2145
2141
|
},
|
|
2146
2142
|
'heading-xs': {
|
|
2147
|
-
fontSize: 20,
|
|
2148
|
-
lineHeight: 24,
|
|
2149
|
-
allowedFontWeights: ['semibold']
|
|
2150
|
-
},
|
|
2151
|
-
'heading-xxs': {
|
|
2152
2143
|
fontSize: 16,
|
|
2153
|
-
lineHeight:
|
|
2154
|
-
allowedFontWeights: ['
|
|
2144
|
+
lineHeight: 18,
|
|
2145
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2155
2146
|
}
|
|
2156
2147
|
}
|
|
2157
2148
|
},
|
|
@@ -2218,17 +2209,17 @@ const typography = {
|
|
|
2218
2209
|
configs: {
|
|
2219
2210
|
'label-large': {
|
|
2220
2211
|
fontSize: 16,
|
|
2221
|
-
lineHeight:
|
|
2212
|
+
lineHeight: 24,
|
|
2222
2213
|
allowedFontWeights: ['semibold']
|
|
2223
2214
|
},
|
|
2224
2215
|
'label-medium': {
|
|
2225
2216
|
fontSize: 14,
|
|
2226
|
-
lineHeight:
|
|
2217
|
+
lineHeight: 20,
|
|
2227
2218
|
allowedFontWeights: ['semibold']
|
|
2228
2219
|
},
|
|
2229
2220
|
'label-small': {
|
|
2230
2221
|
fontSize: 12,
|
|
2231
|
-
lineHeight:
|
|
2222
|
+
lineHeight: 16,
|
|
2232
2223
|
allowedFontWeights: ['semibold']
|
|
2233
2224
|
}
|
|
2234
2225
|
}
|
|
@@ -3146,9 +3137,7 @@ function AnimatedContainer$2({
|
|
|
3146
3137
|
},
|
|
3147
3138
|
width: width,
|
|
3148
3139
|
height: height,
|
|
3149
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3150
3140
|
alignSelf: "baseline",
|
|
3151
|
-
justifyContent: "center",
|
|
3152
3141
|
borderRadius: "kitt.button.borderRadius",
|
|
3153
3142
|
backgroundColor: currentBackgroundColor,
|
|
3154
3143
|
children: children
|
|
@@ -3844,7 +3833,6 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3844
3833
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3845
3834
|
minWidth: "kitt.button.minWidth",
|
|
3846
3835
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3847
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3848
3836
|
maxHeight: "kitt.button.maxHeight",
|
|
3849
3837
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3850
3838
|
onPress: onPress,
|
|
@@ -9579,6 +9567,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9579
9567
|
xs: Number.MAX_SAFE_INTEGER,
|
|
9580
9568
|
// Allow values like kitt.X
|
|
9581
9569
|
...spaces.positive,
|
|
9570
|
+
// Bumper retrofitting
|
|
9571
|
+
'radius.none': 0,
|
|
9572
|
+
'radius.s': 2,
|
|
9573
|
+
'radius.m': 4,
|
|
9574
|
+
'radius.l': 8,
|
|
9575
|
+
'radius.circle': 1000,
|
|
9582
9576
|
kitt: {
|
|
9583
9577
|
actionCard: {
|
|
9584
9578
|
borderRadius: theme.actionCard.borderRadius
|
|
@@ -9985,6 +9979,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9985
9979
|
...spaces.positive,
|
|
9986
9980
|
...spaces.negative,
|
|
9987
9981
|
...overridenNativeBaseSizeandSpaceScale,
|
|
9982
|
+
// Bumper retrofitting
|
|
9983
|
+
'size.16': 16,
|
|
9984
|
+
'size.20': 20,
|
|
9985
|
+
'size.24': 24,
|
|
9986
|
+
'size.32': 32,
|
|
9987
|
+
'size.48': 48,
|
|
9988
|
+
'size.64': 64,
|
|
9989
|
+
'size.80': 80,
|
|
9990
|
+
'size.96': 96,
|
|
9991
|
+
'size.120': 120,
|
|
9992
|
+
'size.144': 144,
|
|
9993
|
+
'size.176': 176,
|
|
9994
|
+
'size.208': 208,
|
|
9988
9995
|
kitt: {
|
|
9989
9996
|
avatar: {
|
|
9990
9997
|
size: theme.avatar.size,
|
|
@@ -9997,10 +10004,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9997
10004
|
button: {
|
|
9998
10005
|
minWidth: theme.button.minWidth,
|
|
9999
10006
|
maxWidth: theme.button.maxWidth,
|
|
10000
|
-
minHeight: {
|
|
10001
|
-
default: theme.button.minHeight.default,
|
|
10002
|
-
medium: theme.button.minHeight.medium
|
|
10003
|
-
},
|
|
10004
10007
|
maxHeight: theme.button.maxHeight,
|
|
10005
10008
|
height: {
|
|
10006
10009
|
default: theme.button.height.default,
|
|
@@ -10393,6 +10396,20 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10393
10396
|
...spaces.positive,
|
|
10394
10397
|
...spaces.negative,
|
|
10395
10398
|
...overridenNativeBaseSizeandSpaceScale,
|
|
10399
|
+
// Bumper retrofitting
|
|
10400
|
+
'space.none': 0,
|
|
10401
|
+
'space.2': 2,
|
|
10402
|
+
'space.4': 4,
|
|
10403
|
+
'space.8': 8,
|
|
10404
|
+
'space.12': 12,
|
|
10405
|
+
'space.16': 16,
|
|
10406
|
+
'space.24': 24,
|
|
10407
|
+
'space.32': 32,
|
|
10408
|
+
'space.40': 40,
|
|
10409
|
+
'space.48': 48,
|
|
10410
|
+
'space.56': 56,
|
|
10411
|
+
'space.64': 64,
|
|
10412
|
+
'space.80': 80,
|
|
10396
10413
|
kitt: {
|
|
10397
10414
|
bottomSheet: {
|
|
10398
10415
|
container: {
|
|
@@ -10622,7 +10639,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10622
10639
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10623
10640
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10624
10641
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10625
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
10626
10642
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10627
10643
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10628
10644
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -10646,7 +10662,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10646
10662
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10647
10663
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10648
10664
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10649
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
10650
10665
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10651
10666
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10652
10667
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -12477,7 +12492,7 @@ function StoryTitleLevel4({
|
|
|
12477
12492
|
return /*#__PURE__*/jsx(View, {
|
|
12478
12493
|
marginBottom: 10,
|
|
12479
12494
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
12480
|
-
base: "
|
|
12495
|
+
base: "heading-s",
|
|
12481
12496
|
color: useStoryBlockColor(color),
|
|
12482
12497
|
numberOfLines: numberOfLines,
|
|
12483
12498
|
children: children
|
|
@@ -13026,7 +13041,7 @@ function ToastContent({
|
|
|
13026
13041
|
flexGrow: 1,
|
|
13027
13042
|
flexShrink: 1,
|
|
13028
13043
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13029
|
-
base: "
|
|
13044
|
+
base: "heading-xs",
|
|
13030
13045
|
color: "white",
|
|
13031
13046
|
children: title
|
|
13032
13047
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13042,7 +13057,7 @@ function ToastContent({
|
|
|
13042
13057
|
borderColor: "white",
|
|
13043
13058
|
onPress: onPress,
|
|
13044
13059
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13045
|
-
base: "
|
|
13060
|
+
base: "heading-xs",
|
|
13046
13061
|
color: "white",
|
|
13047
13062
|
children: actionLabel
|
|
13048
13063
|
})
|