mainbase-ui 1.2.4 → 1.2.5
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/README.md +22 -266
- package/dist/index.cjs +174 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +128 -49
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +30 -4
- package/dist/index.d.ts +30 -4
- package/dist/index.js +172 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -257,28 +257,25 @@
|
|
|
257
257
|
display: inline-flex;
|
|
258
258
|
align-items: center;
|
|
259
259
|
justify-content: center;
|
|
260
|
-
flex-shrink: 0;
|
|
261
260
|
gap: 8px;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
background: var(--mb-primary, #30d5c8);
|
|
267
|
-
color: var(--mb-text-color, #172322);
|
|
268
|
-
font-family: var(--mb-font-family, inherit);
|
|
269
|
-
font-size: 14px;
|
|
270
|
-
font-weight: 500;
|
|
271
|
-
line-height: 1;
|
|
261
|
+
border: 1px solid transparent;
|
|
262
|
+
border-radius: var(--mb-radius);
|
|
263
|
+
font-family: var(--mb-font-family);
|
|
264
|
+
font-weight: 600;
|
|
272
265
|
cursor: pointer;
|
|
273
|
-
user-select: none;
|
|
274
|
-
white-space: nowrap;
|
|
275
266
|
outline: none;
|
|
276
267
|
transition:
|
|
277
|
-
background-color
|
|
278
|
-
color
|
|
279
|
-
|
|
280
|
-
box-shadow
|
|
281
|
-
|
|
268
|
+
background-color .15s ease,
|
|
269
|
+
border-color .15s ease,
|
|
270
|
+
color .15s ease,
|
|
271
|
+
box-shadow .15s ease;
|
|
272
|
+
user-select: none;
|
|
273
|
+
}
|
|
274
|
+
.mb-button:focus-visible {
|
|
275
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mb-primary) 25%, transparent);
|
|
276
|
+
}
|
|
277
|
+
.mb-button:active:not(:disabled) {
|
|
278
|
+
filter: brightness(.96);
|
|
282
279
|
}
|
|
283
280
|
.mb-button--sm {
|
|
284
281
|
height: 32px;
|
|
@@ -286,68 +283,59 @@
|
|
|
286
283
|
font-size: 13px;
|
|
287
284
|
}
|
|
288
285
|
.mb-button--md {
|
|
289
|
-
height:
|
|
286
|
+
height: 40px;
|
|
290
287
|
padding: 0 16px;
|
|
291
288
|
font-size: 14px;
|
|
292
289
|
}
|
|
293
290
|
.mb-button--lg {
|
|
294
|
-
height:
|
|
291
|
+
height: 46px;
|
|
295
292
|
padding: 0 20px;
|
|
296
293
|
font-size: 15px;
|
|
297
294
|
}
|
|
298
295
|
.mb-button--primary {
|
|
299
|
-
background: var(--mb-primary
|
|
300
|
-
color: var(--mb-
|
|
296
|
+
background: var(--mb-primary);
|
|
297
|
+
color: var(--mb-on-primary);
|
|
301
298
|
}
|
|
302
299
|
.mb-button--primary:hover:not(:disabled) {
|
|
303
|
-
background: var(--mb-primary-hover
|
|
304
|
-
}
|
|
305
|
-
.mb-button--primary:active:not(:disabled) {
|
|
306
|
-
background: var(--mb-primary-active, #27b9ae);
|
|
300
|
+
background: var(--mb-primary-hover);
|
|
307
301
|
}
|
|
308
302
|
.mb-button--secondary {
|
|
309
|
-
background: var(--mb-background-secondary
|
|
310
|
-
color: var(--mb-text-color
|
|
303
|
+
background: var(--mb-background-secondary);
|
|
304
|
+
color: var(--mb-text-color);
|
|
311
305
|
}
|
|
312
306
|
.mb-button--secondary:hover:not(:disabled) {
|
|
313
|
-
background:
|
|
314
|
-
}
|
|
315
|
-
.mb-button--secondary:active:not(:disabled) {
|
|
316
|
-
background: color-mix(in srgb, var(--mb-text-color, #172322) 14%, var(--mb-background, #ffffff));
|
|
307
|
+
background: var(--mb-border-color);
|
|
317
308
|
}
|
|
318
309
|
.mb-button--outline {
|
|
319
|
-
border: 1px solid var(--mb-primary, #30d5c8);
|
|
320
310
|
background: transparent;
|
|
321
|
-
color: var(--mb-primary
|
|
311
|
+
border-color: var(--mb-primary);
|
|
312
|
+
color: var(--mb-primary);
|
|
322
313
|
}
|
|
323
314
|
.mb-button--outline:hover:not(:disabled) {
|
|
324
|
-
background: color-mix(in srgb, var(--mb-primary
|
|
325
|
-
}
|
|
326
|
-
.mb-button--outline:active:not(:disabled) {
|
|
327
|
-
background: color-mix(in srgb, var(--mb-primary, #30d5c8) 17%, transparent);
|
|
315
|
+
background: color-mix(in srgb, var(--mb-primary) 10%, transparent);
|
|
328
316
|
}
|
|
329
317
|
.mb-button--ghost {
|
|
330
318
|
background: transparent;
|
|
331
|
-
color: var(--mb-
|
|
319
|
+
color: var(--mb-text-color);
|
|
332
320
|
}
|
|
333
321
|
.mb-button--ghost:hover:not(:disabled) {
|
|
334
|
-
background:
|
|
335
|
-
}
|
|
336
|
-
.mb-button--ghost:active:not(:disabled) {
|
|
337
|
-
background: color-mix(in srgb, var(--mb-primary, #30d5c8) 17%, transparent);
|
|
322
|
+
background: var(--mb-background-secondary);
|
|
338
323
|
}
|
|
339
|
-
.mb-button
|
|
340
|
-
|
|
324
|
+
.mb-button--danger {
|
|
325
|
+
background: var(--mb-danger);
|
|
326
|
+
color: white;
|
|
341
327
|
}
|
|
342
328
|
.mb-button:disabled {
|
|
343
|
-
opacity:
|
|
329
|
+
opacity: .55;
|
|
344
330
|
cursor: not-allowed;
|
|
345
331
|
}
|
|
346
|
-
.mb-
|
|
332
|
+
.mb-button__icon {
|
|
333
|
+
display: inline-flex;
|
|
334
|
+
line-height: 0;
|
|
335
|
+
}
|
|
336
|
+
.mb-button__label {
|
|
347
337
|
display: inline-flex;
|
|
348
338
|
align-items: center;
|
|
349
|
-
justify-content: center;
|
|
350
|
-
min-width: 0;
|
|
351
339
|
}
|
|
352
340
|
|
|
353
341
|
/* src/components/Checkbox/Checkbox.css */
|
|
@@ -3376,6 +3364,97 @@
|
|
|
3376
3364
|
cursor: not-allowed;
|
|
3377
3365
|
}
|
|
3378
3366
|
|
|
3367
|
+
/* src/components/Image/Image.css */
|
|
3368
|
+
.mb-image {
|
|
3369
|
+
display: block;
|
|
3370
|
+
max-width: 100%;
|
|
3371
|
+
height: auto;
|
|
3372
|
+
}
|
|
3373
|
+
.mb-image--cover {
|
|
3374
|
+
object-fit: cover;
|
|
3375
|
+
}
|
|
3376
|
+
.mb-image--contain {
|
|
3377
|
+
object-fit: contain;
|
|
3378
|
+
}
|
|
3379
|
+
.mb-image--fill {
|
|
3380
|
+
object-fit: fill;
|
|
3381
|
+
}
|
|
3382
|
+
.mb-image--none {
|
|
3383
|
+
object-fit: none;
|
|
3384
|
+
}
|
|
3385
|
+
.mb-image--scale-down {
|
|
3386
|
+
object-fit: scale-down;
|
|
3387
|
+
}
|
|
3388
|
+
.mb-image--none {
|
|
3389
|
+
border-radius: 0;
|
|
3390
|
+
}
|
|
3391
|
+
.mb-image--sm {
|
|
3392
|
+
border-radius: var(--mb-radius-sm);
|
|
3393
|
+
}
|
|
3394
|
+
.mb-image--md {
|
|
3395
|
+
border-radius: var(--mb-radius);
|
|
3396
|
+
}
|
|
3397
|
+
.mb-image--lg {
|
|
3398
|
+
border-radius: var(--mb-radius-lg);
|
|
3399
|
+
}
|
|
3400
|
+
.mb-image--xl {
|
|
3401
|
+
border-radius: var(--mb-radius-xl);
|
|
3402
|
+
}
|
|
3403
|
+
.mb-image--full {
|
|
3404
|
+
border-radius: 999px;
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
/* src/components/Highlight/Highlight.css */
|
|
3408
|
+
.mb-highlight {
|
|
3409
|
+
display: inline;
|
|
3410
|
+
padding: 0 8px;
|
|
3411
|
+
border-radius: 6px;
|
|
3412
|
+
box-decoration-break: clone;
|
|
3413
|
+
-webkit-box-decoration-break: clone;
|
|
3414
|
+
color: var(--mb-text-color);
|
|
3415
|
+
}
|
|
3416
|
+
.mb-highlight--primary {
|
|
3417
|
+
background: color-mix(in srgb, var(--mb-primary) 18%, transparent);
|
|
3418
|
+
}
|
|
3419
|
+
.mb-highlight--success {
|
|
3420
|
+
background: color-mix(in srgb, var(--mb-success) 18%, transparent);
|
|
3421
|
+
}
|
|
3422
|
+
.mb-highlight--warning {
|
|
3423
|
+
background: color-mix(in srgb, var(--mb-warning) 20%, transparent);
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
/* src/components/Link/Link.css */
|
|
3427
|
+
.mb-link {
|
|
3428
|
+
display: inline-flex;
|
|
3429
|
+
align-items: center;
|
|
3430
|
+
font-family: var(--mb-font-family);
|
|
3431
|
+
text-decoration: none;
|
|
3432
|
+
cursor: pointer;
|
|
3433
|
+
transition: color .15s ease, opacity .15s ease;
|
|
3434
|
+
}
|
|
3435
|
+
.mb-link--default {
|
|
3436
|
+
color: var(--mb-text-color);
|
|
3437
|
+
}
|
|
3438
|
+
.mb-link--default:hover {
|
|
3439
|
+
color: var(--mb-primary);
|
|
3440
|
+
}
|
|
3441
|
+
.mb-link--primary {
|
|
3442
|
+
color: var(--mb-primary);
|
|
3443
|
+
}
|
|
3444
|
+
.mb-link--primary:hover {
|
|
3445
|
+
opacity: .8;
|
|
3446
|
+
}
|
|
3447
|
+
.mb-link--muted {
|
|
3448
|
+
color: var(--mb-text-secondary);
|
|
3449
|
+
}
|
|
3450
|
+
.mb-link--muted:hover {
|
|
3451
|
+
color: var(--mb-text-color);
|
|
3452
|
+
}
|
|
3453
|
+
.mb-link:focus-visible {
|
|
3454
|
+
outline: 2px solid var(--mb-primary);
|
|
3455
|
+
outline-offset: 3px;
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3379
3458
|
/* src/components/Card/Card.css */
|
|
3380
3459
|
.mb-card {
|
|
3381
3460
|
display: flex;
|