@particle-academy/react-fancy 4.4.2 → 4.4.4

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/README.md CHANGED
@@ -303,3 +303,9 @@ Purely visual primitives (labels, dividers, layout shells) only owe the first bu
303
303
  - `react`, `react-dom`, and `lucide-react` are external dependencies, never bundled.
304
304
  - After any change, verify with `pnpm --filter @particle-academy/react-fancy build` before considering the work done.
305
305
  - When updating a component, update its demo page in `resources/js/react-demos/pages/` to cover all new features.
306
+
307
+ ---
308
+
309
+ ## ⭐ Star Fancy UI
310
+
311
+ If this package is useful to you, a quick ⭐ on the repo really helps us build a better kit. Thank you!
package/dist/index.cjs CHANGED
@@ -2975,18 +2975,18 @@ function Field({
2975
2975
  ] });
2976
2976
  }
2977
2977
  var insidePaddingLeft = {
2978
- xs: "pl-7",
2979
- sm: "pl-8",
2980
- md: "pl-9",
2981
- lg: "pl-10",
2982
- xl: "pl-11"
2978
+ xs: "[&_input]:pl-7 [&_select]:pl-7 [&_textarea]:pl-7",
2979
+ sm: "[&_input]:pl-8 [&_select]:pl-8 [&_textarea]:pl-8",
2980
+ md: "[&_input]:pl-9 [&_select]:pl-9 [&_textarea]:pl-9",
2981
+ lg: "[&_input]:pl-10 [&_select]:pl-10 [&_textarea]:pl-10",
2982
+ xl: "[&_input]:pl-11 [&_select]:pl-11 [&_textarea]:pl-11"
2983
2983
  };
2984
2984
  var insidePaddingRight = {
2985
- xs: "pr-7",
2986
- sm: "pr-8",
2987
- md: "pr-9",
2988
- lg: "pr-10",
2989
- xl: "pr-11"
2985
+ xs: "[&_input]:pr-7 [&_select]:pr-7 [&_textarea]:pr-7",
2986
+ sm: "[&_input]:pr-8 [&_select]:pr-8 [&_textarea]:pr-8",
2987
+ md: "[&_input]:pr-9 [&_select]:pr-9 [&_textarea]:pr-9",
2988
+ lg: "[&_input]:pr-10 [&_select]:pr-10 [&_textarea]:pr-10",
2989
+ xl: "[&_input]:pr-11 [&_select]:pr-11 [&_textarea]:pr-11"
2990
2990
  };
2991
2991
  var affixOutsideClasses = "inline-flex items-center border border-zinc-300 bg-zinc-50 px-3 text-sm text-zinc-500 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-400";
2992
2992
  function InputWrapper({
@@ -3025,7 +3025,7 @@ function InputWrapper({
3025
3025
  hasOutsidePrefix && !hasOutsideSuffix && "[&_input]:rounded-l-none [&_select]:rounded-l-none [&_textarea]:rounded-l-none",
3026
3026
  !hasOutsidePrefix && hasOutsideSuffix && "[&_input]:rounded-r-none [&_select]:rounded-r-none [&_textarea]:rounded-r-none",
3027
3027
  hasOutsidePrefix && hasOutsideSuffix && "[&_input]:rounded-none [&_select]:rounded-none [&_textarea]:rounded-none",
3028
- hasInsidePrefix && `[&_input]:${insidePaddingLeft[size]} [&_select]:${insidePaddingLeft[size]} [&_textarea]:${insidePaddingLeft[size]}`
3028
+ hasInsidePrefix && insidePaddingLeft[size]
3029
3029
  ),
3030
3030
  children
3031
3031
  }
@@ -3044,8 +3044,8 @@ function InputWrapper({
3044
3044
  {
3045
3045
  className: cn(
3046
3046
  "w-full",
3047
- hasInsidePrefix && `[&_input]:${insidePaddingLeft[size]} [&_select]:${insidePaddingLeft[size]} [&_textarea]:${insidePaddingLeft[size]}`,
3048
- hasInsideSuffix && `[&_input]:${insidePaddingRight[size]} [&_select]:${insidePaddingRight[size]} [&_textarea]:${insidePaddingRight[size]}`
3047
+ hasInsidePrefix && insidePaddingLeft[size],
3048
+ hasInsideSuffix && insidePaddingRight[size]
3049
3049
  ),
3050
3050
  children
3051
3051
  }
@@ -3233,7 +3233,11 @@ var Textarea = react.forwardRef(
3233
3233
  );
3234
3234
  Textarea.displayName = "Textarea";
3235
3235
  function Portal({ children, container }) {
3236
- if (typeof document === "undefined") return null;
3236
+ const [mounted, setMounted] = react.useState(false);
3237
+ react.useEffect(() => {
3238
+ setMounted(true);
3239
+ }, []);
3240
+ if (!mounted || typeof document === "undefined") return null;
3237
3241
  const target = container ?? document.body;
3238
3242
  return reactDom.createPortal(
3239
3243
  /* @__PURE__ */ jsxRuntime.jsx(PortalDarkWrapper, { children }),