@ornikar/kitt-universal 32.3.0 → 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.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 +19 -0
- 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 +9 -3
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +5 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +31 -14
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +31 -14
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +31 -14
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +31 -13
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +31 -14
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +31 -13
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +31 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +31 -13
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +19 -10
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +19 -10
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +19 -10
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +19 -10
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +19 -10
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +19 -10
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +19 -10
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +19 -10
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -676,6 +676,10 @@ const button = {
|
|
|
676
676
|
default: 40,
|
|
677
677
|
medium: 48
|
|
678
678
|
},
|
|
679
|
+
minHeight: {
|
|
680
|
+
default: 40,
|
|
681
|
+
medium: 48
|
|
682
|
+
},
|
|
679
683
|
maxHeight: 48,
|
|
680
684
|
icon: {
|
|
681
685
|
medium: {
|
|
@@ -2129,8 +2133,8 @@ const typography = {
|
|
|
2129
2133
|
allowedFontWeights: ['semibold']
|
|
2130
2134
|
},
|
|
2131
2135
|
'heading-l': {
|
|
2132
|
-
fontSize:
|
|
2133
|
-
lineHeight:
|
|
2136
|
+
fontSize: 38,
|
|
2137
|
+
lineHeight: 44,
|
|
2134
2138
|
allowedFontWeights: ['semibold']
|
|
2135
2139
|
},
|
|
2136
2140
|
'heading-m': {
|
|
@@ -2139,14 +2143,19 @@ const typography = {
|
|
|
2139
2143
|
allowedFontWeights: ['semibold']
|
|
2140
2144
|
},
|
|
2141
2145
|
'heading-s': {
|
|
2142
|
-
fontSize:
|
|
2143
|
-
lineHeight:
|
|
2144
|
-
allowedFontWeights: ['
|
|
2146
|
+
fontSize: 24,
|
|
2147
|
+
lineHeight: 28,
|
|
2148
|
+
allowedFontWeights: ['semibold']
|
|
2145
2149
|
},
|
|
2146
2150
|
'heading-xs': {
|
|
2151
|
+
fontSize: 20,
|
|
2152
|
+
lineHeight: 24,
|
|
2153
|
+
allowedFontWeights: ['semibold']
|
|
2154
|
+
},
|
|
2155
|
+
'heading-xxs': {
|
|
2147
2156
|
fontSize: 16,
|
|
2148
|
-
lineHeight:
|
|
2149
|
-
allowedFontWeights: ['
|
|
2157
|
+
lineHeight: 20,
|
|
2158
|
+
allowedFontWeights: ['semibold']
|
|
2150
2159
|
}
|
|
2151
2160
|
}
|
|
2152
2161
|
},
|
|
@@ -2213,17 +2222,17 @@ const typography = {
|
|
|
2213
2222
|
configs: {
|
|
2214
2223
|
'label-large': {
|
|
2215
2224
|
fontSize: 16,
|
|
2216
|
-
lineHeight:
|
|
2225
|
+
lineHeight: 20,
|
|
2217
2226
|
allowedFontWeights: ['semibold']
|
|
2218
2227
|
},
|
|
2219
2228
|
'label-medium': {
|
|
2220
2229
|
fontSize: 14,
|
|
2221
|
-
lineHeight:
|
|
2230
|
+
lineHeight: 18,
|
|
2222
2231
|
allowedFontWeights: ['semibold']
|
|
2223
2232
|
},
|
|
2224
2233
|
'label-small': {
|
|
2225
2234
|
fontSize: 12,
|
|
2226
|
-
lineHeight:
|
|
2235
|
+
lineHeight: 14,
|
|
2227
2236
|
allowedFontWeights: ['semibold']
|
|
2228
2237
|
}
|
|
2229
2238
|
}
|
|
@@ -3131,7 +3140,8 @@ function AnimatedContainer$2({
|
|
|
3131
3140
|
borderRadius: 'kitt.button.borderRadius',
|
|
3132
3141
|
backgroundColor: currentBackgroundColor,
|
|
3133
3142
|
width,
|
|
3134
|
-
height
|
|
3143
|
+
height,
|
|
3144
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3135
3145
|
});
|
|
3136
3146
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
3137
3147
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3845,6 +3855,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
3845
3855
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3846
3856
|
minWidth: "kitt.button.minWidth",
|
|
3847
3857
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3858
|
+
minHeight: _size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3848
3859
|
maxHeight: "kitt.button.maxHeight",
|
|
3849
3860
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3850
3861
|
onPress: onPress,
|
|
@@ -10618,6 +10629,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10618
10629
|
button: {
|
|
10619
10630
|
minWidth: theme.button.minWidth,
|
|
10620
10631
|
maxWidth: theme.button.maxWidth,
|
|
10632
|
+
minHeight: {
|
|
10633
|
+
default: theme.button.minHeight.default,
|
|
10634
|
+
medium: theme.button.minHeight.medium
|
|
10635
|
+
},
|
|
10621
10636
|
maxHeight: theme.button.maxHeight,
|
|
10622
10637
|
height: {
|
|
10623
10638
|
default: theme.button.height.default,
|
|
@@ -11234,6 +11249,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11234
11249
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11235
11250
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11236
11251
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11252
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11237
11253
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11238
11254
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11239
11255
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11257,6 +11273,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11257
11273
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11258
11274
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11259
11275
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11276
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11260
11277
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11261
11278
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11262
11279
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13023,7 +13040,7 @@ function StoryTitleLevel4({
|
|
|
13023
13040
|
return /*#__PURE__*/jsx(View, {
|
|
13024
13041
|
marginBottom: 10,
|
|
13025
13042
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
13026
|
-
base: "
|
|
13043
|
+
base: "body-l",
|
|
13027
13044
|
color: useStoryBlockColor(color),
|
|
13028
13045
|
numberOfLines: numberOfLines,
|
|
13029
13046
|
children: children
|
|
@@ -13639,7 +13656,7 @@ function ToastContent({
|
|
|
13639
13656
|
flexGrow: 1,
|
|
13640
13657
|
flexShrink: 1,
|
|
13641
13658
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13642
|
-
base: "
|
|
13659
|
+
base: "body-m",
|
|
13643
13660
|
color: "white",
|
|
13644
13661
|
children: title
|
|
13645
13662
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13655,7 +13672,7 @@ function ToastContent({
|
|
|
13655
13672
|
borderColor: "white",
|
|
13656
13673
|
onPress: onPress,
|
|
13657
13674
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13658
|
-
base: "
|
|
13675
|
+
base: "body-m",
|
|
13659
13676
|
color: "white",
|
|
13660
13677
|
children: actionLabel
|
|
13661
13678
|
})
|