@altimateai/ui-components 0.0.77-beta.3 → 0.0.77-beta.4
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/Stack.js +478 -467
- package/dist/shadcn/index.d.ts +6 -3
- package/package.json +1 -1
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { c as buttonVariants } from '../Button-42Dj_nRE.js';
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { DayPicker, DayButton, DateRange } from 'react-day-picker';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
|
-
import { ComponentProps, HTMLAttributes,
|
|
6
|
+
import { ComponentProps, HTMLAttributes, ReactNode, SelectHTMLAttributes, ComponentPropsWithoutRef } from 'react';
|
|
7
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
@@ -291,12 +291,15 @@ type PlaceholderSize = "regular" | "large";
|
|
|
291
291
|
type SemanticVariant = "page-heading" | "section-heading";
|
|
292
292
|
type TypographyVariant = HeadingVariant | "body" | "button" | "table-header" | "placeholder" | "subheading" | "caption" | SemanticVariant;
|
|
293
293
|
type WeightForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "table-header" ? HeadingWeight : V extends "body" | "caption" ? BodyWeight : never;
|
|
294
|
+
type HeadingHTMLAttributes = Omit<React.HTMLAttributes<HTMLHeadingElement>, "children" | "className">;
|
|
295
|
+
type ParagraphHTMLAttributes = Omit<React.HTMLAttributes<HTMLParagraphElement>, "children" | "className">;
|
|
296
|
+
type SpanHTMLAttributes = Omit<React.HTMLAttributes<HTMLSpanElement>, "children" | "className">;
|
|
297
|
+
type HTMLAttributesForVariant<V extends TypographyVariant> = V extends HeadingVariant | "subheading" | "page-heading" | "section-heading" ? HeadingHTMLAttributes : V extends "body" ? ParagraphHTMLAttributes : SpanHTMLAttributes;
|
|
294
298
|
interface BaseProps {
|
|
295
299
|
children: React.ReactNode;
|
|
296
300
|
className?: string;
|
|
297
|
-
role?: AriaRole | undefined;
|
|
298
301
|
}
|
|
299
|
-
type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & (V extends SemanticVariant ? {
|
|
302
|
+
type TypographyProps<V extends TypographyVariant = "body"> = BaseProps & HTMLAttributesForVariant<V> & (V extends SemanticVariant ? {
|
|
300
303
|
variant: V;
|
|
301
304
|
} : // Other variants can have weight and optionally size
|
|
302
305
|
{
|