@pipelex/mthds-form 0.22.0 → 0.23.0
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/brand/index.d.ts +31 -12
- package/dist/brand/index.js +11 -11
- package/dist/brand/index.js.map +1 -1
- package/dist/{chunk-5IZWP2X4.js → chunk-NOSHTDID.js} +242 -74
- package/dist/chunk-NOSHTDID.js.map +1 -0
- package/dist/generative/index.js +13 -11
- package/dist/generative/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-5IZWP2X4.js.map +0 -1
package/dist/generative/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn,
|
|
2
|
+
import { cn, checkedAccentClass, focusOutlineClass, linkTextClass, selectedBorderClass, selectedFillClass, fieldControlClass, ResultRoot, ResultField, FieldRenderer, ToggleGroup, ToggleGroupItem, selectedFillStrongClass, Switch, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../chunk-NOSHTDID.js';
|
|
3
3
|
import '../chunk-ICUEHNEH.js';
|
|
4
4
|
export { seedInputs } from '../chunk-VH5CDQDR.js';
|
|
5
5
|
import '../chunk-EQJBM3NS.js';
|
|
@@ -1928,7 +1928,7 @@ function Collapsible({
|
|
|
1928
1928
|
open: props.defaultOpen ?? false,
|
|
1929
1929
|
"data-slot": "collapsible",
|
|
1930
1930
|
children: [
|
|
1931
|
-
/* @__PURE__ */ jsx("summary", { className: "cursor-pointer list-none px-4 py-3 text-sm font-medium select-none", children: props.title }),
|
|
1931
|
+
/* @__PURE__ */ jsx("summary", { className: "cursor-pointer list-none rounded-md px-4 py-3 text-sm font-medium select-none focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", children: props.title }),
|
|
1932
1932
|
/* @__PURE__ */ jsx("div", { className: "border-t border-border px-4 py-3", children })
|
|
1933
1933
|
]
|
|
1934
1934
|
}
|
|
@@ -2115,6 +2115,7 @@ function Textarea({
|
|
|
2115
2115
|
/* @__PURE__ */ jsx(FieldError, { message: field.error })
|
|
2116
2116
|
] });
|
|
2117
2117
|
}
|
|
2118
|
+
var NATIVE_CHECK = cn("size-4", checkedAccentClass, focusOutlineClass);
|
|
2118
2119
|
function Radio({
|
|
2119
2120
|
props,
|
|
2120
2121
|
bindings,
|
|
@@ -2132,7 +2133,7 @@ function Radio({
|
|
|
2132
2133
|
name: id,
|
|
2133
2134
|
value: option,
|
|
2134
2135
|
checked: field.value === option,
|
|
2135
|
-
className:
|
|
2136
|
+
className: NATIVE_CHECK,
|
|
2136
2137
|
onChange: () => {
|
|
2137
2138
|
field.setValue(option);
|
|
2138
2139
|
field.validateOnChange();
|
|
@@ -2160,7 +2161,7 @@ function Checkbox({
|
|
|
2160
2161
|
id,
|
|
2161
2162
|
name: props.name,
|
|
2162
2163
|
type: "checkbox",
|
|
2163
|
-
className:
|
|
2164
|
+
className: NATIVE_CHECK,
|
|
2164
2165
|
checked: field.value,
|
|
2165
2166
|
"aria-invalid": field.error ? true : void 0,
|
|
2166
2167
|
onChange: (event) => {
|
|
@@ -2473,7 +2474,7 @@ function Steps({ props, children }) {
|
|
|
2473
2474
|
{
|
|
2474
2475
|
className: cn(
|
|
2475
2476
|
"flex h-6 w-6 items-center justify-center rounded-full text-[12px] font-semibold tabular-nums",
|
|
2476
|
-
position < index ? cn(
|
|
2477
|
+
position < index ? cn(selectedFillStrongClass, linkTextClass) : position === index ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"
|
|
2477
2478
|
),
|
|
2478
2479
|
children: position + 1
|
|
2479
2480
|
}
|
|
@@ -2739,7 +2740,7 @@ function AppBar({ props }) {
|
|
|
2739
2740
|
{
|
|
2740
2741
|
href: "#",
|
|
2741
2742
|
onClick: (event) => event.preventDefault(),
|
|
2742
|
-
className: "text-sm text-muted-foreground transition-colors hover:text-foreground",
|
|
2743
|
+
className: "rounded-sm text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-hidden",
|
|
2743
2744
|
children: link
|
|
2744
2745
|
},
|
|
2745
2746
|
link
|
|
@@ -2748,9 +2749,10 @@ function AppBar({ props }) {
|
|
|
2748
2749
|
"span",
|
|
2749
2750
|
{
|
|
2750
2751
|
className: cn(
|
|
2751
|
-
"min-w-0 truncate rounded-lg border
|
|
2752
|
-
|
|
2753
|
-
|
|
2752
|
+
"min-w-0 truncate rounded-lg border px-2.5 py-1 font-mono text-[11px]",
|
|
2753
|
+
selectedBorderClass,
|
|
2754
|
+
selectedFillClass,
|
|
2755
|
+
linkTextClass
|
|
2754
2756
|
),
|
|
2755
2757
|
children: props.tag
|
|
2756
2758
|
}
|
|
@@ -2763,7 +2765,7 @@ function Hero({ props }) {
|
|
|
2763
2765
|
props.eyebrow ? /* @__PURE__ */ jsx(
|
|
2764
2766
|
"p",
|
|
2765
2767
|
{
|
|
2766
|
-
className: cn("mb-4 text-[11px] font-medium tracking-[0.15em] uppercase",
|
|
2768
|
+
className: cn("mb-4 text-[11px] font-medium tracking-[0.15em] uppercase", linkTextClass),
|
|
2767
2769
|
children: props.eyebrow
|
|
2768
2770
|
}
|
|
2769
2771
|
) : null,
|
|
@@ -2813,7 +2815,7 @@ function Section({ props, children }) {
|
|
|
2813
2815
|
return /* @__PURE__ */ jsxs("section", { className: "border-t border-border py-9 first:border-t-0 first:pt-0", children: [
|
|
2814
2816
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
2815
2817
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-3", children: [
|
|
2816
|
-
props.number ? /* @__PURE__ */ jsx("span", { className: cn("font-mono text-[12px]",
|
|
2818
|
+
props.number ? /* @__PURE__ */ jsx("span", { className: cn("font-mono text-[12px]", linkTextClass), children: props.number }) : null,
|
|
2817
2819
|
/* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold tracking-tight text-foreground", children: props.title })
|
|
2818
2820
|
] }),
|
|
2819
2821
|
props.lede ? /* @__PURE__ */ jsx("p", { className: "mt-1.5 text-sm text-muted-foreground", children: props.lede }) : null
|