@box/blueprint-web 7.36.3 → 8.1.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.
- package/lib-esm/index.css +145 -141
- package/lib-esm/modal/modal-scrollable-container.js +15 -5
- package/lib-esm/page/index.d.ts +10 -1
- package/lib-esm/page/page-global-header-search-container.d.ts +2 -0
- package/lib-esm/page/page-global-header-side-content-container.d.ts +2 -0
- package/lib-esm/page/page-global-header.d.ts +10 -0
- package/lib-esm/primitives/base-button/base-button.module.js +1 -1
- package/lib-esm/primitives/chips/chip.module.js +1 -1
- package/lib-esm/primitives/notification/notification.module.js +1 -1
- package/lib-esm/radio-group/radio-group.module.js +1 -1
- package/lib-esm/side-panel/side-panel-content.js +1 -1
- package/lib-esm/side-panel/side-panel-trigger.d.ts +6 -0
- package/lib-esm/side-panel/side-panel-trigger.js +18 -0
- package/lib-esm/side-panel/side-panel.d.ts +2 -1
- package/lib-esm/side-panel/side-panel.js +3 -1
- package/lib-esm/side-panel/types.d.ts +4 -1
- package/lib-esm/switch/switch.module.js +1 -1
- package/lib-esm/text/text.js +1 -0
- package/lib-esm/text-toggle-button/text-toggle-button.module.js +1 -1
- package/lib-esm/toolbar/toolbar.module.js +1 -1
- package/lib-esm/utils/createSetRefWithCallback.d.ts +10 -2
- package/lib-esm/utils/scroll-context.d.ts +1 -0
- package/lib-esm/utils/scroll-context.js +11 -3
- package/package.json +2 -2
package/lib-esm/index.css
CHANGED
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
.bp_base_button_module_button--
|
|
317
|
+
.bp_base_button_module_button--fe56c{
|
|
318
318
|
border-radius:var(--radius-2);
|
|
319
319
|
cursor:pointer;
|
|
320
320
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -330,95 +330,95 @@
|
|
|
330
330
|
user-select:none;
|
|
331
331
|
white-space:nowrap;
|
|
332
332
|
}
|
|
333
|
-
.bp_base_button_module_button--
|
|
333
|
+
.bp_base_button_module_button--fe56c,.bp_base_button_module_button--fe56c .bp_base_button_module_icon--fe56c{
|
|
334
334
|
align-items:center;
|
|
335
335
|
display:flex;
|
|
336
336
|
}
|
|
337
|
-
.bp_base_button_module_button--
|
|
338
|
-
box-shadow:0 0 0
|
|
337
|
+
.bp_base_button_module_button--fe56c:not(:disabled)[data-focus-visible]{
|
|
338
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
339
339
|
}
|
|
340
|
-
.bp_base_button_module_button--
|
|
340
|
+
.bp_base_button_module_button--fe56c:disabled{
|
|
341
341
|
opacity:.3;
|
|
342
342
|
}
|
|
343
|
-
.bp_base_button_module_button--
|
|
343
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_primary--fe56c{
|
|
344
344
|
background:var(--surface-surface-brand);
|
|
345
345
|
border:var(--border-1) solid var(--surface-surface-brand);
|
|
346
346
|
color:var(--text-text-brand-on-color);
|
|
347
347
|
}
|
|
348
|
-
.bp_base_button_module_button--
|
|
348
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_primary--fe56c:disabled{
|
|
349
349
|
background:var(--surface-surface-brand-disabled);
|
|
350
350
|
}
|
|
351
|
-
.bp_base_button_module_button--
|
|
351
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_primary--fe56c:not(:disabled):hover,.bp_base_button_module_button--fe56c.bp_base_button_module_primary--fe56c:not(:disabled)[data-focus-visible]{
|
|
352
352
|
background:var(--surface-surface-brand-hover);
|
|
353
353
|
border:var(--border-1) solid var(--surface-surface-brand-hover);
|
|
354
354
|
}
|
|
355
|
-
.bp_base_button_module_button--
|
|
355
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_primary--fe56c:not(:disabled):active{
|
|
356
356
|
background:var(--surface-surface-brand-pressed);
|
|
357
357
|
border:var(--border-1) solid var(--surface-surface-brand-pressed);
|
|
358
358
|
}
|
|
359
|
-
.bp_base_button_module_button--
|
|
359
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_secondary--fe56c{
|
|
360
360
|
background:var(--surface-cta-surface-secondary);
|
|
361
361
|
border:var(--border-1) solid var(--border-cta-border-secondary);
|
|
362
362
|
color:var(--text-text-on-light);
|
|
363
363
|
}
|
|
364
|
-
.bp_base_button_module_button--
|
|
364
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_secondary--fe56c:not(:disabled):hover,.bp_base_button_module_button--fe56c.bp_base_button_module_secondary--fe56c:not(:disabled)[data-focus-visible]{
|
|
365
365
|
background:var(--surface-cta-surface-secondary-hover);
|
|
366
366
|
border:var(--border-1) solid var(--border-cta-border-secondary-hover);
|
|
367
367
|
}
|
|
368
|
-
.bp_base_button_module_button--
|
|
368
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_secondary--fe56c:not(:disabled):active{
|
|
369
369
|
background:var(--surface-cta-surface-secondary-pressed);
|
|
370
370
|
border:var(--border-1) solid var(--border-cta-border-secondary-pressed);
|
|
371
371
|
}
|
|
372
|
-
.bp_base_button_module_button--
|
|
372
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_tertiary--fe56c{
|
|
373
373
|
background:var(--surface-cta-surface-tertiary);
|
|
374
374
|
border:var(--border-1) solid #0000;
|
|
375
375
|
color:var(--text-cta-link);
|
|
376
376
|
}
|
|
377
|
-
.bp_base_button_module_button--
|
|
377
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_tertiary--fe56c:not(:disabled):hover,.bp_base_button_module_button--fe56c.bp_base_button_module_tertiary--fe56c:not(:disabled)[data-focus-visible]{
|
|
378
378
|
background:var(--surface-cta-surface-tertiary-hover);
|
|
379
379
|
}
|
|
380
|
-
.bp_base_button_module_button--
|
|
380
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_tertiary--fe56c:not(:disabled):active{
|
|
381
381
|
background:var(--surface-cta-surface-tertiary-pressed);
|
|
382
382
|
}
|
|
383
|
-
.bp_base_button_module_button--
|
|
383
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_outline--fe56c{
|
|
384
384
|
background:#0000;
|
|
385
385
|
border:var(--border-1) solid var(--border-cta-border-outline);
|
|
386
386
|
color:var(--text-text-on-light);
|
|
387
387
|
}
|
|
388
|
-
.bp_base_button_module_button--
|
|
388
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_outline--fe56c:not(:disabled):hover,.bp_base_button_module_button--fe56c.bp_base_button_module_outline--fe56c:not(:disabled)[data-focus-visible]{
|
|
389
389
|
background:var(--surface-cta-surface-outline-hover);
|
|
390
390
|
border:var(--border-1) solid var(--border-cta-border-outline-hover);
|
|
391
391
|
}
|
|
392
|
-
.bp_base_button_module_button--
|
|
392
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_outline--fe56c:not(:disabled):active{
|
|
393
393
|
background:var(--surface-cta-surface-outline-pressed);
|
|
394
394
|
border:var(--border-1) solid var(--border-cta-border-outline-pressed);
|
|
395
395
|
}
|
|
396
|
-
.bp_base_button_module_button--
|
|
396
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_small--fe56c{
|
|
397
397
|
gap:var(--space-1);
|
|
398
398
|
min-height:var(--size-8);
|
|
399
399
|
padding:0 var(--size-4);
|
|
400
400
|
}
|
|
401
|
-
.bp_base_button_module_button--
|
|
401
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_small--fe56c.bp_base_button_module_isIconButton--fe56c{
|
|
402
402
|
height:var(--size-8);
|
|
403
403
|
min-height:unset;
|
|
404
404
|
padding:0 calc((var(--size-8) - var(--size-4))/2);
|
|
405
405
|
width:var(--size-8);
|
|
406
406
|
}
|
|
407
|
-
.bp_base_button_module_button--
|
|
407
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_large--fe56c{
|
|
408
408
|
gap:var(--space-2);
|
|
409
409
|
min-height:var(--size-10);
|
|
410
410
|
padding:0 var(--size-4);
|
|
411
411
|
}
|
|
412
|
-
.bp_base_button_module_button--
|
|
412
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_large--fe56c.bp_base_button_module_isIconButton--fe56c{
|
|
413
413
|
height:var(--size-10);
|
|
414
414
|
padding:0 calc((var(--size-10) - var(--size-5))/2);
|
|
415
415
|
width:var(--size-10);
|
|
416
416
|
}
|
|
417
|
-
.bp_base_button_module_button--
|
|
417
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_hide--fe56c{
|
|
418
418
|
pointer-events:none;
|
|
419
419
|
position:relative;
|
|
420
420
|
}
|
|
421
|
-
.bp_base_button_module_button--
|
|
421
|
+
.bp_base_button_module_button--fe56c.bp_base_button_module_hide--fe56c span{
|
|
422
422
|
color:#0000;
|
|
423
423
|
opacity:0;
|
|
424
424
|
}
|
|
@@ -4081,7 +4081,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4081
4081
|
.bp_base_text_input_module_inlineError--4b0e7{
|
|
4082
4082
|
margin-block-start:var(--space-2);
|
|
4083
4083
|
}
|
|
4084
|
-
.bp_chip_module_chip--
|
|
4084
|
+
.bp_chip_module_chip--d387b{
|
|
4085
4085
|
align-items:center;
|
|
4086
4086
|
border:none;
|
|
4087
4087
|
border-radius:var(--radius-half);
|
|
@@ -4098,19 +4098,23 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4098
4098
|
text-decoration:none;
|
|
4099
4099
|
text-transform:none;
|
|
4100
4100
|
}
|
|
4101
|
-
.bp_chip_module_chip--
|
|
4101
|
+
.bp_chip_module_chip--d387b .bp_chip_module_labelText--d387b:first-child{
|
|
4102
4102
|
margin-inline-start:var(--space-4);
|
|
4103
4103
|
}
|
|
4104
|
-
.bp_chip_module_chip--
|
|
4104
|
+
.bp_chip_module_chip--d387b .bp_chip_module_labelText--d387b:last-child{
|
|
4105
4105
|
margin-inline-end:var(--space-4);
|
|
4106
4106
|
}
|
|
4107
|
-
.bp_chip_module_chip--
|
|
4107
|
+
.bp_chip_module_chip--d387b .bp_chip_module_chipStatus--d387b:first-child,.bp_chip_module_chip--d387b svg:first-child{
|
|
4108
4108
|
margin-inline-start:var(--space-2);
|
|
4109
4109
|
}
|
|
4110
|
-
.bp_chip_module_chip--
|
|
4110
|
+
.bp_chip_module_chip--d387b .bp_chip_module_chipStatus--d387b:last-child,.bp_chip_module_chip--d387b svg:last-child{
|
|
4111
4111
|
margin-inline-end:var(--space-2);
|
|
4112
4112
|
}
|
|
4113
|
-
.bp_chip_module_chip--
|
|
4113
|
+
.bp_chip_module_chip--d387b:disabled{
|
|
4114
|
+
cursor:default;
|
|
4115
|
+
pointer-events:none;
|
|
4116
|
+
}
|
|
4117
|
+
.bp_chip_module_chip--d387b .bp_chip_module_chipStatus--d387b{
|
|
4114
4118
|
align-items:center;
|
|
4115
4119
|
background-color:var(--gray-10);
|
|
4116
4120
|
border-radius:var(--radius-half);
|
|
@@ -4129,10 +4133,10 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4129
4133
|
text-decoration:none;
|
|
4130
4134
|
text-transform:none;
|
|
4131
4135
|
}
|
|
4132
|
-
.bp_chip_module_chip--
|
|
4136
|
+
.bp_chip_module_chip--d387b .bp_chip_module_labelText--d387b{
|
|
4133
4137
|
white-space:nowrap;
|
|
4134
4138
|
}
|
|
4135
|
-
.bp_chip_module_chip--
|
|
4139
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b{
|
|
4136
4140
|
background-color:var(--surface-chip-button-surface);
|
|
4137
4141
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
4138
4142
|
font-size:.875rem;
|
|
@@ -4142,50 +4146,50 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4142
4146
|
text-decoration:none;
|
|
4143
4147
|
text-transform:none;
|
|
4144
4148
|
}
|
|
4145
|
-
.bp_chip_module_chip--
|
|
4149
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b:focus-visible{
|
|
4146
4150
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4147
4151
|
outline:none;
|
|
4148
4152
|
overflow:visible;
|
|
4149
4153
|
}
|
|
4150
|
-
.bp_chip_module_chip--
|
|
4154
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b .bp_chip_module_chipStatus--d387b{
|
|
4151
4155
|
background-color:var(--box-blue-100);
|
|
4152
4156
|
color:var(--text-text-on-dark);
|
|
4153
4157
|
}
|
|
4154
|
-
.bp_chip_module_chip--
|
|
4158
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b:focus-visible,.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b[data-active-item]{
|
|
4155
4159
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4156
4160
|
outline:none;
|
|
4157
4161
|
}
|
|
4158
|
-
.bp_chip_module_chip--
|
|
4162
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b:disabled{
|
|
4159
4163
|
pointer-events:none;
|
|
4160
4164
|
}
|
|
4161
|
-
.bp_chip_module_chip--
|
|
4165
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b:disabled .bp_chip_module_chipStatus--d387b{
|
|
4162
4166
|
opacity:.4;
|
|
4163
4167
|
}
|
|
4164
|
-
.bp_chip_module_chip--
|
|
4168
|
+
.bp_chip_module_chip--d387b.bp_chip_module_chipButton--d387b:hover:enabled{
|
|
4165
4169
|
background-color:var(--surface-chip-button-surface-hover);
|
|
4166
4170
|
}
|
|
4167
|
-
.bp_chip_module_chip--
|
|
4171
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b{
|
|
4168
4172
|
background-color:var(--surface-filterchip-surface-single);
|
|
4169
4173
|
}
|
|
4170
|
-
.bp_chip_module_chip--
|
|
4174
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b[data-state=on]{
|
|
4171
4175
|
background-color:var(--surface-filterchip-surface-single-on);
|
|
4172
4176
|
color:var(--text-text-on-dark);
|
|
4173
4177
|
}
|
|
4174
|
-
.bp_chip_module_chip--
|
|
4178
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b[data-state=on]:hover{
|
|
4175
4179
|
background-color:var(--surface-filterchip-surface-single-on-hover);
|
|
4176
4180
|
}
|
|
4177
|
-
.bp_chip_module_chip--
|
|
4181
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b[data-state=on] .bp_chip_module_chipStatus--d387b{
|
|
4178
4182
|
color:var(--text-text-on-light);
|
|
4179
4183
|
}
|
|
4180
|
-
.bp_chip_module_chip--
|
|
4184
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b:focus-visible,.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b[data-active-item]{
|
|
4181
4185
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4182
4186
|
outline:var(--border-1) solid var(--gray-white);
|
|
4183
4187
|
outline-offset:calc(var(--border-1)*-1);
|
|
4184
4188
|
}
|
|
4185
|
-
.bp_chip_module_chip--
|
|
4189
|
+
.bp_chip_module_chip--d387b.bp_chip_module_singleSelectChip--d387b:hover:not([data-state=on]){
|
|
4186
4190
|
background-color:var(--surface-filterchip-surface-single-hover);
|
|
4187
4191
|
}
|
|
4188
|
-
.bp_chip_module_chip--
|
|
4192
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b{
|
|
4189
4193
|
background-color:var(--surface-filterchip-surface-multi);
|
|
4190
4194
|
border:var(--border-1) solid var(--surface-filterchip-surface-multi);
|
|
4191
4195
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -4196,10 +4200,10 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4196
4200
|
text-decoration:none;
|
|
4197
4201
|
text-transform:none;
|
|
4198
4202
|
}
|
|
4199
|
-
.bp_chip_module_chip--
|
|
4203
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b path{
|
|
4200
4204
|
fill:var(--icon-icon-on-light);
|
|
4201
4205
|
}
|
|
4202
|
-
.bp_chip_module_chip--
|
|
4206
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on]{
|
|
4203
4207
|
background-color:var(--surface-filterchip-surface-multi-on);
|
|
4204
4208
|
border:var(--border-1) solid var(--border-filterchip-border-multi-on);
|
|
4205
4209
|
color:var(--text-cta-link);
|
|
@@ -4211,32 +4215,32 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4211
4215
|
text-decoration:none;
|
|
4212
4216
|
text-transform:none;
|
|
4213
4217
|
}
|
|
4214
|
-
.bp_chip_module_chip--
|
|
4218
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on] path{
|
|
4215
4219
|
fill:var(--text-cta-link);
|
|
4216
4220
|
}
|
|
4217
|
-
.bp_chip_module_chip--
|
|
4221
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on]:hover{
|
|
4218
4222
|
background-color:var(--surface-filterchip-surface-multi-on-hover);
|
|
4219
4223
|
}
|
|
4220
|
-
.bp_chip_module_chip--
|
|
4224
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on]:focus-visible,.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on][data-active-item]{
|
|
4221
4225
|
border:var(--border-1) solid var(--gray-white);
|
|
4222
4226
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4223
4227
|
outline:var(--border-1) solid var(--border-filterchip-border-multi-on);
|
|
4224
4228
|
outline-offset:calc(var(--border-2)*-1);
|
|
4225
4229
|
}
|
|
4226
|
-
.bp_chip_module_chip--
|
|
4230
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-state=on] .bp_chip_module_chipStatus--d387b{
|
|
4227
4231
|
background-color:var(--box-blue-100);
|
|
4228
4232
|
color:var(--text-text-on-dark);
|
|
4229
4233
|
}
|
|
4230
|
-
.bp_chip_module_chip--
|
|
4234
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b:focus-visible:not([data-state=on]),.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b[data-active-item]:not([data-state=on]){
|
|
4231
4235
|
box-shadow:0 0 0 var(--border-2) var(--outline-focus-on-light);
|
|
4232
4236
|
outline:var(--border-1) solid var(--gray-white);
|
|
4233
4237
|
outline-offset:calc(var(--border-1)*-1);
|
|
4234
4238
|
}
|
|
4235
|
-
.bp_chip_module_chip--
|
|
4239
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b:hover:not([data-state=on]){
|
|
4236
4240
|
background-color:var(--surface-filterchip-surface-multi-hover);
|
|
4237
4241
|
border:var(--border-1) solid var(--surface-filterchip-surface-multi-hover);
|
|
4238
4242
|
}
|
|
4239
|
-
.bp_chip_module_chip--
|
|
4243
|
+
.bp_chip_module_chip--d387b.bp_chip_module_multiSelectChip--d387b span::before{
|
|
4240
4244
|
content:attr(data-text);
|
|
4241
4245
|
display:block;
|
|
4242
4246
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -4251,20 +4255,20 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4251
4255
|
visibility:hidden;
|
|
4252
4256
|
}
|
|
4253
4257
|
|
|
4254
|
-
.bp_chip_module_chipsGroup--
|
|
4258
|
+
.bp_chip_module_chipsGroup--d387b{
|
|
4255
4259
|
display:flex;
|
|
4256
4260
|
flex-wrap:wrap;
|
|
4257
4261
|
gap:var(--space-2);
|
|
4258
4262
|
}
|
|
4259
4263
|
@media (max-width: 767px){
|
|
4260
|
-
.bp_chip_module_chipsGroup--
|
|
4264
|
+
.bp_chip_module_chipsGroup--d387b{
|
|
4261
4265
|
-ms-overflow-style:none;
|
|
4262
4266
|
flex-wrap:nowrap;
|
|
4263
4267
|
overflow-x:scroll;
|
|
4264
4268
|
padding:var(--space-05);
|
|
4265
4269
|
scrollbar-width:none;
|
|
4266
4270
|
}
|
|
4267
|
-
.bp_chip_module_chipsGroup--
|
|
4271
|
+
.bp_chip_module_chipsGroup--d387b::-webkit-scrollbar{
|
|
4268
4272
|
display:none;
|
|
4269
4273
|
}
|
|
4270
4274
|
}
|
|
@@ -4309,7 +4313,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4309
4313
|
background-color:var(--surface-menu-surface-focus);
|
|
4310
4314
|
}
|
|
4311
4315
|
|
|
4312
|
-
.bp_notification_module_viewport--
|
|
4316
|
+
.bp_notification_module_viewport--dba95{
|
|
4313
4317
|
all:unset;
|
|
4314
4318
|
align-items:center;
|
|
4315
4319
|
display:flex;
|
|
@@ -4322,7 +4326,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4322
4326
|
z-index:2147483647;
|
|
4323
4327
|
}
|
|
4324
4328
|
|
|
4325
|
-
.bp_notification_module_root--
|
|
4329
|
+
.bp_notification_module_root--dba95{
|
|
4326
4330
|
border:var(--border-2) solid;
|
|
4327
4331
|
border-radius:var(--radius-3);
|
|
4328
4332
|
display:flex;
|
|
@@ -4330,26 +4334,26 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4330
4334
|
width:max-content;
|
|
4331
4335
|
}
|
|
4332
4336
|
@media (width > 374px){
|
|
4333
|
-
.bp_notification_module_root--
|
|
4337
|
+
.bp_notification_module_root--dba95{
|
|
4334
4338
|
max-width:343px;
|
|
4335
4339
|
}
|
|
4336
4340
|
}
|
|
4337
4341
|
@media (width > 767px){
|
|
4338
|
-
.bp_notification_module_root--
|
|
4342
|
+
.bp_notification_module_root--dba95{
|
|
4339
4343
|
max-width:728px;
|
|
4340
4344
|
}
|
|
4341
4345
|
}
|
|
4342
4346
|
@media (width > 1023px){
|
|
4343
|
-
.bp_notification_module_root--
|
|
4347
|
+
.bp_notification_module_root--dba95{
|
|
4344
4348
|
max-width:848px;
|
|
4345
4349
|
}
|
|
4346
4350
|
}
|
|
4347
4351
|
@media (width > 1219px){
|
|
4348
|
-
.bp_notification_module_root--
|
|
4352
|
+
.bp_notification_module_root--dba95{
|
|
4349
4353
|
max-width:896px;
|
|
4350
4354
|
}
|
|
4351
4355
|
}
|
|
4352
|
-
.bp_notification_module_root--
|
|
4356
|
+
.bp_notification_module_root--dba95 .bp_notification_module_container--dba95{
|
|
4353
4357
|
align-items:flex-start;
|
|
4354
4358
|
box-shadow:var(--dropshadow-3);
|
|
4355
4359
|
display:flex;
|
|
@@ -4358,11 +4362,11 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4358
4362
|
width:100%;
|
|
4359
4363
|
}
|
|
4360
4364
|
@media (width > 767px){
|
|
4361
|
-
.bp_notification_module_root--
|
|
4365
|
+
.bp_notification_module_root--dba95 .bp_notification_module_container--dba95{
|
|
4362
4366
|
align-items:center;
|
|
4363
4367
|
}
|
|
4364
4368
|
}
|
|
4365
|
-
.bp_notification_module_root--
|
|
4369
|
+
.bp_notification_module_root--dba95 .bp_notification_module_mobileContainer--dba95{
|
|
4366
4370
|
align-items:left;
|
|
4367
4371
|
display:flex;
|
|
4368
4372
|
flex-direction:column;
|
|
@@ -4370,46 +4374,46 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4370
4374
|
width:100%;
|
|
4371
4375
|
}
|
|
4372
4376
|
@media (width > 767px){
|
|
4373
|
-
.bp_notification_module_root--
|
|
4377
|
+
.bp_notification_module_root--dba95 .bp_notification_module_mobileContainer--dba95{
|
|
4374
4378
|
align-items:center;
|
|
4375
4379
|
flex-direction:row;
|
|
4376
4380
|
}
|
|
4377
4381
|
}
|
|
4378
|
-
.bp_notification_module_root--
|
|
4382
|
+
.bp_notification_module_root--dba95 .bp_notification_module_withButtons--dba95{
|
|
4379
4383
|
gap:var(--space-3);
|
|
4380
4384
|
}
|
|
4381
|
-
.bp_notification_module_root--
|
|
4385
|
+
.bp_notification_module_root--dba95.bp_notification_module_info--dba95{
|
|
4382
4386
|
background:var(--surface-message-surface-info);
|
|
4383
4387
|
border-color:var(--border-message-border-info);
|
|
4384
4388
|
}
|
|
4385
|
-
.bp_notification_module_root--
|
|
4389
|
+
.bp_notification_module_root--dba95.bp_notification_module_success--dba95{
|
|
4386
4390
|
background:var(--surface-message-surface-success);
|
|
4387
4391
|
border-color:var(--border-message-border-success);
|
|
4388
4392
|
}
|
|
4389
|
-
.bp_notification_module_root--
|
|
4393
|
+
.bp_notification_module_root--dba95.bp_notification_module_warning--dba95{
|
|
4390
4394
|
background:var(--surface-message-surface-warning);
|
|
4391
4395
|
border-color:var(--border-message-border-warning);
|
|
4392
4396
|
}
|
|
4393
|
-
.bp_notification_module_root--
|
|
4397
|
+
.bp_notification_module_root--dba95.bp_notification_module_error--dba95{
|
|
4394
4398
|
background:var(--surface-message-surface-error);
|
|
4395
4399
|
border-color:var(--border-message-border-error);
|
|
4396
4400
|
}
|
|
4397
|
-
.bp_notification_module_root--
|
|
4398
|
-
box-shadow:0 0 0
|
|
4401
|
+
.bp_notification_module_root--dba95:focus-visible{
|
|
4402
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
4399
4403
|
outline:none;
|
|
4400
4404
|
}
|
|
4401
|
-
.bp_notification_module_root--
|
|
4405
|
+
.bp_notification_module_root--dba95 .bp_notification_module_typeIconContainer--dba95{
|
|
4402
4406
|
align-items:center;
|
|
4403
4407
|
display:flex;
|
|
4404
4408
|
height:var(--size-8);
|
|
4405
4409
|
justify-content:center;
|
|
4406
4410
|
width:var(--size-8);
|
|
4407
4411
|
}
|
|
4408
|
-
.bp_notification_module_root--
|
|
4412
|
+
.bp_notification_module_root--dba95 .bp_notification_module_typeIconContainer--dba95 .bp_notification_module_typeIcon--dba95{
|
|
4409
4413
|
flex-shrink:0;
|
|
4410
4414
|
margin-left:var(--space-4);
|
|
4411
4415
|
}
|
|
4412
|
-
.bp_notification_module_root--
|
|
4416
|
+
.bp_notification_module_root--dba95 .bp_notification_module_text--dba95{
|
|
4413
4417
|
align-items:center;
|
|
4414
4418
|
color:var(--text-text-on-light);
|
|
4415
4419
|
display:flex;
|
|
@@ -4423,34 +4427,34 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4423
4427
|
text-decoration:none;
|
|
4424
4428
|
text-transform:none;
|
|
4425
4429
|
}
|
|
4426
|
-
.bp_notification_module_root--
|
|
4430
|
+
.bp_notification_module_root--dba95 .bp_notification_module_text--dba95 > div{
|
|
4427
4431
|
overflow:hidden;
|
|
4428
4432
|
overflow-wrap:break-word;
|
|
4429
4433
|
}
|
|
4430
|
-
.bp_notification_module_root--
|
|
4434
|
+
.bp_notification_module_root--dba95 .bp_notification_module_contentButtonSection--dba95{
|
|
4431
4435
|
display:flex;
|
|
4432
4436
|
gap:var(--space-3);
|
|
4433
4437
|
margin-left:0;
|
|
4434
4438
|
}
|
|
4435
4439
|
@media (width > 767px){
|
|
4436
|
-
.bp_notification_module_root--
|
|
4440
|
+
.bp_notification_module_root--dba95 .bp_notification_module_contentButtonSection--dba95{
|
|
4437
4441
|
margin-left:auto;
|
|
4438
4442
|
}
|
|
4439
4443
|
}
|
|
4440
|
-
.bp_notification_module_root--
|
|
4444
|
+
.bp_notification_module_root--dba95 .bp_notification_module_contentButtonSection--dba95 .bp_notification_module_contentButtons--dba95{
|
|
4441
4445
|
display:flex;
|
|
4442
4446
|
gap:var(--space-3);
|
|
4443
4447
|
}
|
|
4444
|
-
.bp_notification_module_root--
|
|
4448
|
+
.bp_notification_module_root--dba95 .bp_notification_module_closeButtonSection--dba95{
|
|
4445
4449
|
display:flex;
|
|
4446
4450
|
gap:var(--space-3);
|
|
4447
4451
|
margin-left:auto;
|
|
4448
4452
|
margin-right:var(--space-4);
|
|
4449
4453
|
}
|
|
4450
|
-
.bp_notification_module_root--
|
|
4454
|
+
.bp_notification_module_root--dba95 .bp_notification_module_closeButtonSection--dba95 .bp_notification_module_closeButton--dba95{
|
|
4451
4455
|
align-self:center;
|
|
4452
4456
|
}
|
|
4453
|
-
.bp_notification_module_root--
|
|
4457
|
+
.bp_notification_module_root--dba95 .bp_notification_module_closeButtonSection--dba95 .bp_notification_module_closeButton--dba95 svg *{
|
|
4454
4458
|
fill:currentColor;
|
|
4455
4459
|
}
|
|
4456
4460
|
|
|
@@ -4776,7 +4780,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4776
4780
|
opacity:.5;
|
|
4777
4781
|
}
|
|
4778
4782
|
|
|
4779
|
-
.bp_radio_group_module_root--
|
|
4783
|
+
.bp_radio_group_module_root--365a1{
|
|
4780
4784
|
display:flex;
|
|
4781
4785
|
flex-direction:column;
|
|
4782
4786
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -4789,31 +4793,31 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4789
4793
|
text-transform:none;
|
|
4790
4794
|
}
|
|
4791
4795
|
|
|
4792
|
-
.bp_radio_group_module_horizontal--
|
|
4796
|
+
.bp_radio_group_module_horizontal--365a1{
|
|
4793
4797
|
flex-direction:row;
|
|
4794
4798
|
gap:1.625rem;
|
|
4795
4799
|
}
|
|
4796
4800
|
|
|
4797
|
-
.bp_radio_group_module_radioOption--
|
|
4801
|
+
.bp_radio_group_module_radioOption--365a1{
|
|
4798
4802
|
display:flex;
|
|
4799
4803
|
flex-direction:column;
|
|
4800
4804
|
}
|
|
4801
|
-
.bp_radio_group_module_radioOption--
|
|
4805
|
+
.bp_radio_group_module_radioOption--365a1 .bp_radio_group_module_label--365a1{
|
|
4802
4806
|
align-items:flex-start;
|
|
4803
4807
|
cursor:pointer;
|
|
4804
4808
|
display:inline-flex;
|
|
4805
4809
|
gap:var(--size-3);
|
|
4806
4810
|
line-height:var(--body-default-line-height);
|
|
4807
4811
|
}
|
|
4808
|
-
.bp_radio_group_module_radioOption--
|
|
4812
|
+
.bp_radio_group_module_radioOption--365a1 .bp_radio_group_module_description--365a1{
|
|
4809
4813
|
padding-left:calc(var(--size-4) + var(--size-3));
|
|
4810
4814
|
}
|
|
4811
|
-
.bp_radio_group_module_radioOption--
|
|
4815
|
+
.bp_radio_group_module_radioOption--365a1.bp_radio_group_module_disabled--365a1 .bp_radio_group_module_label--365a1{
|
|
4812
4816
|
color:var(--text-text-on-light-secondary);
|
|
4813
4817
|
cursor:default;
|
|
4814
4818
|
}
|
|
4815
4819
|
|
|
4816
|
-
.bp_radio_group_module_radioButton--
|
|
4820
|
+
.bp_radio_group_module_radioButton--365a1{
|
|
4817
4821
|
all:unset;
|
|
4818
4822
|
align-items:center;
|
|
4819
4823
|
background-color:var(--surface-radio-surface);
|
|
@@ -4827,33 +4831,33 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
4827
4831
|
margin:calc((var(--body-default-line-height) - var(--size-4))/2) 0 0 0;
|
|
4828
4832
|
width:var(--size-4);
|
|
4829
4833
|
}
|
|
4830
|
-
.bp_radio_group_module_radioButton--
|
|
4834
|
+
.bp_radio_group_module_radioButton--365a1 .bp_radio_group_module_indicator--365a1{
|
|
4831
4835
|
background-color:var(--surface-radio-surface-selected);
|
|
4832
4836
|
border-radius:50%;
|
|
4833
4837
|
height:var(--size-2);
|
|
4834
4838
|
transition:transform .1s;
|
|
4835
4839
|
width:var(--size-2);
|
|
4836
4840
|
}
|
|
4837
|
-
.bp_radio_group_module_radioButton--
|
|
4838
|
-
box-shadow:0 0 0
|
|
4841
|
+
.bp_radio_group_module_radioButton--365a1:focus-visible{
|
|
4842
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
4839
4843
|
}
|
|
4840
|
-
.bp_radio_group_module_radioButton--
|
|
4844
|
+
.bp_radio_group_module_radioButton--365a1[data-disabled]{
|
|
4841
4845
|
opacity:60%;
|
|
4842
4846
|
}
|
|
4843
|
-
.bp_radio_group_module_radioButton--
|
|
4847
|
+
.bp_radio_group_module_radioButton--365a1[data-state=unchecked]{
|
|
4844
4848
|
background-color:var(--surface-radio-surface);
|
|
4845
4849
|
border:var(--border-2) solid var(--border-radio-border);
|
|
4846
4850
|
}
|
|
4847
|
-
.bp_radio_group_module_radioButton--
|
|
4851
|
+
.bp_radio_group_module_radioButton--365a1[data-state=unchecked] .bp_radio_group_module_indicator--365a1{
|
|
4848
4852
|
transform:scale(0);
|
|
4849
4853
|
}
|
|
4850
|
-
.bp_radio_group_module_radioButton--
|
|
4854
|
+
.bp_radio_group_module_radioButton--365a1:not([data-disabled]):focus-visible,.bp_radio_group_module_radioButton--365a1:not([data-disabled]):hover{
|
|
4851
4855
|
border:var(--border-2) solid var(--border-radio-border-hover);
|
|
4852
4856
|
}
|
|
4853
|
-
.bp_radio_group_module_radioButton--
|
|
4857
|
+
.bp_radio_group_module_radioButton--365a1:not([data-disabled]):focus-visible[data-state=checked],.bp_radio_group_module_radioButton--365a1:not([data-disabled]):hover[data-state=checked]{
|
|
4854
4858
|
border:var(--border-2) solid var(--border-radio-border-selected-hover);
|
|
4855
4859
|
}
|
|
4856
|
-
.bp_radio_group_module_radioButton--
|
|
4860
|
+
.bp_radio_group_module_radioButton--365a1:not([data-disabled]):focus-visible[data-state=checked] .bp_radio_group_module_indicator--365a1,.bp_radio_group_module_radioButton--365a1:not([data-disabled]):hover[data-state=checked] .bp_radio_group_module_indicator--365a1{
|
|
4857
4861
|
background-color:var(--surface-radio-surface-selected-hover);
|
|
4858
4862
|
}
|
|
4859
4863
|
|
|
@@ -5427,7 +5431,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5427
5431
|
min-width:160px;
|
|
5428
5432
|
}
|
|
5429
5433
|
|
|
5430
|
-
.bp_switch_module_option--
|
|
5434
|
+
.bp_switch_module_option--c716c{
|
|
5431
5435
|
display:flex;
|
|
5432
5436
|
flex-direction:column;
|
|
5433
5437
|
font-family:Lato, -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
|
@@ -5438,26 +5442,26 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5438
5442
|
text-decoration:none;
|
|
5439
5443
|
text-transform:none;
|
|
5440
5444
|
}
|
|
5441
|
-
.bp_switch_module_option--
|
|
5445
|
+
.bp_switch_module_option--c716c .bp_switch_module_label--c716c{
|
|
5442
5446
|
cursor:pointer;
|
|
5443
5447
|
display:inline-flex;
|
|
5444
5448
|
flex-direction:row;
|
|
5445
5449
|
width:-moz-fit-content;
|
|
5446
5450
|
width:fit-content;
|
|
5447
5451
|
}
|
|
5448
|
-
.bp_switch_module_option--
|
|
5452
|
+
.bp_switch_module_option--c716c .bp_switch_module_label--c716c.bp_switch_module_rightAlign--c716c{
|
|
5449
5453
|
flex-direction:row-reverse;
|
|
5450
5454
|
justify-content:space-between;
|
|
5451
5455
|
width:unset;
|
|
5452
5456
|
}
|
|
5453
|
-
.bp_switch_module_option--
|
|
5457
|
+
.bp_switch_module_option--c716c .bp_switch_module_description--c716c{
|
|
5454
5458
|
margin-left:3.25rem;
|
|
5455
5459
|
}
|
|
5456
|
-
.bp_switch_module_option--
|
|
5460
|
+
.bp_switch_module_option--c716c .bp_switch_module_description--c716c.bp_switch_module_rightAlign--c716c{
|
|
5457
5461
|
margin-left:unset;
|
|
5458
5462
|
margin-right:3.25rem;
|
|
5459
5463
|
}
|
|
5460
|
-
.bp_switch_module_option--
|
|
5464
|
+
.bp_switch_module_option--c716c .bp_switch_module_switch--c716c{
|
|
5461
5465
|
all:unset;
|
|
5462
5466
|
align-items:center;
|
|
5463
5467
|
background-color:#d3d3d3;
|
|
@@ -5471,17 +5475,17 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5471
5475
|
width:2.5rem;
|
|
5472
5476
|
will-change:transition;
|
|
5473
5477
|
}
|
|
5474
|
-
.bp_switch_module_option--
|
|
5478
|
+
.bp_switch_module_option--c716c .bp_switch_module_switch--c716c.bp_switch_module_rightAlign--c716c{
|
|
5475
5479
|
margin-left:2.5rem;
|
|
5476
5480
|
margin-right:unset;
|
|
5477
5481
|
}
|
|
5478
|
-
.bp_switch_module_option--
|
|
5479
|
-
box-shadow:0 0 0
|
|
5482
|
+
.bp_switch_module_option--c716c .bp_switch_module_switch--c716c:focus-visible{
|
|
5483
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
5480
5484
|
}
|
|
5481
|
-
.bp_switch_module_option--
|
|
5485
|
+
.bp_switch_module_option--c716c .bp_switch_module_switch--c716c[data-state=checked]{
|
|
5482
5486
|
background-color:#0061d5;
|
|
5483
5487
|
}
|
|
5484
|
-
.bp_switch_module_option--
|
|
5488
|
+
.bp_switch_module_option--c716c .bp_switch_module_thumb--c716c{
|
|
5485
5489
|
background-color:#fff;
|
|
5486
5490
|
border:.0625rem solid #bcbcbc;
|
|
5487
5491
|
border-radius:2.5rem;
|
|
@@ -5493,13 +5497,13 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5493
5497
|
width:1.25rem;
|
|
5494
5498
|
will-change:transform;
|
|
5495
5499
|
}
|
|
5496
|
-
.bp_switch_module_option--
|
|
5500
|
+
.bp_switch_module_option--c716c .bp_switch_module_thumb--c716c[data-state=checked]{
|
|
5497
5501
|
transform:translateX(1.25rem);
|
|
5498
5502
|
}
|
|
5499
|
-
.bp_switch_module_option--
|
|
5503
|
+
.bp_switch_module_option--c716c.bp_switch_module_disabled--c716c .bp_switch_module_label--c716c{
|
|
5500
5504
|
cursor:default;
|
|
5501
5505
|
}
|
|
5502
|
-
.bp_switch_module_option--
|
|
5506
|
+
.bp_switch_module_option--c716c.bp_switch_module_disabled--c716c .bp_switch_module_switch--c716c{
|
|
5503
5507
|
opacity:60%;
|
|
5504
5508
|
}
|
|
5505
5509
|
|
|
@@ -5570,7 +5574,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5570
5574
|
padding-inline-end:1.875rem;
|
|
5571
5575
|
}
|
|
5572
5576
|
|
|
5573
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5577
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05{
|
|
5574
5578
|
background:var(--surface-toggle-surface);
|
|
5575
5579
|
border:var(--border-1) solid var(--border-toggletext-border-off);
|
|
5576
5580
|
border-radius:var(--radius-2);
|
|
@@ -5590,33 +5594,33 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
5590
5594
|
user-select:none;
|
|
5591
5595
|
white-space:nowrap;
|
|
5592
5596
|
}
|
|
5593
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5597
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05:disabled,.bp_text_toggle_button_module_textToggleButton--dcf05[aria-disabled]{
|
|
5594
5598
|
opacity:.3;
|
|
5595
5599
|
pointer-events:none;
|
|
5596
5600
|
}
|
|
5597
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5601
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05:hover{
|
|
5598
5602
|
background:var(--surface-toggle-surface-off-hover);
|
|
5599
5603
|
border-color:var(--border-toggletext-border-off-hover);
|
|
5600
5604
|
}
|
|
5601
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5602
|
-
box-shadow:0 0 0
|
|
5605
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05:focus,.bp_text_toggle_button_module_textToggleButton--dcf05[data-focus-visible]{
|
|
5606
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
5603
5607
|
}
|
|
5604
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5608
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05:active,.bp_text_toggle_button_module_textToggleButton--dcf05[data-active]{
|
|
5605
5609
|
background:var(--surface-toggle-surface-off-pressed);
|
|
5606
5610
|
border-color:var(--border-toggletext-border-off-pressed);
|
|
5607
5611
|
}
|
|
5608
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5612
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true]{
|
|
5609
5613
|
background:var(--surface-toggletext-surface-on);
|
|
5610
5614
|
border:var(--border-1) solid var(--border-toggletext-border-on);
|
|
5611
5615
|
}
|
|
5612
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5616
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true]:hover{
|
|
5613
5617
|
background:var(--surface-toggletext-surface-on-hover);
|
|
5614
5618
|
border-color:var(--border-toggletext-border-on-hover);
|
|
5615
5619
|
}
|
|
5616
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5617
|
-
box-shadow:0 0 0
|
|
5620
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true]:focus,.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true][data-focus-visible]{
|
|
5621
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
5618
5622
|
}
|
|
5619
|
-
.bp_text_toggle_button_module_textToggleButton--
|
|
5623
|
+
.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true]:active,.bp_text_toggle_button_module_textToggleButton--dcf05[aria-pressed=true][data-active]{
|
|
5620
5624
|
background:var(--surface-toggletext-surface-on-pressed);
|
|
5621
5625
|
border-color:var(--border-toggletext-border-on-pressed);
|
|
5622
5626
|
}
|
|
@@ -6372,7 +6376,7 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
6372
6376
|
--z-index-card-tooltip:2147483647;
|
|
6373
6377
|
}
|
|
6374
6378
|
|
|
6375
|
-
.bp_toolbar_module_toolbarRoot--
|
|
6379
|
+
.bp_toolbar_module_toolbarRoot--8c4b3{
|
|
6376
6380
|
align-items:center;
|
|
6377
6381
|
background:var(--surface-surface);
|
|
6378
6382
|
border:var(--border-1) solid var(--border-card-border);
|
|
@@ -6383,19 +6387,19 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
6383
6387
|
padding:calc(var(--space-1) - var(--border-1));
|
|
6384
6388
|
}
|
|
6385
6389
|
|
|
6386
|
-
.bp_toolbar_module_separator--
|
|
6390
|
+
.bp_toolbar_module_separator--8c4b3{
|
|
6387
6391
|
background-color:var(--border-divider-border);
|
|
6388
6392
|
border-radius:var(--radius-2);
|
|
6389
6393
|
height:var(--size-6);
|
|
6390
6394
|
width:1px;
|
|
6391
6395
|
}
|
|
6392
6396
|
|
|
6393
|
-
.bp_toolbar_module_toggleGroup--
|
|
6397
|
+
.bp_toolbar_module_toggleGroup--8c4b3{
|
|
6394
6398
|
display:flex;
|
|
6395
6399
|
gap:var(--space-1);
|
|
6396
6400
|
}
|
|
6397
6401
|
|
|
6398
|
-
.bp_toolbar_module_toolbarItem--
|
|
6402
|
+
.bp_toolbar_module_toolbarItem--8c4b3{
|
|
6399
6403
|
--toolbar-item-hover-opacity:0.3;
|
|
6400
6404
|
align-items:center;
|
|
6401
6405
|
background:var(--toolbar-button-color, var(--surface-toggle-surface));
|
|
@@ -6413,45 +6417,45 @@ table.bp_inline_table_module_inlineTable--b023b tr:not(:last-child) td{
|
|
|
6413
6417
|
-webkit-user-select:none;
|
|
6414
6418
|
user-select:none;
|
|
6415
6419
|
}
|
|
6416
|
-
.bp_toolbar_module_toolbarItem--
|
|
6420
|
+
.bp_toolbar_module_toolbarItem--8c4b3[data-disabled]{
|
|
6417
6421
|
background:var(--surface-toggle-surface);
|
|
6418
6422
|
opacity:var(--toolbar-item-hover-opacity);
|
|
6419
6423
|
pointer-events:none;
|
|
6420
6424
|
}
|
|
6421
|
-
.bp_toolbar_module_toolbarItem--
|
|
6422
|
-
box-shadow:0 0 0
|
|
6425
|
+
.bp_toolbar_module_toolbarItem--8c4b3:not([data-disabled]):focus-visible{
|
|
6426
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) #2486fc;
|
|
6423
6427
|
}
|
|
6424
|
-
.bp_toolbar_module_toolbarItem--
|
|
6428
|
+
.bp_toolbar_module_toolbarItem--8c4b3:not([data-disabled]):hover{
|
|
6425
6429
|
background:var(--toolbar-button-color, var(--surface-toggle-surface-hover));
|
|
6426
6430
|
border:var(--border-1) solid var(--toolbar-button-color, var(--surface-toggle-surface-hover));
|
|
6427
6431
|
}
|
|
6428
6432
|
|
|
6429
|
-
.bp_toolbar_module_toolbarToggle--
|
|
6433
|
+
.bp_toolbar_module_toolbarToggle--8c4b3[data-state=on]{
|
|
6430
6434
|
background:var(--surface-toggle-surface-pressed);
|
|
6431
6435
|
}
|
|
6432
|
-
.bp_toolbar_module_toolbarToggle--
|
|
6436
|
+
.bp_toolbar_module_toolbarToggle--8c4b3[data-state=on] svg *{
|
|
6433
6437
|
fill:var(--icon-icon-on-dark);
|
|
6434
6438
|
}
|
|
6435
|
-
.bp_toolbar_module_toolbarToggle--
|
|
6439
|
+
.bp_toolbar_module_toolbarToggle--8c4b3[data-state=on]:not([data-disabled]):hover{
|
|
6436
6440
|
background:var(--surface-toggle-surface-on-hover);
|
|
6437
6441
|
border:var(--border-1) solid var(--surface-toggle-surface-on-hover);
|
|
6438
6442
|
}
|
|
6439
6443
|
|
|
6440
|
-
.bp_toolbar_module_dropdownIndicator--
|
|
6444
|
+
.bp_toolbar_module_dropdownIndicator--8c4b3.bp_toolbar_module_invertCaret--8c4b3{
|
|
6441
6445
|
transform:rotate(.5turn);
|
|
6442
6446
|
}
|
|
6443
6447
|
|
|
6444
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
6448
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--8c4b3{
|
|
6445
6449
|
--trigger-button-hover-opacity:0.7;
|
|
6446
6450
|
}
|
|
6447
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
6451
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--8c4b3[data-state=on] .bp_toolbar_module_dropdownIndicator--8c4b3 path{
|
|
6448
6452
|
fill:var(--icon-icon-on-light);
|
|
6449
6453
|
}
|
|
6450
|
-
.bp_toolbar_module_triggerButtonSelectedWithColor--
|
|
6454
|
+
.bp_toolbar_module_triggerButtonSelectedWithColor--8c4b3[data-state=on]:hover{
|
|
6451
6455
|
opacity:var(--trigger-button-hover-opacity);
|
|
6452
6456
|
}
|
|
6453
6457
|
|
|
6454
|
-
.bp_toolbar_module_toolbarIcon--
|
|
6458
|
+
.bp_toolbar_module_toolbarIcon--8c4b3{
|
|
6455
6459
|
align-items:center;
|
|
6456
6460
|
display:flex;
|
|
6457
6461
|
height:var(--size-5);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, useCallback } from 'react';
|
|
4
4
|
import { useScrollContext } from '../utils/scroll-context.js';
|
|
5
|
-
import { useForkRef } from '../utils/useForkRef.js';
|
|
6
5
|
import styles from './modal.module.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -16,12 +15,23 @@ const ModalScrollableContainer = /*#__PURE__*/forwardRef(({
|
|
|
16
15
|
...rest
|
|
17
16
|
}, forwardedRef) => {
|
|
18
17
|
const {
|
|
19
|
-
onScroll
|
|
18
|
+
onScroll,
|
|
19
|
+
onAttach
|
|
20
20
|
} = useScrollContext();
|
|
21
|
-
const
|
|
21
|
+
const onMountRef = useCallback(node => {
|
|
22
|
+
onAttach(node);
|
|
23
|
+
if (!forwardedRef) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (typeof forwardedRef === 'function') {
|
|
27
|
+
forwardedRef(node);
|
|
28
|
+
} else {
|
|
29
|
+
forwardedRef.current = node;
|
|
30
|
+
}
|
|
31
|
+
}, [forwardedRef, onAttach]);
|
|
22
32
|
return jsx("div", {
|
|
23
33
|
...rest,
|
|
24
|
-
ref:
|
|
34
|
+
ref: onMountRef,
|
|
25
35
|
className: clsx(styles.scrollableContainer, className),
|
|
26
36
|
"data-testid": dataTestId,
|
|
27
37
|
onScroll: event => {
|
package/lib-esm/page/index.d.ts
CHANGED
|
@@ -3,6 +3,15 @@ export { usePage } from './page-context';
|
|
|
3
3
|
export * from './types';
|
|
4
4
|
export declare const Page: import("react").ForwardRefExoticComponent<import("./types").PageProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Navigation: import("react").ForwardRefExoticComponent<import("./types").PageNavigationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Top level landmark placed at the top of the page.
|
|
8
|
+
* Contains two subcomponents for contents:
|
|
9
|
+
* - PageGlobalHeader.SearchContainer
|
|
10
|
+
* - PageGlobalHeader.SideContentContainer
|
|
11
|
+
*/
|
|
12
|
+
GlobalHeader: import("react").ForwardRefExoticComponent<import("./types").GlobalHeaderProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
SearchContainer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
SideContentContainer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
};
|
|
7
16
|
Content: import("react").ForwardRefExoticComponent<import("./types").PageContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
17
|
};
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type GlobalHeaderProps } from './types';
|
|
3
3
|
export declare const PageGlobalHeader: import("react").ForwardRefExoticComponent<GlobalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const GlobalHeader: import("react").ForwardRefExoticComponent<GlobalHeaderProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
/**
|
|
6
|
+
* Container for components related to global search.
|
|
7
|
+
*/
|
|
8
|
+
SearchContainer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* Container for all components excluding ones related to global search.
|
|
11
|
+
*/
|
|
12
|
+
SideContentContainer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"button":"bp_base_button_module_button--
|
|
2
|
+
var styles = {"button":"bp_base_button_module_button--fe56c","icon":"bp_base_button_module_icon--fe56c","primary":"bp_base_button_module_primary--fe56c","secondary":"bp_base_button_module_secondary--fe56c","tertiary":"bp_base_button_module_tertiary--fe56c","outline":"bp_base_button_module_outline--fe56c","small":"bp_base_button_module_small--fe56c","isIconButton":"bp_base_button_module_isIconButton--fe56c","large":"bp_base_button_module_large--fe56c","hide":"bp_base_button_module_hide--fe56c"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"chip":"bp_chip_module_chip--
|
|
2
|
+
var styles = {"chip":"bp_chip_module_chip--d387b","labelText":"bp_chip_module_labelText--d387b","chipStatus":"bp_chip_module_chipStatus--d387b","chipButton":"bp_chip_module_chipButton--d387b","singleSelectChip":"bp_chip_module_singleSelectChip--d387b","multiSelectChip":"bp_chip_module_multiSelectChip--d387b","chipsGroup":"bp_chip_module_chipsGroup--d387b"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"viewport":"bp_notification_module_viewport--
|
|
2
|
+
var styles = {"viewport":"bp_notification_module_viewport--dba95","root":"bp_notification_module_root--dba95","container":"bp_notification_module_container--dba95","mobileContainer":"bp_notification_module_mobileContainer--dba95","withButtons":"bp_notification_module_withButtons--dba95","info":"bp_notification_module_info--dba95","success":"bp_notification_module_success--dba95","warning":"bp_notification_module_warning--dba95","error":"bp_notification_module_error--dba95","typeIconContainer":"bp_notification_module_typeIconContainer--dba95","typeIcon":"bp_notification_module_typeIcon--dba95","text":"bp_notification_module_text--dba95","contentButtonSection":"bp_notification_module_contentButtonSection--dba95","contentButtons":"bp_notification_module_contentButtons--dba95","closeButtonSection":"bp_notification_module_closeButtonSection--dba95","closeButton":"bp_notification_module_closeButton--dba95"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"root":"bp_radio_group_module_root--
|
|
2
|
+
var styles = {"root":"bp_radio_group_module_root--365a1","horizontal":"bp_radio_group_module_horizontal--365a1","radioOption":"bp_radio_group_module_radioOption--365a1","label":"bp_radio_group_module_label--365a1","description":"bp_radio_group_module_description--365a1","disabled":"bp_radio_group_module_disabled--365a1","radioButton":"bp_radio_group_module_radioButton--365a1","indicator":"bp_radio_group_module_indicator--365a1"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
3
4
|
import { clsx } from 'clsx';
|
|
4
5
|
import { forwardRef, useCallback } from 'react';
|
|
5
|
-
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
6
6
|
import styles from './side-panel.module.js';
|
|
7
7
|
import { useVariant } from './variant-context.js';
|
|
8
8
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type SidePanelTriggerProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper component for an interactive element that's responsible for opening SidePanel.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SidePanelTrigger: import("react").ForwardRefExoticComponent<SidePanelTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Wrapper component for an interactive element that's responsible for opening SidePanel.
|
|
7
|
+
*/
|
|
8
|
+
const SidePanelTrigger = /*#__PURE__*/forwardRef(function SidePanelTrigger({
|
|
9
|
+
children
|
|
10
|
+
}, forwardedRef) {
|
|
11
|
+
return jsx(RadixDialog.Trigger, {
|
|
12
|
+
ref: forwardedRef,
|
|
13
|
+
asChild: true,
|
|
14
|
+
children: children
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export { SidePanelTrigger };
|
|
@@ -22,6 +22,7 @@ export declare const SidePanel: ((props: SidePanelProps) => import("react/jsx-ru
|
|
|
22
22
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
23
|
};
|
|
24
24
|
Header: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelHeaderProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
25
|
-
ScrollableContainer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelScrollableContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
25
|
Overlay: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelOverlayComponentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
ScrollableContainer: import("react").ForwardRefExoticComponent<Omit<import("./types").SidePanelScrollableContainerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Trigger: import("react").ForwardRefExoticComponent<import("./types").SidePanelTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
28
|
};
|
|
@@ -7,6 +7,7 @@ import { SidePanelFooter } from './side-panel-footer.js';
|
|
|
7
7
|
import { SidePanelHeader } from './side-panel-header.js';
|
|
8
8
|
import { SidePanelOverlay } from './side-panel-overlay.js';
|
|
9
9
|
import { SidePanelScrollableContainer } from './side-panel-scrollable-container.js';
|
|
10
|
+
import { SidePanelTrigger } from './side-panel-trigger.js';
|
|
10
11
|
import { VariantProvider } from './variant-context.js';
|
|
11
12
|
|
|
12
13
|
const Root = props => {
|
|
@@ -45,8 +46,9 @@ const SidePanel = Object.assign(Root, {
|
|
|
45
46
|
Content: SidePanelContent,
|
|
46
47
|
Footer: SidePanelFooter,
|
|
47
48
|
Header: SidePanelHeader,
|
|
49
|
+
Overlay: SidePanelOverlay,
|
|
48
50
|
ScrollableContainer: SidePanelScrollableContainer,
|
|
49
|
-
|
|
51
|
+
Trigger: SidePanelTrigger
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
export { SidePanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DialogContentProps, type DialogPortalProps, type DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
-
import { type ComponentPropsWithRef, type FunctionComponent, type PropsWithChildren, type ReactNode, type SVGProps } from 'react';
|
|
2
|
+
import { type ComponentPropsWithRef, type FunctionComponent, type PropsWithChildren, type ReactElement, type ReactNode, type SVGProps } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* 'persistent' - side panel is displayed inline with the page content
|
|
5
5
|
*
|
|
@@ -32,6 +32,9 @@ export interface SidePanelCloseProps {
|
|
|
32
32
|
/** Custom icon for Close element */
|
|
33
33
|
icon?: FunctionComponent<PropsWithChildren<SVGProps<SVGSVGElement>>>;
|
|
34
34
|
}
|
|
35
|
+
export interface SidePanelTriggerProps {
|
|
36
|
+
children: ReactElement;
|
|
37
|
+
}
|
|
35
38
|
export interface SidePanelScrollableContainerProps extends ComponentPropsWithRef<'div'> {
|
|
36
39
|
/** Content of the ScrollableContainer element */
|
|
37
40
|
children: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"option":"bp_switch_module_option--
|
|
2
|
+
var styles = {"option":"bp_switch_module_option--c716c","label":"bp_switch_module_label--c716c","rightAlign":"bp_switch_module_rightAlign--c716c","description":"bp_switch_module_description--c716c","switch":"bp_switch_module_switch--c716c","thumb":"bp_switch_module_thumb--c716c","disabled":"bp_switch_module_disabled--c716c"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/lib-esm/text/text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"toolbarRoot":"bp_toolbar_module_toolbarRoot--
|
|
2
|
+
var styles = {"toolbarRoot":"bp_toolbar_module_toolbarRoot--8c4b3","separator":"bp_toolbar_module_separator--8c4b3","toggleGroup":"bp_toolbar_module_toggleGroup--8c4b3","toolbarItem":"bp_toolbar_module_toolbarItem--8c4b3","toolbarToggle":"bp_toolbar_module_toolbarToggle--8c4b3","dropdownIndicator":"bp_toolbar_module_dropdownIndicator--8c4b3","invertCaret":"bp_toolbar_module_invertCaret--8c4b3","triggerButtonSelectedWithColor":"bp_toolbar_module_triggerButtonSelectedWithColor--8c4b3","toolbarIcon":"bp_toolbar_module_toolbarIcon--8c4b3"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import { type ForwardedRef } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type ForwardedRef, type RefCallback } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns function that sets ref and invokes provided ref callback function.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createSetRefWithCallback<T>(forwardedRef: ForwardedRef<T>, callback?: RefCallback<T>): (node: T | null) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Memoized version of createSetRefWithCallback.
|
|
8
|
+
* Returns function that sets ref and invokes provided ref callback function.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useCreateSetRefWithCallbackMemo<T>(forwardedRef: ForwardedRef<T>, callback?: RefCallback<T>): (node: T | null) => void;
|
|
@@ -3,6 +3,7 @@ interface ScrollContextType {
|
|
|
3
3
|
isScrolledUnderHeader: boolean;
|
|
4
4
|
isScrolledUnderFooter: boolean;
|
|
5
5
|
onScroll: (event: UIEvent<HTMLDivElement>) => void;
|
|
6
|
+
onAttach: (node: HTMLDivElement | null) => void;
|
|
6
7
|
}
|
|
7
8
|
export declare const ScrollProvider: ({ children }: {
|
|
8
9
|
children: React.ReactNode;
|
|
@@ -5,7 +5,8 @@ import { useState, useCallback, useMemo, useContext, createContext } from 'react
|
|
|
5
5
|
const ScrollContext = /*#__PURE__*/createContext({
|
|
6
6
|
isScrolledUnderFooter: false,
|
|
7
7
|
isScrolledUnderHeader: false,
|
|
8
|
-
onScroll: noop
|
|
8
|
+
onScroll: noop,
|
|
9
|
+
onAttach: noop
|
|
9
10
|
});
|
|
10
11
|
const ScrollProvider = ({
|
|
11
12
|
children
|
|
@@ -22,11 +23,18 @@ const ScrollProvider = ({
|
|
|
22
23
|
const scrolledToBottom = scroll >= scrollHeight - offsetHeight;
|
|
23
24
|
setScrolledUnderFooter(!scrolledToBottom);
|
|
24
25
|
}, []);
|
|
26
|
+
const onAttach = useCallback(element => {
|
|
27
|
+
if (element) {
|
|
28
|
+
setScrolledUnderFooter(element.scrollHeight > element.offsetHeight);
|
|
29
|
+
setScrolledUnderHeader(element.scrollTop > 0);
|
|
30
|
+
}
|
|
31
|
+
}, []);
|
|
25
32
|
const value = useMemo(() => ({
|
|
26
33
|
isScrolledUnderFooter,
|
|
27
34
|
isScrolledUnderHeader,
|
|
28
|
-
onScroll
|
|
29
|
-
|
|
35
|
+
onScroll,
|
|
36
|
+
onAttach
|
|
37
|
+
}), [isScrolledUnderFooter, isScrolledUnderHeader, onScroll, onAttach]);
|
|
30
38
|
return jsx(ScrollContext.Provider, {
|
|
31
39
|
value: value,
|
|
32
40
|
children: children
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-stately": "^3.31.1",
|
|
64
64
|
"tsx": "^4.16.5"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b2737e017afef7990166091b1ca1e8aa245ca20a",
|
|
67
67
|
"module": "lib-esm/index.js",
|
|
68
68
|
"main": "lib-esm/index.js",
|
|
69
69
|
"exports": {
|