@abpjs/ui 0.2.0-next.40 → 0.2.0-next.41

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.41
4
+
5
+ A prerelease under npm's `next` tag.
6
+
7
+ - `Field`: `optionalText` ("Optional") reads apart from its label: a space before it, quieter and not bold. It ran into
8
+ the label ("MessageOptional").
9
+
3
10
  ## 0.2.0-next.40
4
11
 
5
12
  A prerelease under npm's `next` tag.
package/dist/index.js CHANGED
@@ -1603,7 +1603,7 @@ function useTokenVar() {
1603
1603
  }
1604
1604
 
1605
1605
  // src/version.ts
1606
- var ABP_UI_VERSION = true ? "0.2.0-next.40" : "0.0.0-dev";
1606
+ var ABP_UI_VERSION = true ? "0.2.0-next.41" : "0.0.0-dev";
1607
1607
 
1608
1608
  // src/provider/time-zone.tsx
1609
1609
  import { createContext, useContext } from "react";
@@ -2590,7 +2590,12 @@ var Field = forwardRef2(function Field2({ label, helperText, errorText: errorTex
2590
2590
  return /* @__PURE__ */ jsxs7(ChakraField.Root, { ref, invalid: invalid ?? Boolean(errorText2), ...rest, children: [
2591
2591
  label != null && /* @__PURE__ */ jsxs7(ChakraField.Label, { children: [
2592
2592
  label,
2593
- /* @__PURE__ */ jsx13(ChakraField.RequiredIndicator, { fallback: optionalText })
2593
+ /* @__PURE__ */ jsx13(
2594
+ ChakraField.RequiredIndicator,
2595
+ {
2596
+ fallback: optionalText != null ? /* @__PURE__ */ jsx13(chakra5.span, { ms: "1.5", color: "fg.muted", fontWeight: "normal", textStyle: "caption", children: optionalText }) : void 0
2597
+ }
2598
+ )
2594
2599
  ] }),
2595
2600
  loading ? /* @__PURE__ */ jsx13(chakra5.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2596
2601
  helperText != null && /* @__PURE__ */ jsx13(ChakraField.HelperText, { children: helperText }),