@bearmenu/ui 0.8.26 → 0.8.28
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/{chunk-QG6I2ILT.js → chunk-GESB7GCF.js} +1 -1
- package/dist/{chunk-VEFKZIK6.js → chunk-GTQSGDYF.js} +1 -1
- package/dist/{chunk-AHHDC7ML.js → chunk-VSRGEB36.js} +1 -1
- package/dist/{chunk-IEIJP73R.js → chunk-ZU4NAYN7.js} +26 -4
- package/dist/components/badge.d.ts +3 -2
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.d.ts +4 -1
- package/dist/components/banner.js +7 -2
- package/dist/components/booking-row.js +1 -1
- package/dist/components/concept-convergence.js +1 -1
- package/dist/components/currency-input.js +1 -1
- package/dist/components/date-input.js +1 -1
- package/dist/components/field.js +4 -3
- package/dist/components/filter-category-row.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/menu-item.js +3 -3
- package/dist/components/multi-select-combobox.js +1 -1
- package/dist/components/place-card.js +1 -1
- package/dist/components/place-details-mobile.js +1 -1
- package/dist/components/signature-chip.js +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/components/top-ranking-entry.js +3 -3
- package/package.json +1 -1
- package/src/components/badge.tsx +24 -3
- package/src/components/banner.tsx +13 -3
- package/src/components/field.tsx +4 -3
- package/src/components/input.tsx +1 -1
- package/src/components/textarea.tsx +2 -2
- package/src/globals.css +12 -0
|
@@ -24,7 +24,7 @@ var inputVariants = cva(
|
|
|
24
24
|
*/
|
|
25
25
|
appearance: {
|
|
26
26
|
default: "",
|
|
27
|
-
booking: "h-[46px] rounded-[11px] bg-card px-[13px] py-0 text-[14px] leading-[1.2] focus-visible:bg-card focus-visible:ring-ring aria-invalid:border-
|
|
27
|
+
booking: "h-[46px] rounded-[11px] bg-card px-[13px] py-0 text-[14px] leading-[1.2] focus-visible:bg-card focus-visible:ring-ring aria-invalid:border-destructive-ink"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
defaultVariants: {
|
|
@@ -29,9 +29,24 @@ var badgeVariants = cva(
|
|
|
29
29
|
*/
|
|
30
30
|
// `border-0`: the base's transparent hairline would add 2px to each
|
|
31
31
|
// side the design does not have.
|
|
32
|
-
confirmed: "rounded-full border-0 bg-success/15 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-
|
|
32
|
+
confirmed: "rounded-full border-0 bg-success/15 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-success-ink",
|
|
33
33
|
pending: "rounded-full border-0 bg-warning/20 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-[oklch(0.42_0.1_70)] dark:text-warning",
|
|
34
|
-
code: "rounded-full border-0 bg-surface-2 px-[9px] py-[3px] font-mono text-[10.5px] leading-[1.2] font-bold tabular-nums text-ink-secondary"
|
|
34
|
+
code: "rounded-full border-0 bg-surface-2 px-[9px] py-[3px] font-mono text-[10.5px] leading-[1.2] font-bold tabular-nums text-ink-secondary",
|
|
35
|
+
/**
|
|
36
|
+
* A booking that is over — "Completed", "Missed". The quiet sibling
|
|
37
|
+
* of `confirmed` / `pending`: the same pill, the muted ink, because
|
|
38
|
+
* nothing about it needs acting on.
|
|
39
|
+
*/
|
|
40
|
+
completed: "rounded-full border-0 bg-muted px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-muted-foreground"
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* `status` is the taller pill the booking design draws beside a
|
|
44
|
+
* summary — the same ink and radius, more air. `chip` (the default) is
|
|
45
|
+
* the inline one that sits in a row of text.
|
|
46
|
+
*/
|
|
47
|
+
size: {
|
|
48
|
+
chip: "",
|
|
49
|
+
status: "py-[11px]"
|
|
35
50
|
},
|
|
36
51
|
// v1.0 motion: "live" surface signal — applies `live-pulse` archetype.
|
|
37
52
|
// Pair with a colored variant (e.g. variant="destructive" live).
|
|
@@ -42,13 +57,20 @@ var badgeVariants = cva(
|
|
|
42
57
|
},
|
|
43
58
|
defaultVariants: {
|
|
44
59
|
variant: "default",
|
|
60
|
+
size: "chip",
|
|
45
61
|
live: false
|
|
46
62
|
}
|
|
47
63
|
}
|
|
48
64
|
);
|
|
49
65
|
function Badge(_a) {
|
|
50
|
-
var _b = _a, { className, variant, live, as: Tag = "div" } = _b, props = __objRest(_b, ["className", "variant", "live", "as"]);
|
|
51
|
-
return /* @__PURE__ */ jsx(
|
|
66
|
+
var _b = _a, { className, variant, size, live, as: Tag = "div" } = _b, props = __objRest(_b, ["className", "variant", "size", "live", "as"]);
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
Tag,
|
|
69
|
+
__spreadValues({
|
|
70
|
+
"data-slot": "badge",
|
|
71
|
+
className: cn(badgeVariants({ variant, size, live }), className)
|
|
72
|
+
}, props)
|
|
73
|
+
);
|
|
52
74
|
}
|
|
53
75
|
|
|
54
76
|
export { Badge, badgeVariants };
|
|
@@ -4,7 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "code" | "default" | "destructive" | "outline" | "secondary" | "glass" | "overlay" | "brown" | "warning" | "success" | "onPrimary" | "confirmed" | "pending" | null | undefined;
|
|
7
|
+
variant?: "code" | "default" | "destructive" | "outline" | "secondary" | "glass" | "overlay" | "brown" | "warning" | "success" | "onPrimary" | "confirmed" | "pending" | "completed" | null | undefined;
|
|
8
|
+
size?: "status" | "chip" | null | undefined;
|
|
8
9
|
live?: boolean | null | undefined;
|
|
9
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
11
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -18,6 +19,6 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
18
19
|
*/
|
|
19
20
|
as?: "div" | "span";
|
|
20
21
|
}
|
|
21
|
-
declare function Badge({ className, variant, live, as: Tag, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function Badge({ className, variant, size, live, as: Tag, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
22
23
|
|
|
23
24
|
export { Badge, type BadgeProps, badgeVariants };
|
package/dist/components/badge.js
CHANGED
|
@@ -26,7 +26,10 @@ declare const bannerVariants: (props?: ({
|
|
|
26
26
|
tone?: "warning" | "info" | null | undefined;
|
|
27
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
28
28
|
type BannerProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & VariantProps<typeof bannerVariants> & {
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* A lucide icon, drawn at 16px beside the text. Omit it for the tone's
|
|
31
|
+
* own glyph; pass `null` for a note with no icon at all.
|
|
32
|
+
*/
|
|
30
33
|
icon?: React.ReactNode;
|
|
31
34
|
/** The bold first line — "19:30 just went". */
|
|
32
35
|
title?: React.ReactNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
2
|
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { TriangleAlert, Info } from 'lucide-react';
|
|
4
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
var bannerVariants = cva(
|
|
@@ -15,12 +16,16 @@ var bannerVariants = cva(
|
|
|
15
16
|
defaultVariants: { tone: "info" }
|
|
16
17
|
}
|
|
17
18
|
);
|
|
19
|
+
var TONE_ICON = {
|
|
20
|
+
info: /* @__PURE__ */ jsx(Info, { "aria-hidden": true }),
|
|
21
|
+
warning: /* @__PURE__ */ jsx(TriangleAlert, { "aria-hidden": true })
|
|
22
|
+
};
|
|
18
23
|
function Banner(_a) {
|
|
19
24
|
var _b = _a, { tone, icon, title, className, children } = _b, props = __objRest(_b, ["tone", "icon", "title", "className", "children"]);
|
|
20
25
|
return /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({ "data-slot": "banner", className: cn(bannerVariants({ tone }), className) }, props), { children: [
|
|
21
|
-
icon,
|
|
26
|
+
icon === void 0 ? TONE_ICON[tone != null ? tone : "info"] : icon,
|
|
22
27
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
23
|
-
title ? /* @__PURE__ */ jsx("b", { className: "block text-[13px] font-bold", children: title }) : null,
|
|
28
|
+
title ? /* @__PURE__ */ jsx("b", { className: "mb-[3px] block text-[13px] font-bold", children: title }) : null,
|
|
24
29
|
/* @__PURE__ */ jsx("div", { className: cn(tone === "warning" && title ? "opacity-90" : void 0), children })
|
|
25
30
|
] })
|
|
26
31
|
] }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Convergence } from '../chunk-4XDJXMLF.js';
|
|
2
2
|
import '../chunk-OIV7B44M.js';
|
|
3
3
|
import { PhotoGround } from '../chunk-SWD6CJ35.js';
|
|
4
|
-
import { Badge } from '../chunk-
|
|
4
|
+
import { Badge } from '../chunk-ZU4NAYN7.js';
|
|
5
5
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
6
6
|
import '../chunk-MMUBH76A.js';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
package/dist/components/field.js
CHANGED
|
@@ -126,9 +126,10 @@ var FieldError = React.forwardRef(
|
|
|
126
126
|
"data-slot": "field-error",
|
|
127
127
|
className: cn(
|
|
128
128
|
appearance === "booking" ? (
|
|
129
|
-
//
|
|
130
|
-
//
|
|
131
|
-
|
|
129
|
+
// `destructive-ink`, not the solid token: red AS TEXT, dark
|
|
130
|
+
// enough for AA on white and lifted enough for the card ground
|
|
131
|
+
// in dark, where the solid one measures ~3.8:1 at 11.5px.
|
|
132
|
+
"m-0 text-[11.5px] leading-[1.2] text-destructive-ink"
|
|
132
133
|
) : "text-sm text-destructive",
|
|
133
134
|
className
|
|
134
135
|
)
|
package/dist/components/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MentionSignal, MenuItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { MentionSignal, MenuItem } from '../chunk-VSRGEB36.js';
|
|
2
|
+
import '../chunk-GESB7GCF.js';
|
|
3
|
+
import '../chunk-ZU4NAYN7.js';
|
|
4
4
|
import '../chunk-FEK5XGZW.js';
|
|
5
5
|
import '../chunk-MMUBH76A.js';
|
|
@@ -5,7 +5,7 @@ import '../chunk-PDTPO6NG.js';
|
|
|
5
5
|
import { Button } from '../chunk-5HHRVJOT.js';
|
|
6
6
|
import '../chunk-RIH2IS7X.js';
|
|
7
7
|
import '../chunk-5YNIQ2BL.js';
|
|
8
|
-
import { Badge } from '../chunk-
|
|
8
|
+
import { Badge } from '../chunk-ZU4NAYN7.js';
|
|
9
9
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
10
10
|
import '../chunk-MMUBH76A.js';
|
|
11
11
|
import * as React from 'react';
|
|
@@ -6,7 +6,7 @@ import { showsGradeAtom } from '../chunk-I5V446BX.js';
|
|
|
6
6
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
7
7
|
import { springSnappy } from '../chunk-OIV7B44M.js';
|
|
8
8
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
9
|
-
import { Badge } from '../chunk-
|
|
9
|
+
import { Badge } from '../chunk-ZU4NAYN7.js';
|
|
10
10
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
11
11
|
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
12
12
|
import { forwardRef, memo, useState, useMemo } from 'react';
|
|
@@ -3,7 +3,7 @@ import '../chunk-FMTJGO76.js';
|
|
|
3
3
|
import '../chunk-MWB7S54O.js';
|
|
4
4
|
import '../chunk-NWZGSLPU.js';
|
|
5
5
|
import { Text } from '../chunk-ZLMRVBD7.js';
|
|
6
|
-
import { Badge } from '../chunk-
|
|
6
|
+
import { Badge } from '../chunk-ZU4NAYN7.js';
|
|
7
7
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
8
8
|
import '../chunk-MMUBH76A.js';
|
|
9
9
|
import { useState } from 'react';
|
|
@@ -11,11 +11,11 @@ var textareaVariants = cva(
|
|
|
11
11
|
/**
|
|
12
12
|
* The booking flow's note field (booking flow.html, `.in.ta`): the
|
|
13
13
|
* `Input` booking appearance's ground, radius and type, 66px tall with
|
|
14
|
-
* a 12px × 13px inset.
|
|
14
|
+
* a 12px × 13px inset, and no drag handle — the design draws none.
|
|
15
15
|
*/
|
|
16
16
|
appearance: {
|
|
17
17
|
default: "",
|
|
18
|
-
booking: "min-h-[66px] rounded-[11px] bg-card px-[13px] py-3 text-[14px] leading-[1.4] focus-visible:bg-card aria-invalid:border-
|
|
18
|
+
booking: "min-h-[66px] resize-none rounded-[11px] bg-card px-[13px] py-3 text-[14px] leading-[1.4] focus-visible:bg-card aria-invalid:border-destructive-ink"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: { appearance: "default" }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MenuItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { MenuItem } from '../chunk-VSRGEB36.js';
|
|
2
|
+
import '../chunk-GESB7GCF.js';
|
|
3
3
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
4
4
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-ZU4NAYN7.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
7
|
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
8
8
|
import { MapPin, Star, MessageSquareQuote } from 'lucide-react';
|
package/package.json
CHANGED
package/src/components/badge.tsx
CHANGED
|
@@ -34,10 +34,26 @@ const badgeVariants = cva(
|
|
|
34
34
|
// `border-0`: the base's transparent hairline would add 2px to each
|
|
35
35
|
// side the design does not have.
|
|
36
36
|
confirmed:
|
|
37
|
-
"rounded-full border-0 bg-success/15 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-
|
|
37
|
+
"rounded-full border-0 bg-success/15 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-success-ink",
|
|
38
38
|
pending:
|
|
39
39
|
"rounded-full border-0 bg-warning/20 px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-[oklch(0.42_0.1_70)] dark:text-warning",
|
|
40
40
|
code: "rounded-full border-0 bg-surface-2 px-[9px] py-[3px] font-mono text-[10.5px] leading-[1.2] font-bold tabular-nums text-ink-secondary",
|
|
41
|
+
/**
|
|
42
|
+
* A booking that is over — "Completed", "Missed". The quiet sibling
|
|
43
|
+
* of `confirmed` / `pending`: the same pill, the muted ink, because
|
|
44
|
+
* nothing about it needs acting on.
|
|
45
|
+
*/
|
|
46
|
+
completed:
|
|
47
|
+
"rounded-full border-0 bg-muted px-[9px] py-[3px] text-[10.5px] leading-[1.2] font-bold text-muted-foreground",
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* `status` is the taller pill the booking design draws beside a
|
|
51
|
+
* summary — the same ink and radius, more air. `chip` (the default) is
|
|
52
|
+
* the inline one that sits in a row of text.
|
|
53
|
+
*/
|
|
54
|
+
size: {
|
|
55
|
+
chip: "",
|
|
56
|
+
status: "py-[11px]",
|
|
41
57
|
},
|
|
42
58
|
// v1.0 motion: "live" surface signal — applies `live-pulse` archetype.
|
|
43
59
|
// Pair with a colored variant (e.g. variant="destructive" live).
|
|
@@ -48,6 +64,7 @@ const badgeVariants = cva(
|
|
|
48
64
|
},
|
|
49
65
|
defaultVariants: {
|
|
50
66
|
variant: "default",
|
|
67
|
+
size: "chip",
|
|
51
68
|
live: false,
|
|
52
69
|
},
|
|
53
70
|
}
|
|
@@ -66,9 +83,13 @@ export interface BadgeProps
|
|
|
66
83
|
as?: "div" | "span";
|
|
67
84
|
}
|
|
68
85
|
|
|
69
|
-
function Badge({ className, variant, live, as: Tag = "div", ...props }: BadgeProps) {
|
|
86
|
+
function Badge({ className, variant, size, live, as: Tag = "div", ...props }: BadgeProps) {
|
|
70
87
|
return (
|
|
71
|
-
<Tag
|
|
88
|
+
<Tag
|
|
89
|
+
data-slot="badge"
|
|
90
|
+
className={cn(badgeVariants({ variant, size, live }), className)}
|
|
91
|
+
{...props}
|
|
92
|
+
/>
|
|
72
93
|
);
|
|
73
94
|
}
|
|
74
95
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Info, TriangleAlert } from "lucide-react";
|
|
3
4
|
import { cn } from "../lib/utils";
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -37,18 +38,27 @@ const bannerVariants = cva(
|
|
|
37
38
|
|
|
38
39
|
export type BannerProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> &
|
|
39
40
|
VariantProps<typeof bannerVariants> & {
|
|
40
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* A lucide icon, drawn at 16px beside the text. Omit it for the tone's
|
|
43
|
+
* own glyph; pass `null` for a note with no icon at all.
|
|
44
|
+
*/
|
|
41
45
|
icon?: React.ReactNode;
|
|
42
46
|
/** The bold first line — "19:30 just went". */
|
|
43
47
|
title?: React.ReactNode;
|
|
44
48
|
};
|
|
45
49
|
|
|
50
|
+
/** Each tone's own glyph, so a caller never has to remember which. */
|
|
51
|
+
const TONE_ICON = {
|
|
52
|
+
info: <Info aria-hidden />,
|
|
53
|
+
warning: <TriangleAlert aria-hidden />,
|
|
54
|
+
} as const;
|
|
55
|
+
|
|
46
56
|
function Banner({ tone, icon, title, className, children, ...props }: BannerProps) {
|
|
47
57
|
return (
|
|
48
58
|
<div data-slot="banner" className={cn(bannerVariants({ tone }), className)} {...props}>
|
|
49
|
-
{icon}
|
|
59
|
+
{icon === undefined ? TONE_ICON[tone ?? "info"] : icon}
|
|
50
60
|
<div className="min-w-0">
|
|
51
|
-
{title ? <b className="block text-[13px] font-bold">{title}</b> : null}
|
|
61
|
+
{title ? <b className="mb-[3px] block text-[13px] font-bold">{title}</b> : null}
|
|
52
62
|
<div className={cn(tone === "warning" && title ? "opacity-90" : undefined)}>{children}</div>
|
|
53
63
|
</div>
|
|
54
64
|
</div>
|
package/src/components/field.tsx
CHANGED
|
@@ -154,9 +154,10 @@ const FieldError = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<H
|
|
|
154
154
|
data-slot="field-error"
|
|
155
155
|
className={cn(
|
|
156
156
|
appearance === "booking"
|
|
157
|
-
? //
|
|
158
|
-
//
|
|
159
|
-
|
|
157
|
+
? // `destructive-ink`, not the solid token: red AS TEXT, dark
|
|
158
|
+
// enough for AA on white and lifted enough for the card ground
|
|
159
|
+
// in dark, where the solid one measures ~3.8:1 at 11.5px.
|
|
160
|
+
"m-0 text-[11.5px] leading-[1.2] text-destructive-ink"
|
|
160
161
|
: "text-sm text-destructive",
|
|
161
162
|
className
|
|
162
163
|
)}
|
package/src/components/input.tsx
CHANGED
|
@@ -23,7 +23,7 @@ const inputVariants = cva(
|
|
|
23
23
|
appearance: {
|
|
24
24
|
default: "",
|
|
25
25
|
booking:
|
|
26
|
-
"h-[46px] rounded-[11px] bg-card px-[13px] py-0 text-[14px] leading-[1.2] focus-visible:bg-card focus-visible:ring-ring aria-invalid:border-
|
|
26
|
+
"h-[46px] rounded-[11px] bg-card px-[13px] py-0 text-[14px] leading-[1.2] focus-visible:bg-card focus-visible:ring-ring aria-invalid:border-destructive-ink",
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
defaultVariants: {
|
|
@@ -9,12 +9,12 @@ const textareaVariants = cva(
|
|
|
9
9
|
/**
|
|
10
10
|
* The booking flow's note field (booking flow.html, `.in.ta`): the
|
|
11
11
|
* `Input` booking appearance's ground, radius and type, 66px tall with
|
|
12
|
-
* a 12px × 13px inset.
|
|
12
|
+
* a 12px × 13px inset, and no drag handle — the design draws none.
|
|
13
13
|
*/
|
|
14
14
|
appearance: {
|
|
15
15
|
default: "",
|
|
16
16
|
booking:
|
|
17
|
-
"min-h-[66px] rounded-[11px] bg-card px-[13px] py-3 text-[14px] leading-[1.4] focus-visible:bg-card aria-invalid:border-
|
|
17
|
+
"min-h-[66px] resize-none rounded-[11px] bg-card px-[13px] py-3 text-[14px] leading-[1.4] focus-visible:bg-card aria-invalid:border-destructive-ink",
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: { appearance: "default" },
|
package/src/globals.css
CHANGED
|
@@ -82,6 +82,13 @@ h6 {
|
|
|
82
82
|
--accent-subtle: oklch(0.945 0 0);
|
|
83
83
|
--destructive: oklch(0.577 0.245 27.325);
|
|
84
84
|
--destructive-foreground: oklch(0.985 0 0);
|
|
85
|
+
/**
|
|
86
|
+
* Destructive and success as INK — a red or green label on a card, where
|
|
87
|
+
* the solid tokens above (tuned for fills, and for text on --background)
|
|
88
|
+
* fall short of AA. Light mode darkens, dark mode lifts.
|
|
89
|
+
*/
|
|
90
|
+
--destructive-ink: oklch(0.52 0.16 25);
|
|
91
|
+
--success-ink: oklch(0.42 0.13 155);
|
|
85
92
|
--border: oklch(0.895 0 0);
|
|
86
93
|
--input: oklch(0.895 0 0);
|
|
87
94
|
--ring: oklch(0.25 0.05 35);
|
|
@@ -271,6 +278,9 @@ h6 {
|
|
|
271
278
|
/* AA-compliant on dark surfaces but dialed back from 0.68 to soften eye strain */
|
|
272
279
|
--destructive: oklch(0.58 0.17 25.7);
|
|
273
280
|
--destructive-foreground: oklch(0.985 0 0);
|
|
281
|
+
/** Lifted for text on `--card`, where the solid token measures ~3.8:1. */
|
|
282
|
+
--destructive-ink: oklch(0.72 0.15 25);
|
|
283
|
+
--success-ink: oklch(0.72 0.15 155);
|
|
274
284
|
--border: oklch(0.32 0.01 45);
|
|
275
285
|
--input: oklch(0.32 0.01 45);
|
|
276
286
|
--ring: oklch(0.98 0 0);
|
|
@@ -360,6 +370,8 @@ h6 {
|
|
|
360
370
|
--color-accent-foreground: var(--accent-foreground);
|
|
361
371
|
--color-destructive: var(--destructive);
|
|
362
372
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
373
|
+
--color-destructive-ink: var(--destructive-ink);
|
|
374
|
+
--color-success-ink: var(--success-ink);
|
|
363
375
|
--color-border: var(--border);
|
|
364
376
|
--color-input: var(--input);
|
|
365
377
|
--color-ring: var(--ring);
|