@pagopa/io-app-design-system 4.4.4 → 4.4.6
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/lib/commonjs/components/numberpad/NumberButton.js +9 -2
- package/lib/commonjs/components/numberpad/NumberButton.js.map +1 -1
- package/lib/commonjs/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/lib/commonjs/components/searchInput/SearchInput.js +15 -4
- package/lib/commonjs/components/searchInput/SearchInput.js.map +1 -1
- package/lib/module/components/numberpad/NumberButton.js +10 -3
- package/lib/module/components/numberpad/NumberButton.js.map +1 -1
- package/lib/module/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/lib/module/components/searchInput/SearchInput.js +15 -4
- package/lib/module/components/searchInput/SearchInput.js.map +1 -1
- package/lib/typescript/components/numberpad/NumberButton.d.ts.map +1 -1
- package/lib/typescript/components/searchInput/SearchInput.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/numberpad/NumberButton.tsx +13 -2
- package/src/components/numberpad/__test__/__snapshots__/NumberPad.test.tsx.snap +40 -20
- package/src/components/searchInput/SearchInput.tsx +25 -3
|
@@ -73,8 +73,15 @@ const NumberButton = /*#__PURE__*/(0, _react.memo)(({
|
|
|
73
73
|
onPress: handleOnPress
|
|
74
74
|
}, /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
75
75
|
style: [_core.IONumberPadButtonStyles.button, _core.IONumberPadButtonStyles.circularShape, _core.IONumberPadButtonStyles.buttonSize, pressedAnimationStyle, !reducedMotion && scaleAnimatedStyle]
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_typography.
|
|
77
|
-
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.IOText, {
|
|
77
|
+
size: 22,
|
|
78
|
+
font: isExperimental ? "Titillio" : "TitilliumSansPro",
|
|
79
|
+
weight: "Semibold",
|
|
80
|
+
color: colors.foreground,
|
|
81
|
+
style: {
|
|
82
|
+
// Additional prop for Android
|
|
83
|
+
textAlignVertical: "center"
|
|
84
|
+
}
|
|
78
85
|
}, number)));
|
|
79
86
|
});
|
|
80
87
|
exports.NumberButton = NumberButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_hooks","_typography","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","colorMap","light","background","IOColors","pressed","foreground","dark","legacyColorMap","hexToRgba","black","white","NumberButton","memo","number","variant","onPress","progress","onPressIn","onPressOut","scaleAnimatedStyle","useScaleAnimation","reducedMotion","useReducedMotion","isExperimental","useIOExperimentalDesign","colors","useMemo","pressedAnimationStyle","useAnimatedStyle","backgroundColor","interpolateColor","value","handleOnPress","useCallback","createElement","Pressable","accessible","accessibilityRole","View","style","IONumberPadButtonStyles","button","circularShape","buttonSize","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_hooks","_typography","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","colorMap","light","background","IOColors","pressed","foreground","dark","legacyColorMap","hexToRgba","black","white","NumberButton","memo","number","variant","onPress","progress","onPressIn","onPressOut","scaleAnimatedStyle","useScaleAnimation","reducedMotion","useReducedMotion","isExperimental","useIOExperimentalDesign","colors","useMemo","pressedAnimationStyle","useAnimatedStyle","backgroundColor","interpolateColor","value","handleOnPress","useCallback","createElement","Pressable","accessible","accessibilityRole","View","style","IONumberPadButtonStyles","button","circularShape","buttonSize","IOText","size","font","weight","color","textAlignVertical","exports"],"sourceRoot":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,CACN,CAAC;AAEhB,CACF,CAAC;AAACqC,OAAA,CAAAvC,YAAA,GAAAA,YAAA"}
|
|
@@ -93,7 +93,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
93
93
|
>
|
|
94
94
|
<Text
|
|
95
95
|
allowFontScaling={true}
|
|
96
|
-
dynamicTypeRamp="title2"
|
|
97
96
|
maxFontSizeMultiplier={1.5}
|
|
98
97
|
style={
|
|
99
98
|
[
|
|
@@ -104,7 +103,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
104
103
|
"fontSize": 22,
|
|
105
104
|
"fontStyle": "normal",
|
|
106
105
|
"fontWeight": "600",
|
|
107
|
-
"lineHeight":
|
|
106
|
+
"lineHeight": undefined,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"textAlignVertical": "center",
|
|
108
110
|
},
|
|
109
111
|
]
|
|
110
112
|
}
|
|
@@ -174,7 +176,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
174
176
|
>
|
|
175
177
|
<Text
|
|
176
178
|
allowFontScaling={true}
|
|
177
|
-
dynamicTypeRamp="title2"
|
|
178
179
|
maxFontSizeMultiplier={1.5}
|
|
179
180
|
style={
|
|
180
181
|
[
|
|
@@ -185,7 +186,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
185
186
|
"fontSize": 22,
|
|
186
187
|
"fontStyle": "normal",
|
|
187
188
|
"fontWeight": "600",
|
|
188
|
-
"lineHeight":
|
|
189
|
+
"lineHeight": undefined,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"textAlignVertical": "center",
|
|
189
193
|
},
|
|
190
194
|
]
|
|
191
195
|
}
|
|
@@ -255,7 +259,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
255
259
|
>
|
|
256
260
|
<Text
|
|
257
261
|
allowFontScaling={true}
|
|
258
|
-
dynamicTypeRamp="title2"
|
|
259
262
|
maxFontSizeMultiplier={1.5}
|
|
260
263
|
style={
|
|
261
264
|
[
|
|
@@ -266,7 +269,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
266
269
|
"fontSize": 22,
|
|
267
270
|
"fontStyle": "normal",
|
|
268
271
|
"fontWeight": "600",
|
|
269
|
-
"lineHeight":
|
|
272
|
+
"lineHeight": undefined,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"textAlignVertical": "center",
|
|
270
276
|
},
|
|
271
277
|
]
|
|
272
278
|
}
|
|
@@ -352,7 +358,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
352
358
|
>
|
|
353
359
|
<Text
|
|
354
360
|
allowFontScaling={true}
|
|
355
|
-
dynamicTypeRamp="title2"
|
|
356
361
|
maxFontSizeMultiplier={1.5}
|
|
357
362
|
style={
|
|
358
363
|
[
|
|
@@ -363,7 +368,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
363
368
|
"fontSize": 22,
|
|
364
369
|
"fontStyle": "normal",
|
|
365
370
|
"fontWeight": "600",
|
|
366
|
-
"lineHeight":
|
|
371
|
+
"lineHeight": undefined,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"textAlignVertical": "center",
|
|
367
375
|
},
|
|
368
376
|
]
|
|
369
377
|
}
|
|
@@ -433,7 +441,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
433
441
|
>
|
|
434
442
|
<Text
|
|
435
443
|
allowFontScaling={true}
|
|
436
|
-
dynamicTypeRamp="title2"
|
|
437
444
|
maxFontSizeMultiplier={1.5}
|
|
438
445
|
style={
|
|
439
446
|
[
|
|
@@ -444,7 +451,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
444
451
|
"fontSize": 22,
|
|
445
452
|
"fontStyle": "normal",
|
|
446
453
|
"fontWeight": "600",
|
|
447
|
-
"lineHeight":
|
|
454
|
+
"lineHeight": undefined,
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"textAlignVertical": "center",
|
|
448
458
|
},
|
|
449
459
|
]
|
|
450
460
|
}
|
|
@@ -514,7 +524,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
514
524
|
>
|
|
515
525
|
<Text
|
|
516
526
|
allowFontScaling={true}
|
|
517
|
-
dynamicTypeRamp="title2"
|
|
518
527
|
maxFontSizeMultiplier={1.5}
|
|
519
528
|
style={
|
|
520
529
|
[
|
|
@@ -525,7 +534,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
525
534
|
"fontSize": 22,
|
|
526
535
|
"fontStyle": "normal",
|
|
527
536
|
"fontWeight": "600",
|
|
528
|
-
"lineHeight":
|
|
537
|
+
"lineHeight": undefined,
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"textAlignVertical": "center",
|
|
529
541
|
},
|
|
530
542
|
]
|
|
531
543
|
}
|
|
@@ -611,7 +623,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
611
623
|
>
|
|
612
624
|
<Text
|
|
613
625
|
allowFontScaling={true}
|
|
614
|
-
dynamicTypeRamp="title2"
|
|
615
626
|
maxFontSizeMultiplier={1.5}
|
|
616
627
|
style={
|
|
617
628
|
[
|
|
@@ -622,7 +633,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
622
633
|
"fontSize": 22,
|
|
623
634
|
"fontStyle": "normal",
|
|
624
635
|
"fontWeight": "600",
|
|
625
|
-
"lineHeight":
|
|
636
|
+
"lineHeight": undefined,
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"textAlignVertical": "center",
|
|
626
640
|
},
|
|
627
641
|
]
|
|
628
642
|
}
|
|
@@ -692,7 +706,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
692
706
|
>
|
|
693
707
|
<Text
|
|
694
708
|
allowFontScaling={true}
|
|
695
|
-
dynamicTypeRamp="title2"
|
|
696
709
|
maxFontSizeMultiplier={1.5}
|
|
697
710
|
style={
|
|
698
711
|
[
|
|
@@ -703,7 +716,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
703
716
|
"fontSize": 22,
|
|
704
717
|
"fontStyle": "normal",
|
|
705
718
|
"fontWeight": "600",
|
|
706
|
-
"lineHeight":
|
|
719
|
+
"lineHeight": undefined,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"textAlignVertical": "center",
|
|
707
723
|
},
|
|
708
724
|
]
|
|
709
725
|
}
|
|
@@ -773,7 +789,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
773
789
|
>
|
|
774
790
|
<Text
|
|
775
791
|
allowFontScaling={true}
|
|
776
|
-
dynamicTypeRamp="title2"
|
|
777
792
|
maxFontSizeMultiplier={1.5}
|
|
778
793
|
style={
|
|
779
794
|
[
|
|
@@ -784,7 +799,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
784
799
|
"fontSize": 22,
|
|
785
800
|
"fontStyle": "normal",
|
|
786
801
|
"fontWeight": "600",
|
|
787
|
-
"lineHeight":
|
|
802
|
+
"lineHeight": undefined,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"textAlignVertical": "center",
|
|
788
806
|
},
|
|
789
807
|
]
|
|
790
808
|
}
|
|
@@ -1011,7 +1029,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1011
1029
|
>
|
|
1012
1030
|
<Text
|
|
1013
1031
|
allowFontScaling={true}
|
|
1014
|
-
dynamicTypeRamp="title2"
|
|
1015
1032
|
maxFontSizeMultiplier={1.5}
|
|
1016
1033
|
style={
|
|
1017
1034
|
[
|
|
@@ -1022,7 +1039,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1022
1039
|
"fontSize": 22,
|
|
1023
1040
|
"fontStyle": "normal",
|
|
1024
1041
|
"fontWeight": "600",
|
|
1025
|
-
"lineHeight":
|
|
1042
|
+
"lineHeight": undefined,
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"textAlignVertical": "center",
|
|
1026
1046
|
},
|
|
1027
1047
|
]
|
|
1028
1048
|
}
|
|
@@ -9,8 +9,8 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
10
|
var _core = require("../../core");
|
|
11
11
|
var _fonts = require("../../utils/fonts");
|
|
12
|
-
var _buttons = require("../buttons");
|
|
13
12
|
var _icons = require("../icons");
|
|
13
|
+
var _typography = require("../typography");
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
16
|
/* eslint-disable functional/immutable-data */
|
|
@@ -170,10 +170,21 @@ const SearchInput = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
170
170
|
}))), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
171
171
|
onLayout: getCancelButtonWidth,
|
|
172
172
|
style: [styles.cancelButton, cancelButtonAnimatedStyle]
|
|
173
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
174
|
-
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
174
|
+
accessibilityRole: "button",
|
|
175
|
+
accessibilityLabel: cancelButtonLabel,
|
|
175
176
|
onPress: cancel
|
|
176
|
-
}
|
|
177
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.IOText, {
|
|
178
|
+
color: theme["interactiveElem-default"],
|
|
179
|
+
font: isExperimental ? "Titillio" : "TitilliumSansPro",
|
|
180
|
+
weight: "Semibold",
|
|
181
|
+
size: _typography.buttonTextFontSize,
|
|
182
|
+
lineHeight: _typography.buttonTextLineHeight,
|
|
183
|
+
numberOfLines: 1,
|
|
184
|
+
accessible: false,
|
|
185
|
+
accessibilityElementsHidden: true,
|
|
186
|
+
importantForAccessibility: "no-hide-descendants"
|
|
187
|
+
}, cancelButtonLabel))));
|
|
177
188
|
return pressable ? /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
178
189
|
accessibilityRole: "button",
|
|
179
190
|
accessibilityLabel: placeholder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_fonts","_buttons","_icons","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","IOColors","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","Animated","createAnimatedComponent","TextInput","AnimatedPressable","Pressable","inputWithTimingConfig","duration","easing","Easing","inOut","cubic","SearchInput","forwardRef","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","placeholder","autoFocus","keepCancelVisible","onCancel","onChangeText","pressable","testID","value","ref","searchInputRef","useRef","theme","useIOTheme","isExperimental","useIOExperimentalDesign","inputCaretColor","inputWidth","Dimensions","width","IOVisualCostants","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","useState","getCancelButtonWidth","nativeEvent","layout","inputWidthWithCancel","useImperativeHandle","focus","_searchInputRef$curre","current","inputAnimatedWidth","useSharedValue","isFocused","animatedStyle","useAnimatedStyle","withTiming","backgroundColor","interpolateColor","cancelButtonAnimatedStyle","showCancelButton","transform","translateX","interpolate","Extrapolation","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","useCallback","event","clear","_searchInputRef$curre2","handleChangeText","text","renderSearchBar","createElement","View","style","styles","searchBar","searchInput","pointerEvents","iconContainer","Icon","allowFontScaling","name","size","color","inputMode","returnKeyType","accessibilityRole","textInput","Platform","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","ButtonLink","label","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","makeFontStyleObject","undefined","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAaA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAUA,IAAAG,KAAA,GAAAH,OAAA;AAOA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAiD,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAa,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5B,iBAAiB,EAAE;IACjB,GAAG,IAAA2B,0BAAmB,EACpBpI,wBAAwB,EACxB,kBAAkB,EAClBqI,SAAS,EACT,UACF;EACF,CAAC;EACDlB,YAAY,EAAE;IACZmB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRR,WAAW,EAAE9H;EACf,CAAC;EACD8G,WAAW,EAAE;IACXyB,UAAU,EAAE5I;EACd;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_core","_fonts","_icons","_typography","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","IOColors","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","Animated","createAnimatedComponent","TextInput","AnimatedPressable","Pressable","inputWithTimingConfig","duration","easing","Easing","inOut","cubic","SearchInput","forwardRef","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","placeholder","autoFocus","keepCancelVisible","onCancel","onChangeText","pressable","testID","value","ref","searchInputRef","useRef","theme","useIOTheme","isExperimental","useIOExperimentalDesign","inputCaretColor","inputWidth","Dimensions","width","IOVisualCostants","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","useState","getCancelButtonWidth","nativeEvent","layout","inputWidthWithCancel","useImperativeHandle","focus","_searchInputRef$curre","current","inputAnimatedWidth","useSharedValue","isFocused","animatedStyle","useAnimatedStyle","withTiming","backgroundColor","interpolateColor","cancelButtonAnimatedStyle","showCancelButton","transform","translateX","interpolate","Extrapolation","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","useCallback","event","clear","_searchInputRef$curre2","handleChangeText","text","renderSearchBar","createElement","View","style","styles","searchBar","searchInput","pointerEvents","iconContainer","Icon","allowFontScaling","name","size","color","inputMode","returnKeyType","accessibilityRole","textInput","Platform","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","IOText","font","weight","buttonTextFontSize","lineHeight","buttonTextLineHeight","numberOfLines","accessible","accessibilityElementsHidden","importantForAccessibility","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","makeFontStyleObject","undefined","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAaA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAUA,IAAAG,KAAA,GAAAH,OAAA;AAOA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAIuB,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAa,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,Y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a,EAAE;IACbgD,WAAW,EAAE/I;EACf,CAAC;EACD0B,WAAW,EAAE;IACX,GAAG,IAAAsH,0BAAmB,EACpB5I,wBAAwB,EACxB,UAAU,EACV6I,SAAS,EACT,QACF;EACF,CAAC;EACDpC,iBAAiB,EAAE;IACjB,GAAG,IAAAmC,0BAAmB,EACpB5I,wBAAwB,EACxB,kBAAkB,EAClB6I,SAAS,EACT,UACF;EACF,CAAC;EACD1B,YAAY,EAAE;IACZ2B,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRR,WAAW,EAAEtI;EACf,CAAC;EACD8G,WAAW,EAAE;IACXiC,UAAU,EAAEpJ;EACd;AACF,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Pressable } from "react-native";
|
|
|
3
3
|
import Animated, { interpolateColor, useAnimatedStyle, useReducedMotion } from "react-native-reanimated";
|
|
4
4
|
import { IOColors, IONumberPadButtonStyles, hexToRgba, useIOExperimentalDesign } from "../../core";
|
|
5
5
|
import { useScaleAnimation } from "../../hooks";
|
|
6
|
-
import {
|
|
6
|
+
import { IOText } from "../typography";
|
|
7
7
|
const colorMap = {
|
|
8
8
|
light: {
|
|
9
9
|
background: IOColors["grey-50"],
|
|
@@ -65,8 +65,15 @@ export const NumberButton = /*#__PURE__*/memo(({
|
|
|
65
65
|
onPress: handleOnPress
|
|
66
66
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
67
67
|
style: [IONumberPadButtonStyles.button, IONumberPadButtonStyles.circularShape, IONumberPadButtonStyles.buttonSize, pressedAnimationStyle, !reducedMotion && scaleAnimatedStyle]
|
|
68
|
-
}, /*#__PURE__*/React.createElement(
|
|
69
|
-
|
|
68
|
+
}, /*#__PURE__*/React.createElement(IOText, {
|
|
69
|
+
size: 22,
|
|
70
|
+
font: isExperimental ? "Titillio" : "TitilliumSansPro",
|
|
71
|
+
weight: "Semibold",
|
|
72
|
+
color: colors.foreground,
|
|
73
|
+
style: {
|
|
74
|
+
// Additional prop for Android
|
|
75
|
+
textAlignVertical: "center"
|
|
76
|
+
}
|
|
70
77
|
}, number)));
|
|
71
78
|
});
|
|
72
79
|
//# sourceMappingURL=NumberButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","Pressable","Animated","interpolateColor","useAnimatedStyle","useReducedMotion","IOColors","IONumberPadButtonStyles","hexToRgba","useIOExperimentalDesign","useScaleAnimation","
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","Pressable","Animated","interpolateColor","useAnimatedStyle","useReducedMotion","IOColors","IONumberPadButtonStyles","hexToRgba","useIOExperimentalDesign","useScaleAnimation","IOText","colorMap","light","background","pressed","foreground","dark","legacyColorMap","black","white","NumberButton","number","variant","onPress","progress","onPressIn","onPressOut","scaleAnimatedStyle","reducedMotion","isExperimental","colors","pressedAnimationStyle","backgroundColor","value","handleOnPress","createElement","accessible","accessibilityRole","View","style","button","circularShape","buttonSize","size","font","weight","color","textAlignVertical"],"sourceRoot":"../../../../src","sources":["components/numberpad/NumberButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,SAAS,QAAQ,cAAc;AACxC,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;AAChC,SACEC,QAAQ,EACRC,uBAAuB,EACvBC,SAAS,EACTC,uBAAuB,QAClB,YAAY;AACnB,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,MAAM,QAAQ,eAAe;AA2BtC,MAAMC,QAA0D,GAAG;EACjEC,KAAK,EAAE;IACLC,UAAU,EAAER,QAAQ,CAAC,SAAS,CAAC;IAC/BS,OAAO,EAAET,QAAQ,CAAC,UAAU,CAAC;IAC7BU,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,EAAE;IACJH,UAAU,EAAER,QAAQ,CAAC,YAAY,CAAC;IA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MAAM;IACtCyB,OAAO,CAACF,MAAM,CAAC;EACjB,CAAC,EAAE,CAACA,MAAM,EAAEE,OAAO,CAAC,CAAC;EAErB,oBACE3B,KAAA,CAAAuC,aAAA,CAACnC,SAAS;IACRoC,UAAU;IACVC,iBAAiB,EAAC,QAAQ;IAC1BZ,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IACvBH,OAAO,EAAEW;EAAc,gBAEvBtC,KAAA,CAAAuC,aAAA,CAAClC,QAAQ,CAACqC,IAAI;IACZC,KAAK,EAAE,CACLjC,uBAAuB,CAACkC,MAAM,EAC9BlC,uBAAuB,CAACmC,aAAa,EACrCnC,uBAAuB,CAACoC,UAAU,EAClCX,qBAAqB,EACrB,CAACH,aAAa,IAAID,kBAAkB;EACpC,gBAEF/B,KAAA,CAAAuC,aAAA,CAACzB,MAAM;IACLiC,IAAI,EAAE,EAAG;IACTC,IAAI,EAAEf,cAAc,GAAG,UAAU,GAAG,kBAAmB;IACvDgB,MAAM,EAAC,UAAU;IACjBC,KAAK,EAAEhB,MAAM,CAACf,UAAW;IACzBwB,KAAK,EAAE;MACL;MACAQ,iBAAiB,EAAE;IACrB;EAAE,GAED1B,MACK,CACK,CACN,CAAC;AAEhB,CACF,CAAC"}
|
|
@@ -93,7 +93,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
93
93
|
>
|
|
94
94
|
<Text
|
|
95
95
|
allowFontScaling={true}
|
|
96
|
-
dynamicTypeRamp="title2"
|
|
97
96
|
maxFontSizeMultiplier={1.5}
|
|
98
97
|
style={
|
|
99
98
|
[
|
|
@@ -104,7 +103,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
104
103
|
"fontSize": 22,
|
|
105
104
|
"fontStyle": "normal",
|
|
106
105
|
"fontWeight": "600",
|
|
107
|
-
"lineHeight":
|
|
106
|
+
"lineHeight": undefined,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"textAlignVertical": "center",
|
|
108
110
|
},
|
|
109
111
|
]
|
|
110
112
|
}
|
|
@@ -174,7 +176,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
174
176
|
>
|
|
175
177
|
<Text
|
|
176
178
|
allowFontScaling={true}
|
|
177
|
-
dynamicTypeRamp="title2"
|
|
178
179
|
maxFontSizeMultiplier={1.5}
|
|
179
180
|
style={
|
|
180
181
|
[
|
|
@@ -185,7 +186,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
185
186
|
"fontSize": 22,
|
|
186
187
|
"fontStyle": "normal",
|
|
187
188
|
"fontWeight": "600",
|
|
188
|
-
"lineHeight":
|
|
189
|
+
"lineHeight": undefined,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"textAlignVertical": "center",
|
|
189
193
|
},
|
|
190
194
|
]
|
|
191
195
|
}
|
|
@@ -255,7 +259,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
255
259
|
>
|
|
256
260
|
<Text
|
|
257
261
|
allowFontScaling={true}
|
|
258
|
-
dynamicTypeRamp="title2"
|
|
259
262
|
maxFontSizeMultiplier={1.5}
|
|
260
263
|
style={
|
|
261
264
|
[
|
|
@@ -266,7 +269,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
266
269
|
"fontSize": 22,
|
|
267
270
|
"fontStyle": "normal",
|
|
268
271
|
"fontWeight": "600",
|
|
269
|
-
"lineHeight":
|
|
272
|
+
"lineHeight": undefined,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"textAlignVertical": "center",
|
|
270
276
|
},
|
|
271
277
|
]
|
|
272
278
|
}
|
|
@@ -352,7 +358,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
352
358
|
>
|
|
353
359
|
<Text
|
|
354
360
|
allowFontScaling={true}
|
|
355
|
-
dynamicTypeRamp="title2"
|
|
356
361
|
maxFontSizeMultiplier={1.5}
|
|
357
362
|
style={
|
|
358
363
|
[
|
|
@@ -363,7 +368,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
363
368
|
"fontSize": 22,
|
|
364
369
|
"fontStyle": "normal",
|
|
365
370
|
"fontWeight": "600",
|
|
366
|
-
"lineHeight":
|
|
371
|
+
"lineHeight": undefined,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"textAlignVertical": "center",
|
|
367
375
|
},
|
|
368
376
|
]
|
|
369
377
|
}
|
|
@@ -433,7 +441,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
433
441
|
>
|
|
434
442
|
<Text
|
|
435
443
|
allowFontScaling={true}
|
|
436
|
-
dynamicTypeRamp="title2"
|
|
437
444
|
maxFontSizeMultiplier={1.5}
|
|
438
445
|
style={
|
|
439
446
|
[
|
|
@@ -444,7 +451,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
444
451
|
"fontSize": 22,
|
|
445
452
|
"fontStyle": "normal",
|
|
446
453
|
"fontWeight": "600",
|
|
447
|
-
"lineHeight":
|
|
454
|
+
"lineHeight": undefined,
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"textAlignVertical": "center",
|
|
448
458
|
},
|
|
449
459
|
]
|
|
450
460
|
}
|
|
@@ -514,7 +524,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
514
524
|
>
|
|
515
525
|
<Text
|
|
516
526
|
allowFontScaling={true}
|
|
517
|
-
dynamicTypeRamp="title2"
|
|
518
527
|
maxFontSizeMultiplier={1.5}
|
|
519
528
|
style={
|
|
520
529
|
[
|
|
@@ -525,7 +534,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
525
534
|
"fontSize": 22,
|
|
526
535
|
"fontStyle": "normal",
|
|
527
536
|
"fontWeight": "600",
|
|
528
|
-
"lineHeight":
|
|
537
|
+
"lineHeight": undefined,
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"textAlignVertical": "center",
|
|
529
541
|
},
|
|
530
542
|
]
|
|
531
543
|
}
|
|
@@ -611,7 +623,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
611
623
|
>
|
|
612
624
|
<Text
|
|
613
625
|
allowFontScaling={true}
|
|
614
|
-
dynamicTypeRamp="title2"
|
|
615
626
|
maxFontSizeMultiplier={1.5}
|
|
616
627
|
style={
|
|
617
628
|
[
|
|
@@ -622,7 +633,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
622
633
|
"fontSize": 22,
|
|
623
634
|
"fontStyle": "normal",
|
|
624
635
|
"fontWeight": "600",
|
|
625
|
-
"lineHeight":
|
|
636
|
+
"lineHeight": undefined,
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"textAlignVertical": "center",
|
|
626
640
|
},
|
|
627
641
|
]
|
|
628
642
|
}
|
|
@@ -692,7 +706,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
692
706
|
>
|
|
693
707
|
<Text
|
|
694
708
|
allowFontScaling={true}
|
|
695
|
-
dynamicTypeRamp="title2"
|
|
696
709
|
maxFontSizeMultiplier={1.5}
|
|
697
710
|
style={
|
|
698
711
|
[
|
|
@@ -703,7 +716,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
703
716
|
"fontSize": 22,
|
|
704
717
|
"fontStyle": "normal",
|
|
705
718
|
"fontWeight": "600",
|
|
706
|
-
"lineHeight":
|
|
719
|
+
"lineHeight": undefined,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"textAlignVertical": "center",
|
|
707
723
|
},
|
|
708
724
|
]
|
|
709
725
|
}
|
|
@@ -773,7 +789,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
773
789
|
>
|
|
774
790
|
<Text
|
|
775
791
|
allowFontScaling={true}
|
|
776
|
-
dynamicTypeRamp="title2"
|
|
777
792
|
maxFontSizeMultiplier={1.5}
|
|
778
793
|
style={
|
|
779
794
|
[
|
|
@@ -784,7 +799,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
784
799
|
"fontSize": 22,
|
|
785
800
|
"fontStyle": "normal",
|
|
786
801
|
"fontWeight": "600",
|
|
787
|
-
"lineHeight":
|
|
802
|
+
"lineHeight": undefined,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"textAlignVertical": "center",
|
|
788
806
|
},
|
|
789
807
|
]
|
|
790
808
|
}
|
|
@@ -1011,7 +1029,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1011
1029
|
>
|
|
1012
1030
|
<Text
|
|
1013
1031
|
allowFontScaling={true}
|
|
1014
|
-
dynamicTypeRamp="title2"
|
|
1015
1032
|
maxFontSizeMultiplier={1.5}
|
|
1016
1033
|
style={
|
|
1017
1034
|
[
|
|
@@ -1022,7 +1039,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1022
1039
|
"fontSize": 22,
|
|
1023
1040
|
"fontStyle": "normal",
|
|
1024
1041
|
"fontWeight": "600",
|
|
1025
|
-
"lineHeight":
|
|
1042
|
+
"lineHeight": undefined,
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"textAlignVertical": "center",
|
|
1026
1046
|
},
|
|
1027
1047
|
]
|
|
1028
1048
|
}
|
|
@@ -4,8 +4,8 @@ import { Dimensions, Platform, Pressable, StyleSheet, TextInput, View } from "re
|
|
|
4
4
|
import Animated, { Easing, Extrapolation, interpolate, interpolateColor, useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
5
5
|
import { IOColors, IOVisualCostants, useIOExperimentalDesign, useIOTheme } from "../../core";
|
|
6
6
|
import { makeFontStyleObject } from "../../utils/fonts";
|
|
7
|
-
import { ButtonLink } from "../buttons";
|
|
8
7
|
import { Icon } from "../icons";
|
|
8
|
+
import { buttonTextFontSize, buttonTextLineHeight, IOText } from "../typography";
|
|
9
9
|
|
|
10
10
|
/* Component visual attributes */
|
|
11
11
|
const inputPaddingHorizontal = 12;
|
|
@@ -162,10 +162,21 @@ export const SearchInput = /*#__PURE__*/forwardRef(({
|
|
|
162
162
|
}))), /*#__PURE__*/React.createElement(Animated.View, {
|
|
163
163
|
onLayout: getCancelButtonWidth,
|
|
164
164
|
style: [styles.cancelButton, cancelButtonAnimatedStyle]
|
|
165
|
-
}, /*#__PURE__*/React.createElement(
|
|
166
|
-
|
|
165
|
+
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
166
|
+
accessibilityRole: "button",
|
|
167
|
+
accessibilityLabel: cancelButtonLabel,
|
|
167
168
|
onPress: cancel
|
|
168
|
-
}
|
|
169
|
+
}, /*#__PURE__*/React.createElement(IOText, {
|
|
170
|
+
color: theme["interactiveElem-default"],
|
|
171
|
+
font: isExperimental ? "Titillio" : "TitilliumSansPro",
|
|
172
|
+
weight: "Semibold",
|
|
173
|
+
size: buttonTextFontSize,
|
|
174
|
+
lineHeight: buttonTextLineHeight,
|
|
175
|
+
numberOfLines: 1,
|
|
176
|
+
accessible: false,
|
|
177
|
+
accessibilityElementsHidden: true,
|
|
178
|
+
importantForAccessibility: "no-hide-descendants"
|
|
179
|
+
}, cancelButtonLabel))));
|
|
169
180
|
return pressable ? /*#__PURE__*/React.createElement(Pressable, {
|
|
170
181
|
accessibilityRole: "button",
|
|
171
182
|
accessibilityLabel: placeholder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useCallback","useImperativeHandle","useRef","useState","Dimensions","Platform","Pressable","StyleSheet","TextInput","View","Animated","Easing","Extrapolation","interpolate","interpolateColor","useAnimatedStyle","useSharedValue","withTiming","IOColors","IOVisualCostants","useIOExperimentalDesign","useIOTheme","makeFontStyleObject","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useCallback","useImperativeHandle","useRef","useState","Dimensions","Platform","Pressable","StyleSheet","TextInput","View","Animated","Easing","Extrapolation","interpolate","interpolateColor","useAnimatedStyle","useSharedValue","withTiming","IOColors","IOVisualCostants","useIOExperimentalDesign","useIOTheme","makeFontStyleObject","Icon","buttonTextFontSize","buttonTextLineHeight","IOText","inputPaddingHorizontal","inputPaddingClearButton","inputRadius","inputBgColorDefault","inputBgColorFocused","inputColorPlaceholder","iconMargin","iconColor","iconSize","iconCloseSize","inputFontSizePlaceholder","cancelButtonMargin","inputTransitionDuration","inputHeightIOS","inputHeightAndroid","AnimatedTextInput","createAnimatedComponent","AnimatedPressable","inputWithTimingConfig","duration","easing","inOut","cubic","SearchInput","accessibilityLabel","cancelButtonLabel","clearAccessibilityLabel","placeholder","autoFocus","keepCancelVisible","onCancel","onChangeText","pressable","testID","value","ref","searchInputRef","theme","isExperimental","inputCaretColor","inputWidth","get","width","appMarginDefault","cancelButtonWidth","setCancelButtonWidth","getCancelButtonWidth","nativeEvent","layout","inputWidthWithCancel","focus","_searchInputRef$curre","current","inputAnimatedWidth","isFocused","animatedStyle","backgroundColor","cancelButtonAnimatedStyle","showCancelButton","transform","translateX","CLAMP","opacity","clearButtonAnimatedStyle","showClearButton","length","scale","handleFocus","handleBlur","cancel","event","clear","_searchInputRef$curre2","handleChangeText","text","renderSearchBar","createElement","style","styles","searchBar","searchInput","pointerEvents","iconContainer","allowFontScaling","name","size","color","inputMode","returnKeyType","accessibilityRole","textInput","OS","textInputIOS","textInputAndroid","placeholderLegacy","selectionColor","cursorColor","placeholderTextColor","onFocus","onBlur","clearButton","onPress","hitSlop","onLayout","cancelButton","font","weight","lineHeight","numberOfLines","accessible","accessibilityElementsHidden","importantForAccessibility","create","flexDirection","justifyContent","alignItems","flexShrink","borderRadius","borderCurve","paddingLeft","paddingRight","flexGrow","height","marginRight","undefined","position","right","marginLeft"],"sourceRoot":"../../../../src","sources":["components/searchInput/SearchInput.tsx"],"mappings":"AAAA;AACA,OAAOA,KAAK,IACVC,UAAU,EACVC,WAAW,EACXC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAEEC,UAAU,EAIVC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,SAAS,EAETC,IAAI,QACC,cAAc;AACrB,OAAOC,QAAQ,IACb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pBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDnC,WAAW,EAAE;IACXoC,UAAU,EAAE,CAAC;IACbC,YAAY,EAAEnH,WAAW;IACzBoH,WAAW,EAAE,YAAY;IACzBL,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBI,WAAW,EAAEvH,sBAAsB;IACnCwH,YAAY,EAAEvH;EAChB,CAAC;EACDyF,SAAS,EAAE;IACT0B,UAAU,EAAE,CAAC;IACbK,QAAQ,EAAE;EACZ,CAAC;EACD7B,YAAY,EAAE;IACZ8B,MAAM,EAAE7G;EACV,CAAC;EACDgF,gBAAgB,EAAE;IAChB6B,MAAM,EAAE5G;EACV,CAAC;EACDoE,aAAa,EAAE;IACbyC,WAAW,EAAErH;EACf,CAAC;EACDqB,WAAW,EAAE;IACX,GAAGhC,mBAAmB,CACpBe,wBAAwB,EACxB,UAAU,EACVkH,SAAS,EACT,QACF;EACF,CAAC;EACD9B,iBAAiB,EAAE;IACjB,GAAGnG,mBAAmB,CACpBe,wBAAwB,EACxB,kBAAkB,EAClBkH,SAAS,EACT,UACF;EACF,CAAC;EACDpB,YAAY,EAAE;IACZqB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRP,WAAW,EAAE5G;EACf,CAAC;EACDyF,WAAW,EAAE;IACX2B,UAAU,EAAEzH;EACd;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberButton.d.ts","sourceRoot":"","sources":["../../../../src/components/numberpad/NumberButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAgB1D,KAAK,uBAAuB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhD,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAiCF;;;;GAIG;AACH,eAAO,MAAM,YAAY,2DACQ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"NumberButton.d.ts","sourceRoot":"","sources":["../../../../src/components/numberpad/NumberButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAgB1D,KAAK,uBAAuB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhD,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAiCF;;;;GAIG;AACH,eAAO,MAAM,YAAY,2DACQ,iBAAiB,uBAyDjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/SearchInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,qBAAqB,EAOrB,cAAc,EAEf,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchInput/SearchInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,qBAAqB,EAOrB,cAAc,EAEf,MAAM,cAAc,CAAC;AAUtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAiC7C,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,KAAK,sBAAsB,GACvB;IACE,SAAS,EAAE,yBAAyB,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,gBAAgB,GAAG,UAAU,CAAC;IACjC,kBAAkB,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CACzC,CAAC,GACA,sBAAsB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAUF,eAAO,MAAM,WAAW,yFAyNvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useIOExperimentalDesign
|
|
13
13
|
} from "../../core";
|
|
14
14
|
import { useScaleAnimation } from "../../hooks";
|
|
15
|
-
import {
|
|
15
|
+
import { IOText } from "../typography";
|
|
16
16
|
|
|
17
17
|
type NumberButtonVariantType = "light" | "dark";
|
|
18
18
|
|
|
@@ -111,7 +111,18 @@ export const NumberButton = memo(
|
|
|
111
111
|
!reducedMotion && scaleAnimatedStyle
|
|
112
112
|
]}
|
|
113
113
|
>
|
|
114
|
-
<
|
|
114
|
+
<IOText
|
|
115
|
+
size={22}
|
|
116
|
+
font={isExperimental ? "Titillio" : "TitilliumSansPro"}
|
|
117
|
+
weight="Semibold"
|
|
118
|
+
color={colors.foreground}
|
|
119
|
+
style={{
|
|
120
|
+
// Additional prop for Android
|
|
121
|
+
textAlignVertical: "center"
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
{number}
|
|
125
|
+
</IOText>
|
|
115
126
|
</Animated.View>
|
|
116
127
|
</Pressable>
|
|
117
128
|
);
|
|
@@ -93,7 +93,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
93
93
|
>
|
|
94
94
|
<Text
|
|
95
95
|
allowFontScaling={true}
|
|
96
|
-
dynamicTypeRamp="title2"
|
|
97
96
|
maxFontSizeMultiplier={1.5}
|
|
98
97
|
style={
|
|
99
98
|
[
|
|
@@ -104,7 +103,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
104
103
|
"fontSize": 22,
|
|
105
104
|
"fontStyle": "normal",
|
|
106
105
|
"fontWeight": "600",
|
|
107
|
-
"lineHeight":
|
|
106
|
+
"lineHeight": undefined,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"textAlignVertical": "center",
|
|
108
110
|
},
|
|
109
111
|
]
|
|
110
112
|
}
|
|
@@ -174,7 +176,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
174
176
|
>
|
|
175
177
|
<Text
|
|
176
178
|
allowFontScaling={true}
|
|
177
|
-
dynamicTypeRamp="title2"
|
|
178
179
|
maxFontSizeMultiplier={1.5}
|
|
179
180
|
style={
|
|
180
181
|
[
|
|
@@ -185,7 +186,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
185
186
|
"fontSize": 22,
|
|
186
187
|
"fontStyle": "normal",
|
|
187
188
|
"fontWeight": "600",
|
|
188
|
-
"lineHeight":
|
|
189
|
+
"lineHeight": undefined,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"textAlignVertical": "center",
|
|
189
193
|
},
|
|
190
194
|
]
|
|
191
195
|
}
|
|
@@ -255,7 +259,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
255
259
|
>
|
|
256
260
|
<Text
|
|
257
261
|
allowFontScaling={true}
|
|
258
|
-
dynamicTypeRamp="title2"
|
|
259
262
|
maxFontSizeMultiplier={1.5}
|
|
260
263
|
style={
|
|
261
264
|
[
|
|
@@ -266,7 +269,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
266
269
|
"fontSize": 22,
|
|
267
270
|
"fontStyle": "normal",
|
|
268
271
|
"fontWeight": "600",
|
|
269
|
-
"lineHeight":
|
|
272
|
+
"lineHeight": undefined,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"textAlignVertical": "center",
|
|
270
276
|
},
|
|
271
277
|
]
|
|
272
278
|
}
|
|
@@ -352,7 +358,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
352
358
|
>
|
|
353
359
|
<Text
|
|
354
360
|
allowFontScaling={true}
|
|
355
|
-
dynamicTypeRamp="title2"
|
|
356
361
|
maxFontSizeMultiplier={1.5}
|
|
357
362
|
style={
|
|
358
363
|
[
|
|
@@ -363,7 +368,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
363
368
|
"fontSize": 22,
|
|
364
369
|
"fontStyle": "normal",
|
|
365
370
|
"fontWeight": "600",
|
|
366
|
-
"lineHeight":
|
|
371
|
+
"lineHeight": undefined,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"textAlignVertical": "center",
|
|
367
375
|
},
|
|
368
376
|
]
|
|
369
377
|
}
|
|
@@ -433,7 +441,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
433
441
|
>
|
|
434
442
|
<Text
|
|
435
443
|
allowFontScaling={true}
|
|
436
|
-
dynamicTypeRamp="title2"
|
|
437
444
|
maxFontSizeMultiplier={1.5}
|
|
438
445
|
style={
|
|
439
446
|
[
|
|
@@ -444,7 +451,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
444
451
|
"fontSize": 22,
|
|
445
452
|
"fontStyle": "normal",
|
|
446
453
|
"fontWeight": "600",
|
|
447
|
-
"lineHeight":
|
|
454
|
+
"lineHeight": undefined,
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"textAlignVertical": "center",
|
|
448
458
|
},
|
|
449
459
|
]
|
|
450
460
|
}
|
|
@@ -514,7 +524,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
514
524
|
>
|
|
515
525
|
<Text
|
|
516
526
|
allowFontScaling={true}
|
|
517
|
-
dynamicTypeRamp="title2"
|
|
518
527
|
maxFontSizeMultiplier={1.5}
|
|
519
528
|
style={
|
|
520
529
|
[
|
|
@@ -525,7 +534,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
525
534
|
"fontSize": 22,
|
|
526
535
|
"fontStyle": "normal",
|
|
527
536
|
"fontWeight": "600",
|
|
528
|
-
"lineHeight":
|
|
537
|
+
"lineHeight": undefined,
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"textAlignVertical": "center",
|
|
529
541
|
},
|
|
530
542
|
]
|
|
531
543
|
}
|
|
@@ -611,7 +623,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
611
623
|
>
|
|
612
624
|
<Text
|
|
613
625
|
allowFontScaling={true}
|
|
614
|
-
dynamicTypeRamp="title2"
|
|
615
626
|
maxFontSizeMultiplier={1.5}
|
|
616
627
|
style={
|
|
617
628
|
[
|
|
@@ -622,7 +633,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
622
633
|
"fontSize": 22,
|
|
623
634
|
"fontStyle": "normal",
|
|
624
635
|
"fontWeight": "600",
|
|
625
|
-
"lineHeight":
|
|
636
|
+
"lineHeight": undefined,
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"textAlignVertical": "center",
|
|
626
640
|
},
|
|
627
641
|
]
|
|
628
642
|
}
|
|
@@ -692,7 +706,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
692
706
|
>
|
|
693
707
|
<Text
|
|
694
708
|
allowFontScaling={true}
|
|
695
|
-
dynamicTypeRamp="title2"
|
|
696
709
|
maxFontSizeMultiplier={1.5}
|
|
697
710
|
style={
|
|
698
711
|
[
|
|
@@ -703,7 +716,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
703
716
|
"fontSize": 22,
|
|
704
717
|
"fontStyle": "normal",
|
|
705
718
|
"fontWeight": "600",
|
|
706
|
-
"lineHeight":
|
|
719
|
+
"lineHeight": undefined,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"textAlignVertical": "center",
|
|
707
723
|
},
|
|
708
724
|
]
|
|
709
725
|
}
|
|
@@ -773,7 +789,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
773
789
|
>
|
|
774
790
|
<Text
|
|
775
791
|
allowFontScaling={true}
|
|
776
|
-
dynamicTypeRamp="title2"
|
|
777
792
|
maxFontSizeMultiplier={1.5}
|
|
778
793
|
style={
|
|
779
794
|
[
|
|
@@ -784,7 +799,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
784
799
|
"fontSize": 22,
|
|
785
800
|
"fontStyle": "normal",
|
|
786
801
|
"fontWeight": "600",
|
|
787
|
-
"lineHeight":
|
|
802
|
+
"lineHeight": undefined,
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"textAlignVertical": "center",
|
|
788
806
|
},
|
|
789
807
|
]
|
|
790
808
|
}
|
|
@@ -1011,7 +1029,6 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1011
1029
|
>
|
|
1012
1030
|
<Text
|
|
1013
1031
|
allowFontScaling={true}
|
|
1014
|
-
dynamicTypeRamp="title2"
|
|
1015
1032
|
maxFontSizeMultiplier={1.5}
|
|
1016
1033
|
style={
|
|
1017
1034
|
[
|
|
@@ -1022,7 +1039,10 @@ exports[`NumberPad Should match the snapshot 1`] = `
|
|
|
1022
1039
|
"fontSize": 22,
|
|
1023
1040
|
"fontStyle": "normal",
|
|
1024
1041
|
"fontWeight": "600",
|
|
1025
|
-
"lineHeight":
|
|
1042
|
+
"lineHeight": undefined,
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"textAlignVertical": "center",
|
|
1026
1046
|
},
|
|
1027
1047
|
]
|
|
1028
1048
|
}
|
|
@@ -37,8 +37,12 @@ import {
|
|
|
37
37
|
useIOTheme
|
|
38
38
|
} from "../../core";
|
|
39
39
|
import { IOFontSize, makeFontStyleObject } from "../../utils/fonts";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
40
|
+
import { Icon, IOIconSizeScale } from "../icons";
|
|
41
|
+
import {
|
|
42
|
+
buttonTextFontSize,
|
|
43
|
+
buttonTextLineHeight,
|
|
44
|
+
IOText
|
|
45
|
+
} from "../typography";
|
|
42
46
|
|
|
43
47
|
/* Component visual attributes */
|
|
44
48
|
const inputPaddingHorizontal: IOSpacingScale = 12;
|
|
@@ -280,7 +284,25 @@ export const SearchInput = forwardRef<SearchInputRef, SearchInputProps>(
|
|
|
280
284
|
onLayout={getCancelButtonWidth}
|
|
281
285
|
style={[styles.cancelButton, cancelButtonAnimatedStyle]}
|
|
282
286
|
>
|
|
283
|
-
<
|
|
287
|
+
<Pressable
|
|
288
|
+
accessibilityRole="button"
|
|
289
|
+
accessibilityLabel={cancelButtonLabel}
|
|
290
|
+
onPress={cancel}
|
|
291
|
+
>
|
|
292
|
+
<IOText
|
|
293
|
+
color={theme["interactiveElem-default"]}
|
|
294
|
+
font={isExperimental ? "Titillio" : "TitilliumSansPro"}
|
|
295
|
+
weight={"Semibold"}
|
|
296
|
+
size={buttonTextFontSize}
|
|
297
|
+
lineHeight={buttonTextLineHeight}
|
|
298
|
+
numberOfLines={1}
|
|
299
|
+
accessible={false}
|
|
300
|
+
accessibilityElementsHidden
|
|
301
|
+
importantForAccessibility="no-hide-descendants"
|
|
302
|
+
>
|
|
303
|
+
{cancelButtonLabel}
|
|
304
|
+
</IOText>
|
|
305
|
+
</Pressable>
|
|
284
306
|
</Animated.View>
|
|
285
307
|
</Animated.View>
|
|
286
308
|
);
|