@idds/js 1.0.91 → 1.0.92
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/index.iife.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -996,6 +996,7 @@ var InaUI = (() => {
|
|
|
996
996
|
minuteStep: 1,
|
|
997
997
|
secondStep: 1,
|
|
998
998
|
onChange: null,
|
|
999
|
+
size: this.container.dataset.size || "md",
|
|
999
1000
|
...options
|
|
1000
1001
|
};
|
|
1001
1002
|
this.state = {
|
|
@@ -1117,7 +1118,7 @@ var InaUI = (() => {
|
|
|
1117
1118
|
wrapper.appendChild(prefixIcon);
|
|
1118
1119
|
input = document.createElement("input");
|
|
1119
1120
|
input.type = "text";
|
|
1120
|
-
input.className = `${PREFIX}-time-picker__input ${PREFIX}-time-picker__input--size
|
|
1121
|
+
input.className = `${PREFIX}-time-picker__input ${PREFIX}-time-picker__input--size-${this.options.size} ${PREFIX}-time-picker__input--with-prefix`;
|
|
1121
1122
|
if (this.options.allowClear)
|
|
1122
1123
|
input.classList.add(`${PREFIX}-time-picker__input--with-suffix`);
|
|
1123
1124
|
input.placeholder = this.container.getAttribute("placeholder") || "Select time";
|
package/dist/index.js
CHANGED
|
@@ -986,6 +986,7 @@ var TimePicker = class {
|
|
|
986
986
|
minuteStep: 1,
|
|
987
987
|
secondStep: 1,
|
|
988
988
|
onChange: null,
|
|
989
|
+
size: this.container.dataset.size || "md",
|
|
989
990
|
...options
|
|
990
991
|
};
|
|
991
992
|
this.state = {
|
|
@@ -1107,7 +1108,7 @@ var TimePicker = class {
|
|
|
1107
1108
|
wrapper.appendChild(prefixIcon);
|
|
1108
1109
|
input = document.createElement("input");
|
|
1109
1110
|
input.type = "text";
|
|
1110
|
-
input.className = `${PREFIX}-time-picker__input ${PREFIX}-time-picker__input--size
|
|
1111
|
+
input.className = `${PREFIX}-time-picker__input ${PREFIX}-time-picker__input--size-${this.options.size} ${PREFIX}-time-picker__input--with-prefix`;
|
|
1111
1112
|
if (this.options.allowClear)
|
|
1112
1113
|
input.classList.add(`${PREFIX}-time-picker__input--with-suffix`);
|
|
1113
1114
|
input.placeholder = this.container.getAttribute("placeholder") || "Select time";
|