@bearmenu/ui 0.8.32 → 0.8.33
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-5HHRVJOT.js → chunk-5SGKGFMN.js} +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/coach-marks.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/empty-state.js +1 -1
- package/dist/components/event-detail-panel.js +1 -1
- package/dist/components/event-list-row-wide.js +1 -1
- package/dist/components/hold-countdown.js +1 -1
- package/dist/components/link-button.js +1 -1
- package/dist/components/menu-family-block.js +1 -1
- package/dist/components/menu-index-list.js +1 -1
- package/dist/components/multi-select-combobox.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/searchable-select.js +1 -1
- package/dist/components/sliding-panels.js +1 -1
- package/dist/components/tag.d.ts +2 -2
- package/dist/components/text.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/hold-countdown.tsx +1 -1
- package/src/globals.css +18 -0
|
@@ -75,7 +75,7 @@ var buttonVariants = cva(
|
|
|
75
75
|
/** The `ink` action's shape. Owns the radius so no variant fights it. */
|
|
76
76
|
pill: "h-11 rounded-full px-5 text-[13.5px] font-bold",
|
|
77
77
|
/** The booking design's action: 46px, 12px radius, 15px semibold. */
|
|
78
|
-
cta: "h-[46px] rounded-
|
|
78
|
+
cta: "h-[46px] rounded-[12px] px-5 text-[15px] font-semibold",
|
|
79
79
|
/** Its compact form, in dense footers and inline rows: 38px, 10px radius. */
|
|
80
80
|
"cta-sm": "h-[38px] rounded-[10px] px-4 text-[13.5px] font-semibold",
|
|
81
81
|
icon: "h-11 w-11 rounded-full",
|
|
@@ -3,10 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const alertVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
12
|
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "code" | "
|
|
7
|
+
variant?: "code" | "default" | "destructive" | "outline" | "secondary" | "glass" | "overlay" | "brown" | "warning" | "success" | "onPrimary" | "confirmed" | "pending" | "completed" | null | undefined;
|
|
8
8
|
size?: "status" | "chip" | null | undefined;
|
|
9
9
|
live?: boolean | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "link" | "
|
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "glass" | "overlay" | "ink" | "brown" | "warning" | "cta" | null | undefined;
|
|
7
7
|
size?: "default" | "cta" | "xs" | "sm" | "lg" | "pill" | "cta-sm" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
8
8
|
fullWidth?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-2ADCZXZJ.js';
|
|
2
2
|
import { Command, CommandInput, CommandList, CommandLoading, CommandEmpty, CommandGroup, CommandItem } from '../chunk-ZJMCU7MI.js';
|
|
3
3
|
import '../chunk-JWTN7MNK.js';
|
|
4
|
-
import { Button } from '../chunk-
|
|
4
|
+
import { Button } from '../chunk-5SGKGFMN.js';
|
|
5
5
|
import '../chunk-RIH2IS7X.js';
|
|
6
6
|
import '../chunk-5YNIQ2BL.js';
|
|
7
7
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
@@ -2,7 +2,7 @@ import { resolveEventEntryFee } from '../chunk-DNSXMHYX.js';
|
|
|
2
2
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
3
3
|
import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
|
|
4
4
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
5
|
-
import { Button } from '../chunk-
|
|
5
|
+
import { Button } from '../chunk-5SGKGFMN.js';
|
|
6
6
|
import '../chunk-RIH2IS7X.js';
|
|
7
7
|
import '../chunk-5YNIQ2BL.js';
|
|
8
8
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
@@ -3,7 +3,7 @@ import { Tag } from '../chunk-MWB7S54O.js';
|
|
|
3
3
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
4
4
|
import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
|
|
5
5
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
6
|
-
import { buttonVariants } from '../chunk-
|
|
6
|
+
import { buttonVariants } from '../chunk-5SGKGFMN.js';
|
|
7
7
|
import '../chunk-RIH2IS7X.js';
|
|
8
8
|
import '../chunk-5YNIQ2BL.js';
|
|
9
9
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
@@ -3,7 +3,7 @@ import '../chunk-MMUBH76A.js';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var HOLD_BORDER = "border-
|
|
6
|
+
var HOLD_BORDER = "border-warning-deep";
|
|
7
7
|
function remainingSeconds(expiresAt, now) {
|
|
8
8
|
const end = typeof expiresAt === "number" ? expiresAt : Date.parse(expiresAt);
|
|
9
9
|
return Math.max(0, Math.ceil((end - now) / 1e3));
|
|
@@ -3,7 +3,7 @@ import { HueChip } from '../chunk-6VOWT4YR.js';
|
|
|
3
3
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
4
4
|
import { PhotoGround, PHOTO_GROUND } from '../chunk-SWD6CJ35.js';
|
|
5
5
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
6
|
-
import { buttonVariants } from '../chunk-
|
|
6
|
+
import { buttonVariants } from '../chunk-5SGKGFMN.js';
|
|
7
7
|
import '../chunk-RIH2IS7X.js';
|
|
8
8
|
import '../chunk-5YNIQ2BL.js';
|
|
9
9
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
2
2
|
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
3
|
-
import { Button } from '../chunk-
|
|
3
|
+
import { Button } from '../chunk-5SGKGFMN.js';
|
|
4
4
|
import '../chunk-RIH2IS7X.js';
|
|
5
5
|
import '../chunk-5YNIQ2BL.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
@@ -2,7 +2,7 @@ import { Checkbox } from '../chunk-L3CDXVEP.js';
|
|
|
2
2
|
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-2ADCZXZJ.js';
|
|
3
3
|
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-ZJMCU7MI.js';
|
|
4
4
|
import '../chunk-JWTN7MNK.js';
|
|
5
|
-
import { Button } from '../chunk-
|
|
5
|
+
import { Button } from '../chunk-5SGKGFMN.js';
|
|
6
6
|
import '../chunk-RIH2IS7X.js';
|
|
7
7
|
import '../chunk-5YNIQ2BL.js';
|
|
8
8
|
import { Badge } from '../chunk-ZU4NAYN7.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-2ADCZXZJ.js';
|
|
2
2
|
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-ZJMCU7MI.js';
|
|
3
3
|
import '../chunk-JWTN7MNK.js';
|
|
4
|
-
import { Button } from '../chunk-
|
|
4
|
+
import { Button } from '../chunk-5SGKGFMN.js';
|
|
5
5
|
import '../chunk-RIH2IS7X.js';
|
|
6
6
|
import '../chunk-5YNIQ2BL.js';
|
|
7
7
|
import { cn } from '../chunk-FEK5XGZW.js';
|
package/dist/components/tag.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const tagVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "warning" | "success" | "primary" | "quiet" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare const Tag: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "default" | "destructive" | "outline" | "warning" | "success" | "primary" | "quiet" | null | undefined;
|
|
11
11
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
13
13
|
onRemove?: () => void;
|
|
@@ -22,7 +22,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
22
22
|
* Weights are 400 / 600 / 700. 500 is not in the system.
|
|
23
23
|
*/
|
|
24
24
|
declare const textVariants: (props?: ({
|
|
25
|
-
variant?: "
|
|
25
|
+
variant?: "h2" | "h3" | "label" | "body" | "caption" | "h1" | "h4" | "small" | "display" | "body-lg" | "body-sm" | "overline" | null | undefined;
|
|
26
26
|
color?: "inherit" | "default" | "destructive" | "muted" | "primary" | "primary-foreground" | null | undefined;
|
|
27
27
|
weight?: "bold" | "medium" | "normal" | "semibold" | null | undefined;
|
|
28
28
|
leading?: "none" | "normal" | "tight" | "snug" | "relaxed" | "loose" | null | undefined;
|
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ const buttonVariants = cva(
|
|
|
80
80
|
/** The `ink` action's shape. Owns the radius so no variant fights it. */
|
|
81
81
|
pill: "h-11 rounded-full px-5 text-[13.5px] font-bold",
|
|
82
82
|
/** The booking design's action: 46px, 12px radius, 15px semibold. */
|
|
83
|
-
cta: "h-[46px] rounded-
|
|
83
|
+
cta: "h-[46px] rounded-[12px] px-5 text-[15px] font-semibold",
|
|
84
84
|
/** Its compact form, in dense footers and inline rows: 38px, 10px radius. */
|
|
85
85
|
"cta-sm": "h-[38px] rounded-[10px] px-4 text-[13.5px] font-semibold",
|
|
86
86
|
icon: "h-11 w-11 rounded-full",
|
|
@@ -49,7 +49,7 @@ export type HoldCountdownProps = {
|
|
|
49
49
|
* design's as a timer. Dark mode takes the lifted token, which already has
|
|
50
50
|
* the contrast against the dark card.
|
|
51
51
|
*/
|
|
52
|
-
const HOLD_BORDER = "border-
|
|
52
|
+
const HOLD_BORDER = "border-warning-deep";
|
|
53
53
|
|
|
54
54
|
function remainingSeconds(expiresAt: string | number, now: number): number {
|
|
55
55
|
const end = typeof expiresAt === "number" ? expiresAt : Date.parse(expiresAt);
|
package/src/globals.css
CHANGED
|
@@ -94,6 +94,19 @@ h6 {
|
|
|
94
94
|
*/
|
|
95
95
|
--destructive-ink: oklch(0.52 0.16 25);
|
|
96
96
|
--success-ink: oklch(0.42 0.13 155);
|
|
97
|
+
/**
|
|
98
|
+
* Warning as INK, the missing twin of the two above. `--warning` is tuned
|
|
99
|
+
* to be a fill and a border; as a GLYPH on its own 15–20% wash it measures
|
|
100
|
+
* 2.2:1 in light, which is a graphic nobody can see. This is the design's
|
|
101
|
+
* own value for that glyph, and it clears 3:1 against the wash.
|
|
102
|
+
*/
|
|
103
|
+
--warning-ink: oklch(0.45 0.1 70);
|
|
104
|
+
/**
|
|
105
|
+
* The hold hairline: deeper than `--warning`, which on white reads as a
|
|
106
|
+
* yellow alert where the design's reads as a timer. Dark takes the lifted
|
|
107
|
+
* token, which already has its contrast against the dark card.
|
|
108
|
+
*/
|
|
109
|
+
--warning-deep: oklch(0.62 0.15 70);
|
|
97
110
|
--border: oklch(0.895 0 0);
|
|
98
111
|
--input: oklch(0.895 0 0);
|
|
99
112
|
--ring: oklch(0.25 0.05 35);
|
|
@@ -298,6 +311,9 @@ h6 {
|
|
|
298
311
|
/** Lifted for text on `--card`, where the solid token measures ~3.8:1. */
|
|
299
312
|
--destructive-ink: oklch(0.72 0.15 25);
|
|
300
313
|
--success-ink: oklch(0.72 0.15 155);
|
|
314
|
+
/** Lifted for a glyph on the dark wash, as its siblings are. */
|
|
315
|
+
--warning-ink: oklch(0.82 0.13 70);
|
|
316
|
+
--warning-deep: var(--warning);
|
|
301
317
|
--border: oklch(0.32 0.01 45);
|
|
302
318
|
--input: oklch(0.32 0.01 45);
|
|
303
319
|
--ring: oklch(0.98 0 0);
|
|
@@ -394,6 +410,8 @@ h6 {
|
|
|
394
410
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
395
411
|
--color-destructive-ink: var(--destructive-ink);
|
|
396
412
|
--color-success-ink: var(--success-ink);
|
|
413
|
+
--color-warning-ink: var(--warning-ink);
|
|
414
|
+
--color-warning-deep: var(--warning-deep);
|
|
397
415
|
/* `bg-scrim-overlay` — the dim behind a sheet or a dialog. */
|
|
398
416
|
--color-scrim-overlay: var(--scrim-overlay);
|
|
399
417
|
--color-border: var(--border);
|