@stubber/ui 1.13.6 → 1.13.7

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.
@@ -0,0 +1,8 @@
1
+ <script>import { cn } from "../../utils/shadcn-utils";
2
+ let className = void 0;
3
+ export { className as class };
4
+ </script>
5
+
6
+ <div class={cn("text-sm [&_p]:leading-relaxed", className)} {...$$restProps}>
7
+ <slot />
8
+ </div>
@@ -0,0 +1,19 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ declare const __propDef: {
4
+ props: HTMLAttributes<HTMLDivElement>;
5
+ events: {
6
+ [evt: string]: CustomEvent<any>;
7
+ };
8
+ slots: {
9
+ default: {};
10
+ };
11
+ exports?: {} | undefined;
12
+ bindings?: string | undefined;
13
+ };
14
+ export type AlertDescriptionProps = typeof __propDef.props;
15
+ export type AlertDescriptionEvents = typeof __propDef.events;
16
+ export type AlertDescriptionSlots = typeof __propDef.slots;
17
+ export default class AlertDescription extends SvelteComponent<AlertDescriptionProps, AlertDescriptionEvents, AlertDescriptionSlots> {
18
+ }
19
+ export {};
@@ -0,0 +1,13 @@
1
+ <script>import { cn } from "../../utils/shadcn-utils";
2
+ let className = void 0;
3
+ export let level = "h5";
4
+ export { className as class };
5
+ </script>
6
+
7
+ <svelte:element
8
+ this={level}
9
+ class={cn("mb-1 font-medium leading-none tracking-tight", className)}
10
+ {...$$restProps}
11
+ >
12
+ <slot />
13
+ </svelte:element>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import type { HeadingLevel } from "./index.js";
4
+ declare const __propDef: {
5
+ props: HTMLAttributes<HTMLHeadingElement> & {
6
+ level?: HeadingLevel;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {
12
+ default: {};
13
+ };
14
+ exports?: {} | undefined;
15
+ bindings?: string | undefined;
16
+ };
17
+ export type AlertTitleProps = typeof __propDef.props;
18
+ export type AlertTitleEvents = typeof __propDef.events;
19
+ export type AlertTitleSlots = typeof __propDef.slots;
20
+ export default class AlertTitle extends SvelteComponent<AlertTitleProps, AlertTitleEvents, AlertTitleSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,10 @@
1
+ <script>import { alertVariants } from "./index.js";
2
+ import { cn } from "../../utils/shadcn-utils";
3
+ let className = void 0;
4
+ export let variant = "default";
5
+ export { className as class };
6
+ </script>
7
+
8
+ <div class={cn(alertVariants({ variant }), className)} {...$$restProps} role="alert">
9
+ <slot />
10
+ </div>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type { HTMLAttributes } from "svelte/elements";
3
+ import { type Variant } from "./index.js";
4
+ declare const __propDef: {
5
+ props: HTMLAttributes<HTMLDivElement> & {
6
+ variant?: Variant;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {
12
+ default: {};
13
+ };
14
+ exports?: {} | undefined;
15
+ bindings?: string | undefined;
16
+ };
17
+ export type AlertProps = typeof __propDef.props;
18
+ export type AlertEvents = typeof __propDef.events;
19
+ export type AlertSlots = typeof __propDef.slots;
20
+ export default class Alert extends SvelteComponent<AlertProps, AlertEvents, AlertSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,43 @@
1
+ import { type VariantProps } from "tailwind-variants";
2
+ import Root from "./alert.svelte";
3
+ import Description from "./alert-description.svelte";
4
+ import Title from "./alert-title.svelte";
5
+ export declare const alertVariants: import("tailwind-variants").TVReturnType<{
6
+ variant: {
7
+ default: string;
8
+ destructive: string;
9
+ };
10
+ }, undefined, "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4", import("tailwind-variants/dist/config.d.ts").TVConfig<{
11
+ variant: {
12
+ default: string;
13
+ destructive: string;
14
+ };
15
+ }, {
16
+ variant: {
17
+ default: string;
18
+ destructive: string;
19
+ };
20
+ }>, {
21
+ variant: {
22
+ default: string;
23
+ destructive: string;
24
+ };
25
+ }, undefined, import("tailwind-variants").TVReturnType<{
26
+ variant: {
27
+ default: string;
28
+ destructive: string;
29
+ };
30
+ }, undefined, "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4", import("tailwind-variants/dist/config.d.ts").TVConfig<{
31
+ variant: {
32
+ default: string;
33
+ destructive: string;
34
+ };
35
+ }, {
36
+ variant: {
37
+ default: string;
38
+ destructive: string;
39
+ };
40
+ }>, unknown, unknown, undefined>>;
41
+ export type Variant = VariantProps<typeof alertVariants>["variant"];
42
+ export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
43
+ export { Root, Description, Title, Root as Alert, Description as AlertDescription, Title as AlertTitle, };
@@ -0,0 +1,19 @@
1
+ import { tv } from "tailwind-variants";
2
+ import Root from "./alert.svelte";
3
+ import Description from "./alert-description.svelte";
4
+ import Title from "./alert-title.svelte";
5
+ export const alertVariants = tv({
6
+ base: "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",
7
+ variants: {
8
+ variant: {
9
+ default: "bg-background text-foreground",
10
+ destructive: "border-destructive/50 text-destructive text-destructive dark:border-destructive [&>svg]:text-destructive",
11
+ },
12
+ },
13
+ defaultVariants: {
14
+ variant: "default",
15
+ },
16
+ });
17
+ export { Root, Description, Title,
18
+ //
19
+ Root as Alert, Description as AlertDescription, Title as AlertTitle, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",