Skip to content

Commit

Permalink
release: 7.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shigure92 committed Jun 10, 2024
1 parent 44dd149 commit 6e36747
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 53 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MDB5
Version: FREE 7.3.0
Version: FREE 7.3.1

Documentation:
https://mdbootstrap.com/docs/standard/
Expand Down
6 changes: 3 additions & 3 deletions css/mdb.dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.dark.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css/mdb.dark.rtl.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css/mdb.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css/mdb.rtl.min.css

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions js/mdb.es.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/mdb.es.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/mdb.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/mdb.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-ui-kit",
"version": "7.3.0",
"version": "7.3.1",
"type": "module",
"main": "./js/mdb.umd.min.js",
"module": "./js/mdb.es.min.js",
Expand Down
2 changes: 1 addition & 1 deletion src/js/autoinit/callbacks/free.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const inputCallback = (component, initSelector) => {
});

// auto-init
SelectorEngine.find(SELECTOR_DATA_INIT).map((element) => new Input(element));
SelectorEngine.find(SELECTOR_DATA_INIT).map((element) => Input.getOrCreateInstance(element));

// form reset handler
EventHandler.on(window, 'reset', (e) => {
Expand Down
4 changes: 3 additions & 1 deletion src/js/autoinit/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const initComponent = (component, manualInit = false) => {
return;
}

InitializedComponents.set(component.NAME);
if (!manualInit) {
InitializedComponents.set(component.NAME);
}

const thisComponent = _defaultInitSelectors[component.NAME] || null;
const isToggler = thisComponent?.isToggler || false;
Expand Down
20 changes: 18 additions & 2 deletions src/js/free/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,10 @@ class Input extends BaseComponent {
}

_toggleDefaultDatePlaceholder(input = this.input) {
const isTypeDate = input.getAttribute('type') === 'date';
const type = input.getAttribute('type');
const typesWithPlaceholder = ['date', 'time', 'datetime-local', 'month', 'week'];

if (!isTypeDate) {
if (!typesWithPlaceholder.includes(type)) {
return;
}

Expand Down Expand Up @@ -245,6 +246,11 @@ class Input extends BaseComponent {
_activate(event) {
onDOMContentLoaded(() => {
this._getElements(event);

if (!this._element) {
return;
}

const input = event ? event.target : this.input;

if (input.value !== '') {
Expand All @@ -255,9 +261,19 @@ class Input extends BaseComponent {
}

_getElements(event) {
let initialized;
if (event) {
this._element = event.target.parentNode;
this._label = SelectorEngine.findOne('label', this._element);

initialized = Manipulator.getDataAttribute(
this._element,
`${this.constructor.NAME}-initialized`
);
}

if (!initialized) {
return;
}

if (event && this._label) {
Expand Down
2 changes: 2 additions & 0 deletions src/scss/free/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
--#{$prefix}picker-header-bg: #{$picker-header-bg};
--#{$prefix}timepicker-clock-face-bg: #{$timepicker-clock-face-bg};
--#{$prefix}sidenav-backdrop-opacity: #{$sidenav-backdrop-opacity};
--#{$prefix}input-focus-border-color: var(--#{$prefix}primary);
--#{$prefix}input-focus-label-color: var(--#{$prefix}primary);
--#{$prefix}form-control-border-color: #{$form-control-border-color};
--#{$prefix}form-control-label-color: #{$form-control-label-color};
--#{$prefix}form-control-disabled-bg: #{$form-control-disabled-bg};
Expand Down
50 changes: 25 additions & 25 deletions src/scss/free/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,28 @@ $enable-negative-margins: true !default;
$variable-prefix: mdb- !default;
$prefix: $variable-prefix !default;

// Global MDB light theme variables

// scss-docs-start mdb-global-light-theme-variables
$surface-color: $gray-800 !default;
$surface-bg: $white !default;
$surface-inverted-color: $white !default;
$surface-inverted-bg: #6d6d6d !default;
$divider-color: $gray-100 !default;
$divider-blurry-color: hsl(0, 0%, 40%) !default;
$highlight-bg-color: $gray-200 !default;
$scrollbar-rail-bg: $gray-200 !default;
$scrollbar-thumb-bg: $gray-500 !default;
$picker-header-bg: $primary !default;
$timepicker-clock-face-bg: var(--#{$prefix}secondary-bg) !default;
$sidenav-backdrop-opacity: 0.1 !default;
$form-control-border-color: $gray-400 !default;
$form-control-label-color: $gray-600 !default;
$form-control-disabled-bg: $gray-300 !default;
$box-shadow-color: $black !default;
$stepper-mobile-bg: $gray-50 !default;
// scss-docs-start mdb-global-light-theme-variables

// Body
//
// Settings for the `<body>` element.
Expand Down Expand Up @@ -1052,9 +1074,9 @@ $form-label-transition: all 0.2s ease-out !default;
$form-label-color: var(--#{$prefix}form-control-label-color) !default;

$input-focus-active-label-transform: translateY(-1rem) translateY(0.1rem) scale(0.8) !default;
$input-focus-label-color: $primary !default;
$input-focus-label-color: var(--#{$prefix}input-focus-label-color) !default;
$input-focus-border-width: 0.125rem !default;
$input-focus-border-color: $primary !default;
$input-focus-border-color: var(--#{$prefix}input-focus-border-color) !default;
$input-disabled-background-color: var(--#{$prefix}form-control-disabled-bg) !default;

$input-font-size-lg: 1rem !default;
Expand Down Expand Up @@ -1451,7 +1473,7 @@ $accordion-flush-item-border-bottom: 2px solid var(--#{$prefix}divider-color) !d
$accordion-borderless-button-border-radius: 0.5rem !default;
$accordion-borderless-button-bgc: var(--#{$prefix}primary-bg-subtle) !default;
$accordion-borderless-button-color: var(--#{$prefix}primary-text-emphasis) !default;
$accordion-icon-color: var(--#{$prefix}surface-color) !default;
$accordion-icon-color: $surface-color !default;
$accordion-icon-active-color: $primary !default;
// scss-docs-end accordion-variables

Expand Down Expand Up @@ -1657,25 +1679,3 @@ $divider-blurry-vr-bg-image: linear-gradient(
) !default;
$divider-blurry-vr-width: 1px !default;
// scss-docs-end divider-variables

// Global MDB light theme variables

// scss-docs-start mdb-global-light-theme-variables
$surface-color: $gray-800 !default;
$surface-bg: $white !default;
$surface-inverted-color: $white !default;
$surface-inverted-bg: #6d6d6d !default;
$divider-color: $gray-100 !default;
$divider-blurry-color: hsl(0, 0%, 40%) !default;
$highlight-bg-color: $gray-200 !default;
$scrollbar-rail-bg: $gray-200 !default;
$scrollbar-thumb-bg: $gray-500 !default;
$picker-header-bg: $primary !default;
$timepicker-clock-face-bg: var(--#{$prefix}secondary-bg) !default;
$sidenav-backdrop-opacity: 0.1 !default;
$form-control-border-color: $gray-400 !default;
$form-control-label-color: $gray-600 !default;
$form-control-disabled-bg: $gray-300 !default;
$box-shadow-color: $black !default;
$stepper-mobile-bg: $gray-50 !default;
// scss-docs-start mdb-global-light-theme-variables

0 comments on commit 6e36747

Please sign in to comment.