@almanaclabs/blaze-ui 0.18.0 → 0.19.0
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/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +2 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/face-stack-button/face-stack-button.d.ts +5 -2
- package/dist/components/face-stack-button/face-stack-button.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/input/input.js +2 -1
- package/dist/components/state-banner/state-banner.d.ts +1 -1
- package/dist/components/status-indicator/status-indicator.d.ts +1 -1
- package/package.json +1 -1
- package/src/styles/globals.css +12 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "destructive" | "default" | null | undefined;
|
|
4
|
+
variant?: "destructive" | "default" | "warning" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAiBlB,CAAA;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,qBASlE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -6,7 +6,8 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
6
6
|
var r = t("type-body group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left [--icon-stroke-width:var(--icon-stroke-16)] has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "bg-card text-card-foreground",
|
|
9
|
-
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
|
|
9
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",
|
|
10
|
+
warning: "border-transparent bg-warning-soft text-foreground *:data-[slot=alert-description]:text-foreground *:[svg]:text-warning"
|
|
10
11
|
} },
|
|
11
12
|
defaultVariants: { variant: "default" }
|
|
12
13
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "secondary" | "destructive" | "link" | "default" | "
|
|
4
|
+
variant?: "secondary" | "destructive" | "link" | "default" | "warning" | "outline" | "success" | "info" | "ghost" | "area-website" | "area-social" | "area-search" | "area-ads" | "area-calls" | "area-reviews" | null | undefined;
|
|
5
5
|
size?: "md" | "default" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Badge({ className, variant, size, render, ...props }: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -11,8 +11,11 @@ type FaceStackButtonProps = Omit<ButtonProps, 'children' | 'size' | 'className'>
|
|
|
11
11
|
faces: readonly FaceStackFace[];
|
|
12
12
|
/** How many faces overlap at the start of the button. */
|
|
13
13
|
max?: number;
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `md` for a row or section header (20px faces), `lg` beside a page title (26px faces),
|
|
16
|
+
* `page` as a 36px pill beside page actions (20px faces, ADR 0031).
|
|
17
|
+
*/
|
|
18
|
+
size?: 'md' | 'lg' | 'page';
|
|
16
19
|
/** The destination's name, in the button's own weight. */
|
|
17
20
|
label?: React.ReactNode;
|
|
18
21
|
/** A count, in the quiet tone after the label. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"face-stack-button.d.ts","sourceRoot":"","sources":["../../../src/components/face-stack-button/face-stack-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAGpD,KAAK,aAAa,GAAG;IACnB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,oBAAoB,GAAG,IAAI,CAC9B,WAAW,EACX,UAAU,GAAG,MAAM,GAAG,WAAW,CAClC,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;IAC/B,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ
|
|
1
|
+
{"version":3,"file":"face-stack-button.d.ts","sourceRoot":"","sources":["../../../src/components/face-stack-button/face-stack-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAGpD,KAAK,aAAa,GAAG;IACnB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,KAAK,oBAAoB,GAAG,IAAI,CAC9B,WAAW,EACX,UAAU,GAAG,MAAM,GAAG,WAAW,CAClC,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;IAC/B,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC3B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,kDAAkD;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,iFAAiF;IACjF,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;GAGG;AACH,iBAAS,eAAe,CAAC,EACvB,KAAK,EACL,GAAO,EACP,IAAW,EACX,KAAK,EACL,KAAK,EACL,MAAM,EACN,WAAkB,EAClB,OAAqB,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAsDtB;AAED,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,aAAa,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const inputVariants: (props?: ({
|
|
4
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "page" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type InputProps = InputPrimitive.Props & {
|
|
7
7
|
controlSize?: VariantProps<typeof inputVariants>['size'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAkBlB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,GAAG;IAC9C,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;CACzD,CAAA;AAED,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,IAAI,EACJ,WAAkB,EAClB,GAAG,KAAK,EACT,EAAE,UAAU,+BAgBZ"}
|
|
@@ -10,7 +10,8 @@ var a = n("w-full min-w-0 rounded-md border border-input bg-card text-foreground
|
|
|
10
10
|
sm: `${e.sm} pb-px file:h-6 file:text-sm`,
|
|
11
11
|
md: `${e.md} pb-px file:h-6 file:text-sm`,
|
|
12
12
|
lg: `${e.lg} pb-px file:h-7 file:text-base`,
|
|
13
|
-
xl: `${e.xl} file:h-8 file:text-base
|
|
13
|
+
xl: `${e.xl} file:h-8 file:text-base`,
|
|
14
|
+
page: "h-9 rounded-[10px] px-3.5 text-base leading-5 pb-px file:h-6 file:text-base [--control-padding-inline:0.875rem]"
|
|
14
15
|
} },
|
|
15
16
|
defaultVariants: { size: "xl" }
|
|
16
17
|
});
|
|
@@ -7,7 +7,7 @@ import * as React from 'react';
|
|
|
7
7
|
*/
|
|
8
8
|
type StateBannerTone = 'stale' | 'connect' | 'waiting' | 'warning';
|
|
9
9
|
declare const stateBannerVariants: (props?: ({
|
|
10
|
-
tone?: "
|
|
10
|
+
tone?: "warning" | "waiting" | "stale" | "connect" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
type StateBannerProps = React.ComponentProps<'div'> & {
|
|
13
13
|
tone: StateBannerTone;
|
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
*/
|
|
10
10
|
type StatusTone = 'success' | 'warning' | 'danger' | 'neutral' | 'none';
|
|
11
11
|
declare const statusDotVariants: (props?: ({
|
|
12
|
-
tone?: "none" | "
|
|
12
|
+
tone?: "none" | "warning" | "success" | "danger" | "neutral" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
14
|
type StatusIndicatorProps = React.ComponentProps<'span'> & VariantProps<typeof statusDotVariants>;
|
|
15
15
|
/**
|
package/package.json
CHANGED
package/src/styles/globals.css
CHANGED
|
@@ -155,6 +155,10 @@
|
|
|
155
155
|
--type-page-title-weight: 400;
|
|
156
156
|
--type-lead-size: 1.125rem;
|
|
157
157
|
--type-lead-line-height: 1.45;
|
|
158
|
+
/* A large section heading on a v4 overview page (ADR 0031): 26px regular, a little tight. */
|
|
159
|
+
--type-heading-size: 1.625rem;
|
|
160
|
+
--type-heading-line-height: 1.25;
|
|
161
|
+
--type-heading-letter-spacing: -0.01em;
|
|
158
162
|
--type-section-title-size: 1.25rem;
|
|
159
163
|
--type-section-title-line-height: 1.3;
|
|
160
164
|
--type-section-title-letter-spacing: 0;
|
|
@@ -686,6 +690,14 @@
|
|
|
686
690
|
line-height: var(--type-item-title-line-height);
|
|
687
691
|
}
|
|
688
692
|
|
|
693
|
+
.type-heading {
|
|
694
|
+
font-family: var(--font-heading);
|
|
695
|
+
font-size: var(--type-heading-size);
|
|
696
|
+
line-height: var(--type-heading-line-height);
|
|
697
|
+
letter-spacing: var(--type-heading-letter-spacing);
|
|
698
|
+
font-weight: 400;
|
|
699
|
+
}
|
|
700
|
+
|
|
689
701
|
.type-section-title {
|
|
690
702
|
font-family: var(--font-heading);
|
|
691
703
|
font-size: var(--type-section-title-size);
|