@ornikar/kitt-universal 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.0 → 32.4.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 +3 -8
- 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/Choices/AnimatedChoiceItemView.d.ts +2 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts +2 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +2 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
- package/dist/definitions/Choices/Choices.d.ts +5 -5
- package/dist/definitions/Choices/Choices.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3 -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 +49 -41
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +49 -41
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +50 -39
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +49 -39
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +51 -40
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +50 -40
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +52 -41
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +51 -41
- 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 +1 -1
|
@@ -697,10 +697,6 @@ const button = {
|
|
|
697
697
|
default: 40,
|
|
698
698
|
medium: 48
|
|
699
699
|
},
|
|
700
|
-
minHeight: {
|
|
701
|
-
default: 40,
|
|
702
|
-
medium: 48
|
|
703
|
-
},
|
|
704
700
|
maxHeight: 48,
|
|
705
701
|
icon: {
|
|
706
702
|
medium: {
|
|
@@ -2154,8 +2150,8 @@ const typography = {
|
|
|
2154
2150
|
allowedFontWeights: ['semibold']
|
|
2155
2151
|
},
|
|
2156
2152
|
'heading-l': {
|
|
2157
|
-
fontSize:
|
|
2158
|
-
lineHeight:
|
|
2153
|
+
fontSize: 40,
|
|
2154
|
+
lineHeight: 48,
|
|
2159
2155
|
allowedFontWeights: ['semibold']
|
|
2160
2156
|
},
|
|
2161
2157
|
'heading-m': {
|
|
@@ -2164,19 +2160,14 @@ const typography = {
|
|
|
2164
2160
|
allowedFontWeights: ['semibold']
|
|
2165
2161
|
},
|
|
2166
2162
|
'heading-s': {
|
|
2167
|
-
fontSize:
|
|
2168
|
-
lineHeight:
|
|
2169
|
-
allowedFontWeights: ['
|
|
2163
|
+
fontSize: 18,
|
|
2164
|
+
lineHeight: 20,
|
|
2165
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2170
2166
|
},
|
|
2171
2167
|
'heading-xs': {
|
|
2172
|
-
fontSize: 20,
|
|
2173
|
-
lineHeight: 24,
|
|
2174
|
-
allowedFontWeights: ['semibold']
|
|
2175
|
-
},
|
|
2176
|
-
'heading-xxs': {
|
|
2177
2168
|
fontSize: 16,
|
|
2178
|
-
lineHeight:
|
|
2179
|
-
allowedFontWeights: ['
|
|
2169
|
+
lineHeight: 18,
|
|
2170
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2180
2171
|
}
|
|
2181
2172
|
}
|
|
2182
2173
|
},
|
|
@@ -2243,17 +2234,17 @@ const typography = {
|
|
|
2243
2234
|
configs: {
|
|
2244
2235
|
'label-large': {
|
|
2245
2236
|
fontSize: 16,
|
|
2246
|
-
lineHeight:
|
|
2237
|
+
lineHeight: 24,
|
|
2247
2238
|
allowedFontWeights: ['semibold']
|
|
2248
2239
|
},
|
|
2249
2240
|
'label-medium': {
|
|
2250
2241
|
fontSize: 14,
|
|
2251
|
-
lineHeight:
|
|
2242
|
+
lineHeight: 20,
|
|
2252
2243
|
allowedFontWeights: ['semibold']
|
|
2253
2244
|
},
|
|
2254
2245
|
'label-small': {
|
|
2255
2246
|
fontSize: 12,
|
|
2256
|
-
lineHeight:
|
|
2247
|
+
lineHeight: 16,
|
|
2257
2248
|
allowedFontWeights: ['semibold']
|
|
2258
2249
|
}
|
|
2259
2250
|
}
|
|
@@ -3159,8 +3150,7 @@ function AnimatedContainer$2({
|
|
|
3159
3150
|
borderRadius: 'kitt.button.borderRadius',
|
|
3160
3151
|
backgroundColor: currentBackgroundColor,
|
|
3161
3152
|
width,
|
|
3162
|
-
height
|
|
3163
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
|
|
3153
|
+
height
|
|
3164
3154
|
});
|
|
3165
3155
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
3166
3156
|
style: disabled ? [styles] : [styles, animatedStyles],
|
|
@@ -3878,7 +3868,6 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
3878
3868
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3879
3869
|
minWidth: "kitt.button.minWidth",
|
|
3880
3870
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3881
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3882
3871
|
maxHeight: "kitt.button.maxHeight",
|
|
3883
3872
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3884
3873
|
onPress: onPress,
|
|
@@ -4845,6 +4834,7 @@ function AnimatedChoiceItemView({
|
|
|
4845
4834
|
isDisabled,
|
|
4846
4835
|
isSelected,
|
|
4847
4836
|
hasError,
|
|
4837
|
+
shouldExpand = false,
|
|
4848
4838
|
animatedStyles
|
|
4849
4839
|
}) {
|
|
4850
4840
|
const sx = nativeBase.useSx();
|
|
@@ -4863,7 +4853,9 @@ function AnimatedChoiceItemView({
|
|
|
4863
4853
|
isHovered,
|
|
4864
4854
|
isPressed
|
|
4865
4855
|
}),
|
|
4866
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4856
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4857
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4858
|
+
flexShrink: shouldExpand ? 1 : undefined
|
|
4867
4859
|
});
|
|
4868
4860
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4869
4861
|
style: [style, animatedStyles],
|
|
@@ -4927,6 +4919,7 @@ function ChoiceItem({
|
|
|
4927
4919
|
value,
|
|
4928
4920
|
selected,
|
|
4929
4921
|
disabled,
|
|
4922
|
+
shouldExpand = false,
|
|
4930
4923
|
children,
|
|
4931
4924
|
isPressedInternal,
|
|
4932
4925
|
isHoveredInternal,
|
|
@@ -4966,6 +4959,8 @@ function ChoiceItem({
|
|
|
4966
4959
|
checked: selected
|
|
4967
4960
|
},
|
|
4968
4961
|
style: style,
|
|
4962
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4963
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4969
4964
|
onBlur: onBlur,
|
|
4970
4965
|
onFocus: onFocus,
|
|
4971
4966
|
onPress: e => {
|
|
@@ -4985,6 +4980,8 @@ function ChoiceItem({
|
|
|
4985
4980
|
});
|
|
4986
4981
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4987
4982
|
space: "kitt.2",
|
|
4983
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4984
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4988
4985
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4989
4986
|
animatedStyles: backgroundStyles,
|
|
4990
4987
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4992,10 +4989,13 @@ function ChoiceItem({
|
|
|
4992
4989
|
isSelected: selected,
|
|
4993
4990
|
isPressed: isPressed || isPressedInternal,
|
|
4994
4991
|
hasError: hasError,
|
|
4992
|
+
shouldExpand: shouldExpand,
|
|
4995
4993
|
size: size,
|
|
4996
4994
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
|
|
4997
4995
|
alignItems: "center",
|
|
4998
4996
|
space: "kitt.2",
|
|
4997
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4998
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4999
4999
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
5000
5000
|
color: textColor,
|
|
5001
5001
|
icon: icon
|
|
@@ -5024,36 +5024,49 @@ function ChoiceItem({
|
|
|
5024
5024
|
function ChoiceItemContainer({
|
|
5025
5025
|
children,
|
|
5026
5026
|
direction,
|
|
5027
|
+
shouldExpand,
|
|
5027
5028
|
isLast
|
|
5028
5029
|
}) {
|
|
5029
5030
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5030
|
-
const
|
|
5031
|
+
const directionFlexProps = direction === 'row' ? {
|
|
5031
5032
|
flexGrow: 1,
|
|
5032
5033
|
flexShrink: 1,
|
|
5033
5034
|
flexBasis: 0
|
|
5034
5035
|
} : {};
|
|
5036
|
+
const shouldExpandFlexProps = shouldExpand ? {
|
|
5037
|
+
flexGrow: 1,
|
|
5038
|
+
flexShrink: 1
|
|
5039
|
+
} : {};
|
|
5035
5040
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5036
5041
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5037
5042
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
5038
|
-
...
|
|
5043
|
+
...directionFlexProps,
|
|
5044
|
+
...shouldExpandFlexProps,
|
|
5039
5045
|
children: children
|
|
5040
5046
|
});
|
|
5041
5047
|
}
|
|
5042
5048
|
|
|
5043
5049
|
function ChoicesContainer({
|
|
5044
5050
|
direction,
|
|
5051
|
+
shouldExpand,
|
|
5045
5052
|
contentContainerStyle,
|
|
5046
5053
|
...props
|
|
5047
5054
|
}) {
|
|
5055
|
+
const shouldExpandFlexProps = shouldExpand ? {
|
|
5056
|
+
flexGrow: 1,
|
|
5057
|
+
flexShrink: 1
|
|
5058
|
+
} : {};
|
|
5048
5059
|
if (direction === 'row') {
|
|
5049
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5060
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
5050
5061
|
horizontal: true,
|
|
5051
|
-
contentContainerStyle: contentContainerStyle,
|
|
5052
|
-
...props
|
|
5062
|
+
contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle,
|
|
5063
|
+
...props,
|
|
5064
|
+
...shouldExpandFlexProps
|
|
5053
5065
|
});
|
|
5054
5066
|
}
|
|
5055
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5056
|
-
...props
|
|
5067
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5068
|
+
...props,
|
|
5069
|
+
...shouldExpandFlexProps
|
|
5057
5070
|
});
|
|
5058
5071
|
}
|
|
5059
5072
|
|
|
@@ -5065,6 +5078,7 @@ function Choices({
|
|
|
5065
5078
|
type,
|
|
5066
5079
|
direction = 'column',
|
|
5067
5080
|
disabled,
|
|
5081
|
+
shouldExpand = false,
|
|
5068
5082
|
children,
|
|
5069
5083
|
value,
|
|
5070
5084
|
onPress,
|
|
@@ -5081,6 +5095,7 @@ function Choices({
|
|
|
5081
5095
|
const sharedProps = {
|
|
5082
5096
|
type,
|
|
5083
5097
|
disabled,
|
|
5098
|
+
shouldExpand,
|
|
5084
5099
|
onPress: !isForm ? onPress : undefined,
|
|
5085
5100
|
onChange: isForm ? newValue => {
|
|
5086
5101
|
setCurrentValue(newValue);
|
|
@@ -5092,6 +5107,7 @@ function Choices({
|
|
|
5092
5107
|
};
|
|
5093
5108
|
return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
|
|
5094
5109
|
direction: direction,
|
|
5110
|
+
shouldExpand: shouldExpand,
|
|
5095
5111
|
testID: testID,
|
|
5096
5112
|
id: id,
|
|
5097
5113
|
style: style,
|
|
@@ -5103,6 +5119,7 @@ function Choices({
|
|
|
5103
5119
|
});
|
|
5104
5120
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
5105
5121
|
direction: direction,
|
|
5122
|
+
shouldExpand: shouldExpand,
|
|
5106
5123
|
isLast: index === childrenArray.length - 1,
|
|
5107
5124
|
children: element
|
|
5108
5125
|
}, child.key);
|
|
@@ -10634,10 +10651,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10634
10651
|
button: {
|
|
10635
10652
|
minWidth: theme.button.minWidth,
|
|
10636
10653
|
maxWidth: theme.button.maxWidth,
|
|
10637
|
-
minHeight: {
|
|
10638
|
-
default: theme.button.minHeight.default,
|
|
10639
|
-
medium: theme.button.minHeight.medium
|
|
10640
|
-
},
|
|
10641
10654
|
maxHeight: theme.button.maxHeight,
|
|
10642
10655
|
height: {
|
|
10643
10656
|
default: theme.button.height.default,
|
|
@@ -11259,7 +11272,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11259
11272
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
11260
11273
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
11261
11274
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
11262
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
11263
11275
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
11264
11276
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
11265
11277
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -11283,7 +11295,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
11283
11295
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
11284
11296
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
11285
11297
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
11286
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
11287
11298
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
11288
11299
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
11289
11300
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -13055,7 +13066,7 @@ function StoryTitleLevel4({
|
|
|
13055
13066
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13056
13067
|
marginBottom: 10,
|
|
13057
13068
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
13058
|
-
base: "
|
|
13069
|
+
base: "heading-s",
|
|
13059
13070
|
color: useStoryBlockColor(color),
|
|
13060
13071
|
numberOfLines: numberOfLines,
|
|
13061
13072
|
children: children
|
|
@@ -13663,7 +13674,7 @@ function ToastContent({
|
|
|
13663
13674
|
flexGrow: 1,
|
|
13664
13675
|
flexShrink: 1,
|
|
13665
13676
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13666
|
-
base: "
|
|
13677
|
+
base: "heading-xs",
|
|
13667
13678
|
color: "white",
|
|
13668
13679
|
children: title
|
|
13669
13680
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -13679,7 +13690,7 @@ function ToastContent({
|
|
|
13679
13690
|
borderColor: "white",
|
|
13680
13691
|
onPress: onPress,
|
|
13681
13692
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13682
|
-
base: "
|
|
13693
|
+
base: "heading-xs",
|
|
13683
13694
|
color: "white",
|
|
13684
13695
|
children: actionLabel
|
|
13685
13696
|
})
|