@bearmenu/ui 0.8.31 → 0.8.32
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.
|
@@ -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?: "success" | "warning" | "default" | "destructive" | 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?: "success" | "warning" | "default" | "destructive" | 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" | "success" | "warning" | "default" | "destructive" | "outline" | "secondary" | "glass" | "overlay" | "brown" | "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" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "glass" | "overlay" | "ink" | "brown" | "
|
|
6
|
+
variant?: "link" | "warning" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "glass" | "overlay" | "ink" | "brown" | "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;
|
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?: "success" | "warning" | "default" | "destructive" | "outline" | "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?: "success" | "warning" | "default" | "destructive" | "outline" | "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?: "body" | "caption" | "h1" | "h2" | "h3" | "h4" | "label" | "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
package/src/globals.css
CHANGED
|
@@ -164,8 +164,14 @@ h6 {
|
|
|
164
164
|
/* The dim behind a sheet or a dialog. It has to be mode-aware: this value
|
|
165
165
|
over a white page separates plane 2 from plane 0 by 3.6:1, and the same
|
|
166
166
|
value over a near-black one dims nothing at all (the dark block below
|
|
167
|
-
carries the deeper, more opaque sibling).
|
|
168
|
-
|
|
167
|
+
carries the deeper, more opaque sibling).
|
|
168
|
+
|
|
169
|
+
NOT `--scrim`: the consumer app's own stylesheet is imported after this
|
|
170
|
+
one and defines a `--scrim` of its own (an OPAQUE photo-banner hue,
|
|
171
|
+
consumed through Tailwind's fractional stops). A token named `--scrim`
|
|
172
|
+
here is silently shadowed there, and `bg-scrim` then paints the banner
|
|
173
|
+
colour at full alpha over the whole page. */
|
|
174
|
+
--scrim-overlay: oklch(0.16 0.01 55 / 0.5);
|
|
169
175
|
|
|
170
176
|
/* Brown variant — replaces hardcoded #482E1F across button/badge */
|
|
171
177
|
--brown: oklch(0.31 0.05 45);
|
|
@@ -320,7 +326,7 @@ h6 {
|
|
|
320
326
|
composites to the canvas itself, leaving a sheet with no edge at all —
|
|
321
327
|
in dark, elevation is carried by the scrim and by lightness, not by a
|
|
322
328
|
shadow nobody can see. */
|
|
323
|
-
--scrim: oklch(0.05 0.01 55 / 0.78);
|
|
329
|
+
--scrim-overlay: oklch(0.05 0.01 55 / 0.78);
|
|
324
330
|
--sidebar: oklch(0.205 0 0);
|
|
325
331
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
326
332
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
@@ -388,8 +394,8 @@ h6 {
|
|
|
388
394
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
389
395
|
--color-destructive-ink: var(--destructive-ink);
|
|
390
396
|
--color-success-ink: var(--success-ink);
|
|
391
|
-
/* `bg-scrim` — the dim behind a sheet or a dialog. */
|
|
392
|
-
--color-scrim: var(--scrim);
|
|
397
|
+
/* `bg-scrim-overlay` — the dim behind a sheet or a dialog. */
|
|
398
|
+
--color-scrim-overlay: var(--scrim-overlay);
|
|
393
399
|
--color-border: var(--border);
|
|
394
400
|
--color-input: var(--input);
|
|
395
401
|
--color-ring: var(--ring);
|