@dirstack/ui 1.2.0 → 1.3.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/README.md +1 -1
- package/dist/components/animated-number.d.ts +1 -1
- package/dist/components/animated-number.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/bar-list.d.ts +1 -1
- package/dist/components/bar-list.js +2 -2
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +4 -4
- package/dist/components/card.d.ts +1 -1
- package/dist/components/detail-row.d.ts +1 -1
- package/dist/components/detail-row.js +2 -2
- package/dist/components/dialog.js +1 -1
- package/dist/components/empty-state.js +1 -1
- package/dist/components/form-section.d.ts +1 -1
- package/dist/components/form.d.ts +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/heading.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/nav.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/ping.d.ts +38 -0
- package/dist/components/ping.d.ts.map +1 -0
- package/dist/components/ping.js +30 -0
- package/dist/components/ping.js.map +1 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/section-header.d.ts +1 -1
- package/dist/components/section-header.js +2 -2
- package/dist/components/select.js +2 -2
- package/dist/components/stat-strip.d.ts +1 -1
- package/dist/components/stat-strip.js +2 -2
- package/dist/components/tabs.js +1 -1
- package/dist/components/toaster.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/lib/icons.d.ts +1 -1
- package/dist/lib/icons.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Every file in `src/components` is its own subpath (`@dirstack/ui/<name>`):
|
|
|
32
32
|
- **Layout**: `page`, `stack`, `heading`, `section-header`, `card`, `detail-row`, `steps`, `nav`, `nav-button`
|
|
33
33
|
- **Forms**: `form`, `form-section`, `form-row`, `label`, `input`, `number-input`, `search-input`, `textarea`, `select`, `switch`, `copy-input`
|
|
34
34
|
- **Actions & overlays**: `button`, `copy-button`, `menu`, `popover`, `dialog`, `tooltip`, `tabs`, `toaster`, `kbd`
|
|
35
|
-
- **Display & feedback**: `badge`, `callout`, `empty-state`, `skeleton`, `avatar`, `entity-avatar`, `pagination`
|
|
35
|
+
- **Display & feedback**: `badge`, `callout`, `empty-state`, `skeleton`, `ping` (status dot with optional pulse), `avatar`, `entity-avatar`, `pagination`
|
|
36
36
|
- **Dashboard**: `animated-number`, `chart`, `stat-strip`, `bar-list` (ranked share bars, `BarList.Row` / `BarList.Skeleton`), `breakdown-card` (titled panel with optional tabs and footer), `view-tabs` (tab switcher bound to a `?view=` param), `theme` (`useTheme` + `ThemeSelect`)
|
|
37
37
|
|
|
38
38
|
## Styles
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ANIMATION_EASING } from "../lib/animation.js";
|
|
3
|
-
import NumberFlow, { continuous } from "@number-flow/react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import NumberFlow, { continuous } from "@number-flow/react";
|
|
5
5
|
//#region src/components/animated-number.tsx
|
|
6
6
|
const timing = {
|
|
7
7
|
duration: 500,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
3
2
|
import { ReactNode } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/badge.d.ts
|
|
5
5
|
declare const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
variant: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
1
2
|
import { Format } from "@number-flow/react";
|
|
2
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
//#region src/components/bar-list.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Ranked breakdown list: each row is a label sitting on a soft bar whose width is the row's
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ArrowUpRightIcon } from "../lib/icons.js";
|
|
2
2
|
import { cn } from "../lib/variants.js";
|
|
3
|
+
import { AnimatedNumber } from "./animated-number.js";
|
|
3
4
|
import { Skeleton } from "./skeleton.js";
|
|
4
|
-
import { ArrowUpRightIcon } from "../lib/icons.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
7
7
|
//#region src/components/bar-list.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
2
|
import { interactiveVariants } from "../lib/interactive.js";
|
|
3
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
4
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
//#region src/components/button.d.ts
|
|
6
6
|
declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
variant: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { cn, variants } from "../lib/variants.js";
|
|
2
|
-
import { slot } from "../lib/slot.js";
|
|
3
|
-
import { LoaderIcon } from "../lib/icons.js";
|
|
4
1
|
import { controlTextClasses } from "../lib/classes.js";
|
|
2
|
+
import { LoaderIcon } from "../lib/icons.js";
|
|
3
|
+
import { cn, variants } from "../lib/variants.js";
|
|
5
4
|
import { interactiveVariants } from "../lib/interactive.js";
|
|
5
|
+
import { slot } from "../lib/slot.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { mergeProps } from "@base-ui/react";
|
|
8
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
9
8
|
import { Children, isValidElement } from "react";
|
|
9
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
10
10
|
//#region src/components/button.tsx
|
|
11
11
|
const buttonVariants = variants({
|
|
12
12
|
base: [`group/button inline-flex items-center justify-center font-medium ${controlTextClasses} text-start rounded-md overflow-clip select-none hover:z-10`, "disabled:opacity-60 disabled:pointer-events-none aria-disabled:opacity-60 aria-disabled:pointer-events-none"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
2
|
import { SectionHeader } from "./section-header.js";
|
|
3
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
//#region src/components/card.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The one raised surface in the app: a white panel on the canvas, hairline border, 12px radius
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
3
2
|
import { ReactNode } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/detail-row.d.ts
|
|
5
5
|
declare const detailRowVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
density: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import "../lib/classes.js";
|
|
1
2
|
import { variants } from "../lib/variants.js";
|
|
2
3
|
import { slot } from "../lib/slot.js";
|
|
3
|
-
import "../lib/classes.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
6
5
|
import { isValidElement } from "react";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
7
|
//#region src/components/detail-row.tsx
|
|
8
8
|
const detailRowVariants = variants({
|
|
9
9
|
slots: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn, variants } from "../lib/variants.js";
|
|
3
2
|
import { XIcon } from "../lib/icons.js";
|
|
3
|
+
import { cn, variants } from "../lib/variants.js";
|
|
4
4
|
import { SectionHeader, SectionHeaderBody, SectionHeaderDescription, SectionHeaderTitle } from "./section-header.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn, variants } from "../lib/variants.js";
|
|
2
1
|
import { descriptionClasses } from "../lib/classes.js";
|
|
2
|
+
import { cn, variants } from "../lib/variants.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/empty-state.tsx
|
|
5
5
|
const emptyStateVariants = variants({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
//#region src/components/form-section.d.ts
|
|
4
4
|
type FormSectionProps = Omit<useRender.ComponentProps<"section">, "title"> & {
|
|
5
5
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from "./stack.js";
|
|
2
2
|
import { Label } from "./label.js";
|
|
3
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
6
6
|
//#region src/components/form.d.ts
|
|
7
7
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
package/dist/components/form.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { controlTextClasses, descriptionClasses } from "../lib/classes.js";
|
|
2
3
|
import { cn } from "../lib/variants.js";
|
|
3
4
|
import { Stack } from "./stack.js";
|
|
4
|
-
import { controlTextClasses, descriptionClasses } from "../lib/classes.js";
|
|
5
5
|
import { Label } from "./label.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
8
7
|
import { createContext, useContext, useId } from "react";
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
9
|
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
10
10
|
//#region src/components/form.tsx
|
|
11
11
|
const Form = FormProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
3
2
|
import { ElementType, JSX } from "react";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/heading.d.ts
|
|
5
5
|
declare const headingVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
size: {
|
package/dist/components/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn, variants } from "../lib/variants.js";
|
|
2
1
|
import { controlTextClasses } from "../lib/classes.js";
|
|
2
|
+
import { cn, variants } from "../lib/variants.js";
|
|
3
3
|
import { interactiveVariants } from "../lib/interactive.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/input.tsx
|
package/dist/components/menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../lib/variants.js";
|
|
3
|
-
import { CheckIcon, CircleIcon } from "../lib/icons.js";
|
|
4
2
|
import { controlTextClasses, eyebrowClasses, popoverAnimationClasses } from "../lib/classes.js";
|
|
3
|
+
import { CheckIcon, CircleIcon } from "../lib/icons.js";
|
|
4
|
+
import { cn } from "../lib/variants.js";
|
|
5
5
|
import { Kbd } from "./kbd.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Menu as Menu$1 } from "@base-ui/react/menu";
|
package/dist/components/nav.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn, variants } from "../lib/variants.js";
|
|
2
1
|
import { eyebrowClasses } from "../lib/classes.js";
|
|
2
|
+
import { cn, variants } from "../lib/variants.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/nav.tsx
|
|
5
5
|
function Nav({ className, ...props }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn } from "../lib/variants.js";
|
|
2
1
|
import { ChevronLeftIcon, ChevronRightIcon } from "../lib/icons.js";
|
|
2
|
+
import { cn } from "../lib/variants.js";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/pagination.tsx
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VariantProps } from "../lib/variants.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
//#region src/components/ping.d.ts
|
|
4
|
+
declare const pingVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
tone: {
|
|
6
|
+
success: "text-success";
|
|
7
|
+
warning: "text-warning";
|
|
8
|
+
danger: "text-danger";
|
|
9
|
+
neutral: "text-muted-foreground";
|
|
10
|
+
};
|
|
11
|
+
}, undefined, "relative flex shrink-0 size-2 rounded-full", {
|
|
12
|
+
tone: {
|
|
13
|
+
success: "text-success";
|
|
14
|
+
warning: "text-warning";
|
|
15
|
+
danger: "text-danger";
|
|
16
|
+
neutral: "text-muted-foreground";
|
|
17
|
+
};
|
|
18
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
19
|
+
tone: {
|
|
20
|
+
success: "text-success";
|
|
21
|
+
warning: "text-warning";
|
|
22
|
+
danger: "text-danger";
|
|
23
|
+
neutral: "text-muted-foreground";
|
|
24
|
+
};
|
|
25
|
+
}, undefined>>;
|
|
26
|
+
type PingProps = ComponentProps<"span"> & VariantProps<typeof pingVariants> & {
|
|
27
|
+
/**
|
|
28
|
+
* Pulse the dot. The glow overflows the box by half the dot size, so layout
|
|
29
|
+
* stays the size of the dot itself.
|
|
30
|
+
*/
|
|
31
|
+
animate?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A status dot: solid fill with an optional soft, slow pulse. Size it with `size-*`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function Ping({ className, tone, animate, ...props }: PingProps): import("react").JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
//# sourceMappingURL=ping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ping.d.ts","names":[],"sources":["../../src/components/ping.tsx"],"mappings":";;;cAGM,0CAAY;;;;;;;;;;;;;;;;;;;;;;KAiBb,YAAY,yBACf,oBAAoB;;;;;EAKlB;;;;;wBAMY,OAAO,WAAW,MAAM,YAAmB,SAAS,4BAAS,IAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cn, variants } from "../lib/variants.js";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/ping.tsx
|
|
4
|
+
const pingVariants = variants({
|
|
5
|
+
base: "relative flex shrink-0 size-2 rounded-full",
|
|
6
|
+
variants: { tone: {
|
|
7
|
+
success: "text-success",
|
|
8
|
+
warning: "text-warning",
|
|
9
|
+
danger: "text-danger",
|
|
10
|
+
neutral: "text-muted-foreground"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { tone: "neutral" }
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* A status dot: solid fill with an optional soft, slow pulse. Size it with `size-*`.
|
|
16
|
+
*/
|
|
17
|
+
function Ping({ className, tone, animate = true, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
19
|
+
className: cn(pingVariants({
|
|
20
|
+
tone,
|
|
21
|
+
className
|
|
22
|
+
})),
|
|
23
|
+
...props,
|
|
24
|
+
children: [animate && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute -inset-1/2 animate-ping rounded-full bg-current opacity-30 blur-[1px] [animation-duration:2s] motion-reduce:animate-none" }), /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute -inset-1/2 animate-pulse rounded-full bg-current opacity-30 motion-reduce:animate-none" })] }), /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-current" })]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Ping };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=ping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ping.js","names":[],"sources":["../../src/components/ping.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\"\nimport { variants, cn, type VariantProps } from \"~/lib/variants\"\n\nconst pingVariants = variants({\n base: \"relative flex shrink-0 size-2 rounded-full\",\n\n variants: {\n tone: {\n success: \"text-success\",\n warning: \"text-warning\",\n danger: \"text-danger\",\n neutral: \"text-muted-foreground\",\n },\n },\n\n defaultVariants: {\n tone: \"neutral\",\n },\n})\n\ntype PingProps = ComponentProps<\"span\"> &\n VariantProps<typeof pingVariants> & {\n /**\n * Pulse the dot. The glow overflows the box by half the dot size, so layout\n * stays the size of the dot itself.\n */\n animate?: boolean\n }\n\n/**\n * A status dot: solid fill with an optional soft, slow pulse. Size it with `size-*`.\n */\nexport function Ping({ className, tone, animate = true, ...props }: PingProps) {\n return (\n <span className={cn(pingVariants({ tone, className }))} {...props}>\n {animate && (\n <>\n <span className=\"pointer-events-none absolute -inset-1/2 animate-ping rounded-full bg-current opacity-30 blur-[1px] [animation-duration:2s] motion-reduce:animate-none\" />\n <span className=\"pointer-events-none absolute -inset-1/2 animate-pulse rounded-full bg-current opacity-30 motion-reduce:animate-none\" />\n </>\n )}\n <span className=\"absolute inset-0 rounded-full bg-current\" />\n </span>\n )\n}\n"],"mappings":";;;AAGA,MAAM,eAAe,SAAS;CAC5B,MAAM;CAEN,UAAU,EACR,MAAM;EACJ,SAAS;EACT,SAAS;EACT,QAAQ;EACR,SAAS;CACX,EACF;CAEA,iBAAiB,EACf,MAAM,UACR;AACF,CAAC;;;;AAcD,SAAgB,KAAK,EAAE,WAAW,MAAM,UAAU,MAAM,GAAG,SAAoB;CAC7E,OACE,qBAAC,QAAD;EAAM,WAAW,GAAG,aAAa;GAAE;GAAM;EAAU,CAAC,CAAC;EAAG,GAAI;EAA5D,UAAA,CACG,WACC,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,QAAD,EAAM,WAAU,wJAAyJ,CAAA,GACzK,oBAAC,QAAD,EAAM,WAAU,sHAAuH,CAAA,CACvI,EAAA,CAAA,GAEJ,oBAAC,QAAD,EAAM,WAAU,2CAA4C,CAAA,CACxD;;AAEV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../lib/variants.js";
|
|
3
2
|
import { popoverAnimationClasses } from "../lib/classes.js";
|
|
3
|
+
import { cn } from "../lib/variants.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
6
6
|
//#region src/components/popover.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
2
|
import { HeadingProps } from "./heading.js";
|
|
3
3
|
import { Stack } from "./stack.js";
|
|
4
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
5
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
6
6
|
//#region src/components/section-header.d.ts
|
|
7
7
|
declare const sectionHeaderVariants: import("tailwind-variants").TVReturnType<{
|
|
8
8
|
alignment: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { descriptionClasses } from "../lib/classes.js";
|
|
1
2
|
import { cn, variants } from "../lib/variants.js";
|
|
2
3
|
import { Heading } from "./heading.js";
|
|
3
4
|
import { Stack } from "./stack.js";
|
|
4
|
-
import { descriptionClasses } from "../lib/classes.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
7
6
|
import { createContext, use } from "react";
|
|
7
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
8
8
|
//#region src/components/section-header.tsx
|
|
9
9
|
const sectionHeaderVariants = variants({
|
|
10
10
|
base: "flex items-center w-full min-w-0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn, variants } from "../lib/variants.js";
|
|
3
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "../lib/icons.js";
|
|
4
2
|
import { controlTextClasses, popoverAnimationClasses } from "../lib/classes.js";
|
|
3
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, ChevronsUpDownIcon } from "../lib/icons.js";
|
|
4
|
+
import { cn, variants } from "../lib/variants.js";
|
|
5
5
|
import { inputVariants } from "./input.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "../lib/variants.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
3
|
import { Format } from "@number-flow/react";
|
|
3
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
//#region src/components/stat-strip.d.ts
|
|
6
6
|
declare const stripVariants: import("tailwind-variants").TVReturnType<{
|
|
7
7
|
variant: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnimatedNumber } from "./animated-number.js";
|
|
2
1
|
import { cn, variants } from "../lib/variants.js";
|
|
2
|
+
import { AnimatedNumber } from "./animated-number.js";
|
|
3
3
|
import { cardSurfaceClasses } from "./card.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
6
5
|
import { isValidElement } from "react";
|
|
6
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
7
7
|
//#region src/components/stat-strip.tsx
|
|
8
8
|
const stripVariants = variants({
|
|
9
9
|
base: "group/strip grid grid-cols-2 gap-y-1 max-sm:[&>*:last-child:nth-child(odd)]:col-span-2 sm:flex sm:flex-wrap sm:gap-y-0",
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn, variants } from "../lib/variants.js";
|
|
3
2
|
import { controlTextClasses } from "../lib/classes.js";
|
|
3
|
+
import { cn, variants } from "../lib/variants.js";
|
|
4
4
|
import { interactiveVariants } from "../lib/interactive.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createContext, useContext } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cn } from "../lib/variants.js";
|
|
2
|
-
import { CircleCheckIcon, CircleHelpIcon, CircleXIcon, LoaderIcon } from "../lib/icons.js";
|
|
3
1
|
import { controlTextClasses } from "../lib/classes.js";
|
|
2
|
+
import { CircleCheckIcon, CircleHelpIcon, CircleXIcon, LoaderIcon } from "../lib/icons.js";
|
|
3
|
+
import { cn } from "../lib/variants.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Toaster as Toaster$1 } from "sonner";
|
|
6
6
|
//#region src/components/toaster.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../lib/variants.js";
|
|
3
2
|
import { popoverAnimationClasses } from "../lib/classes.js";
|
|
3
|
+
import { cn } from "../lib/variants.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
6
6
|
//#region src/components/tooltip.tsx
|
package/dist/lib/icons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from "react";
|
|
2
1
|
import { HugeiconsProps } from "@hugeicons/react";
|
|
2
|
+
import { ComponentType } from "react";
|
|
3
3
|
//#region src/lib/icons.d.ts
|
|
4
4
|
export type IconProps = Omit<HugeiconsProps, "icon" | "altIcon" | "showAlt">;
|
|
5
5
|
export type IconComponent = ComponentType<IconProps>;
|
package/dist/lib/icons.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { ArrowDown01Icon, ArrowLeft01Icon, ArrowRight01Icon, ArrowUp01Icon, ArrowUpRight01Icon, Cancel01Icon, CancelCircleIcon, CheckmarkCircle02Icon, CircleIcon as CircleIcon$1, Copy01Icon, HelpCircleIcon, Loading03Icon, Search01Icon, Tick02Icon, UnfoldMoreIcon } from "@hugeicons/core-free-icons";
|
|
3
2
|
import { HugeiconsIcon } from "@hugeicons/react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/lib/icons.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Internal, non-exported icon helper. The package deliberately ships no public icon registry
|
package/package.json
CHANGED