@invana/forms 0.0.19 → 0.0.21
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.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -153,7 +153,7 @@ var Input = React2__namespace.forwardRef(
|
|
|
153
153
|
{
|
|
154
154
|
type,
|
|
155
155
|
className: ui.cn(
|
|
156
|
-
"flex h-10 w-full rounded-
|
|
156
|
+
"flex h-10 w-full rounded-control border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
157
157
|
className
|
|
158
158
|
),
|
|
159
159
|
ref,
|
|
@@ -206,7 +206,7 @@ var Textarea = React2__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
|
206
206
|
"textarea",
|
|
207
207
|
{
|
|
208
208
|
className: ui.cn(
|
|
209
|
-
"flex min-h-[80px] w-full rounded-
|
|
209
|
+
"flex min-h-[80px] w-full rounded-control border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
210
210
|
className
|
|
211
211
|
),
|
|
212
212
|
ref,
|
|
@@ -240,7 +240,7 @@ var Checkbox = React2__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
240
240
|
{
|
|
241
241
|
ref,
|
|
242
242
|
className: ui.cn(
|
|
243
|
-
"peer h-4 w-4 shrink-0 rounded-
|
|
243
|
+
"peer h-4 w-4 shrink-0 rounded-control border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
244
244
|
className
|
|
245
245
|
),
|
|
246
246
|
...props,
|
|
@@ -288,7 +288,7 @@ var SelectTrigger = React2__namespace.forwardRef(({ className, children, ...prop
|
|
|
288
288
|
{
|
|
289
289
|
ref,
|
|
290
290
|
className: ui.cn(
|
|
291
|
-
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-
|
|
291
|
+
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-control border border-input bg-transparent px-3 py-2 shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
292
292
|
className
|
|
293
293
|
),
|
|
294
294
|
...props,
|
|
@@ -367,7 +367,7 @@ var SelectItem = React2__namespace.forwardRef(({ className, children, ...props }
|
|
|
367
367
|
{
|
|
368
368
|
ref,
|
|
369
369
|
className: ui.cn(
|
|
370
|
-
"relative flex w-full cursor-default select-none items-center rounded-
|
|
370
|
+
"relative flex w-full cursor-default select-none items-center rounded-control py-1.5 pl-2 pr-8 outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
371
371
|
className
|
|
372
372
|
),
|
|
373
373
|
...props,
|
|
@@ -418,7 +418,7 @@ var ColorSwatches = ({
|
|
|
418
418
|
type: "button",
|
|
419
419
|
onClick: () => select(color.value),
|
|
420
420
|
className: ui.cn(
|
|
421
|
-
"group relative h-8 w-8 overflow-hidden rounded-
|
|
421
|
+
"group relative h-8 w-8 overflow-hidden rounded-control border",
|
|
422
422
|
"ring-offset-background transition-all hover:scale-105",
|
|
423
423
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
424
424
|
!isCustom && value === color.value && "ring-2 ring-ring ring-offset-2"
|
|
@@ -438,7 +438,7 @@ var ColorSwatches = ({
|
|
|
438
438
|
"div",
|
|
439
439
|
{
|
|
440
440
|
className: ui.cn(
|
|
441
|
-
"group relative h-8 w-8 overflow-hidden rounded-
|
|
441
|
+
"group relative h-8 w-8 overflow-hidden rounded-control border",
|
|
442
442
|
"ring-offset-background transition-all hover:scale-105",
|
|
443
443
|
isCustom && "ring-2 ring-ring ring-offset-2"
|
|
444
444
|
),
|
|
@@ -520,7 +520,7 @@ var SliderNumber = ({
|
|
|
520
520
|
};
|
|
521
521
|
var IconInput = ({ value, onChange }) => {
|
|
522
522
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
523
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-
|
|
523
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-control border bg-muted text-sm", children: value ? value.slice(0, 2) : "\u2013" }),
|
|
524
524
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
525
525
|
Input,
|
|
526
526
|
{
|
|
@@ -598,7 +598,7 @@ function StatusPill({ badge }) {
|
|
|
598
598
|
ui.Badge,
|
|
599
599
|
{
|
|
600
600
|
variant: badge.variant ?? "secondary",
|
|
601
|
-
className: "
|
|
601
|
+
className: "px-1.5 py-0 text-base font-medium",
|
|
602
602
|
children: badge.label
|
|
603
603
|
}
|
|
604
604
|
);
|
|
@@ -1161,7 +1161,7 @@ var ObjectField = ({
|
|
|
1161
1161
|
ui.Badge,
|
|
1162
1162
|
{
|
|
1163
1163
|
variant: "secondary",
|
|
1164
|
-
className: "
|
|
1164
|
+
className: "px-1.5 py-0 text-base font-normal tabular-nums",
|
|
1165
1165
|
children: gFields.length
|
|
1166
1166
|
}
|
|
1167
1167
|
),
|
|
@@ -1418,7 +1418,7 @@ function InputGroup({ className, ...props }) {
|
|
|
1418
1418
|
"data-slot": "input-group",
|
|
1419
1419
|
role: "group",
|
|
1420
1420
|
className: ui.cn(
|
|
1421
|
-
"group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-
|
|
1421
|
+
"group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-control border outline-none transition-[color,box-shadow]",
|
|
1422
1422
|
"h-9 has-[>textarea]:h-auto",
|
|
1423
1423
|
// Variants based on alignment.
|
|
1424
1424
|
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
@@ -1436,7 +1436,7 @@ function InputGroup({ className, ...props }) {
|
|
|
1436
1436
|
);
|
|
1437
1437
|
}
|
|
1438
1438
|
var inputGroupAddonVariants = classVarianceAuthority.cva(
|
|
1439
|
-
"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-
|
|
1439
|
+
"text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-control [&>svg:not([class*='size-'])]:size-4",
|
|
1440
1440
|
{
|
|
1441
1441
|
variants: {
|
|
1442
1442
|
align: {
|
|
@@ -1478,9 +1478,9 @@ var inputGroupButtonVariants = classVarianceAuthority.cva(
|
|
|
1478
1478
|
{
|
|
1479
1479
|
variants: {
|
|
1480
1480
|
size: {
|
|
1481
|
-
xs: "h-6 gap-1 rounded-
|
|
1482
|
-
sm: "h-8 gap-1.5 rounded-
|
|
1483
|
-
"icon-xs": "size-6 rounded-
|
|
1481
|
+
xs: "h-6 gap-1 rounded-control px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
|
|
1482
|
+
sm: "h-8 gap-1.5 rounded-control px-2.5 has-[>svg]:px-2.5",
|
|
1483
|
+
"icon-xs": "size-6 rounded-control p-0 has-[>svg]:p-0",
|
|
1484
1484
|
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
1485
1485
|
}
|
|
1486
1486
|
},
|