@ornikar/kitt-universal 32.4.0 → 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.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 +18 -0
- package/dist/definitions/Highlight/Highlight.d.ts +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +21 -8
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +21 -8
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +21 -8
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +22 -4
- package/dist/index-node-22.17.cjs.web.js +96 -71
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +21 -8
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +22 -4
- package/dist/index-node-22.17.es.web.mjs +96 -71
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +21 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +91 -68
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +9 -4
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +9 -4
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +9 -4
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +9 -4
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +22 -4
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.es.web.js
CHANGED
|
@@ -1070,10 +1070,10 @@ var autocomplete = {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
|
|
1072
1072
|
var checkbox = {
|
|
1073
|
-
borderWidth:
|
|
1074
|
-
borderRadius:
|
|
1075
|
-
height:
|
|
1076
|
-
width:
|
|
1073
|
+
borderWidth: 1,
|
|
1074
|
+
borderRadius: 4,
|
|
1075
|
+
height: 24,
|
|
1076
|
+
width: 24,
|
|
1077
1077
|
iconSize: 14,
|
|
1078
1078
|
markColor: colors.uiBackgroundLight,
|
|
1079
1079
|
textSpacing: 10,
|
|
@@ -2018,6 +2018,7 @@ var highlight = {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
},
|
|
2020
2020
|
padding: {
|
|
2021
|
+
small: spacing * 2,
|
|
2021
2022
|
medium: spacing * 4,
|
|
2022
2023
|
large: spacing * 6
|
|
2023
2024
|
}
|
|
@@ -2297,6 +2298,10 @@ var typography = {
|
|
|
2297
2298
|
|
|
2298
2299
|
var picker = {
|
|
2299
2300
|
maxWidthFixed: 320,
|
|
2301
|
+
animation: {
|
|
2302
|
+
duration: 300,
|
|
2303
|
+
timingFunction: 'ease-in-out'
|
|
2304
|
+
},
|
|
2300
2305
|
ios: {
|
|
2301
2306
|
"default": _objectSpread(_objectSpread({
|
|
2302
2307
|
fontFamily: typography.types.bodies.fontFamily["native"].regular
|
|
@@ -7949,24 +7954,24 @@ function FullscreenModalFooter(_ref) {
|
|
|
7949
7954
|
}));
|
|
7950
7955
|
}
|
|
7951
7956
|
|
|
7952
|
-
var styles$
|
|
7957
|
+
var styles$2 = {"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"};
|
|
7953
7958
|
|
|
7954
7959
|
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7955
7960
|
var overlayClassNames = {
|
|
7956
|
-
appear: styles$
|
|
7957
|
-
appearActive: styles$
|
|
7958
|
-
enter: styles$
|
|
7959
|
-
enterActive: styles$
|
|
7960
|
-
exit: styles$
|
|
7961
|
-
exitActive: styles$
|
|
7961
|
+
appear: styles$2['overlay-enter'],
|
|
7962
|
+
appearActive: styles$2['overlay-enter-active'],
|
|
7963
|
+
enter: styles$2['overlay-enter'],
|
|
7964
|
+
enterActive: styles$2['overlay-enter-active'],
|
|
7965
|
+
exit: styles$2['overlay-exit'],
|
|
7966
|
+
exitActive: styles$2['overlay-exit-active']
|
|
7962
7967
|
};
|
|
7963
7968
|
var slideInClassNames = {
|
|
7964
|
-
appear: styles$
|
|
7965
|
-
appearActive: styles$
|
|
7966
|
-
enter: styles$
|
|
7967
|
-
enterActive: styles$
|
|
7968
|
-
exit: styles$
|
|
7969
|
-
exitActive: styles$
|
|
7969
|
+
appear: styles$2['content-enter'],
|
|
7970
|
+
appearActive: styles$2['content-enter-active'],
|
|
7971
|
+
enter: styles$2['content-enter'],
|
|
7972
|
+
enterActive: styles$2['content-enter-active'],
|
|
7973
|
+
exit: styles$2['content-exit'],
|
|
7974
|
+
exitActive: styles$2['content-exit-active']
|
|
7970
7975
|
};
|
|
7971
7976
|
function FullscreenModalAnimation(_ref) {
|
|
7972
7977
|
var children = _ref.children,
|
|
@@ -8207,6 +8212,9 @@ function useNativeAnimation$1() {
|
|
|
8207
8212
|
};
|
|
8208
8213
|
}
|
|
8209
8214
|
|
|
8215
|
+
var getTitleTypographyType = function (size) {
|
|
8216
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8217
|
+
};
|
|
8210
8218
|
function Highlight(_ref) {
|
|
8211
8219
|
var _ref$variant = _ref.variant,
|
|
8212
8220
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
@@ -8234,6 +8242,11 @@ function Highlight(_ref) {
|
|
|
8234
8242
|
isInitialRender = _useState6[0],
|
|
8235
8243
|
setIsInitialRender = _useState6[1];
|
|
8236
8244
|
var highlightStyle = {
|
|
8245
|
+
small: {
|
|
8246
|
+
marginBottom: 'kitt.1',
|
|
8247
|
+
spaceBetween: 'kitt.2',
|
|
8248
|
+
contentMarginY: 8
|
|
8249
|
+
},
|
|
8237
8250
|
medium: {
|
|
8238
8251
|
marginBottom: 'kitt.1',
|
|
8239
8252
|
spaceBetween: 'kitt.2',
|
|
@@ -8275,8 +8288,8 @@ function Highlight(_ref) {
|
|
|
8275
8288
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8276
8289
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8277
8290
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8278
|
-
variant: "
|
|
8279
|
-
base:
|
|
8291
|
+
variant: "semibold",
|
|
8292
|
+
base: getTitleTypographyType(size),
|
|
8280
8293
|
ellipsizeMode: "clip",
|
|
8281
8294
|
children: title
|
|
8282
8295
|
})
|
|
@@ -8310,8 +8323,8 @@ function Highlight(_ref) {
|
|
|
8310
8323
|
flexShrink: 1,
|
|
8311
8324
|
width: "100%",
|
|
8312
8325
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8313
|
-
variant: "
|
|
8314
|
-
base:
|
|
8326
|
+
variant: "semibold",
|
|
8327
|
+
base: getTitleTypographyType(size),
|
|
8315
8328
|
ellipsizeMode: "clip",
|
|
8316
8329
|
children: title
|
|
8317
8330
|
})
|
|
@@ -11721,6 +11734,8 @@ function PageLoader() {
|
|
|
11721
11734
|
});
|
|
11722
11735
|
}
|
|
11723
11736
|
|
|
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
|
+
|
|
11724
11739
|
function getBackgroundColor(_ref) {
|
|
11725
11740
|
var isSelected = _ref.isSelected,
|
|
11726
11741
|
isHighlighted = _ref.isHighlighted,
|
|
@@ -11802,10 +11817,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11802
11817
|
var _excluded$9 = ["onClick"],
|
|
11803
11818
|
_excluded2$2 = ["ref"],
|
|
11804
11819
|
_excluded3$2 = ["onClick", "aria-selected"];
|
|
11805
|
-
var
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11820
|
+
var pickerClassNames = {
|
|
11821
|
+
enter: styles$1['picker-enter'],
|
|
11822
|
+
enterActive: styles$1['picker-enter-active'],
|
|
11823
|
+
exit: styles$1['picker-exit'],
|
|
11824
|
+
exitActive: styles$1['picker-exit-active']
|
|
11825
|
+
};
|
|
11809
11826
|
function Picker(_ref) {
|
|
11810
11827
|
var _refs$reference$curre;
|
|
11811
11828
|
var children = _ref.children,
|
|
@@ -11892,6 +11909,12 @@ function Picker(_ref) {
|
|
|
11892
11909
|
menuRef(currentRef);
|
|
11893
11910
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11894
11911
|
}, []);
|
|
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
|
+
};
|
|
11895
11918
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11896
11919
|
children: [/*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
11897
11920
|
width: "fit-content"
|
|
@@ -11935,50 +11958,50 @@ function Picker(_ref) {
|
|
|
11935
11958
|
transitionTimingFunction: 'ease-in-out'
|
|
11936
11959
|
}
|
|
11937
11960
|
},
|
|
11938
|
-
children: /*#__PURE__*/jsx(
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
var currentValue = items[index];
|
|
11954
|
-
if (currentValue === undefined) throw new Error("Picker: No value found for item at index ".concat(index));
|
|
11955
|
-
var _getItemProps = getItemProps({
|
|
11956
|
-
item: currentValue,
|
|
11957
|
-
index: index,
|
|
11958
|
-
disabled: disabled
|
|
11959
|
-
}),
|
|
11960
|
-
onClick = _getItemProps.onClick,
|
|
11961
|
-
ariaSelected = _getItemProps['aria-selected'],
|
|
11962
|
-
itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
|
|
11963
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
11964
|
-
accessibilityState: {
|
|
11965
|
-
selected: ariaSelected
|
|
11966
|
-
},
|
|
11967
|
-
onPress: onClick,
|
|
11968
|
-
children: function (_ref2) {
|
|
11969
|
-
var isHovered = _ref2.isHovered,
|
|
11970
|
-
isFocused = _ref2.isFocused,
|
|
11971
|
-
isPressed = _ref2.isPressed;
|
|
11972
|
-
return /*#__PURE__*/jsx(PickerItem, {
|
|
11973
|
-
isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
|
|
11974
|
-
isHighlighted: highlightedIndex === index,
|
|
11975
|
-
isHovered: isHovered,
|
|
11976
|
-
isFocused: isFocused,
|
|
11977
|
-
isPressed: isPressed,
|
|
11978
|
-
children: child
|
|
11979
|
-
});
|
|
11961
|
+
children: /*#__PURE__*/jsx("div", {
|
|
11962
|
+
style: cssVariables,
|
|
11963
|
+
children: /*#__PURE__*/jsx(CSSTransition, {
|
|
11964
|
+
unmountOnExit: true,
|
|
11965
|
+
nodeRef: nodeRef,
|
|
11966
|
+
timeout: 300,
|
|
11967
|
+
"in": isOpen,
|
|
11968
|
+
classNames: pickerClassNames,
|
|
11969
|
+
children: /*#__PURE__*/jsx(View, {
|
|
11970
|
+
ref: nodeRef,
|
|
11971
|
+
paddingY: "kitt.2",
|
|
11972
|
+
children: childrenArray.map(function (child, index) {
|
|
11973
|
+
var currentValue = items[index];
|
|
11974
|
+
if (currentValue === undefined) {
|
|
11975
|
+
throw new Error("Picker: No value found for item at index ".concat(index));
|
|
11980
11976
|
}
|
|
11981
|
-
|
|
11977
|
+
var _getItemProps = getItemProps({
|
|
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
|
+
})
|
|
11982
12005
|
})
|
|
11983
12006
|
})
|
|
11984
12007
|
})
|