@livetiles/reach-plugin-types 0.5.0-preview.941 → 0.5.0-preview.943

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +638 -22
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3042,8 +3042,381 @@ declare module "libs/reach/util/common/src/theme/ColorGenerator" {
3042
3042
  trim: (value: string) => string;
3043
3043
  }
3044
3044
  }
3045
+ declare module "libs/reach/util/common/src/theme/theme2/colors" {
3046
+ export const backgroundColors: {
3047
+ avatarPrimary: "#EBE9E8";
3048
+ inverted: "#0F0E0E";
3049
+ interaction: {
3050
+ disabled: "#EBE9E8";
3051
+ hover: "#EBE9E8";
3052
+ pressed: "#D7D2D1";
3053
+ primary: "#FFFFFF";
3054
+ };
3055
+ primary: "#EBE9E8";
3056
+ secondary: "#FFFFFF";
3057
+ tertiary: "#F5F4F3";
3058
+ };
3059
+ export const feedbackColors: {
3060
+ error: {
3061
+ background: "#BF2B30";
3062
+ foreground: "#FCE5E3";
3063
+ };
3064
+ info: {
3065
+ background: "#0F6EA9";
3066
+ foreground: "#E2EDF6";
3067
+ };
3068
+ success: {
3069
+ background: "#287B44";
3070
+ foreground: "#ECF3EE";
3071
+ };
3072
+ warning: {
3073
+ background: "#E2BC30";
3074
+ foreground: "#7C671A";
3075
+ };
3076
+ };
3077
+ export const foregroundColors: {
3078
+ avatar: "#F5F4F3";
3079
+ button: "#0F0E0E";
3080
+ buttonDisabled: "#C2BCB9";
3081
+ disabled: "#C2BCB9";
3082
+ icon: "#0F0E0E";
3083
+ iconDisabled: "#C2BCB9";
3084
+ iconInverted: "#FFFFFF";
3085
+ inverted: "#FFFFFF";
3086
+ primary: "#0F0E0E";
3087
+ secondary: "#3E3938";
3088
+ tertiary: "#5C5653";
3089
+ };
3090
+ export const strokeColors: {
3091
+ avatar: "#FFFFFF";
3092
+ border: {
3093
+ disabled: "#C2BCB9";
3094
+ focus: "#0F0E0E";
3095
+ primary: "#0F0E0E";
3096
+ };
3097
+ divider: {
3098
+ disabled: "#C2BCB9";
3099
+ primary: "#5C5653";
3100
+ secondary: "#D7D2D1";
3101
+ tabs: "#0F0E0E";
3102
+ tertiary: "#EBE9E8";
3103
+ };
3104
+ input: {
3105
+ default: "#C2BCB9";
3106
+ error: "#BF2B30";
3107
+ };
3108
+ selection: {
3109
+ hover: "#AEA5A2";
3110
+ pressed: "#9A8F8B";
3111
+ };
3112
+ };
3113
+ export const themeColors: {
3114
+ disabled: "#FFE4DC";
3115
+ hover: "#FF7A50";
3116
+ interactionSelected: "#FFE4DC";
3117
+ inverted: {
3118
+ hover: "#FFE4DC";
3119
+ pressed: "#FFCAB9";
3120
+ active: "#FFAF96";
3121
+ };
3122
+ pressed: "#CC6240";
3123
+ primary: "#FF9573";
3124
+ };
3125
+ }
3126
+ declare module "libs/reach/util/common/src/theme/theme2/shadows" {
3127
+ const shadows: {
3128
+ drag: {
3129
+ boxShadow: string;
3130
+ };
3131
+ focusButton: {
3132
+ boxShadow: string;
3133
+ };
3134
+ hardFloat: {
3135
+ boxShadow: string;
3136
+ };
3137
+ sharp: {
3138
+ boxShadow: string;
3139
+ };
3140
+ sharpFloat: {
3141
+ boxShadow: string;
3142
+ };
3143
+ softFloat: {
3144
+ boxShadow: string;
3145
+ };
3146
+ };
3147
+ export default shadows;
3148
+ }
3149
+ declare module "libs/reach/util/common/src/theme/theme2/spacing" {
3150
+ const spacing: {
3151
+ readonly 4: 4;
3152
+ readonly 8: 8;
3153
+ readonly 12: 12;
3154
+ readonly 16: 16;
3155
+ readonly 20: 20;
3156
+ readonly 24: 24;
3157
+ readonly 32: 32;
3158
+ readonly 40: 40;
3159
+ readonly 48: 48;
3160
+ readonly 56: 56;
3161
+ readonly 68: 68;
3162
+ readonly 80: 80;
3163
+ };
3164
+ export default spacing;
3165
+ }
3166
+ declare module "libs/reach/util/common/src/theme/theme2/typography" {
3167
+ const typography: {
3168
+ readonly body1: {
3169
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3170
+ readonly fontSize: "16px";
3171
+ readonly lineHeight: "26px";
3172
+ };
3173
+ readonly body2: {
3174
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3175
+ readonly fontSize: "14px";
3176
+ readonly lineHeight: "23px";
3177
+ };
3178
+ readonly buttonLabel1: {
3179
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3180
+ readonly fontSize: "16px";
3181
+ readonly lineHeight: "16px";
3182
+ };
3183
+ readonly buttonLabel2: {
3184
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3185
+ readonly fontSize: "14px";
3186
+ readonly lineHeight: "14px";
3187
+ };
3188
+ readonly caption: {
3189
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3190
+ readonly fontSize: "12px";
3191
+ readonly letterSpacing: "0.18px";
3192
+ readonly lineHeight: "14px";
3193
+ };
3194
+ readonly h1: {
3195
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3196
+ readonly fontSize: "32px";
3197
+ readonly fontWeight: 700;
3198
+ readonly lineHeight: "38px";
3199
+ };
3200
+ readonly h2: {
3201
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3202
+ readonly fontSize: "28px";
3203
+ readonly fontWeight: 700;
3204
+ readonly lineHeight: "34px";
3205
+ };
3206
+ readonly h3: {
3207
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3208
+ readonly fontSize: "24px";
3209
+ readonly fontWeight: 700;
3210
+ readonly lineHeight: "29px";
3211
+ };
3212
+ readonly h4: {
3213
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3214
+ readonly fontSize: "20px";
3215
+ readonly fontWeight: 700;
3216
+ readonly lineHeight: "24px";
3217
+ };
3218
+ readonly subtitle1: {
3219
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3220
+ readonly fontSize: "20px";
3221
+ readonly fontWeight: 700;
3222
+ readonly lineHeight: "24px";
3223
+ };
3224
+ readonly subtitle2: {
3225
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3226
+ readonly fontSize: "16px";
3227
+ readonly fontWeight: 700;
3228
+ readonly lineHeight: "19px";
3229
+ };
3230
+ };
3231
+ export default typography;
3232
+ }
3233
+ declare module "libs/reach/util/common/src/theme/theme2/index" {
3234
+ export const reach2Theme: {
3235
+ colors: {
3236
+ background: {
3237
+ avatarPrimary: "#EBE9E8";
3238
+ inverted: "#0F0E0E";
3239
+ interaction: {
3240
+ disabled: "#EBE9E8";
3241
+ hover: "#EBE9E8";
3242
+ pressed: "#D7D2D1";
3243
+ primary: "#FFFFFF";
3244
+ };
3245
+ primary: "#EBE9E8";
3246
+ secondary: "#FFFFFF";
3247
+ tertiary: "#F5F4F3";
3248
+ };
3249
+ feedback: {
3250
+ error: {
3251
+ background: "#BF2B30";
3252
+ foreground: "#FCE5E3";
3253
+ };
3254
+ info: {
3255
+ background: "#0F6EA9";
3256
+ foreground: "#E2EDF6";
3257
+ };
3258
+ success: {
3259
+ background: "#287B44";
3260
+ foreground: "#ECF3EE";
3261
+ };
3262
+ warning: {
3263
+ background: "#E2BC30";
3264
+ foreground: "#7C671A";
3265
+ };
3266
+ };
3267
+ foreground: {
3268
+ avatar: "#F5F4F3";
3269
+ button: "#0F0E0E";
3270
+ buttonDisabled: "#C2BCB9";
3271
+ disabled: "#C2BCB9";
3272
+ icon: "#0F0E0E";
3273
+ iconDisabled: "#C2BCB9";
3274
+ iconInverted: "#FFFFFF";
3275
+ inverted: "#FFFFFF";
3276
+ primary: "#0F0E0E";
3277
+ secondary: "#3E3938";
3278
+ tertiary: "#5C5653";
3279
+ };
3280
+ stroke: {
3281
+ avatar: "#FFFFFF";
3282
+ border: {
3283
+ disabled: "#C2BCB9";
3284
+ focus: "#0F0E0E";
3285
+ primary: "#0F0E0E";
3286
+ };
3287
+ divider: {
3288
+ disabled: "#C2BCB9";
3289
+ primary: "#5C5653";
3290
+ secondary: "#D7D2D1";
3291
+ tabs: "#0F0E0E";
3292
+ tertiary: "#EBE9E8";
3293
+ };
3294
+ input: {
3295
+ default: "#C2BCB9";
3296
+ error: "#BF2B30";
3297
+ };
3298
+ selection: {
3299
+ hover: "#AEA5A2";
3300
+ pressed: "#9A8F8B";
3301
+ };
3302
+ };
3303
+ theme: {
3304
+ disabled: "#FFE4DC";
3305
+ hover: "#FF7A50";
3306
+ interactionSelected: "#FFE4DC";
3307
+ inverted: {
3308
+ hover: "#FFE4DC";
3309
+ pressed: "#FFCAB9";
3310
+ active: "#FFAF96";
3311
+ };
3312
+ pressed: "#CC6240";
3313
+ primary: "#FF9573";
3314
+ };
3315
+ };
3316
+ shadows: {
3317
+ drag: {
3318
+ boxShadow: string;
3319
+ };
3320
+ focusButton: {
3321
+ boxShadow: string;
3322
+ };
3323
+ hardFloat: {
3324
+ boxShadow: string;
3325
+ };
3326
+ sharp: {
3327
+ boxShadow: string;
3328
+ };
3329
+ sharpFloat: {
3330
+ boxShadow: string;
3331
+ };
3332
+ softFloat: {
3333
+ boxShadow: string;
3334
+ };
3335
+ };
3336
+ spacing: {
3337
+ readonly 4: 4;
3338
+ readonly 8: 8;
3339
+ readonly 12: 12;
3340
+ readonly 16: 16;
3341
+ readonly 20: 20;
3342
+ readonly 24: 24;
3343
+ readonly 32: 32;
3344
+ readonly 40: 40;
3345
+ readonly 48: 48;
3346
+ readonly 56: 56;
3347
+ readonly 68: 68;
3348
+ readonly 80: 80;
3349
+ };
3350
+ typography: {
3351
+ readonly body1: {
3352
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3353
+ readonly fontSize: "16px";
3354
+ readonly lineHeight: "26px";
3355
+ };
3356
+ readonly body2: {
3357
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3358
+ readonly fontSize: "14px";
3359
+ readonly lineHeight: "23px";
3360
+ };
3361
+ readonly buttonLabel1: {
3362
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3363
+ readonly fontSize: "16px";
3364
+ readonly lineHeight: "16px";
3365
+ };
3366
+ readonly buttonLabel2: {
3367
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3368
+ readonly fontSize: "14px";
3369
+ readonly lineHeight: "14px";
3370
+ };
3371
+ readonly caption: {
3372
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3373
+ readonly fontSize: "12px";
3374
+ readonly letterSpacing: "0.18px";
3375
+ readonly lineHeight: "14px";
3376
+ };
3377
+ readonly h1: {
3378
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3379
+ readonly fontSize: "32px";
3380
+ readonly fontWeight: 700;
3381
+ readonly lineHeight: "38px";
3382
+ };
3383
+ readonly h2: {
3384
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3385
+ readonly fontSize: "28px";
3386
+ readonly fontWeight: 700;
3387
+ readonly lineHeight: "34px";
3388
+ };
3389
+ readonly h3: {
3390
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3391
+ readonly fontSize: "24px";
3392
+ readonly fontWeight: 700;
3393
+ readonly lineHeight: "29px";
3394
+ };
3395
+ readonly h4: {
3396
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3397
+ readonly fontSize: "20px";
3398
+ readonly fontWeight: 700;
3399
+ readonly lineHeight: "24px";
3400
+ };
3401
+ readonly subtitle1: {
3402
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3403
+ readonly fontSize: "20px";
3404
+ readonly fontWeight: 700;
3405
+ readonly lineHeight: "24px";
3406
+ };
3407
+ readonly subtitle2: {
3408
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3409
+ readonly fontSize: "16px";
3410
+ readonly fontWeight: 700;
3411
+ readonly lineHeight: "19px";
3412
+ };
3413
+ };
3414
+ };
3415
+ export type IReach2Theme = typeof reach2Theme;
3416
+ }
3045
3417
  declare module "libs/reach/util/common/src/theme/ThemeService" {
3046
3418
  import { IPartialTheme } from 'office-ui-fabric-react';
3419
+ import { IReach2Theme } from "libs/reach/util/common/src/theme/theme2/index";
3047
3420
  import { Theme } from "libs/reach/util/common/src/user/Subscription";
3048
3421
  export const defaultThemeColors: Theme;
3049
3422
  export const defaultPageBackgroundColor: string;
@@ -3059,6 +3432,187 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3059
3432
  * Use SubscriptionService.updateTheme() to persist a custom theme against the User's Subscription
3060
3433
  */
3061
3434
  export function applyTheme(theme: Theme, disableUiFabricThemeOverwrite: boolean): {
3435
+ reach2Theme: {
3436
+ colors: {
3437
+ background: {
3438
+ avatarPrimary: "#EBE9E8";
3439
+ inverted: "#0F0E0E";
3440
+ interaction: {
3441
+ disabled: "#EBE9E8";
3442
+ hover: "#EBE9E8";
3443
+ pressed: "#D7D2D1";
3444
+ primary: "#FFFFFF";
3445
+ };
3446
+ primary: "#EBE9E8";
3447
+ secondary: "#FFFFFF";
3448
+ tertiary: "#F5F4F3";
3449
+ };
3450
+ feedback: {
3451
+ error: {
3452
+ background: "#BF2B30";
3453
+ foreground: "#FCE5E3";
3454
+ };
3455
+ info: {
3456
+ background: "#0F6EA9";
3457
+ foreground: "#E2EDF6";
3458
+ };
3459
+ success: {
3460
+ background: "#287B44";
3461
+ foreground: "#ECF3EE";
3462
+ };
3463
+ warning: {
3464
+ background: "#E2BC30";
3465
+ foreground: "#7C671A";
3466
+ };
3467
+ };
3468
+ foreground: {
3469
+ avatar: "#F5F4F3";
3470
+ button: "#0F0E0E";
3471
+ buttonDisabled: "#C2BCB9";
3472
+ disabled: "#C2BCB9";
3473
+ icon: "#0F0E0E";
3474
+ iconDisabled: "#C2BCB9";
3475
+ iconInverted: "#FFFFFF";
3476
+ inverted: "#FFFFFF";
3477
+ primary: "#0F0E0E";
3478
+ secondary: "#3E3938";
3479
+ tertiary: "#5C5653";
3480
+ };
3481
+ stroke: {
3482
+ avatar: "#FFFFFF";
3483
+ border: {
3484
+ disabled: "#C2BCB9";
3485
+ focus: "#0F0E0E";
3486
+ primary: "#0F0E0E";
3487
+ };
3488
+ divider: {
3489
+ disabled: "#C2BCB9";
3490
+ primary: "#5C5653";
3491
+ secondary: "#D7D2D1";
3492
+ tabs: "#0F0E0E";
3493
+ tertiary: "#EBE9E8";
3494
+ };
3495
+ input: {
3496
+ default: "#C2BCB9";
3497
+ error: "#BF2B30";
3498
+ };
3499
+ selection: {
3500
+ hover: "#AEA5A2";
3501
+ pressed: "#9A8F8B";
3502
+ };
3503
+ };
3504
+ theme: {
3505
+ disabled: "#FFE4DC";
3506
+ hover: "#FF7A50";
3507
+ interactionSelected: "#FFE4DC";
3508
+ inverted: {
3509
+ hover: "#FFE4DC";
3510
+ pressed: "#FFCAB9";
3511
+ active: "#FFAF96";
3512
+ };
3513
+ pressed: "#CC6240";
3514
+ primary: "#FF9573";
3515
+ };
3516
+ };
3517
+ shadows: {
3518
+ drag: {
3519
+ boxShadow: string;
3520
+ };
3521
+ focusButton: {
3522
+ boxShadow: string;
3523
+ };
3524
+ hardFloat: {
3525
+ boxShadow: string;
3526
+ };
3527
+ sharp: {
3528
+ boxShadow: string;
3529
+ };
3530
+ sharpFloat: {
3531
+ boxShadow: string;
3532
+ };
3533
+ softFloat: {
3534
+ boxShadow: string;
3535
+ };
3536
+ };
3537
+ spacing: {
3538
+ readonly 4: 4;
3539
+ readonly 8: 8;
3540
+ readonly 12: 12;
3541
+ readonly 16: 16;
3542
+ readonly 20: 20;
3543
+ readonly 24: 24;
3544
+ readonly 32: 32;
3545
+ readonly 40: 40;
3546
+ readonly 48: 48;
3547
+ readonly 56: 56;
3548
+ readonly 68: 68;
3549
+ readonly 80: 80;
3550
+ };
3551
+ typography: {
3552
+ readonly body1: {
3553
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3554
+ readonly fontSize: "16px";
3555
+ readonly lineHeight: "26px";
3556
+ };
3557
+ readonly body2: {
3558
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3559
+ readonly fontSize: "14px";
3560
+ readonly lineHeight: "23px";
3561
+ };
3562
+ readonly buttonLabel1: {
3563
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3564
+ readonly fontSize: "16px";
3565
+ readonly lineHeight: "16px";
3566
+ };
3567
+ readonly buttonLabel2: {
3568
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3569
+ readonly fontSize: "14px";
3570
+ readonly lineHeight: "14px";
3571
+ };
3572
+ readonly caption: {
3573
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3574
+ readonly fontSize: "12px";
3575
+ readonly letterSpacing: "0.18px";
3576
+ readonly lineHeight: "14px";
3577
+ };
3578
+ readonly h1: {
3579
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3580
+ readonly fontSize: "32px";
3581
+ readonly fontWeight: 700;
3582
+ readonly lineHeight: "38px";
3583
+ };
3584
+ readonly h2: {
3585
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3586
+ readonly fontSize: "28px";
3587
+ readonly fontWeight: 700;
3588
+ readonly lineHeight: "34px";
3589
+ };
3590
+ readonly h3: {
3591
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3592
+ readonly fontSize: "24px";
3593
+ readonly fontWeight: 700;
3594
+ readonly lineHeight: "29px";
3595
+ };
3596
+ readonly h4: {
3597
+ readonly fontFamily: "Anybody, Arial, sans-serif !important";
3598
+ readonly fontSize: "20px";
3599
+ readonly fontWeight: 700;
3600
+ readonly lineHeight: "24px";
3601
+ };
3602
+ readonly subtitle1: {
3603
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3604
+ readonly fontSize: "20px";
3605
+ readonly fontWeight: 700;
3606
+ readonly lineHeight: "24px";
3607
+ };
3608
+ readonly subtitle2: {
3609
+ readonly fontFamily: "Mulish, Arial, sans-serif !important";
3610
+ readonly fontSize: "16px";
3611
+ readonly fontWeight: 700;
3612
+ readonly lineHeight: "19px";
3613
+ };
3614
+ };
3615
+ };
3062
3616
  palette: {
3063
3617
  themeDarker: string;
3064
3618
  themeDark: string;
@@ -3077,11 +3631,6 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3077
3631
  neutralTertiary: string;
3078
3632
  neutralTertiaryAlt: string;
3079
3633
  neutralQuaternary: string;
3080
- /**
3081
- * Theme Service applies custom themes.
3082
- * Accommodates overriding the custom UI Fabric default styles which
3083
- * are not automatically applied (e.g. ms-bgColor-themePrimary) via load-themed-styles
3084
- */
3085
3634
  neutralQuaternaryAlt: string;
3086
3635
  neutralLight: string;
3087
3636
  neutralLighter: string;
@@ -3135,7 +3684,12 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3135
3684
  onSecondary: string;
3136
3685
  };
3137
3686
  };
3687
+ /**
3688
+ * Have IReach2Theme inside IReachTheme because styled-components only supports
3689
+ * customizing one theme (`DefaultTheme`). This way no legacy types will break
3690
+ */
3138
3691
  export type IReachTheme = IPartialTheme & {
3692
+ reach2Theme?: IReach2Theme;
3139
3693
  textColors?: Partial<ITextColors>;
3140
3694
  };
3141
3695
  interface ITextColors {
@@ -3169,9 +3723,10 @@ declare module "libs/reach/util/common/src/theme/LegacyThemeContext" {
3169
3723
  export function useTheme(): IReachTheme;
3170
3724
  }
3171
3725
  declare module "libs/reach/util/common/src/theme/index" {
3726
+ export * from "libs/reach/util/common/src/theme/ColorGenerator";
3172
3727
  export * from "libs/reach/util/common/src/theme/LegacyThemeContext";
3173
3728
  export * from "libs/reach/util/common/src/theme/ThemeService";
3174
- export * from "libs/reach/util/common/src/theme/ColorGenerator";
3729
+ export * from "libs/reach/util/common/src/theme/theme2/index";
3175
3730
  }
3176
3731
  declare module "libs/reach/util/common/src/plugins/Plugin" {
3177
3732
  import { FC } from 'react';
@@ -3421,6 +3976,15 @@ declare module "libs/reach/util/common/src/skip-links/index" {
3421
3976
  export * from "libs/reach/util/common/src/skip-links/useAddSkipLinks";
3422
3977
  export * from "libs/reach/util/common/src/skip-links/skipLinksUtils";
3423
3978
  }
3979
+ declare module "libs/reach/util/common/src/reach-2/FocusStyles" {
3980
+ export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
3981
+ }
3982
+ declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
3983
+ import { FC } from 'react';
3984
+ export const GlobalApp2Styles: FC;
3985
+ export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
3986
+ export const EditorScrollbarStyles: (hideWhenNotHovered?: boolean, showBackground?: boolean) => import("styled-components").FlattenSimpleInterpolation;
3987
+ }
3424
3988
  declare module "libs/reach/util/common/src/reach-2/useNewExperienceStorage" {
3425
3989
  export function useNewUserExperienceStorage(): {
3426
3990
  getUseNewUserExperience: () => Promise<boolean>;
@@ -3445,16 +4009,6 @@ declare module "libs/reach/util/common/src/reach-2/NewUserExperienceContext" {
3445
4009
  }>;
3446
4010
  export const NewUserExperienceContextProvider: FC;
3447
4011
  }
3448
- declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
3449
- import { FC } from 'react';
3450
- export const GlobalApp2Styles: FC;
3451
- export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
3452
- export const EditorScrollbarStyles: (hideWhenNotHovered?: boolean, showBackground?: boolean) => import("styled-components").FlattenSimpleInterpolation;
3453
- }
3454
- declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls" {
3455
- export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
3456
- export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
3457
- }
3458
4012
  declare module "libs/reach/util/common/src/reach-2/resources/languages/da.async" {
3459
4013
  import '@formatjs/intl-pluralrules/dist/locale-data/da';
3460
4014
  import '@formatjs/intl-relativetimeformat/dist/locale-data/da';
@@ -3539,17 +4093,18 @@ declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
3539
4093
  children: ReactNode;
3540
4094
  }>;
3541
4095
  }
