mainbase-ui 1.2.4 → 1.2.5-b
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 +148 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +97 -49
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +145 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -257,28 +257,26 @@
|
|
|
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
|
+
transform .15s ease;
|
|
273
|
+
user-select: none;
|
|
274
|
+
}
|
|
275
|
+
.mb-button:active:not(:disabled) {
|
|
276
|
+
transform: translateY(1px);
|
|
277
|
+
}
|
|
278
|
+
.mb-button:focus-visible {
|
|
279
|
+
box-shadow: 0 0 0 3px var(--mb-focus-color);
|
|
282
280
|
}
|
|
283
281
|
.mb-button--sm {
|
|
284
282
|
height: 32px;
|
|
@@ -286,68 +284,59 @@
|
|
|
286
284
|
font-size: 13px;
|
|
287
285
|
}
|
|
288
286
|
.mb-button--md {
|
|
289
|
-
height:
|
|
287
|
+
height: 40px;
|
|
290
288
|
padding: 0 16px;
|
|
291
289
|
font-size: 14px;
|
|
292
290
|
}
|
|
293
291
|
.mb-button--lg {
|
|
294
|
-
height:
|
|
292
|
+
height: 46px;
|
|
295
293
|
padding: 0 20px;
|
|
296
294
|
font-size: 15px;
|
|
297
295
|
}
|
|
298
296
|
.mb-button--primary {
|
|
299
|
-
background: var(--mb-primary
|
|
300
|
-
color: var(--mb-
|
|
297
|
+
background: var(--mb-primary);
|
|
298
|
+
color: var(--mb-on-primary);
|
|
301
299
|
}
|
|
302
300
|
.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);
|
|
301
|
+
background: var(--mb-primary-hover);
|
|
307
302
|
}
|
|
308
303
|
.mb-button--secondary {
|
|
309
|
-
background: var(--mb-background-secondary
|
|
310
|
-
color: var(--mb-text-color
|
|
304
|
+
background: var(--mb-background-secondary);
|
|
305
|
+
color: var(--mb-text-color);
|
|
311
306
|
}
|
|
312
307
|
.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));
|
|
308
|
+
background: var(--mb-border-color);
|
|
317
309
|
}
|
|
318
310
|
.mb-button--outline {
|
|
319
|
-
border: 1px solid var(--mb-primary, #30d5c8);
|
|
320
311
|
background: transparent;
|
|
321
|
-
color: var(--mb-primary
|
|
312
|
+
border-color: var(--mb-primary);
|
|
313
|
+
color: var(--mb-primary);
|
|
322
314
|
}
|
|
323
315
|
.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);
|
|
316
|
+
background: color-mix(in srgb, var(--mb-primary) 10%, transparent);
|
|
328
317
|
}
|
|
329
318
|
.mb-button--ghost {
|
|
330
319
|
background: transparent;
|
|
331
|
-
color: var(--mb-
|
|
320
|
+
color: var(--mb-text-color);
|
|
332
321
|
}
|
|
333
322
|
.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);
|
|
323
|
+
background: var(--mb-background-secondary);
|
|
338
324
|
}
|
|
339
|
-
.mb-button
|
|
340
|
-
|
|
325
|
+
.mb-button--danger {
|
|
326
|
+
background: var(--mb-danger);
|
|
327
|
+
color: white;
|
|
341
328
|
}
|
|
342
329
|
.mb-button:disabled {
|
|
343
|
-
opacity:
|
|
330
|
+
opacity: .55;
|
|
344
331
|
cursor: not-allowed;
|
|
345
332
|
}
|
|
346
|
-
.mb-
|
|
333
|
+
.mb-button__icon {
|
|
334
|
+
display: inline-flex;
|
|
335
|
+
line-height: 0;
|
|
336
|
+
}
|
|
337
|
+
.mb-button__label {
|
|
347
338
|
display: inline-flex;
|
|
348
339
|
align-items: center;
|
|
349
|
-
justify-content: center;
|
|
350
|
-
min-width: 0;
|
|
351
340
|
}
|
|
352
341
|
|
|
353
342
|
/* src/components/Checkbox/Checkbox.css */
|
|
@@ -3376,6 +3365,65 @@
|
|
|
3376
3365
|
cursor: not-allowed;
|
|
3377
3366
|
}
|
|
3378
3367
|
|
|
3368
|
+
/* src/components/Image/Image.css */
|
|
3369
|
+
.mb-image {
|
|
3370
|
+
display: block;
|
|
3371
|
+
max-width: 100%;
|
|
3372
|
+
height: auto;
|
|
3373
|
+
}
|
|
3374
|
+
.mb-image--cover {
|
|
3375
|
+
object-fit: cover;
|
|
3376
|
+
}
|
|
3377
|
+
.mb-image--contain {
|
|
3378
|
+
object-fit: contain;
|
|
3379
|
+
}
|
|
3380
|
+
.mb-image--fill {
|
|
3381
|
+
object-fit: fill;
|
|
3382
|
+
}
|
|
3383
|
+
.mb-image--none {
|
|
3384
|
+
object-fit: none;
|
|
3385
|
+
}
|
|
3386
|
+
.mb-image--scale-down {
|
|
3387
|
+
object-fit: scale-down;
|
|
3388
|
+
}
|
|
3389
|
+
.mb-image--none {
|
|
3390
|
+
border-radius: 0;
|
|
3391
|
+
}
|
|
3392
|
+
.mb-image--sm {
|
|
3393
|
+
border-radius: var(--mb-radius-sm);
|
|
3394
|
+
}
|
|
3395
|
+
.mb-image--md {
|
|
3396
|
+
border-radius: var(--mb-radius);
|
|
3397
|
+
}
|
|
3398
|
+
.mb-image--lg {
|
|
3399
|
+
border-radius: var(--mb-radius-lg);
|
|
3400
|
+
}
|
|
3401
|
+
.mb-image--xl {
|
|
3402
|
+
border-radius: var(--mb-radius-xl);
|
|
3403
|
+
}
|
|
3404
|
+
.mb-image--full {
|
|
3405
|
+
border-radius: 999px;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
/* src/components/Highlight/Highlight.css */
|
|
3409
|
+
.mb-highlight {
|
|
3410
|
+
display: inline;
|
|
3411
|
+
padding: 0 8px;
|
|
3412
|
+
border-radius: 6px;
|
|
3413
|
+
box-decoration-break: clone;
|
|
3414
|
+
-webkit-box-decoration-break: clone;
|
|
3415
|
+
color: var(--mb-text-color);
|
|
3416
|
+
}
|
|
3417
|
+
.mb-highlight--primary {
|
|
3418
|
+
background: color-mix(in srgb, var(--mb-primary) 18%, transparent);
|
|
3419
|
+
}
|
|
3420
|
+
.mb-highlight--success {
|
|
3421
|
+
background: color-mix(in srgb, var(--mb-success) 18%, transparent);
|
|
3422
|
+
}
|
|
3423
|
+
.mb-highlight--warning {
|
|
3424
|
+
background: color-mix(in srgb, var(--mb-warning) 20%, transparent);
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3379
3427
|
/* src/components/Card/Card.css */
|
|
3380
3428
|
.mb-card {
|
|
3381
3429
|
display: flex;
|