@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
|
@@ -697,6 +697,10 @@ const button = {
|
|
|
697
697
|
default: 40,
|
|
698
698
|
medium: 48
|
|
699
699
|
},
|
|
700
|
+
minHeight: {
|
|
701
|
+
default: 40,
|
|
702
|
+
medium: 48
|
|
703
|
+
},
|
|
700
704
|
maxHeight: 48,
|
|
701
705
|
icon: {
|
|
702
706
|
medium: {
|
|
@@ -2150,8 +2154,8 @@ const typography = {
|
|
|
2150
2154
|
allowedFontWeights: ['semibold']
|
|
2151
2155
|
},
|
|
2152
2156
|
'heading-l': {
|
|
2153
|
-
fontSize:
|
|
2154
|
-
lineHeight:
|
|
2157
|
+
fontSize: 38,
|
|
2158
|
+
lineHeight: 44,
|
|
2155
2159
|
allowedFontWeights: ['semibold']
|
|
2156
2160
|
},
|
|
2157
2161
|
'heading-m': {
|
|
@@ -2160,14 +2164,19 @@ const typography = {
|
|
|
2160
2164
|
allowedFontWeights: ['semibold']
|
|
2161
2165
|
},
|
|
2162
2166
|
'heading-s': {
|
|
2163
|
-
fontSize:
|
|
2164
|
-
lineHeight:
|
|
2165
|
-
allowedFontWeights: ['
|
|
2167
|
+
fontSize: 24,
|
|
2168
|
+
lineHeight: 28,
|
|
2169
|
+
allowedFontWeights: ['semibold']
|
|
2166
2170
|
},
|
|
2167
2171
|
'heading-xs': {
|
|
2172
|
+
fontSize: 20,
|
|
2173
|
+
lineHeight: 24,
|
|
2174
|
+
allowedFontWeights: ['semibold']
|
|
2175
|
+
},
|
|
2176
|
+
'heading-xxs': {
|
|
2168
2177
|
fontSize: 16,
|
|
2169
|
-
lineHeight:
|
|
2170
|
-
allowedFontWeights: ['
|
|
2178
|
+
lineHeight: 20,
|
|
2179
|
+
allowedFontWeights: ['semibold']
|
|
2171
2180
|
}
|
|
2172
2181
|
}
|
|
2173
2182
|
},
|
|
@@ -2234,17 +2243,17 @@ const typography = {
|
|
|
2234
2243
|
configs: {
|
|
2235
2244
|
'label-large': {
|
|
2236
2245
|
fontSize: 16,
|
|
2237
|
-
lineHeight:
|
|
2246
|
+
lineHeight: 20,
|
|
2238
2247
|
allowedFontWeights: ['semibold']
|
|
2239
2248
|
},
|
|
2240
2249
|
'label-medium': {
|
|
2241
2250
|
fontSize: 14,
|
|
2242
|
-
lineHeight:
|
|
2251
|
+
lineHeight: 18,
|
|
2243
2252
|
allowedFontWeights: ['semibold']
|
|
2244
2253
|
},
|
|
2245
2254
|
'label-small': {
|
|
2246
2255
|
fontSize: 12,
|
|
2247
|
-
lineHeight:
|
|
2256
|
+
lineHeight: 14,
|
|
2248
2257
|
allowedFontWeights: ['semibold']
|
|
2249
2258
|
}
|
|
2250
2259
|
}
|
|
@@ -3150,7 +3159,8 @@ function AnimatedContainer$2({
|
|
|
3150
3159
|
borderRadius: 'kitt.button.borderRadius',
|
|
3151
3160
|
backgroundColor: currentBackgroundColor,
|
|
3152
3161
|
width,
|
|
3153
|
-
height
|
|
3162
|
+
height,
|
|
3163
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3154
3164
|
});
|
|
3155
3165
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
3156
3166
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3868,6 +3878,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
3868
3878
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3869
3879
|
minWidth: "kitt.button.minWidth",
|
|
3870
3880
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3881
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3871
3882
|
maxHeight: "kitt.button.maxHeight",
|
|
3872
3883
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3873
3884
|
onPress: onPress,
|
|
@@ -10623,6 +10634,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10623
10634
|
button: {
|
|
10624
10635
|
minWidth: theme.button.minWidth,
|
|
10625
10636
|
maxWidth: theme.button.maxWidth,
|
|
10637
|
+
minHeight: {
|
|
10638
|
+
default: theme.button.minHeight.default,
|
|
10639
|
+
medium: theme.button.minHeight.medium
|
|
10640
|
+
},
|
|
10626
10641
|
maxHeight: theme.button.maxHeight,
|
|
10627
10642
|
height: {
|
|
10628
10643
|
default: theme.button.height.default,
|
|
@@ -11244,6 +11259,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11244
11259
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11245
11260
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11246
11261
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11262
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11247
11263
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11248
11264
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11249
11265
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11267,6 +11283,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11267
11283
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11268
11284
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11269
11285
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11286
|
+
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11270
11287
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11271
11288
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11272
11289
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13038,7 +13055,7 @@ function StoryTitleLevel4({
|
|
|
13038
13055
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13039
13056
|
marginBottom: 10,
|
|
13040
13057
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
13041
|
-
base: "
|
|
13058
|
+
base: "body-l",
|
|
13042
13059
|
color: useStoryBlockColor(color),
|
|
13043
13060
|
numberOfLines: numberOfLines,
|
|
13044
13061
|
children: children
|
|
@@ -13646,7 +13663,7 @@ function ToastContent({
|
|
|
13646
13663
|
flexGrow: 1,
|
|
13647
13664
|
flexShrink: 1,
|
|
13648
13665
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13649
|
-
base: "
|
|
13666
|
+
base: "body-m",
|
|
13650
13667
|
color: "white",
|
|
13651
13668
|
children: title
|
|
13652
13669
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -13662,7 +13679,7 @@ function ToastContent({
|
|
|
13662
13679
|
borderColor: "white",
|
|
13663
13680
|
onPress: onPress,
|
|
13664
13681
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13665
|
-
base: "
|
|
13682
|
+
base: "body-m",
|
|
13666
13683
|
color: "white",
|
|
13667
13684
|
children: actionLabel
|
|
13668
13685
|
})
|