Skip to content

Commit 3dd237b

Browse files
author
unknown
committed
1.0.0-alpha3
1 parent aca39ab commit 3dd237b

File tree

12 files changed

+124
-19
lines changed

12 files changed

+124
-19
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MDB 5 React
22

3-
Version: FREE 1.0.0 Alpha 2
3+
Version: FREE 1.0.0-alpha3
44

55
Documentation:
66
https://mdbootstrap.com/docs/b5/react/

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-react-ui-kit-demo",
3-
"version": "1.0.0-alpha2",
3+
"version": "1.0.0-alpha3",
44
"main": "index.js",
55
"repository": {
66
"type": "git",

dist/css/mdb.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.d.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React$1, { FunctionComponent, ElementType, ComponentProps, ReactNode, ReactElement, RefObject } from 'react';
1+
import React$1, { FunctionComponent, ElementType, ComponentProps, ReactNode, ReactElement, CSSProperties, RefObject } from 'react';
22

33
declare const MDBContainer: FunctionComponent<{
44
className?: string;
@@ -484,6 +484,8 @@ declare const MDBInput: FunctionComponent<{
484484
labelId?: string;
485485
labelClass?: string;
486486
wrapperClass?: string;
487+
wrapperStyle?: Record<string, unknown>;
488+
labelStyle?: CSSProperties;
487489
disabled?: boolean;
488490
size?: string;
489491
readonly?: boolean;
@@ -503,7 +505,7 @@ declare const MDBCheckbox: FunctionComponent<{
503505
labelId?: string;
504506
labelClass?: string;
505507
disabled?: boolean;
506-
value?: string;
508+
value?: string | boolean;
507509
name?: string;
508510
inline?: boolean;
509511
checked?: boolean;
@@ -517,9 +519,10 @@ declare const MDBRadio: typeof MDBCheckbox;
517519
declare const MDBCollapse: FunctionComponent<{
518520
className?: string;
519521
navbar?: boolean;
520-
show?: boolean;
522+
show?: boolean | string;
521523
center?: boolean;
522524
style?: Record<string, unknown>;
525+
tag?: ComponentProps<any>;
523526
[rest: string]: any;
524527
}>;
525528

dist/mdb-react-ui-kit.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mdb-react-ui-kit.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/free/_buttons.scss

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,65 @@
290290
}
291291
}
292292
}
293+
294+
//
295+
// Fixed option
296+
//
297+
298+
.fixed-action-btn {
299+
position: fixed;
300+
right: $fixed-action-btn-right;
301+
bottom: $fixed-action-btn-bottom;
302+
z-index: $zindex-fixed-action-button;
303+
display: flex;
304+
flex-flow: column-reverse nowrap;
305+
align-items: center;
306+
padding: $fixed-action-btn-padding-top 20px 20px 20px;
307+
margin-bottom: 0;
308+
height: auto;
309+
overflow: hidden;
310+
311+
& > .btn-floating {
312+
position: relative;
313+
transform: scale(1.2);
314+
z-index: 10;
315+
}
316+
317+
ul {
318+
position: absolute;
319+
bottom: 0;
320+
left: 0;
321+
right: 0;
322+
display: flex;
323+
flex-direction: column;
324+
padding: 0;
325+
margin: 0;
326+
margin-bottom: 0;
327+
text-align: center;
328+
opacity: 0;
329+
transition: transform 0.4s, opacity 0.4s;
330+
z-index: -1;
331+
li {
332+
z-index: 0;
333+
display: flex;
334+
margin-right: auto;
335+
margin-bottom: $fixed-action-btn-li-margin-bottom;
336+
margin-left: auto;
337+
&:first-of-type {
338+
margin-top: $fixed-action-btn-li-margin-bottom / 2;
339+
}
340+
}
341+
a {
342+
&.btn {
343+
opacity: 0;
344+
transition: opacity 0.4s ease-in;
345+
&.shown {
346+
opacity: 1;
347+
}
348+
}
349+
}
350+
}
351+
&.active ul {
352+
opacity: 1;
353+
}
354+
}

dist/scss/free/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
$color-base: if($level > 0, $black, $white);
1515
$level: abs($level);
1616

17-
@return mix($color-base, $color, $level * $theme-color-interval);
17+
@return mix($color-base, $color, $level);
1818
}

dist/scss/free/_variables.scss

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,19 @@ $btn-outline-floating-icon-line-height-sm: 1.5625rem !default;
475475
$btn-floating-border-radius: 50% !default;
476476

