@codapet/design-system 0.8.1 → 0.8.3

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/AGENTS.md CHANGED
@@ -100,7 +100,7 @@ These don't exist in shadcn — reach for them instead of building your own:
100
100
  The brand palette lives in CSS variables exposed as Tailwind colors. Use these, not `bg-blue-600`, `text-gray-500`, `border-red-300`, etc. — raw colors won't dark-mode correctly.
101
101
 
102
102
  - **Brand**: `brand-{subtle,light,normal,vibrant,dark}`, `brand-text-vibrant`. `primary` aliases `brand-normal`.
103
- - **Surfaces** (backgrounds): `gray-surface-{light,default,dark}`, `primary-surface-{subtle,light,default}`, `secondary-surface-default`, `sand-{subtle,light,normal,dark}`, `sage-{light,normal,dark}`, `rose-{light,normal,dark}`, `error-surface-{subtle,light,default,dark}`, `success-surface-{subtle,default}`, `warning-surface-{subtle,light}`.
103
+ - **Surfaces** (backgrounds): `gray-surface-{light,default,dark}`, `primary-surface-{subtle,light,default}`, `secondary-surface-default`, `sand-{subtle,light,normal,dark}`, `sage-{light,normal,dark}`, `rose-{light,normal,dark}`, `error-surface-{subtle,light,default,dark}`, `error-destructive` (filled destructive buttons only), `success-surface-{subtle,default}`, `warning-surface-{subtle,light}`.
104
104
  - **Strokes** (borders): `gray-stroke-{light,default}`, `primary-stroke-default`, `secondary-stroke-{light,default}`, `error-stroke-{light,default}`, `success-stroke-light`, `warning-stroke-{default,dark}`, `sand-stroke-disabled`.
105
105
  - **Text**: `vibrant-text-{display,heading,body,details,white-darker}`, `secondary-text-dark`, `gray-subtle`, `foreground-secondary`, `destructive-text`.
106
106
  - **Icons**: `gray-icon-{subtle,light,default,dark}`, `icon-disabled`.
package/dist/index.mjs CHANGED
@@ -255,7 +255,7 @@ var buttonVariants = cva3(
255
255
  "ghost-secondary": "text-foreground-secondary hover:bg-gray-surface-light hover:text-accent-foreground dark:hover:bg-accent/50 active:bg-gray-surface-default",
256
256
  "ghost-destructive": "bg-transparent text-destructive-text hover:bg-destructive-hover focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active",
257
257
  link: "text-foreground-secondary underline-offset-4 underline hover:bg-none active:bg-none hover:text-brand-vibrant",
258
- destructive: "bg-error-surface-default text-primary-foreground hover:bg-red-800 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-error-surface-dark",
258
+ destructive: "bg-error-destructive text-primary-foreground hover:bg-red-800 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-error-surface-dark",
259
259
  "destructive-secondary": "bg-error-surface-light border border-error-stroke-light text-destructive-text hover:border-error-surface-default focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active",
260
260
  "destructive-tertiary": "bg-transparent border border-error-stroke-light text-destructive-text hover:bg-destructive-hover focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active"
261
261
  },
@@ -448,7 +448,8 @@ var textareaBaseStyles = [
448
448
  "border-gray-stroke-default bg-background",
449
449
  // Hover/Focus/Active states
450
450
  "hover:border-focus-ring",
451
- "focus:border-focus-ring focus:ring-[1px] focus:ring-focus-ring",
451
+ "focus:border-focus-ring",
452
+ "focus-visible:border",
452
453
  "active:border-focus-ring",
453
454
  // Textarea specific
454
455
  "field-sizing-content min-h-16 resize-y px-3 py-2"
@@ -456,7 +457,8 @@ var textareaBaseStyles = [
456
457
  var errorStyles = [
457
458
  "border-error-stroke-default bg-background",
458
459
  "hover:border-error-stroke-default",
459
- "focus:border-error-stroke-default focus:ring-[1px] focus:ring-error-stroke-default",
460
+ "focus:border-error-stroke-default",
461
+ "focus-visible:border",
460
462
  "active:border-error-stroke-default"
461
463
  ].join(" ");
462
464
  var Textarea = React6.forwardRef(
@@ -1076,15 +1078,15 @@ function Calendar({
1076
1078
  ),
1077
1079
  table: cn("w-full border-collapse", classNames?.table),
1078
1080
  weekdays: cn(
1079
- "flex items-center justify-start w-full gap-2",
1081
+ "flex items-center justify-start w-full gap-2 ",
1080
1082
  classNames?.weekdays
1081
1083
  ),
1082
1084
  weekday: cn(
1083
- "text-muted-foreground font-medium rounded-full md:flex-1 size-6 mx-1 font-normal text-[0.8rem] select-none",
1085
+ "text-muted-foreground font-medium rounded-full md:flex-1 size-7 md:mx-1 font-normal text-[0.8rem] select-none",
1084
1086
  classNames?.weekday
1085
1087
  ),
1086
1088
  week: cn(
1087
- "flex w-full md:mt-2 mt-[2px] items-center justify-start gap-1",
1089
+ "flex w-full md:mt-2 mt-[2px] items-center justify-start gap-2 ",
1088
1090
  classNames?.week
1089
1091
  ),
1090
1092
  week_number_header: cn(
@@ -1097,7 +1099,7 @@ function Calendar({
1097
1099
  classNames?.week_number
1098
1100
  ),
1099
1101
  day: cn(
1100
- "relative flex items-center justify-center md:w-full md:h-full p-0 text-center group/day aspect-square select-none size-7 md:mx-0 mx-1 rounded-full",
1102
+ "relative flex items-center justify-center p-0 text-center group/day aspect-square select-none size-7 md:mx-1 rounded-full",
1101
1103
  classNames?.day
1102
1104
  ),
1103
1105
  range_start: cn(" bg-accent", classNames?.range_start),
@@ -2272,7 +2274,7 @@ var inputVariants = cva8(
2272
2274
  // File input styles
2273
2275
  "file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
2274
2276
  // Disabled styles
2275
- "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-60"
2277
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-60 disabled:text-gray-icon-subtle"
2276
2278
  ],
2277
2279
  {
2278
2280
  variants: {
@@ -2304,12 +2306,14 @@ var Input = React22.forwardRef(
2304
2306
  const stateStyles = error ? [
2305
2307
  "border-error-stroke-default bg-background",
2306
2308
  "hover:border-error-stroke-default",
2307
- "focus:border-error-stroke-default focus:ring-[1px] focus:ring-error-stroke-default",
2309
+ "focus:border-error-stroke-default",
2310
+ "focus-visible:border",
2308
2311
  "active:border-error-stroke-default"
2309
2312
  ] : [
2310
2313
  "border-gray-stroke-default bg-background",
2311
2314
  "hover:border-focus-ring",
2312
- "focus:border-focus-ring focus:ring-[1px] focus:ring-focus-ring",
2315
+ "focus:border-focus-ring",
2316
+ "focus-visible:border",
2313
2317
  "active:border-focus-ring"
2314
2318
  ];
2315
2319
  if (leftIcon || rightIcon) {