@orangecheck/app-design 0.5.4 → 0.5.6

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.mjs CHANGED
@@ -368,7 +368,7 @@ var Label = forwardRef(function Label2({ className, ...props }, ref) {
368
368
  }
369
369
  );
370
370
  });
371
- function Field({ label, hint, optional, error, children, className, hideLabel }) {
371
+ function Field({ label, hint, optional, error, children, className, hideLabel, action }) {
372
372
  const id = useId();
373
373
  const hintId = hint ? `${id}-hint` : void 0;
374
374
  const errorId = error ? `${id}-error` : void 0;
@@ -383,7 +383,10 @@ function Field({ label, hint, optional, error, children, className, hideLabel })
383
383
  label,
384
384
  optional ? /* @__PURE__ */ jsx("span", { className: "text-[0.8125rem] font-normal text-muted-foreground", children: "Optional" }) : null
385
385
  ] }),
386
- control,
386
+ action ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-start", children: [
387
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 [&>*]:w-full", children: control }),
388
+ /* @__PURE__ */ jsx("div", { className: "shrink-0", children: action })
389
+ ] }) : control,
387
390
  hint ? /* @__PURE__ */ jsx("p", { id: hintId, className: "text-[0.8125rem] leading-snug text-muted-foreground", children: hint }) : null,
388
391
  error ? /* @__PURE__ */ jsx("p", { id: errorId, role: "alert", className: "text-[0.8125rem] leading-snug text-destructive", children: error }) : null
389
392
  ] });
@@ -1219,11 +1222,11 @@ function Prose({ className, ...props }) {
1219
1222
  {
1220
1223
  className: cn(
1221
1224
  "max-w-[42rem] text-[1.0625rem] leading-[1.7] text-muted-foreground",
1222
- "[&_h2]:oca-display-3 [&_h2]:mb-4 [&_h2]:mt-14 [&_h2]:scroll-mt-24 [&_h2]:text-foreground",
1223
- "[&_h3]:oca-title [&_h3]:mb-3 [&_h3]:mt-10 [&_h3]:text-foreground",
1224
- "[&_p]:my-4 [&_strong]:font-medium [&_strong]:text-foreground",
1225
+ "[&_h2:not(.not-prose_h2)]:oca-display-3 [&_h2:not(.not-prose_h2)]:mb-4 [&_h2:not(.not-prose_h2)]:mt-14 [&_h2]:scroll-mt-24 [&_h2]:text-foreground",
1226
+ "[&_h3:not(.not-prose_h3)]:oca-title [&_h3:not(.not-prose_h3)]:mb-3 [&_h3:not(.not-prose_h3)]:mt-10 [&_h3]:text-foreground",
1227
+ "[&_p:not(.not-prose_p)]:my-4 [&_strong]:font-medium [&_strong]:text-foreground",
1225
1228
  "[&_a]:text-foreground [&_a]:underline [&_a]:decoration-foreground/35 [&_a]:underline-offset-4 hover:[&_a]:decoration-foreground",
1226
- "[&_ul]:my-4 [&_ul]:list-disc [&_ul]:pl-5 [&_li]:my-1.5 [&_code]:text-foreground",
1229
+ "[&_ul:not(.not-prose_ul)]:my-4 [&_ul:not(.not-prose_ul)]:list-disc [&_ul:not(.not-prose_ul)]:pl-5 [&_li:not(.not-prose_li)]:my-1.5 [&_code]:text-foreground",
1227
1230
  className
1228
1231
  ),
1229
1232
  ...props