@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.js CHANGED
@@ -126,7 +126,7 @@ var Input = React2.forwardRef(
126
126
  {
127
127
  type,
128
128
  className: cn(
129
- "flex h-10 w-full rounded-md 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",
129
+ "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",
130
130
  className
131
131
  ),
132
132
  ref,
@@ -179,7 +179,7 @@ var Textarea = React2.forwardRef(({ className, ...props }, ref) => {
179
179
  "textarea",
180
180
  {
181
181
  className: cn(
182
- "flex min-h-[80px] w-full rounded-md 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",
182
+ "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",
183
183
  className
184
184
  ),
185
185
  ref,
@@ -213,7 +213,7 @@ var Checkbox = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__
213
213
  {
214
214
  ref,
215
215
  className: cn(
216
- "peer h-4 w-4 shrink-0 rounded-md 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",
216
+ "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",
217
217
  className
218
218
  ),
219
219
  ...props,
@@ -261,7 +261,7 @@ var SelectTrigger = React2.forwardRef(({ className, children, ...props }, ref) =
261
261
  {
262
262
  ref,
263
263
  className: cn(
264
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md 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",
264
+ "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",
265
265
  className
266
266
  ),
267
267
  ...props,
@@ -340,7 +340,7 @@ var SelectItem = React2.forwardRef(({ className, children, ...props }, ref) => /
340
340
  {
341
341
  ref,
342
342
  className: cn(
343
- "relative flex w-full cursor-default select-none items-center rounded-md 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",
343
+ "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",
344
344
  className
345
345
  ),
346
346
  ...props,
@@ -391,7 +391,7 @@ var ColorSwatches = ({
391
391
  type: "button",
392
392
  onClick: () => select(color.value),
393
393
  className: cn(
394
- "group relative h-8 w-8 overflow-hidden rounded-md border",
394
+ "group relative h-8 w-8 overflow-hidden rounded-control border",
395
395
  "ring-offset-background transition-all hover:scale-105",
396
396
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
397
397
  !isCustom && value === color.value && "ring-2 ring-ring ring-offset-2"
@@ -411,7 +411,7 @@ var ColorSwatches = ({
411
411
  "div",
412
412
  {
413
413
  className: cn(
414
- "group relative h-8 w-8 overflow-hidden rounded-md border",
414
+ "group relative h-8 w-8 overflow-hidden rounded-control border",
415
415
  "ring-offset-background transition-all hover:scale-105",
416
416
  isCustom && "ring-2 ring-ring ring-offset-2"
417
417
  ),
@@ -493,7 +493,7 @@ var SliderNumber = ({
493
493
  };
494
494
  var IconInput = ({ value, onChange }) => {
495
495
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
496
- /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border bg-muted text-sm", children: value ? value.slice(0, 2) : "\u2013" }),
496
+ /* @__PURE__ */ 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" }),
497
497
  /* @__PURE__ */ jsx(
498
498
  Input,
499
499
  {
@@ -571,7 +571,7 @@ function StatusPill({ badge }) {
571
571
  Badge,
572
572
  {
573
573
  variant: badge.variant ?? "secondary",
574
- className: "rounded-full px-1.5 py-0 text-base font-medium",
574
+ className: "px-1.5 py-0 text-base font-medium",
575
575
  children: badge.label
576
576
  }
577
577
  );
@@ -1134,7 +1134,7 @@ var ObjectField = ({
1134
1134
  Badge,
1135
1135
  {
1136
1136
  variant: "secondary",
1137
- className: "rounded-full px-1.5 py-0 text-base font-normal tabular-nums",
1137
+ className: "px-1.5 py-0 text-base font-normal tabular-nums",
1138
1138
  children: gFields.length
1139
1139
  }
1140
1140
  ),
@@ -1391,7 +1391,7 @@ function InputGroup({ className, ...props }) {
1391
1391
  "data-slot": "input-group",
1392
1392
  role: "group",
1393
1393
  className: cn(
1394
- "group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]",
1394
+ "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]",
1395
1395
  "h-9 has-[>textarea]:h-auto",
1396
1396
  // Variants based on alignment.
1397
1397
  "has-[>[data-align=inline-start]]:[&>input]:pl-2",
@@ -1409,7 +1409,7 @@ function InputGroup({ className, ...props }) {
1409
1409
  );
1410
1410
  }
1411
1411
  var inputGroupAddonVariants = cva(
1412
- "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-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
1412
+ "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",
1413
1413
  {
1414
1414
  variants: {
1415
1415
  align: {
@@ -1451,9 +1451,9 @@ var inputGroupButtonVariants = cva(
1451
1451
  {
1452
1452
  variants: {
1453
1453
  size: {
1454
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
1455
- sm: "h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5",
1456
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
1454
+ xs: "h-6 gap-1 rounded-control px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
1455
+ sm: "h-8 gap-1.5 rounded-control px-2.5 has-[>svg]:px-2.5",
1456
+ "icon-xs": "size-6 rounded-control p-0 has-[>svg]:p-0",
1457
1457
  "icon-sm": "size-8 p-0 has-[>svg]:p-0"
1458
1458
  }
1459
1459
  },