@hero-design/rn 8.83.0 → 8.84.1

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.
@@ -56,6 +56,7 @@ exports[`Button allows render custom icon 1`] = `
56
56
  undefined,
57
57
  ]
58
58
  }
59
+ themeIsCompact={false}
59
60
  themePosition="left"
60
61
  >
61
62
  <HeroIcon
@@ -114,6 +115,7 @@ exports[`Button allows render custom icon 1`] = `
114
115
  undefined,
115
116
  ]
116
117
  }
118
+ themeIsCompact={false}
117
119
  themePosition="right"
118
120
  >
119
121
  <HeroIcon
@@ -2738,6 +2740,778 @@ exports[`Button renders correctly 20`] = `
2738
2740
  </View>
2739
2741
  `;
2740
2742
 
2743
+ exports[`Button renders correctly 21`] = `
2744
+ <View
2745
+ style={
2746
+ {
2747
+ "flex": 1,
2748
+ }
2749
+ }
2750
+ >
2751
+ <View
2752
+ accessibilityState={
2753
+ {
2754
+ "disabled": false,
2755
+ }
2756
+ }
2757
+ accessibilityValue={
2758
+ {
2759
+ "max": undefined,
2760
+ "min": undefined,
2761
+ "now": undefined,
2762
+ "text": undefined,
2763
+ }
2764
+ }
2765
+ accessible={true}
2766
+ focusable={true}
2767
+ onClick={[Function]}
2768
+ onResponderGrant={[Function]}
2769
+ onResponderMove={[Function]}
2770
+ onResponderRelease={[Function]}
2771
+ onResponderTerminate={[Function]}
2772
+ onResponderTerminationRequest={[Function]}
2773
+ onStartShouldSetResponder={[Function]}
2774
+ style={
2775
+ [
2776
+ {
2777
+ "alignItems": "center",
2778
+ "alignSelf": "flex-start",
2779
+ "backgroundColor": "#401960",
2780
+ "borderRadius": 32,
2781
+ "flexDirection": "row",
2782
+ "height": 36,
2783
+ "justifyContent": "center",
2784
+ "paddingHorizontal": 16,
2785
+ "paddingVertical": 8,
2786
+ },
2787
+ undefined,
2788
+ ]
2789
+ }
2790
+ >
2791
+ <Text
2792
+ allowFontScaling={false}
2793
+ disabled={false}
2794
+ ellipsizeMode="tail"
2795
+ numberOfLines={1}
2796
+ style={
2797
+ [
2798
+ {
2799
+ "color": "#001f23",
2800
+ "fontFamily": "BeVietnamPro-Regular",
2801
+ "fontSize": 14,
2802
+ "letterSpacing": 0.48,
2803
+ "lineHeight": 22,
2804
+ },
2805
+ [
2806
+ {
2807
+ "color": "#ffffff",
2808
+ "flexShrink": 1,
2809
+ "textAlign": "center",
2810
+ },
2811
+ undefined,
2812
+ ],
2813
+ ]
2814
+ }
2815
+ themeButtonVariant="filled-primary"
2816
+ themeIntent="body"
2817
+ themeTypeface="neutral"
2818
+ themeVariant="small"
2819
+ >
2820
+ A button
2821
+ </Text>
2822
+ </View>
2823
+ <View
2824
+ pointerEvents="box-none"
2825
+ position="bottom"
2826
+ style={
2827
+ [
2828
+ {
2829
+ "bottom": 0,
2830
+ "elevation": 9999,
2831
+ "flexDirection": "column-reverse",
2832
+ "left": 0,
2833
+ "paddingHorizontal": 24,
2834
+ "paddingVertical": 16,
2835
+ "position": "absolute",
2836
+ "right": 0,
2837
+ "top": 0,
2838
+ },
2839
+ undefined,
2840
+ ]
2841
+ }
2842
+ />
2843
+ </View>
2844
+ `;
2845
+
2846
+ exports[`Button renders correctly 22`] = `
2847
+ <View
2848
+ style={
2849
+ {
2850
+ "flex": 1,
2851
+ }
2852
+ }
2853
+ >
2854
+ <View
2855
+ accessibilityState={
2856
+ {
2857
+ "disabled": true,
2858
+ }
2859
+ }
2860
+ accessibilityValue={
2861
+ {
2862
+ "max": undefined,
2863
+ "min": undefined,
2864
+ "now": undefined,
2865
+ "text": undefined,
2866
+ }
2867
+ }
2868
+ accessible={true}
2869
+ focusable={true}
2870
+ onClick={[Function]}
2871
+ onResponderGrant={[Function]}
2872
+ onResponderMove={[Function]}
2873
+ onResponderRelease={[Function]}
2874
+ onResponderTerminate={[Function]}
2875
+ onResponderTerminationRequest={[Function]}
2876
+ onStartShouldSetResponder={[Function]}
2877
+ style={
2878
+ [
2879
+ {
2880
+ "alignItems": "center",
2881
+ "alignSelf": "flex-start",
2882
+ "backgroundColor": "#401960",
2883
+ "borderRadius": 32,
2884
+ "flexDirection": "row",
2885
+ "height": 36,
2886
+ "justifyContent": "center",
2887
+ "paddingHorizontal": 16,
2888
+ "paddingVertical": 8,
2889
+ },
2890
+ undefined,
2891
+ ]
2892
+ }
2893
+ >
2894
+ <View
2895
+ collapsable={false}
2896
+ style={
2897
+ [
2898
+ {
2899
+ "alignItems": "center",
2900
+ "flexDirection": "row",
2901
+ "justifyContent": "center",
2902
+ },
2903
+ {},
2904
+ ]
2905
+ }
2906
+ testID="undefined-loading-indicator"
2907
+ >
2908
+ <View
2909
+ collapsable={false}
2910
+ style={
2911
+ {
2912
+ "transform": [
2913
+ {
2914
+ "scale": 1,
2915
+ },
2916
+ ],
2917
+ }
2918
+ }
2919
+ >
2920
+ <View
2921
+ collapsable={false}
2922
+ size={12}
2923
+ style={
2924
+ [
2925
+ {
2926
+ "backgroundColor": "#ffffff",
2927
+ "borderRadius": 8,
2928
+ "height": 12,
2929
+ "marginHorizontal": 8,
2930
+ "width": 12,
2931
+ },
2932
+ {},
2933
+ ]
2934
+ }
2935
+ themeVariant="filled-primary"
2936
+ />
2937
+ </View>
2938
+ <View
2939
+ collapsable={false}
2940
+ style={
2941
+ {
2942
+ "transform": [
2943
+ {
2944
+ "scale": 1,
2945
+ },
2946
+ ],
2947
+ }
2948
+ }
2949
+ >
2950
+ <View
2951
+ collapsable={false}
2952
+ size={12}
2953
+ style={
2954
+ [
2955
+ {
2956
+ "backgroundColor": "#ffffff",
2957
+ "borderRadius": 8,
2958
+ "height": 12,
2959
+ "marginHorizontal": 8,
2960
+ "width": 12,
2961
+ },
2962
+ {},
2963
+ ]
2964
+ }
2965
+ themeVariant="filled-primary"
2966
+ />
2967
+ </View>
2968
+ <View
2969
+ collapsable={false}
2970
+ style={
2971
+ {
2972
+ "transform": [
2973
+ {
2974
+ "scale": 1,
2975
+ },
2976
+ ],
2977
+ }
2978
+ }
2979
+ >
2980
+ <View
2981
+ collapsable={false}
2982
+ size={12}
2983
+ style={
2984
+ [
2985
+ {
2986
+ "backgroundColor": "#ffffff",
2987
+ "borderRadius": 8,
2988
+ "height": 12,
2989
+ "marginHorizontal": 8,
2990
+ "width": 12,
2991
+ },
2992
+ {},
2993
+ ]
2994
+ }
2995
+ themeVariant="filled-primary"
2996
+ />
2997
+ </View>
2998
+ </View>
2999
+ </View>
3000
+ <View
3001
+ pointerEvents="box-none"
3002
+ position="bottom"
3003
+ style={
3004
+ [
3005
+ {
3006
+ "bottom": 0,
3007
+ "elevation": 9999,
3008
+ "flexDirection": "column-reverse",
3009
+ "left": 0,
3010
+ "paddingHorizontal": 24,
3011
+ "paddingVertical": 16,
3012
+ "position": "absolute",
3013
+ "right": 0,
3014
+ "top": 0,
3015
+ },
3016
+ undefined,
3017
+ ]
3018
+ }
3019
+ />
3020
+ </View>
3021
+ `;
3022
+
3023
+ exports[`Button renders correctly 23`] = `
3024
+ <View
3025
+ style={
3026
+ {
3027
+ "flex": 1,
3028
+ }
3029
+ }
3030
+ >
3031
+ <View
3032
+ accessibilityState={
3033
+ {
3034
+ "disabled": true,
3035
+ }
3036
+ }
3037
+ accessibilityValue={
3038
+ {
3039
+ "max": undefined,
3040
+ "min": undefined,
3041
+ "now": undefined,
3042
+ "text": undefined,
3043
+ }
3044
+ }
3045
+ accessible={true}
3046
+ focusable={true}
3047
+ onClick={[Function]}
3048
+ onResponderGrant={[Function]}
3049
+ onResponderMove={[Function]}
3050
+ onResponderRelease={[Function]}
3051
+ onResponderTerminate={[Function]}
3052
+ onResponderTerminationRequest={[Function]}
3053
+ onStartShouldSetResponder={[Function]}
3054
+ style={
3055
+ [
3056
+ {
3057
+ "alignItems": "center",
3058
+ "alignSelf": "flex-start",
3059
+ "backgroundColor": "#bfc1c5",
3060
+ "borderRadius": 32,
3061
+ "flexDirection": "row",
3062
+ "height": 36,
3063
+ "justifyContent": "center",
3064
+ "paddingHorizontal": 16,
3065
+ "paddingVertical": 8,
3066
+ },
3067
+ undefined,
3068
+ ]
3069
+ }
3070
+ >
3071
+ <Text
3072
+ allowFontScaling={false}
3073
+ disabled={true}
3074
+ ellipsizeMode="tail"
3075
+ numberOfLines={1}
3076
+ style={
3077
+ [
3078
+ {
3079
+ "color": "#001f23",
3080
+ "fontFamily": "BeVietnamPro-Regular",
3081
+ "fontSize": 14,
3082
+ "letterSpacing": 0.48,
3083
+ "lineHeight": 22,
3084
+ },
3085
+ [
3086
+ {
3087
+ "color": "#ffffff",
3088
+ "flexShrink": 1,
3089
+ "textAlign": "center",
3090
+ },
3091
+ undefined,
3092
+ ],
3093
+ ]
3094
+ }
3095
+ themeButtonVariant="filled-primary"
3096
+ themeIntent="body"
3097
+ themeTypeface="neutral"
3098
+ themeVariant="small"
3099
+ >
3100
+ A button
3101
+ </Text>
3102
+ </View>
3103
+ <View
3104
+ pointerEvents="box-none"
3105
+ position="bottom"
3106
+ style={
3107
+ [
3108
+ {
3109
+ "bottom": 0,
3110
+ "elevation": 9999,
3111
+ "flexDirection": "column-reverse",
3112
+ "left": 0,
3113
+ "paddingHorizontal": 24,
3114
+ "paddingVertical": 16,
3115
+ "position": "absolute",
3116
+ "right": 0,
3117
+ "top": 0,
3118
+ },
3119
+ undefined,
3120
+ ]
3121
+ }
3122
+ />
3123
+ </View>
3124
+ `;
3125
+
3126
+ exports[`Button renders correctly 24`] = `
3127
+ <View
3128
+ style={
3129
+ {
3130
+ "flex": 1,
3131
+ }
3132
+ }
3133
+ >
3134
+ <View
3135
+ accessibilityState={
3136
+ {
3137
+ "disabled": false,
3138
+ }
3139
+ }
3140
+ accessibilityValue={
3141
+ {
3142
+ "max": undefined,
3143
+ "min": undefined,
3144
+ "now": undefined,
3145
+ "text": undefined,
3146
+ }
3147
+ }
3148
+ accessible={true}
3149
+ focusable={true}
3150
+ onClick={[Function]}
3151
+ onResponderGrant={[Function]}
3152
+ onResponderMove={[Function]}
3153
+ onResponderRelease={[Function]}
3154
+ onResponderTerminate={[Function]}
3155
+ onResponderTerminationRequest={[Function]}
3156
+ onStartShouldSetResponder={[Function]}
3157
+ style={
3158
+ [
3159
+ {
3160
+ "alignItems": "center",
3161
+ "alignSelf": "flex-start",
3162
+ "backgroundColor": "transparent",
3163
+ "borderColor": "#401960",
3164
+ "borderRadius": 32,
3165
+ "borderWidth": 2,
3166
+ "flexDirection": "row",
3167
+ "height": 36,
3168
+ "justifyContent": "center",
3169
+ "paddingHorizontal": 14,
3170
+ "paddingVertical": 6,
3171
+ },
3172
+ undefined,
3173
+ ]
3174
+ }
3175
+ >
3176
+ <Text
3177
+ allowFontScaling={false}
3178
+ disabled={false}
3179
+ ellipsizeMode="tail"
3180
+ numberOfLines={1}
3181
+ style={
3182
+ [
3183
+ {
3184
+ "color": "#001f23",
3185
+ "fontFamily": "BeVietnamPro-Regular",
3186
+ "fontSize": 14,
3187
+ "letterSpacing": 0.48,
3188
+ "lineHeight": 22,
3189
+ },
3190
+ [
3191
+ {
3192
+ "color": "#401960",
3193
+ "flexShrink": 1,
3194
+ "textAlign": "center",
3195
+ },
3196
+ undefined,
3197
+ ],
3198
+ ]
3199
+ }
3200
+ themeButtonVariant="outlined-primary"
3201
+ themeIntent="body"
3202
+ themeTypeface="neutral"
3203
+ themeVariant="small"
3204
+ >
3205
+ A button
3206
+ </Text>
3207
+ </View>
3208
+ <View
3209
+ pointerEvents="box-none"
3210
+ position="bottom"
3211
+ style={
3212
+ [
3213
+ {
3214
+ "bottom": 0,
3215
+ "elevation": 9999,
3216
+ "flexDirection": "column-reverse",
3217
+ "left": 0,
3218
+ "paddingHorizontal": 24,
3219
+ "paddingVertical": 16,
3220
+ "position": "absolute",
3221
+ "right": 0,
3222
+ "top": 0,
3223
+ },
3224
+ undefined,
3225
+ ]
3226
+ }
3227
+ />
3228
+ </View>
3229
+ `;
3230
+
3231
+ exports[`Button renders correctly 25`] = `
3232
+ <View
3233
+ style={
3234
+ {
3235
+ "flex": 1,
3236
+ }
3237
+ }
3238
+ >
3239
+ <View
3240
+ accessibilityState={
3241
+ {
3242
+ "disabled": true,
3243
+ }
3244
+ }
3245
+ accessibilityValue={
3246
+ {
3247
+ "max": undefined,
3248
+ "min": undefined,
3249
+ "now": undefined,
3250
+ "text": undefined,
3251
+ }
3252
+ }
3253
+ accessible={true}
3254
+ focusable={true}
3255
+ onClick={[Function]}
3256
+ onResponderGrant={[Function]}
3257
+ onResponderMove={[Function]}
3258
+ onResponderRelease={[Function]}
3259
+ onResponderTerminate={[Function]}
3260
+ onResponderTerminationRequest={[Function]}
3261
+ onStartShouldSetResponder={[Function]}
3262
+ style={
3263
+ [
3264
+ {
3265
+ "alignItems": "center",
3266
+ "alignSelf": "flex-start",
3267
+ "backgroundColor": "transparent",
3268
+ "borderColor": "#401960",
3269
+ "borderRadius": 32,
3270
+ "borderWidth": 2,
3271
+ "flexDirection": "row",
3272
+ "height": 36,
3273
+ "justifyContent": "center",
3274
+ "paddingHorizontal": 14,
3275
+ "paddingVertical": 6,
3276
+ },
3277
+ undefined,
3278
+ ]
3279
+ }
3280
+ >
3281
+ <View
3282
+ collapsable={false}
3283
+ style={
3284
+ [
3285
+ {
3286
+ "alignItems": "center",
3287
+ "flexDirection": "row",
3288
+ "justifyContent": "center",
3289
+ },
3290
+ {},
3291
+ ]
3292
+ }
3293
+ testID="undefined-loading-indicator"
3294
+ >
3295
+ <View
3296
+ collapsable={false}
3297
+ style={
3298
+ {
3299
+ "transform": [
3300
+ {
3301
+ "scale": 1,
3302
+ },
3303
+ ],
3304
+ }
3305
+ }
3306
+ >
3307
+ <View
3308
+ collapsable={false}
3309
+ size={12}
3310
+ style={
3311
+ [
3312
+ {
3313
+ "backgroundColor": "#401960",
3314
+ "borderRadius": 8,
3315
+ "height": 12,
3316
+ "marginHorizontal": 8,
3317
+ "width": 12,
3318
+ },
3319
+ {},
3320
+ ]
3321
+ }
3322
+ themeVariant="outlined-primary"
3323
+ />
3324
+ </View>
3325
+ <View
3326
+ collapsable={false}
3327
+ style={
3328
+ {
3329
+ "transform": [
3330
+ {
3331
+ "scale": 1,
3332
+ },
3333
+ ],
3334
+ }
3335
+ }
3336
+ >
3337
+ <View
3338
+ collapsable={false}
3339
+ size={12}
3340
+ style={
3341
+ [
3342
+ {
3343
+ "backgroundColor": "#401960",
3344
+ "borderRadius": 8,
3345
+ "height": 12,
3346
+ "marginHorizontal": 8,
3347
+ "width": 12,
3348
+ },
3349
+ {},
3350
+ ]
3351
+ }
3352
+ themeVariant="outlined-primary"
3353
+ />
3354
+ </View>
3355
+ <View
3356
+ collapsable={false}
3357
+ style={
3358
+ {
3359
+ "transform": [
3360
+ {
3361
+ "scale": 1,
3362
+ },
3363
+ ],
3364
+ }
3365
+ }
3366
+ >
3367
+ <View
3368
+ collapsable={false}
3369
+ size={12}
3370
+ style={
3371
+ [
3372
+ {
3373
+ "backgroundColor": "#401960",
3374
+ "borderRadius": 8,
3375
+ "height": 12,
3376
+ "marginHorizontal": 8,
3377
+ "width": 12,
3378
+ },
3379
+ {},
3380
+ ]
3381
+ }
3382
+ themeVariant="outlined-primary"
3383
+ />
3384
+ </View>
3385
+ </View>
3386
+ </View>
3387
+ <View
3388
+ pointerEvents="box-none"
3389
+ position="bottom"
3390
+ style={
3391
+ [
3392
+ {
3393
+ "bottom": 0,
3394
+ "elevation": 9999,
3395
+ "flexDirection": "column-reverse",
3396
+ "left": 0,
3397
+ "paddingHorizontal": 24,
3398
+ "paddingVertical": 16,
3399
+ "position": "absolute",
3400
+ "right": 0,
3401
+ "top": 0,
3402
+ },
3403
+ undefined,
3404
+ ]
3405
+ }
3406
+ />
3407
+ </View>
3408
+ `;
3409
+
3410
+ exports[`Button renders correctly 26`] = `
3411
+ <View
3412
+ style={
3413
+ {
3414
+ "flex": 1,
3415
+ }
3416
+ }
3417
+ >
3418
+ <View
3419
+ accessibilityState={
3420
+ {
3421
+ "disabled": true,
3422
+ }
3423
+ }
3424
+ accessibilityValue={
3425
+ {
3426
+ "max": undefined,
3427
+ "min": undefined,
3428
+ "now": undefined,
3429
+ "text": undefined,
3430
+ }
3431
+ }
3432
+ accessible={true}
3433
+ focusable={true}
3434
+ onClick={[Function]}
3435
+ onResponderGrant={[Function]}
3436
+ onResponderMove={[Function]}
3437
+ onResponderRelease={[Function]}
3438
+ onResponderTerminate={[Function]}
3439
+ onResponderTerminationRequest={[Function]}
3440
+ onStartShouldSetResponder={[Function]}
3441
+ style={
3442
+ [
3443
+ {
3444
+ "alignItems": "center",
3445
+ "alignSelf": "flex-start",
3446
+ "backgroundColor": "transparent",
3447
+ "borderColor": "#bfc1c5",
3448
+ "borderRadius": 32,
3449
+ "borderWidth": 2,
3450
+ "flexDirection": "row",
3451
+ "height": 36,
3452
+ "justifyContent": "center",
3453
+ "paddingHorizontal": 14,
3454
+ "paddingVertical": 6,
3455
+ },
3456
+ undefined,
3457
+ ]
3458
+ }
3459
+ >
3460
+ <Text
3461
+ allowFontScaling={false}
3462
+ disabled={true}
3463
+ ellipsizeMode="tail"
3464
+ numberOfLines={1}
3465
+ style={
3466
+ [
3467
+ {
3468
+ "color": "#001f23",
3469
+ "fontFamily": "BeVietnamPro-Regular",
3470
+ "fontSize": 14,
3471
+ "letterSpacing": 0.48,
3472
+ "lineHeight": 22,
3473
+ },
3474
+ [
3475
+ {
3476
+ "color": "#bfc1c5",
3477
+ "flexShrink": 1,
3478
+ "textAlign": "center",
3479
+ },
3480
+ undefined,
3481
+ ],
3482
+ ]
3483
+ }
3484
+ themeButtonVariant="outlined-primary"
3485
+ themeIntent="body"
3486
+ themeTypeface="neutral"
3487
+ themeVariant="small"
3488
+ >
3489
+ A button
3490
+ </Text>
3491
+ </View>
3492
+ <View
3493
+ pointerEvents="box-none"
3494
+ position="bottom"
3495
+ style={
3496
+ [
3497
+ {
3498
+ "bottom": 0,
3499
+ "elevation": 9999,
3500
+ "flexDirection": "column-reverse",
3501
+ "left": 0,
3502
+ "paddingHorizontal": 24,
3503
+ "paddingVertical": 16,
3504
+ "position": "absolute",
3505
+ "right": 0,
3506
+ "top": 0,
3507
+ },
3508
+ undefined,
3509
+ ]
3510
+ }
3511
+ />
3512
+ </View>
3513
+ `;
3514
+
2741
3515
  exports[`Button renders loading icon 1`] = `
2742
3516
  <View
2743
3517
  style={