@dt-dds/react-text-field 1.0.0-beta.90 → 1.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @dt-ui/react-text-field
2
2
 
3
+ ## 1.0.0-beta.92
4
+
5
+ ### Patch Changes
6
+
7
+ - @dt-dds/react-spinner@1.0.0-beta.87
8
+
9
+ ## 1.0.0-beta.91
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: text field label
14
+ - @dt-dds/react-spinner@1.0.0-beta.86
15
+
3
16
  ## 1.0.0-beta.90
4
17
 
5
18
  ### Minor Changes
package/dist/index.js CHANGED
@@ -393,7 +393,7 @@ var TextField = (0, import_react.forwardRef)(
393
393
  const messageColor = disabled ? "content.light" : "content.medium";
394
394
  const showError = hasError || hasRequiredError;
395
395
  const message = hasRequiredError ? requiredMessage != null ? requiredMessage : messageProp : messageProp;
396
- const isActiveInput = isInputFocused || activeInput || !!inputValue.trim();
396
+ const isActiveInput = activeInput || !!inputValue.trim();
397
397
  const isSearchType = type === "search";
398
398
  const extraPrefixOnClick = (extraPrefix == null ? void 0 : extraPrefix.onClick) ? extraPrefix.onClick : null;
399
399
  const extraSuffixOnClick = (extraSuffix == null ? void 0 : extraSuffix.onClick) ? extraSuffix.onClick : null;
@@ -412,7 +412,7 @@ var TextField = (0, import_react.forwardRef)(
412
412
  hasError: showError,
413
413
  htmlFor: textFieldId,
414
414
  icon: labelIcon,
415
- isActive: isActiveInput,
415
+ isActive: isInputFocused || activeInput,
416
416
  isCentered: !isActiveInput && isFloatingLabel,
417
417
  isDisabled: disabled,
418
418
  isFloating: isFloatingLabel,
package/dist/index.mjs CHANGED
@@ -357,7 +357,7 @@ var TextField = forwardRef(
357
357
  const messageColor = disabled ? "content.light" : "content.medium";
358
358
  const showError = hasError || hasRequiredError;
359
359
  const message = hasRequiredError ? requiredMessage != null ? requiredMessage : messageProp : messageProp;
360
- const isActiveInput = isInputFocused || activeInput || !!inputValue.trim();
360
+ const isActiveInput = activeInput || !!inputValue.trim();
361
361
  const isSearchType = type === "search";
362
362
  const extraPrefixOnClick = (extraPrefix == null ? void 0 : extraPrefix.onClick) ? extraPrefix.onClick : null;
363
363
  const extraSuffixOnClick = (extraSuffix == null ? void 0 : extraSuffix.onClick) ? extraSuffix.onClick : null;
@@ -376,7 +376,7 @@ var TextField = forwardRef(
376
376
  hasError: showError,
377
377
  htmlFor: textFieldId,
378
378
  icon: labelIcon,
379
- isActive: isActiveInput,
379
+ isActive: isInputFocused || activeInput,
380
380
  isCentered: !isActiveInput && isFloatingLabel,
381
381
  isDisabled: disabled,
382
382
  isFloating: isFloatingLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-text-field",
3
- "version": "1.0.0-beta.90",
3
+ "version": "1.0.0-beta.92",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dt-dds/react-core": "1.0.0-beta.51",
24
- "@dt-dds/react-spinner": "1.0.0-beta.85",
24
+ "@dt-dds/react-spinner": "1.0.0-beta.87",
25
25
  "@dt-dds/react-label-field": "1.0.0-beta.52",
26
26
  "@dt-dds/react-typography": "1.0.0-beta.42",
27
27
  "@dt-dds/react-icon-button": "1.0.0-beta.20",