@ornikar/kitt-universal 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.0 → 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.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 +14 -2
- 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/Picker/Picker.web.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/picker.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/picker.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/definitions/typography/Typography.d.ts +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +31 -18
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +31 -18
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +31 -18
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +4 -22
- package/dist/index-node-22.17.cjs.web.js +94 -92
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +31 -18
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +4 -22
- package/dist/index-node-22.17.es.web.mjs +94 -92
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +31 -18
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +91 -87
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +19 -14
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +19 -14
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +19 -14
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +19 -14
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +19 -14
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +19 -14
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +19 -14
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +19 -14
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +4 -22
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.es.web.js
CHANGED
|
@@ -689,6 +689,10 @@ var button = {
|
|
|
689
689
|
"default": 40,
|
|
690
690
|
medium: 48
|
|
691
691
|
},
|
|
692
|
+
minHeight: {
|
|
693
|
+
"default": 40,
|
|
694
|
+
medium: 48
|
|
695
|
+
},
|
|
692
696
|
maxHeight: 48,
|
|
693
697
|
icon: {
|
|
694
698
|
medium: {
|
|
@@ -2143,8 +2147,8 @@ var typography = {
|
|
|
2143
2147
|
allowedFontWeights: ['semibold']
|
|
2144
2148
|
},
|
|
2145
2149
|
'heading-l': {
|
|
2146
|
-
fontSize:
|
|
2147
|
-
lineHeight:
|
|
2150
|
+
fontSize: 38,
|
|
2151
|
+
lineHeight: 44,
|
|
2148
2152
|
allowedFontWeights: ['semibold']
|
|
2149
2153
|
},
|
|
2150
2154
|
'heading-m': {
|
|
@@ -2153,14 +2157,19 @@ var typography = {
|
|
|
2153
2157
|
allowedFontWeights: ['semibold']
|
|
2154
2158
|
},
|
|
2155
2159
|
'heading-s': {
|
|
2156
|
-
fontSize:
|
|
2157
|
-
lineHeight:
|
|
2158
|
-
allowedFontWeights: ['
|
|
2160
|
+
fontSize: 24,
|
|
2161
|
+
lineHeight: 28,
|
|
2162
|
+
allowedFontWeights: ['semibold']
|
|
2159
2163
|
},
|
|
2160
2164
|
'heading-xs': {
|
|
2165
|
+
fontSize: 20,
|
|
2166
|
+
lineHeight: 24,
|
|
2167
|
+
allowedFontWeights: ['semibold']
|
|
2168
|
+
},
|
|
2169
|
+
'heading-xxs': {
|
|
2161
2170
|
fontSize: 16,
|
|
2162
|
-
lineHeight:
|
|
2163
|
-
allowedFontWeights: ['
|
|
2171
|
+
lineHeight: 20,
|
|
2172
|
+
allowedFontWeights: ['semibold']
|
|
2164
2173
|
}
|
|
2165
2174
|
}
|
|
2166
2175
|
},
|
|
@@ -2227,17 +2236,17 @@ var typography = {
|
|
|
2227
2236
|
configs: {
|
|
2228
2237
|
'label-large': {
|
|
2229
2238
|
fontSize: 16,
|
|
2230
|
-
lineHeight:
|
|
2239
|
+
lineHeight: 20,
|
|
2231
2240
|
allowedFontWeights: ['semibold']
|
|
2232
2241
|
},
|
|
2233
2242
|
'label-medium': {
|
|
2234
2243
|
fontSize: 14,
|
|
2235
|
-
lineHeight:
|
|
2244
|
+
lineHeight: 18,
|
|
2236
2245
|
allowedFontWeights: ['semibold']
|
|
2237
2246
|
},
|
|
2238
2247
|
'label-small': {
|
|
2239
2248
|
fontSize: 12,
|
|
2240
|
-
lineHeight:
|
|
2249
|
+
lineHeight: 14,
|
|
2241
2250
|
allowedFontWeights: ['semibold']
|
|
2242
2251
|
}
|
|
2243
2252
|
}
|
|
@@ -2298,10 +2307,6 @@ var typography = {
|
|
|
2298
2307
|
|
|
2299
2308
|
var picker = {
|
|
2300
2309
|
maxWidthFixed: 320,
|
|
2301
|
-
animation: {
|
|
2302
|
-
duration: 300,
|
|
2303
|
-
timingFunction: 'ease-in-out'
|
|
2304
|
-
},
|
|
2305
2310
|
ios: {
|
|
2306
2311
|
"default": _objectSpread(_objectSpread({
|
|
2307
2312
|
fontFamily: typography.types.bodies.fontFamily["native"].regular
|
|
@@ -3162,7 +3167,9 @@ function AnimatedContainer$2(_ref) {
|
|
|
3162
3167
|
},
|
|
3163
3168
|
width: width,
|
|
3164
3169
|
height: height,
|
|
3170
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3165
3171
|
alignSelf: "baseline",
|
|
3172
|
+
justifyContent: "center",
|
|
3166
3173
|
borderRadius: "kitt.button.borderRadius",
|
|
3167
3174
|
backgroundColor: currentBackgroundColor,
|
|
3168
3175
|
children: children
|
|
@@ -3861,6 +3868,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3861
3868
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3862
3869
|
minWidth: "kitt.button.minWidth",
|
|
3863
3870
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3871
|
+
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3864
3872
|
maxHeight: "kitt.button.maxHeight",
|
|
3865
3873
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3866
3874
|
onPress: onPress,
|
|
@@ -7954,24 +7962,24 @@ function FullscreenModalFooter(_ref) {
|
|
|
7954
7962
|
}));
|
|
7955
7963
|
}
|
|
7956
7964
|
|
|
7957
|
-
var styles$
|
|
7965
|
+
var styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
|
|
7958
7966
|
|
|
7959
7967
|
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7960
7968
|
var overlayClassNames = {
|
|
7961
|
-
appear: styles$
|
|
7962
|
-
appearActive: styles$
|
|
7963
|
-
enter: styles$
|
|
7964
|
-
enterActive: styles$
|
|
7965
|
-
exit: styles$
|
|
7966
|
-
exitActive: styles$
|
|
7969
|
+
appear: styles$1['overlay-enter'],
|
|
7970
|
+
appearActive: styles$1['overlay-enter-active'],
|
|
7971
|
+
enter: styles$1['overlay-enter'],
|
|
7972
|
+
enterActive: styles$1['overlay-enter-active'],
|
|
7973
|
+
exit: styles$1['overlay-exit'],
|
|
7974
|
+
exitActive: styles$1['overlay-exit-active']
|
|
7967
7975
|
};
|
|
7968
7976
|
var slideInClassNames = {
|
|
7969
|
-
appear: styles$
|
|
7970
|
-
appearActive: styles$
|
|
7971
|
-
enter: styles$
|
|
7972
|
-
enterActive: styles$
|
|
7973
|
-
exit: styles$
|
|
7974
|
-
exitActive: styles$
|
|
7977
|
+
appear: styles$1['content-enter'],
|
|
7978
|
+
appearActive: styles$1['content-enter-active'],
|
|
7979
|
+
enter: styles$1['content-enter'],
|
|
7980
|
+
enterActive: styles$1['content-enter-active'],
|
|
7981
|
+
exit: styles$1['content-exit'],
|
|
7982
|
+
exitActive: styles$1['content-exit-active']
|
|
7975
7983
|
};
|
|
7976
7984
|
function FullscreenModalAnimation(_ref) {
|
|
7977
7985
|
var children = _ref.children,
|
|
@@ -10146,6 +10154,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10146
10154
|
button: {
|
|
10147
10155
|
minWidth: theme.button.minWidth,
|
|
10148
10156
|
maxWidth: theme.button.maxWidth,
|
|
10157
|
+
minHeight: {
|
|
10158
|
+
"default": theme.button.minHeight["default"],
|
|
10159
|
+
medium: theme.button.minHeight.medium
|
|
10160
|
+
},
|
|
10149
10161
|
maxHeight: theme.button.maxHeight,
|
|
10150
10162
|
height: {
|
|
10151
10163
|
"default": theme.button.height["default"],
|
|
@@ -10762,6 +10774,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10762
10774
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
|
|
10763
10775
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
|
|
10764
10776
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
|
|
10777
|
+
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
|
|
10765
10778
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
|
|
10766
10779
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
|
|
10767
10780
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
|
|
@@ -10785,6 +10798,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10785
10798
|
'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
|
|
10786
10799
|
'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
|
|
10787
10800
|
'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
|
|
10801
|
+
'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
|
|
10788
10802
|
'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
|
|
10789
10803
|
'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
|
|
10790
10804
|
'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
|
|
@@ -11734,8 +11748,6 @@ function PageLoader() {
|
|
|
11734
11748
|
});
|
|
11735
11749
|
}
|
|
11736
11750
|
|
|
11737
|
-
var styles$1 = {"picker-enter":"Picker-module_picker-enter__Dzs-s","picker-enter-active":"Picker-module_picker-enter-active__0hxR5","picker-exit":"Picker-module_picker-exit__Z1BjM","picker-exit-active":"Picker-module_picker-exit-active__x2C8Q"};
|
|
11738
|
-
|
|
11739
11751
|
function getBackgroundColor(_ref) {
|
|
11740
11752
|
var isSelected = _ref.isSelected,
|
|
11741
11753
|
isHighlighted = _ref.isHighlighted,
|
|
@@ -11817,12 +11829,10 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11817
11829
|
var _excluded$9 = ["onClick"],
|
|
11818
11830
|
_excluded2$2 = ["ref"],
|
|
11819
11831
|
_excluded3$2 = ["onClick", "aria-selected"];
|
|
11820
|
-
var
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
exitActive: styles$1['picker-exit-active']
|
|
11825
|
-
};
|
|
11832
|
+
var enter = "kitt-u_enter_ereraf";
|
|
11833
|
+
var enterActive = "kitt-u_enterActive_e1jmsjrm";
|
|
11834
|
+
var exit = "kitt-u_exit_e1mwnccz";
|
|
11835
|
+
var exitActive = "kitt-u_exitActive_e1004d1h";
|
|
11826
11836
|
function Picker(_ref) {
|
|
11827
11837
|
var _refs$reference$curre;
|
|
11828
11838
|
var children = _ref.children,
|
|
@@ -11909,12 +11919,6 @@ function Picker(_ref) {
|
|
|
11909
11919
|
menuRef(currentRef);
|
|
11910
11920
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11911
11921
|
}, []);
|
|
11912
|
-
var theme = useTheme();
|
|
11913
|
-
var animation = theme.kitt.picker.animation;
|
|
11914
|
-
var cssVariables = {
|
|
11915
|
-
'--overlay-duration': "".concat(animation.duration, "ms"),
|
|
11916
|
-
'--overlay-timing-function': animation.timingFunction
|
|
11917
|
-
};
|
|
11918
11922
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11919
11923
|
children: [/*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
11920
11924
|
width: "fit-content"
|
|
@@ -11958,50 +11962,50 @@ function Picker(_ref) {
|
|
|
11958
11962
|
transitionTimingFunction: 'ease-in-out'
|
|
11959
11963
|
}
|
|
11960
11964
|
},
|
|
11961
|
-
children: /*#__PURE__*/jsx(
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11965
|
+
children: /*#__PURE__*/jsx(CSSTransition, {
|
|
11966
|
+
unmountOnExit: true,
|
|
11967
|
+
nodeRef: nodeRef,
|
|
11968
|
+
timeout: 300,
|
|
11969
|
+
"in": isOpen,
|
|
11970
|
+
classNames: {
|
|
11971
|
+
enter: enter,
|
|
11972
|
+
enterActive: enterActive,
|
|
11973
|
+
exit: exit,
|
|
11974
|
+
exitActive: exitActive
|
|
11975
|
+
},
|
|
11976
|
+
children: /*#__PURE__*/jsx(View, {
|
|
11977
|
+
ref: nodeRef,
|
|
11978
|
+
paddingY: "kitt.2",
|
|
11979
|
+
children: childrenArray.map(function (child, index) {
|
|
11980
|
+
var currentValue = items[index];
|
|
11981
|
+
if (currentValue === undefined) throw new Error("Picker: No value found for item at index ".concat(index));
|
|
11982
|
+
var _getItemProps = getItemProps({
|
|
11983
|
+
item: currentValue,
|
|
11984
|
+
index: index,
|
|
11985
|
+
disabled: disabled
|
|
11986
|
+
}),
|
|
11987
|
+
onClick = _getItemProps.onClick,
|
|
11988
|
+
ariaSelected = _getItemProps['aria-selected'],
|
|
11989
|
+
itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
|
|
11990
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
11991
|
+
accessibilityState: {
|
|
11992
|
+
selected: ariaSelected
|
|
11993
|
+
},
|
|
11994
|
+
onPress: onClick,
|
|
11995
|
+
children: function (_ref2) {
|
|
11996
|
+
var isHovered = _ref2.isHovered,
|
|
11997
|
+
isFocused = _ref2.isFocused,
|
|
11998
|
+
isPressed = _ref2.isPressed;
|
|
11999
|
+
return /*#__PURE__*/jsx(PickerItem, {
|
|
12000
|
+
isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
|
|
12001
|
+
isHighlighted: highlightedIndex === index,
|
|
12002
|
+
isHovered: isHovered,
|
|
12003
|
+
isFocused: isFocused,
|
|
12004
|
+
isPressed: isPressed,
|
|
12005
|
+
children: child
|
|
12006
|
+
});
|
|
11976
12007
|
}
|
|
11977
|
-
|
|
11978
|
-
item: currentValue,
|
|
11979
|
-
index: index,
|
|
11980
|
-
disabled: disabled
|
|
11981
|
-
}),
|
|
11982
|
-
onClick = _getItemProps.onClick,
|
|
11983
|
-
ariaSelected = _getItemProps['aria-selected'],
|
|
11984
|
-
itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
|
|
11985
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
11986
|
-
accessibilityState: {
|
|
11987
|
-
selected: ariaSelected
|
|
11988
|
-
},
|
|
11989
|
-
onPress: onClick,
|
|
11990
|
-
children: function (_ref2) {
|
|
11991
|
-
var isHovered = _ref2.isHovered,
|
|
11992
|
-
isFocused = _ref2.isFocused,
|
|
11993
|
-
isPressed = _ref2.isPressed;
|
|
11994
|
-
return /*#__PURE__*/jsx(PickerItem, {
|
|
11995
|
-
isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
|
|
11996
|
-
isHighlighted: highlightedIndex === index,
|
|
11997
|
-
isHovered: isHovered,
|
|
11998
|
-
isFocused: isFocused,
|
|
11999
|
-
isPressed: isPressed,
|
|
12000
|
-
children: child
|
|
12001
|
-
});
|
|
12002
|
-
}
|
|
12003
|
-
}), itemProps.id);
|
|
12004
|
-
})
|
|
12008
|
+
}), itemProps.id);
|
|
12005
12009
|
})
|
|
12006
12010
|
})
|
|
12007
12011
|
})
|
|
@@ -12625,7 +12629,7 @@ function StoryTitleLevel4(_ref4) {
|
|
|
12625
12629
|
return /*#__PURE__*/jsx(View, {
|
|
12626
12630
|
marginBottom: 10,
|
|
12627
12631
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
12628
|
-
base: "
|
|
12632
|
+
base: "body-l",
|
|
12629
12633
|
color: useStoryBlockColor(color),
|
|
12630
12634
|
numberOfLines: numberOfLines,
|
|
12631
12635
|
children: children
|
|
@@ -13178,7 +13182,7 @@ function ToastContent(_ref) {
|
|
|
13178
13182
|
flexGrow: 1,
|
|
13179
13183
|
flexShrink: 1,
|
|
13180
13184
|
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
13181
|
-
base: "
|
|
13185
|
+
base: "body-m",
|
|
13182
13186
|
color: "white",
|
|
13183
13187
|
children: title
|
|
13184
13188
|
}) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -13194,7 +13198,7 @@ function ToastContent(_ref) {
|
|
|
13194
13198
|
borderColor: "white",
|
|
13195
13199
|
onPress: onPress,
|
|
13196
13200
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
13197
|
-
base: "
|
|
13201
|
+
base: "body-m",
|
|
13198
13202
|
color: "white",
|
|
13199
13203
|
children: actionLabel
|
|
13200
13204
|
})
|