@rufous/ui 0.2.84 → 0.2.85
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/main.cjs +1 -1
- package/dist/main.css +4 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1810,7 +1810,7 @@ var TextField = (0, import_react17.forwardRef)(({
|
|
|
1810
1810
|
const sxClass = useSx(sx);
|
|
1811
1811
|
const inputId = id || name || `tf-${Math.random().toString(36).substr(2, 9)}`;
|
|
1812
1812
|
const isFloating = Boolean(
|
|
1813
|
-
value !== void 0 && value !== "" ||
|
|
1813
|
+
value !== void 0 && value !== "" || type === "date" || type === "time" || type === "datetime-local"
|
|
1814
1814
|
);
|
|
1815
1815
|
const hasLabel = Boolean(label);
|
|
1816
1816
|
const readOnly = slotProps?.input?.readOnly;
|
package/dist/main.css
CHANGED
|
@@ -6286,8 +6286,11 @@ pre {
|
|
|
6286
6286
|
}
|
|
6287
6287
|
.rf-text-field__input::placeholder {
|
|
6288
6288
|
color: var(--tf-placeholder-color);
|
|
6289
|
+
opacity: 0;
|
|
6290
|
+
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
6291
|
+
}
|
|
6292
|
+
.rf-text-field__input:focus::placeholder {
|
|
6289
6293
|
opacity: 1;
|
|
6290
|
-
transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
6291
6294
|
}
|
|
6292
6295
|
.rf-text-field__helper-text {
|
|
6293
6296
|
color: var(--tf-placeholder-color);
|
package/dist/main.js
CHANGED
|
@@ -1644,7 +1644,7 @@ var TextField = forwardRef3(({
|
|
|
1644
1644
|
const sxClass = useSx(sx);
|
|
1645
1645
|
const inputId = id || name || `tf-${Math.random().toString(36).substr(2, 9)}`;
|
|
1646
1646
|
const isFloating = Boolean(
|
|
1647
|
-
value !== void 0 && value !== "" ||
|
|
1647
|
+
value !== void 0 && value !== "" || type === "date" || type === "time" || type === "datetime-local"
|
|
1648
1648
|
);
|
|
1649
1649
|
const hasLabel = Boolean(label);
|
|
1650
1650
|
const readOnly = slotProps?.input?.readOnly;
|