477477
$btn-block-spacing-y: 0.5rem !default;
478+
479+
$fixed-action-btn-right: 2.1875rem !default;
480+
$fixed-action-btn-bottom: 2.1875rem !default;
481+
$fixed-action-btn-padding-top: 0.9375rem !default;
482+
$fixed-action-btn-li-margin-bottom: 1.5rem !default;
483+
478484
// Button group
479485
//
480486
// Material styling for group of buttons
481487

482488
$btn-group-border-radius: calc(4px - 1px) !default;
483-
$btn-group-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
484-
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !default;
489+
$btn-group-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
490+
box-shadow 0.15s ease-in-out !default;
485491

486492
// Forms
487493
//
@@ -629,8 +635,8 @@ $form-switch-form-check-input-after-width: 1.25rem !default;
629635
$form-switch-form-check-input-after-height: $form-switch-form-check-input-after-width !default;
630636
$form-switch-form-check-input-after-background-color: $white !default;
631637
$form-switch-form-check-input-after-margin-top: -0.1875rem !default;
632-
$form-switch-form-check-input-after-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
633-
0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !default;
638+
$form-switch-form-check-input-after-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
639+
0 1px 5px 0 rgba(0, 0, 0, 0.12) !default;
634640
$form-switch-form-check-input-after-transition: background-color 0.2s, transform 0.2s !default;
635641

636642
$form-switch-form-check-input-focus-before-box-shadow: 3px -1px 0px 13px rgba(0, 0, 0, 0.6) !default;
@@ -654,8 +660,7 @@ $form-switch-form-check-input-checked-checkbox-after-margin-top: -3px !default;
654660
$form-switch-form-check-input-checked-checkbox-after-margin-left: 1.0625rem !default;
655661
$form-switch-form-check-input-checked-checkbox-after-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
656662
0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !default;
657-
$form-switch-form-check-input-checked-checkbox-after-transition: background-color 0.2s,
658-
transform 0.2s !default;
663+
$form-switch-form-check-input-checked-checkbox-after-transition: background-color 0.2s, transform 0.2s !default;
659664

660665
$form-file-height: calc(1.79rem + 0.33rem + 2px) !default;
661666

@@ -732,6 +737,7 @@ $form-validation-states-mdb: (
732737
// scss-docs-end form-validation-states
733738

734739
// scss-docs-start zindex-stack
740+
$zindex-fixed-action-button: 1030 !default;
735741
$zindex-toast: 1060 !default;
736742
$zindex-alert: 1070 !default;
737743
$zindex-popover: 1080 !default;

dist/scss/free/forms/_form-control.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
.form-control {
66
min-height: auto;
7-
padding-top: 5.28px;
7+
padding-top: 4px;
88
padding-bottom: 3.28px;
99
transition: all 0.1s linear;
10+
1011
&:focus {
1112
box-shadow: none;
1213
transition: all 0.1s linear;
@@ -25,6 +26,30 @@
2526

2627
.form-outline {
2728
position: relative;
29+
30+
.form-helper {
31+
width: 100%;
32+
position: absolute;
33+
font-size: 0.875em;
34+
color: #757575;
35+
.form-counter {
36+
text-align: right;
37+
}
38+
}
39+
40+
.trailing {
41+
position: absolute;
42+
right: 10px;
43+
left: initial;
44+
top: 50%;
45+
transform: translateY(-50%);
46+
pointer-events: none;
47+
}
48+
49+
.form-icon-trailing {
50+
padding-right: 2rem !important;
51+
}
52+
2853
.form-control {
2954
min-height: auto;
3055
padding-top: $input-padding-top;

dist/scss/free/forms/_input-group.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,19 @@
6060
}
6161
input + .input-group-text {
6262
border: 0;
63-
border-left: $input-group-form-outline-border-left-width solid
64-
$input-group-form-outline-border-left-color;
63+
border-left: $input-group-form-outline-border-left-width solid $input-group-form-outline-border-left-color;
6564
}
6665
}
66+
.form-outline:not(:first-child),
67+
.form-outline:not(:first-child) .form-notch-leading {
68+
border-top-left-radius: 0 !important;
69+
border-bottom-left-radius: 0 !important;
70+
}
71+
.form-outline:not(:last-child),
72+
.form-outline:not(:last-child) .form-notch-trailing {
73+
border-top-right-radius: 0 !important;
74+
border-bottom-right-radius: 0 !important;
75+
}
6776
}
6877

6978
.input-group > [class*='btn-outline-'] + [class*='btn-outline-'] {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-react-ui-kit",
3-
"version": "1.0.0-alpha2",
3+
"version": "1.0.0-alpha3",
44
"main": "./dist/mdb-react-ui-kit.js",
55
"module": "./dist/mdb-react-ui-kit.esm.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)