@elastic/eui 87.1.0 → 87.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +0 -234
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -234
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/page_template/page_template.js +2 -1
- package/es/components/resizable_container/index.js +2 -1
- package/es/components/resizable_container/resizable_button.js +81 -50
- package/es/components/resizable_container/resizable_button.styles.js +66 -0
- package/es/components/resizable_container/resizable_collapse_button.js +24 -14
- package/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
- package/es/components/steps/step.styles.js +5 -5
- package/es/services/accessibility/html_id_generator.js +19 -3
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/eui.d.ts +113 -19
- package/i18ntokens.json +10 -10
- package/lib/components/page_template/page_template.js +2 -1
- package/lib/components/resizable_container/index.js +8 -1
- package/lib/components/resizable_container/resizable_button.js +83 -51
- package/lib/components/resizable_container/resizable_button.styles.js +71 -0
- package/lib/components/resizable_container/resizable_collapse_button.js +24 -14
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/lib/components/steps/step.styles.js +5 -5
- package/lib/services/accessibility/html_id_generator.js +21 -2
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/optimize/es/components/page_template/page_template.js +2 -1
- package/optimize/es/components/resizable_container/index.js +2 -1
- package/optimize/es/components/resizable_container/resizable_button.js +61 -44
- package/optimize/es/components/resizable_container/resizable_button.styles.js +66 -0
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +19 -11
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
- package/optimize/es/components/steps/step.styles.js +5 -5
- package/optimize/es/services/accessibility/html_id_generator.js +19 -3
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/optimize/lib/components/page_template/page_template.js +2 -1
- package/optimize/lib/components/resizable_container/index.js +8 -1
- package/optimize/lib/components/resizable_container/resizable_button.js +63 -45
- package/optimize/lib/components/resizable_container/resizable_button.styles.js +71 -0
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +19 -11
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/optimize/lib/components/steps/step.styles.js +5 -5
- package/optimize/lib/services/accessibility/html_id_generator.js +21 -2
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/package.json +13 -13
- package/src/components/index.scss +0 -1
- package/test-env/components/page_template/page_template.js +2 -1
- package/test-env/components/resizable_container/index.js +8 -1
- package/test-env/components/resizable_container/resizable_button.js +83 -51
- package/test-env/components/resizable_container/resizable_button.styles.js +71 -0
- package/test-env/components/resizable_container/resizable_collapse_button.js +19 -14
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +90 -0
- package/test-env/components/steps/step.styles.js +5 -5
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
- package/src/components/resizable_container/_index.scss +0 -3
- package/src/components/resizable_container/_resizable_button.scss +0 -129
- package/src/components/resizable_container/_resizable_collapse_button.scss +0 -145
- package/src/components/resizable_container/_variables.scss +0 -2
package/dist/eui_theme_dark.css
CHANGED
|
@@ -7269,240 +7269,6 @@ The following files still use the Sass version:
|
|
|
7269
7269
|
margin-left: 16px;
|
|
7270
7270
|
}
|
|
7271
7271
|
|
|
7272
|
-
.euiResizableButton {
|
|
7273
|
-
position: relative;
|
|
7274
|
-
-webkit-flex-shrink: 0;
|
|
7275
|
-
flex-shrink: 0;
|
|
7276
|
-
z-index: 1;
|
|
7277
|
-
}
|
|
7278
|
-
.euiResizableButton::before, .euiResizableButton::after {
|
|
7279
|
-
content: "";
|
|
7280
|
-
display: block;
|
|
7281
|
-
position: absolute;
|
|
7282
|
-
top: 50%;
|
|
7283
|
-
left: 50%;
|
|
7284
|
-
background-color: #D4DAE5;
|
|
7285
|
-
transition: width 150ms ease, height 150ms ease, background-color 150ms ease, -webkit-transform 150ms ease;
|
|
7286
|
-
transition: width 150ms ease, height 150ms ease, transform 150ms ease, background-color 150ms ease;
|
|
7287
|
-
transition: width 150ms ease, height 150ms ease, transform 150ms ease, background-color 150ms ease, -webkit-transform 150ms ease;
|
|
7288
|
-
}
|
|
7289
|
-
.euiResizableButton.euiResizableButton--horizontal {
|
|
7290
|
-
cursor: col-resize;
|
|
7291
|
-
width: 16px;
|
|
7292
|
-
margin-left: -8px;
|
|
7293
|
-
margin-right: -8px;
|
|
7294
|
-
}
|
|
7295
|
-
.euiResizableButton.euiResizableButton--horizontal::before, .euiResizableButton.euiResizableButton--horizontal::after {
|
|
7296
|
-
width: 1px;
|
|
7297
|
-
height: 12px;
|
|
7298
|
-
}
|
|
7299
|
-
.euiResizableButton.euiResizableButton--horizontal::before {
|
|
7300
|
-
-webkit-transform: translate(-2px, -50%);
|
|
7301
|
-
transform: translate(-2px, -50%);
|
|
7302
|
-
}
|
|
7303
|
-
.euiResizableButton.euiResizableButton--horizontal::after {
|
|
7304
|
-
-webkit-transform: translate(1px, -50%);
|
|
7305
|
-
transform: translate(1px, -50%);
|
|
7306
|
-
}
|
|
7307
|
-
.euiResizableButton.euiResizableButton--vertical {
|
|
7308
|
-
cursor: row-resize;
|
|
7309
|
-
height: 16px;
|
|
7310
|
-
margin-top: -8px;
|
|
7311
|
-
margin-bottom: -8px;
|
|
7312
|
-
}
|
|
7313
|
-
.euiResizableButton.euiResizableButton--vertical::before, .euiResizableButton.euiResizableButton--vertical::after {
|
|
7314
|
-
width: 12px;
|
|
7315
|
-
height: 1px;
|
|
7316
|
-
}
|
|
7317
|
-
.euiResizableButton.euiResizableButton--vertical::before {
|
|
7318
|
-
-webkit-transform: translate(-50%, -2px);
|
|
7319
|
-
transform: translate(-50%, -2px);
|
|
7320
|
-
}
|
|
7321
|
-
.euiResizableButton.euiResizableButton--vertical::after {
|
|
7322
|
-
-webkit-transform: translate(-50%, 1px);
|
|
7323
|
-
transform: translate(-50%, 1px);
|
|
7324
|
-
}
|
|
7325
|
-
.euiResizableButton:hover:not(:disabled)::before, .euiResizableButton:hover:not(:disabled)::after {
|
|
7326
|
-
background-color: #535966;
|
|
7327
|
-
transition-delay: 150ms;
|
|
7328
|
-
}
|
|
7329
|
-
.euiResizableButton:focus:not(:disabled) {
|
|
7330
|
-
background-color: rgba(54, 162, 239, 0.1);
|
|
7331
|
-
}
|
|
7332
|
-
.euiResizableButton:focus:not(:disabled)::before, .euiResizableButton:focus:not(:disabled)::after {
|
|
7333
|
-
background-color: #36A2EF;
|
|
7334
|
-
transition: width 150ms ease, height 150ms ease, -webkit-transform 150ms ease;
|
|
7335
|
-
transition: width 150ms ease, height 150ms ease, transform 150ms ease;
|
|
7336
|
-
transition: width 150ms ease, height 150ms ease, transform 150ms ease, -webkit-transform 150ms ease;
|
|
7337
|
-
transition-delay: 75ms;
|
|
7338
|
-
}
|
|
7339
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--horizontal::before, .euiResizableButton:hover:not(:disabled).euiResizableButton--horizontal::after, .euiResizableButton:focus:not(:disabled).euiResizableButton--horizontal::before, .euiResizableButton:focus:not(:disabled).euiResizableButton--horizontal::after {
|
|
7340
|
-
height: 100%;
|
|
7341
|
-
}
|
|
7342
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--horizontal::before, .euiResizableButton:focus:not(:disabled).euiResizableButton--horizontal::before {
|
|
7343
|
-
-webkit-transform: translate(-1px, -50%);
|
|
7344
|
-
transform: translate(-1px, -50%);
|
|
7345
|
-
}
|
|
7346
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--horizontal::after, .euiResizableButton:focus:not(:disabled).euiResizableButton--horizontal::after {
|
|
7347
|
-
-webkit-transform: translate(0, -50%);
|
|
7348
|
-
transform: translate(0, -50%);
|
|
7349
|
-
}
|
|
7350
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--vertical::before, .euiResizableButton:hover:not(:disabled).euiResizableButton--vertical::after, .euiResizableButton:focus:not(:disabled).euiResizableButton--vertical::before, .euiResizableButton:focus:not(:disabled).euiResizableButton--vertical::after {
|
|
7351
|
-
width: 100%;
|
|
7352
|
-
}
|
|
7353
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--vertical::before, .euiResizableButton:focus:not(:disabled).euiResizableButton--vertical::before {
|
|
7354
|
-
-webkit-transform: translate(-50%, -1px);
|
|
7355
|
-
transform: translate(-50%, -1px);
|
|
7356
|
-
}
|
|
7357
|
-
.euiResizableButton:hover:not(:disabled).euiResizableButton--vertical::after, .euiResizableButton:focus:not(:disabled).euiResizableButton--vertical::after {
|
|
7358
|
-
-webkit-transform: translate(-50%, 0);
|
|
7359
|
-
transform: translate(-50%, 0);
|
|
7360
|
-
}
|
|
7361
|
-
.euiResizableButton:disabled {
|
|
7362
|
-
display: none !important;
|
|
7363
|
-
}
|
|
7364
|
-
|
|
7365
|
-
/**
|
|
7366
|
-
* 1. The default position of the button should always be `middle`, so
|
|
7367
|
-
* those position styles aren't restricted to a class
|
|
7368
|
-
* 2. When collpsed, the button itself is the full collapsed area and we use
|
|
7369
|
-
* flex to align the icon within
|
|
7370
|
-
*/
|
|
7371
|
-
.euiResizableToggleButton {
|
|
7372
|
-
box-shadow: 0 0.8px 0.8px rgba(0, 0, 0, 0.1), 0 2.3px 2px rgba(0, 0, 0, 0.075);
|
|
7373
|
-
position: absolute;
|
|
7374
|
-
z-index: 2;
|
|
7375
|
-
-webkit-animation: none !important;
|
|
7376
|
-
animation: none !important;
|
|
7377
|
-
transition-property: background, box-shadow;
|
|
7378
|
-
background: #1D1E24;
|
|
7379
|
-
}
|
|
7380
|
-
.euiResizableToggleButton:focus {
|
|
7381
|
-
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25), 0 3.6px 13px rgba(0, 0, 0, 0.175), 0 8.4px 23px rgba(0, 0, 0, 0.15), 0 23px 35px rgba(0, 0, 0, 0.125);
|
|
7382
|
-
}
|
|
7383
|
-
.euiResizableToggleButton-isCollapsed {
|
|
7384
|
-
box-shadow: none;
|
|
7385
|
-
background: transparent;
|
|
7386
|
-
border-radius: 0;
|
|
7387
|
-
}
|
|
7388
|
-
.euiResizableToggleButton:not(:focus):not(:active):not(.euiResizableToggleButton-isVisible):not(.euiResizableToggleButton-isCollapsed) {
|
|
7389
|
-
position: absolute;
|
|
7390
|
-
top: auto;
|
|
7391
|
-
left: -10000px;
|
|
7392
|
-
width: 1px;
|
|
7393
|
-
height: 1px;
|
|
7394
|
-
clip: rect(0 0 0 0);
|
|
7395
|
-
-webkit-clip-path: inset(50%);
|
|
7396
|
-
clip-path: inset(50%);
|
|
7397
|
-
overflow: hidden;
|
|
7398
|
-
margin: -1px;
|
|
7399
|
-
}
|
|
7400
|
-
|
|
7401
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--after {
|
|
7402
|
-
right: 0;
|
|
7403
|
-
top: 50%; /* 1 */
|
|
7404
|
-
-webkit-transform: translate(50%, -50%);
|
|
7405
|
-
transform: translate(50%, -50%); /* 1 */
|
|
7406
|
-
}
|
|
7407
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--after.euiResizableToggleButton--top {
|
|
7408
|
-
top: 0;
|
|
7409
|
-
-webkit-transform: translate(50%, 16px);
|
|
7410
|
-
transform: translate(50%, 16px);
|
|
7411
|
-
}
|
|
7412
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--after.euiResizableToggleButton--bottom {
|
|
7413
|
-
top: auto;
|
|
7414
|
-
bottom: 0;
|
|
7415
|
-
-webkit-transform: translate(50%, -16px);
|
|
7416
|
-
transform: translate(50%, -16px);
|
|
7417
|
-
}
|
|
7418
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--before {
|
|
7419
|
-
left: 0;
|
|
7420
|
-
top: 50%; /* 1 */
|
|
7421
|
-
-webkit-transform: translate(-50%, -50%);
|
|
7422
|
-
transform: translate(-50%, -50%); /* 1 */
|
|
7423
|
-
}
|
|
7424
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--before.euiResizableToggleButton--top {
|
|
7425
|
-
top: 0;
|
|
7426
|
-
-webkit-transform: translate(-50%, 16px);
|
|
7427
|
-
transform: translate(-50%, 16px);
|
|
7428
|
-
}
|
|
7429
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton--before.euiResizableToggleButton--bottom {
|
|
7430
|
-
top: auto;
|
|
7431
|
-
bottom: 0;
|
|
7432
|
-
-webkit-transform: translate(-50%, -16px);
|
|
7433
|
-
transform: translate(-50%, -16px);
|
|
7434
|
-
}
|
|
7435
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton-isCollapsed {
|
|
7436
|
-
top: 0 !important;
|
|
7437
|
-
bottom: 0 !important;
|
|
7438
|
-
-webkit-transform: none !important;
|
|
7439
|
-
transform: none !important;
|
|
7440
|
-
height: 100%;
|
|
7441
|
-
}
|
|
7442
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton-isCollapsed.euiResizableToggleButton--top {
|
|
7443
|
-
padding-top: 16px;
|
|
7444
|
-
-webkit-align-items: flex-start;
|
|
7445
|
-
align-items: flex-start; /* 2 */
|
|
7446
|
-
}
|
|
7447
|
-
.euiResizableToggleButton--horizontal.euiResizableToggleButton.euiResizableToggleButton-isCollapsed.euiResizableToggleButton--bottom {
|
|
7448
|
-
padding-bottom: 16px;
|
|
7449
|
-
-webkit-align-items: flex-end;
|
|
7450
|
-
align-items: flex-end; /* 2 */
|
|
7451
|
-
}
|
|
7452
|
-
|
|
7453
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--after {
|
|
7454
|
-
top: 100%;
|
|
7455
|
-
left: 50%; /* 1 */
|
|
7456
|
-
-webkit-transform: translate(-50%, -50%);
|
|
7457
|
-
transform: translate(-50%, -50%); /* 1 */
|
|
7458
|
-
}
|
|
7459
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--after.euiResizableToggleButton--left {
|
|
7460
|
-
left: 0;
|
|
7461
|
-
-webkit-transform: translate(16px, -50%);
|
|
7462
|
-
transform: translate(16px, -50%);
|
|
7463
|
-
}
|
|
7464
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--after.euiResizableToggleButton--right {
|
|
7465
|
-
left: auto;
|
|
7466
|
-
right: 0;
|
|
7467
|
-
-webkit-transform: translate(-16px, -50%);
|
|
7468
|
-
transform: translate(-16px, -50%);
|
|
7469
|
-
}
|
|
7470
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--before {
|
|
7471
|
-
bottom: 100%;
|
|
7472
|
-
left: 50%; /* 1 */
|
|
7473
|
-
-webkit-transform: translate(-50%, 50%);
|
|
7474
|
-
transform: translate(-50%, 50%); /* 1 */
|
|
7475
|
-
}
|
|
7476
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--before.euiResizableToggleButton--left {
|
|
7477
|
-
left: 0;
|
|
7478
|
-
-webkit-transform: translate(16px, 50%);
|
|
7479
|
-
transform: translate(16px, 50%);
|
|
7480
|
-
}
|
|
7481
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton--before.euiResizableToggleButton--right {
|
|
7482
|
-
left: auto;
|
|
7483
|
-
right: 0;
|
|
7484
|
-
-webkit-transform: translate(-16px, 50%);
|
|
7485
|
-
transform: translate(-16px, 50%);
|
|
7486
|
-
}
|
|
7487
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton-isCollapsed {
|
|
7488
|
-
top: 0 !important;
|
|
7489
|
-
bottom: 0 !important;
|
|
7490
|
-
left: 0 !important;
|
|
7491
|
-
-webkit-transform: none !important;
|
|
7492
|
-
transform: none !important;
|
|
7493
|
-
width: 100%;
|
|
7494
|
-
}
|
|
7495
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton-isCollapsed.euiResizableToggleButton--left {
|
|
7496
|
-
padding-left: 16px;
|
|
7497
|
-
-webkit-justify-content: flex-start;
|
|
7498
|
-
justify-content: flex-start; /* 2 */
|
|
7499
|
-
}
|
|
7500
|
-
.euiResizableToggleButton--vertical.euiResizableToggleButton.euiResizableToggleButton-isCollapsed.euiResizableToggleButton--right {
|
|
7501
|
-
padding-right: 16px;
|
|
7502
|
-
-webkit-justify-content: flex-end;
|
|
7503
|
-
justify-content: flex-end; /* 2 */
|
|
7504
|
-
}
|
|
7505
|
-
|
|
7506
7272
|
.euiSideNav__mobileToggle {
|
|
7507
7273
|
height: auto;
|
|
7508
7274
|
border-bottom: 1px solid #343741;
|