3542
- declare module "libs/reach/util/common/src/reach-2/FocusStyles" {
3543
- export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
4096
+ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls" {
4097
+ export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
4098
+ export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
3544
4099
  }
3545
4100
  declare module "libs/reach/util/common/src/reach-2/index" {
3546
- export * from "libs/reach/util/common/src/reach-2/NewUserExperienceContext";
3547
- export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
4101
+ export * from "libs/reach/util/common/src/reach-2/FocusStyles";
3548
4102
  export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
3549
- export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
4103
+ export * from "libs/reach/util/common/src/reach-2/NewUserExperienceContext";
3550
4104
  export * from "libs/reach/util/common/src/reach-2/resources/index";
3551
4105
  export * from "libs/reach/util/common/src/reach-2/ThemeContext";
3552
- export * from "libs/reach/util/common/src/reach-2/FocusStyles";
4106
+ export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
4107
+ export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
3553
4108
  }
3554
4109
  declare module "libs/reach/util/common/src/useReachClassNames" {
3555
4110
  export function useReachClassNames(): string;
@@ -5748,6 +6303,66 @@ declare module "libs/reach/ui/common/src/reach-2/TextField" {
5748
6303
  const TextField: FC<ITextFieldProps>;
5749
6304
  export default TextField;
5750
6305
  }
6306
+ declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
6307
+ import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
6308
+ const variantMapping: {
6309
+ readonly body1: "span";
6310
+ readonly body2: "span";
6311
+ readonly buttonLabel1: "span";
6312
+ readonly buttonLabel2: "span";
6313
+ readonly caption: "span";
6314
+ readonly h1: "h1";
6315
+ readonly h2: "h2";
6316
+ readonly h3: "h3";
6317
+ readonly h4: "h4";
6318
+ readonly inherit: "span";
6319
+ readonly subtitle1: "span";
6320
+ readonly subtitle2: "span";
6321
+ };
6322
+ export interface ITypographyProps<T extends ElementType = typeof variantMapping['body1']> {
6323
+ /**
6324
+ * Set the text alignment.
6325
+ * @default 'inherit'
6326
+ */
6327
+ align?: 'center' | 'justify' | 'left' | 'right';
6328
+ /**
6329
+ * The HTML element to use as the container for the text (overrides the variant default HTML element).
6330
+ * @default undefined
6331
+ */
6332
+ as?: T;
6333
+ /**
6334
+ * Set the font decoration/style.
6335
+ * @default undefined
6336
+ */
6337
+ decoration?: 'line-through' | 'underline';
6338
+ /**
6339
+ * Whether text should be italic
6340
+ * @default false
6341
+ */
6342
+ italic?: boolean;
6343
+ /**
6344
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
6345
+ *
6346
+ * Note that text overflow can only happen with block or inline-block level elements
6347
+ * (the element needs to have a width in order to overflow).
6348
+ * @default false
6349
+ */
6350
+ noWrap?: boolean;
6351
+ /**
6352
+ * Set the typography variant.
6353
+ * @default 'body1'
6354
+ */
6355
+ variant?: keyof typeof variantMapping;
6356
+ /**
6357
+ * Set the font weight.
6358
+ * @default 'normal'
6359
+ */
6360
+ weight?: 'bold' | 'normal' | 'semibold';
6361
+ }
6362
+ type TTypographyOverridenProps<T extends ElementType> = PropsWithChildren<ITypographyProps<T>> & Omit<ComponentPropsWithoutRef<T>, keyof ITypographyProps<T>>;
6363
+ const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
6364
+ export default Typography;
6365
+ }
5751
6366
  declare module "libs/reach/ui/common/src/reach-2/utils" {
5752
6367
  export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
5753
6368
  export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
@@ -5769,6 +6384,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
5769
6384
  export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
5770
6385
  export { default as Card } from "libs/reach/ui/common/src/reach-2/surfaces/Card";
5771
6386
  export { default as TextField } from "libs/reach/ui/common/src/reach-2/TextField";
6387
+ export * from "libs/reach/ui/common/src/reach-2/typography/Typography";
5772
6388
  export * from "libs/reach/ui/common/src/reach-2/utils";
5773
6389
  }
5774
6390
  declare module "libs/reach/ui/common/src/index" {
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.941",
7
+ "version": "0.5.0-preview.943",
8
8
  "dependencies": {}
9
9
  }