@krak-stack/registry 0.10.1 → 0.10.2
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/CHANGELOG.md +6 -0
- package/dist/components/ui/app-brand.d.ts +2 -0
- package/dist/components/ui/app-brand.js +24 -9
- package/dist/components/ui/data-table.d.ts +12 -0
- package/dist/components/ui/data-table.js +195 -137
- package/dist/components/ui/effect-form.d.ts +2 -0
- package/dist/components/ui/effect-form.js +3 -0
- package/dist/components/ui/form.d.ts +5 -5
- package/dist/components/ui/pagination.d.ts +3 -1
- package/dist/components/ui/pagination.js +5 -1
- package/dist/lib/docs.integrations.server.js +3 -5
- package/dist/lib/docs.js +24 -14
- package/dist/lib/docs.server.js +3 -5
- package/dist/lib/documentation-toolkit.js +3 -5
- package/dist/services/events/client/audit-log-table.js +195 -137
- package/dist/services/webhooks/client/delivery-table.js +195 -137
- package/package.json +1 -1
|
@@ -99,6 +99,7 @@ export declare const FileField: FormReact.FieldComponent<File | undefined, FileF
|
|
|
99
99
|
export declare const NullableTextAreaField: FormReact.FieldComponent<string | null | undefined, TextAreaFieldOptions>;
|
|
100
100
|
export declare const CheckboxField: FormReact.FieldComponent<boolean, FieldOptions>;
|
|
101
101
|
type SelectFieldOptions<T extends string> = FieldOptions & {
|
|
102
|
+
contentClassName?: string;
|
|
102
103
|
options: ReadonlyArray<{
|
|
103
104
|
label: string;
|
|
104
105
|
value: T;
|
|
@@ -121,6 +122,7 @@ type MultiSelectFieldOptions<T extends string> = FieldOptions & {
|
|
|
121
122
|
export declare const MultiSelectField: <T extends string>({ field, props, }: FormReact.FieldComponentProps<ReadonlyArray<T>, MultiSelectFieldOptions<T>>) => JSX.Element;
|
|
122
123
|
export declare const NullableMultiSelectField: <T extends string>({ field, props, }: FormReact.FieldComponentProps<ReadonlyArray<T> | null | undefined, MultiSelectFieldOptions<T>>) => JSX.Element;
|
|
123
124
|
type SearchableSelectFieldSharedOptions<TData> = FieldOptions & {
|
|
125
|
+
contentClassName?: string;
|
|
124
126
|
emptyLabel: ReactNode;
|
|
125
127
|
initialItems?: readonly VirtualizedComboboxOption<TData>[];
|
|
126
128
|
items: readonly VirtualizedComboboxOption<TData>[];
|
|
@@ -1689,6 +1689,7 @@ var SelectField = ({
|
|
|
1689
1689
|
})
|
|
1690
1690
|
}),
|
|
1691
1691
|
/* @__PURE__ */ jsx13(SelectContent, {
|
|
1692
|
+
className: props.contentClassName,
|
|
1692
1693
|
children: /* @__PURE__ */ jsx13(SelectGroup, {
|
|
1693
1694
|
children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
|
|
1694
1695
|
value: option.value,
|
|
@@ -1830,6 +1831,7 @@ var SearchableSelectField = ({
|
|
|
1830
1831
|
children: props.label
|
|
1831
1832
|
}),
|
|
1832
1833
|
/* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
1834
|
+
contentClassName: props.contentClassName,
|
|
1833
1835
|
ariaInvalid: invalid,
|
|
1834
1836
|
ariaLabel,
|
|
1835
1837
|
emptyLabel: props.emptyLabel,
|
|
@@ -1872,6 +1874,7 @@ var SingleSearchableSelectField = ({
|
|
|
1872
1874
|
children: props.label
|
|
1873
1875
|
}),
|
|
1874
1876
|
/* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
1877
|
+
contentClassName: props.contentClassName,
|
|
1875
1878
|
ariaInvalid: invalid,
|
|
1876
1879
|
ariaLabel,
|
|
1877
1880
|
emptyLabel: props.emptyLabel,
|
|
@@ -145,7 +145,7 @@ declare const RevertButton: ({ locale, messages, original, }: {
|
|
|
145
145
|
messages?: FormMessageTranslations;
|
|
146
146
|
original: string;
|
|
147
147
|
}) => JSX.Element | undefined;
|
|
148
|
-
declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tanstack/form
|
|
148
|
+
declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
149
149
|
readonly TextField: typeof TextField;
|
|
150
150
|
readonly TextAreaField: typeof TextAreaField;
|
|
151
151
|
readonly SelectField: typeof SelectField;
|
|
@@ -161,7 +161,7 @@ declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tans
|
|
|
161
161
|
readonly FormError: typeof FormError;
|
|
162
162
|
readonly FieldWrapper: typeof FieldWrapper;
|
|
163
163
|
readonly BlockNavigation: typeof BlockNavigation;
|
|
164
|
-
}>, withForm: <TFormData, TOnMount extends undefined | import("@tanstack/form
|
|
164
|
+
}>, withForm: <TFormData, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
165
165
|
readonly TextField: typeof TextField;
|
|
166
166
|
readonly TextAreaField: typeof TextAreaField;
|
|
167
167
|
readonly SelectField: typeof SelectField;
|
|
@@ -178,7 +178,7 @@ declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tans
|
|
|
178
178
|
readonly FieldWrapper: typeof FieldWrapper;
|
|
179
179
|
readonly BlockNavigation: typeof BlockNavigation;
|
|
180
180
|
}, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
181
|
-
form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/form
|
|
181
|
+
form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
|
|
182
182
|
readonly TextField: typeof TextField;
|
|
183
183
|
readonly TextAreaField: typeof TextAreaField;
|
|
184
184
|
readonly SelectField: typeof SelectField;
|
|
@@ -211,8 +211,8 @@ declare const useAppForm: <TFormData, TOnMount extends undefined | import("@tans
|
|
|
211
211
|
readonly FormError: typeof FormError;
|
|
212
212
|
readonly FieldWrapper: typeof FieldWrapper;
|
|
213
213
|
readonly BlockNavigation: typeof BlockNavigation;
|
|
214
|
-
}, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends import("@tanstack/form
|
|
215
|
-
form: import("@tanstack/react-form").AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | import("@tanstack/form
|
|
214
|
+
}, TSubmitMeta, TRenderProps>) => <TFormData, TFields extends import("@tanstack/react-form").DeepKeysOfType<TFormData, TFieldGroupData | null | undefined> | import("@tanstack/react-form").FieldsMap<TFormData, TFieldGroupData>, TOnMount extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChange extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | import("@tanstack/react-form").FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData>, TFormSubmitMeta>(params: import("react").PropsWithChildren<NoInfer<TRenderProps> & {
|
|
215
|
+
form: import("@tanstack/react-form").AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | import("@tanstack/react-form").FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, unknown extends TSubmitMeta ? TFormSubmitMeta : TSubmitMeta, {
|
|
216
216
|
readonly TextField: typeof TextField;
|
|
217
217
|
readonly TextAreaField: typeof TextAreaField;
|
|
218
218
|
readonly SelectField: typeof SelectField;
|
|
@@ -29,6 +29,8 @@ export declare const paginationMessages: (locale?: string, translations?: Pagina
|
|
|
29
29
|
goToLastPage: string;
|
|
30
30
|
};
|
|
31
31
|
export type PaginationProps = {
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
pageSizeContentClassName?: string | undefined;
|
|
32
34
|
compact?: boolean | undefined;
|
|
33
35
|
locale?: string | undefined;
|
|
34
36
|
messages?: PaginationMessageTranslations | undefined;
|
|
@@ -42,4 +44,4 @@ export type PaginationProps = {
|
|
|
42
44
|
showResults?: boolean | undefined;
|
|
43
45
|
totalRows: number;
|
|
44
46
|
};
|
|
45
|
-
export declare function Pagination({ compact, locale: localeOverride, messages: messageOverrides, onPageChange, onPageSizeChange, page, pageCount, pageSize, pageSizes, selectedRows, showResults, totalRows, }: PaginationProps): import("react").JSX.Element;
|
|
47
|
+
export declare function Pagination({ className, pageSizeContentClassName, compact, locale: localeOverride, messages: messageOverrides, onPageChange, onPageSizeChange, page, pageCount, pageSize, pageSizes, selectedRows, showResults, totalRows, }: PaginationProps): import("react").JSX.Element;
|
|
@@ -213,6 +213,8 @@ var paginationMessages = (locale = "en", translations) => ({
|
|
|
213
213
|
...translations?.[locale]
|
|
214
214
|
});
|
|
215
215
|
function Pagination({
|
|
216
|
+
className,
|
|
217
|
+
pageSizeContentClassName,
|
|
216
218
|
compact = false,
|
|
217
219
|
locale: localeOverride,
|
|
218
220
|
messages: messageOverrides,
|
|
@@ -232,7 +234,8 @@ function Pagination({
|
|
|
232
234
|
const canGoBack = page > 0;
|
|
233
235
|
const canGoForward = page + 1 < pageCount;
|
|
234
236
|
return /* @__PURE__ */ jsxs2("div", {
|
|
235
|
-
|
|
237
|
+
"data-slot": "pagination",
|
|
238
|
+
className: cn("flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between", compact && "gap-2 px-0 sm:flex-col sm:items-stretch", className),
|
|
236
239
|
children: [
|
|
237
240
|
showResults ? /* @__PURE__ */ jsxs2("div", {
|
|
238
241
|
className: "text-muted-foreground flex flex-wrap items-center gap-x-3 gap-y-1 text-sm",
|
|
@@ -273,6 +276,7 @@ function Pagination({
|
|
|
273
276
|
}),
|
|
274
277
|
/* @__PURE__ */ jsx4(SelectContent, {
|
|
275
278
|
side: "top",
|
|
279
|
+
className: pageSizeContentClassName,
|
|
276
280
|
children: pageSizes.map((size) => /* @__PURE__ */ jsx4(SelectItem, {
|
|
277
281
|
value: `${size}`,
|
|
278
282
|
children: size
|
|
@@ -17,15 +17,13 @@ import {
|
|
|
17
17
|
// ../../src/components/ui/app-brand.tsx
|
|
18
18
|
import { Link } from "@tanstack/react-router";
|
|
19
19
|
|
|
20
|
-
// ../../src/components/ui/badge.tsx
|
|
21
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
22
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
23
|
-
import { cva } from "class-variance-authority";
|
|
24
|
-
|
|
25
20
|
// ../../src/lib/utils.ts
|
|
26
21
|
import { cn } from "cn";
|
|
27
22
|
|
|
28
23
|
// ../../src/components/ui/badge.tsx
|
|
24
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
25
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
26
|
+
import { cva } from "class-variance-authority";
|
|
29
27
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
30
28
|
variants: {
|
|
31
29
|
variant: {
|
package/dist/lib/docs.js
CHANGED
|
@@ -12,12 +12,18 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// ../../src/components/ui/app-brand.tsx
|
|
14
14
|
import { Link } from "@tanstack/react-router";
|
|
15
|
+
|
|
16
|
+
// ../../src/lib/utils.ts
|
|
17
|
+
import { cn } from "cn";
|
|
18
|
+
|
|
19
|
+
// ../../src/components/ui/app-brand.tsx
|
|
15
20
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
16
21
|
var isStaticBrand = (props) => props.to === null;
|
|
17
22
|
var isAnchorBrand = (props) => props.href !== undefined;
|
|
18
23
|
function AppBrand(brandProps) {
|
|
19
24
|
const {
|
|
20
25
|
className,
|
|
26
|
+
classNames,
|
|
21
27
|
label,
|
|
22
28
|
subtitle,
|
|
23
29
|
icon: Icon,
|
|
@@ -30,28 +36,31 @@ function AppBrand(brandProps) {
|
|
|
30
36
|
const content = /* @__PURE__ */ jsxs(Fragment, {
|
|
31
37
|
children: [
|
|
32
38
|
/* @__PURE__ */ jsx("div", {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
imageSrc ? "border bg-background" : iconClassName
|
|
36
|
-
].join(" "),
|
|
39
|
+
"data-slot": "app-brand-visual",
|
|
40
|
+
className: cn("flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md", imageSrc ? "bg-background border" : iconClassName, classNames?.visual),
|
|
37
41
|
children: imageSrc ? /* @__PURE__ */ jsx("img", {
|
|
42
|
+
"data-slot": "app-brand-image",
|
|
38
43
|
src: imageSrc,
|
|
39
44
|
alt: label,
|
|
40
|
-
className: "size-full object-cover"
|
|
45
|
+
className: cn("size-full object-cover", classNames?.image)
|
|
41
46
|
}) : Icon ? /* @__PURE__ */ jsx(Icon, {
|
|
42
|
-
|
|
47
|
+
"data-slot": "app-brand-icon",
|
|
48
|
+
className: cn("size-4", classNames?.icon),
|
|
43
49
|
color: iconColor
|
|
44
50
|
}) : null
|
|
45
51
|
}),
|
|
46
52
|
/* @__PURE__ */ jsxs("div", {
|
|
47
|
-
|
|
53
|
+
"data-slot": "app-brand-content",
|
|
54
|
+
className: cn("flex min-w-0 flex-col leading-tight", contentClassName, classNames?.content),
|
|
48
55
|
children: [
|
|
49
56
|
/* @__PURE__ */ jsx("span", {
|
|
50
|
-
|
|
57
|
+
"data-slot": "app-brand-label",
|
|
58
|
+
className: cn("truncate font-semibold tracking-tight", classNames?.label),
|
|
51
59
|
children: label
|
|
52
60
|
}),
|
|
53
61
|
subtitle ? /* @__PURE__ */ jsx("span", {
|
|
54
|
-
|
|
62
|
+
"data-slot": "app-brand-subtitle",
|
|
63
|
+
className: cn("text-muted-foreground truncate text-xs", classNames?.subtitle),
|
|
55
64
|
children: subtitle
|
|
56
65
|
}) : null
|
|
57
66
|
]
|
|
@@ -66,6 +75,7 @@ function AppBrand(brandProps) {
|
|
|
66
75
|
if (isStaticBrand(brandProps)) {
|
|
67
76
|
const {
|
|
68
77
|
className: _className,
|
|
78
|
+
classNames: _classNames,
|
|
69
79
|
label: _label,
|
|
70
80
|
subtitle: _subtitle,
|
|
71
81
|
icon: _icon,
|
|
@@ -76,6 +86,7 @@ function AppBrand(brandProps) {
|
|
|
76
86
|
...props
|
|
77
87
|
} = brandProps;
|
|
78
88
|
return /* @__PURE__ */ jsx("div", {
|
|
89
|
+
"data-slot": "app-brand",
|
|
79
90
|
className: brandClassName,
|
|
80
91
|
...props,
|
|
81
92
|
children: content
|
|
@@ -84,6 +95,7 @@ function AppBrand(brandProps) {
|
|
|
84
95
|
if (isAnchorBrand(brandProps)) {
|
|
85
96
|
const {
|
|
86
97
|
className: _className,
|
|
98
|
+
classNames: _classNames,
|
|
87
99
|
label: _label,
|
|
88
100
|
subtitle: _subtitle,
|
|
89
101
|
icon: _icon,
|
|
@@ -94,6 +106,7 @@ function AppBrand(brandProps) {
|
|
|
94
106
|
...props
|
|
95
107
|
} = brandProps;
|
|
96
108
|
return /* @__PURE__ */ jsx("a", {
|
|
109
|
+
"data-slot": "app-brand",
|
|
97
110
|
className: brandClassName,
|
|
98
111
|
href,
|
|
99
112
|
...props,
|
|
@@ -102,6 +115,7 @@ function AppBrand(brandProps) {
|
|
|
102
115
|
}
|
|
103
116
|
const {
|
|
104
117
|
className: _className,
|
|
118
|
+
classNames: _classNames,
|
|
105
119
|
label: _label,
|
|
106
120
|
subtitle: _subtitle,
|
|
107
121
|
icon: _icon,
|
|
@@ -112,6 +126,7 @@ function AppBrand(brandProps) {
|
|
|
112
126
|
...props
|
|
113
127
|
} = brandProps;
|
|
114
128
|
return /* @__PURE__ */ jsx(Link, {
|
|
129
|
+
"data-slot": "app-brand",
|
|
115
130
|
to: to ?? "/",
|
|
116
131
|
className: brandClassName,
|
|
117
132
|
...props,
|
|
@@ -123,11 +138,6 @@ function AppBrand(brandProps) {
|
|
|
123
138
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
124
139
|
import { useRender } from "@base-ui/react/use-render";
|
|
125
140
|
import { cva } from "class-variance-authority";
|
|
126
|
-
|
|
127
|
-
// ../../src/lib/utils.ts
|
|
128
|
-
import { cn } from "cn";
|
|
129
|
-
|
|
130
|
-
// ../../src/components/ui/badge.tsx
|
|
131
141
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
132
142
|
variants: {
|
|
133
143
|
variant: {
|
package/dist/lib/docs.server.js
CHANGED
|
@@ -17,15 +17,13 @@ import {
|
|
|
17
17
|
// ../../src/components/ui/app-brand.tsx
|
|
18
18
|
import { Link } from "@tanstack/react-router";
|
|
19
19
|
|
|
20
|
-
// ../../src/components/ui/badge.tsx
|
|
21
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
22
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
23
|
-
import { cva } from "class-variance-authority";
|
|
24
|
-
|
|
25
20
|
// ../../src/lib/utils.ts
|
|
26
21
|
import { cn } from "cn";
|
|
27
22
|
|
|
28
23
|
// ../../src/components/ui/badge.tsx
|
|
24
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
25
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
26
|
+
import { cva } from "class-variance-authority";
|
|
29
27
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
30
28
|
variants: {
|
|
31
29
|
variant: {
|
|
@@ -17,15 +17,13 @@ import {
|
|
|
17
17
|
// ../../src/components/ui/app-brand.tsx
|
|
18
18
|
import { Link } from "@tanstack/react-router";
|
|
19
19
|
|
|
20
|
-
// ../../src/components/ui/badge.tsx
|
|
21
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
22
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
23
|
-
import { cva } from "class-variance-authority";
|
|
24
|
-
|
|
25
20
|
// ../../src/lib/utils.ts
|
|
26
21
|
import { cn } from "cn";
|
|
27
22
|
|
|
28
23
|
// ../../src/components/ui/badge.tsx
|
|
24
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
25
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
26
|
+
import { cva } from "class-variance-authority";
|
|
29
27
|
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
30
28
|
variants: {
|
|
31
29
|
variant: {
|