@equal-experts/kuat-react 0.13.0 → 0.14.0-beta.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/agent-docs/AGENTS.md +10 -0
- package/agent-docs/README.md +17 -0
- package/agent-docs/bundle-manifest.json +55 -0
- package/agent-docs/components/_template.md +21 -0
- package/agent-docs/components/button-group.md +27 -0
- package/agent-docs/components/button.md +50 -0
- package/agent-docs/components/components.manifest.json +23 -0
- package/agent-docs/components/kuat-header.md +27 -0
- package/agent-docs/external/kuat-agent-rules/reference/accessibility/README.md +7 -0
- package/agent-docs/external/kuat-agent-rules/reference/accessibility/accessibility.md +446 -0
- package/agent-docs/external/kuat-agent-rules/reference/brand/README.md +9 -0
- package/agent-docs/external/kuat-agent-rules/reference/brand/brand.md +109 -0
- package/agent-docs/external/kuat-agent-rules/reference/brand/logo.md +152 -0
- package/agent-docs/external/kuat-agent-rules/reference/brand/voice-and-tone.md +166 -0
- package/agent-docs/external/kuat-agent-rules/reference/content/README.md +12 -0
- package/agent-docs/external/kuat-agent-rules/reference/content/formatting.md +120 -0
- package/agent-docs/external/kuat-agent-rules/reference/content/numbers.md +87 -0
- package/agent-docs/external/kuat-agent-rules/reference/content/punctuation.md +94 -0
- package/agent-docs/external/kuat-agent-rules/reference/content/writing-style.md +96 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/README.md +11 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/borders.md +160 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/colours.md +201 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/design-language.md +117 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/spacing.md +131 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/tokens/README.md +29 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/tokens/colors.tokens.json +84 -0
- package/agent-docs/external/kuat-agent-rules/reference/design-language/typography.md +156 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/README.md +10 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/content/README.md +26 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/content/blog-posts.md +29 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/content/marketing-content.md +61 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/content/seo.md +40 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/emails.md +68 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/patterns/README.md +7 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/patterns/marketing-pages.md +368 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/website.md +154 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/README.md +16 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/accessibility.md +392 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-decision-tree.md +248 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-registry.md +49 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/README.md +29 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/actions.md +45 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/confirmations.md +51 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/empty-states.md +37 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/errors.md +48 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/forms.md +68 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/product-content.md +128 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/design.md +177 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/emails.md +65 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/README.md +10 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/authentication.md +303 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/dashboards.md +313 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/documentation.md +333 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/forms.md +361 -0
- package/agent-docs/kuat-docs/rules/README.md +155 -0
- package/agent-docs/kuat-docs/rules/design/layouts.md +394 -0
- package/agent-docs/kuat-docs/rules/scenarios/README.md +83 -0
- package/agent-docs/kuat-docs/rules/scenarios/authentication.md +301 -0
- package/agent-docs/kuat-docs/rules/scenarios/dashboards.md +314 -0
- package/agent-docs/kuat-docs/rules/scenarios/documentation.md +333 -0
- package/agent-docs/kuat-docs/rules/scenarios/forms.md +359 -0
- package/agent-docs/kuat-docs/rules/scenarios/marketing-pages.md +367 -0
- package/agent-docs/manifest.json +9 -0
- package/agent-docs/rules/LOADING-consumer.md +27 -0
- package/dist/accordion.d.ts +2 -0
- package/dist/alert-dialog.d.ts +2 -0
- package/dist/badge.d.ts +3 -0
- package/dist/button-group.d.ts +2 -0
- package/dist/button.d.ts +3 -0
- package/dist/carousel.d.ts +2 -0
- package/dist/checkbox.d.ts +3 -0
- package/dist/components/ui/accordion/accordion.d.ts +7 -0
- package/dist/components/ui/accordion/index.d.ts +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +20 -0
- package/dist/components/ui/alert-dialog/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +16 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/breadcrumb/Breadcrumb.d.ts +29 -0
- package/dist/components/ui/breadcrumb/breadcrumb-primitives.d.ts +19 -0
- package/dist/components/ui/breadcrumb/index.d.ts +4 -0
- package/dist/components/ui/button/button.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button-group/button-group.d.ts +23 -0
- package/dist/components/ui/button-group/index.d.ts +2 -0
- package/dist/components/ui/carousel/carousel.d.ts +50 -0
- package/dist/components/ui/carousel/index.d.ts +2 -0
- package/dist/components/ui/checkbox/checkbox-field.d.ts +23 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox/index.d.ts +4 -0
- package/dist/components/ui/content-card/content-card.d.ts +29 -0
- package/dist/components/ui/content-card/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/components/ui/ee-logo-icon/ee-logo-icon.d.ts +11 -0
- package/dist/components/ui/ee-logo-icon/index.d.ts +2 -0
- package/dist/components/ui/field/field.d.ts +28 -0
- package/dist/components/ui/field/index.d.ts +2 -0
- package/dist/components/ui/icon-button/icon-button.d.ts +27 -0
- package/dist/components/ui/icon-button/index.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/input.d.ts +20 -0
- package/dist/components/ui/kuat-carousel/index.d.ts +2 -0
- package/dist/components/ui/kuat-carousel/kuat-carousel.d.ts +16 -0
- package/dist/components/ui/kuat-header/index.d.ts +4 -0
- package/dist/components/ui/kuat-header/kuat-header.d.ts +16 -0
- package/dist/components/ui/kuat-header/kuat-header.logic.d.ts +32 -0
- package/dist/components/ui/kuat-header/kuat-header.types.d.ts +91 -0
- package/dist/components/ui/kuat-logo-lockup/index.d.ts +2 -0
- package/dist/components/ui/kuat-logo-lockup/kuat-logo-lockup.d.ts +17 -0
- package/dist/components/ui/kuat-radial-progress/index.d.ts +2 -0
- package/dist/components/ui/kuat-radial-progress/kuat-radial-progress.d.ts +16 -0
- package/dist/components/ui/radio/index.d.ts +4 -0
- package/dist/components/ui/radio/radio-field.d.ts +25 -0
- package/dist/components/ui/radio/radio.d.ts +7 -0
- package/dist/components/ui/select/constants.d.ts +19 -0
- package/dist/components/ui/select/index.d.ts +3 -0
- package/dist/components/ui/select/select.d.ts +53 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/separator.d.ts +9 -0
- package/dist/components/ui/sonner/index.d.ts +4 -0
- package/dist/components/ui/sonner/sonner-content.d.ts +15 -0
- package/dist/components/ui/sonner/sonner.d.ts +21 -0
- package/dist/components/ui/switch/index.d.ts +4 -0
- package/dist/components/ui/switch/switch-field.d.ts +23 -0
- package/dist/components/ui/switch/switch.d.ts +5 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/textarea.d.ts +9 -0
- package/dist/components/ui/toggle/constants.d.ts +4 -0
- package/dist/components/ui/toggle/index.d.ts +6 -0
- package/dist/components/ui/toggle/toggle-group.d.ts +11 -0
- package/dist/components/ui/toggle/toggle.d.ts +9 -0
- package/dist/field.d.ts +3 -0
- package/dist/icon-button.d.ts +3 -0
- package/dist/index.d.ts +47 -0
- package/dist/input.d.ts +3 -0
- package/dist/kuat-carousel.d.ts +2 -0
- package/dist/kuat-radial-progress.d.ts +7 -0
- package/dist/lib/react-node-compat.d.ts +7 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/radio.d.ts +3 -0
- package/dist/select.d.ts +3 -0
- package/dist/sonner.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/style.css.d.ts +2 -0
- package/dist/switch.d.ts +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/textarea.d.ts +3 -0
- package/dist/toggle-group.d.ts +3 -0
- package/dist/toggle.d.ts +3 -0
- package/package.json +4 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
4
|
+
type CarouselOptions = UseEmblaCarouselType[0];
|
|
5
|
+
type CarouselPlugins = Parameters<typeof useEmblaCarousel>[1];
|
|
6
|
+
type CarouselOrientation = "horizontal" | "vertical";
|
|
7
|
+
export type CarouselItemBasis = 1 | 2 | 3;
|
|
8
|
+
export type CarouselResponsiveBasis = Partial<Record<"sm" | "md" | "lg" | "xl" | "2xl", CarouselItemBasis>>;
|
|
9
|
+
export type CarouselEventHandler = (api: CarouselApi, eventName: string) => void;
|
|
10
|
+
export type CarouselEventHandlers = Partial<Record<string, CarouselEventHandler>>;
|
|
11
|
+
interface CarouselContextValue {
|
|
12
|
+
api: CarouselApi;
|
|
13
|
+
basis: CarouselItemBasis;
|
|
14
|
+
responsiveBasis: CarouselResponsiveBasis;
|
|
15
|
+
orientation: CarouselOrientation;
|
|
16
|
+
scrollPrev: () => void;
|
|
17
|
+
scrollNext: () => void;
|
|
18
|
+
canScrollPrev: boolean;
|
|
19
|
+
canScrollNext: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare function useCarousel(): CarouselContextValue;
|
|
22
|
+
export interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
opts?: CarouselOptions;
|
|
24
|
+
basis?: CarouselItemBasis;
|
|
25
|
+
basisSm?: CarouselItemBasis;
|
|
26
|
+
basisMd?: CarouselItemBasis;
|
|
27
|
+
basisLg?: CarouselItemBasis;
|
|
28
|
+
basisXl?: CarouselItemBasis;
|
|
29
|
+
basis2xl?: CarouselItemBasis;
|
|
30
|
+
orientation?: CarouselOrientation;
|
|
31
|
+
plugins?: CarouselPlugins;
|
|
32
|
+
setApi?: (api: CarouselApi) => void;
|
|
33
|
+
events?: CarouselEventHandlers;
|
|
34
|
+
}
|
|
35
|
+
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export interface CarouselContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
37
|
+
}
|
|
38
|
+
declare const CarouselContent: React.ForwardRefExoticComponent<CarouselContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export interface CarouselItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
basis?: CarouselItemBasis;
|
|
41
|
+
basisSm?: CarouselItemBasis;
|
|
42
|
+
basisMd?: CarouselItemBasis;
|
|
43
|
+
basisLg?: CarouselItemBasis;
|
|
44
|
+
basisXl?: CarouselItemBasis;
|
|
45
|
+
basis2xl?: CarouselItemBasis;
|
|
46
|
+
}
|
|
47
|
+
declare const CarouselItem: React.ForwardRefExoticComponent<CarouselItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
+
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
50
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, useCarousel, } from './carousel';
|
|
2
|
+
export type { CarouselItemBasis, CarouselResponsiveBasis, CarouselEventHandler, CarouselEventHandlers, CarouselProps, CarouselContentProps, CarouselItemProps, } from './carousel';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Checkbox } from './checkbox';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const CHECKBOX_FIELD_APPEARANCES: readonly ["plain", "card"];
|
|
4
|
+
export type CheckboxFieldAppearance = (typeof CHECKBOX_FIELD_APPEARANCES)[number];
|
|
5
|
+
export declare const CHECKBOX_FIELD_LAYOUTS: readonly ["inline", "block"];
|
|
6
|
+
export type CheckboxFieldLayout = (typeof CHECKBOX_FIELD_LAYOUTS)[number];
|
|
7
|
+
/** @deprecated Prefer composing `Field` + `Checkbox` for new form layouts. */
|
|
8
|
+
export interface CheckboxFieldProps extends Omit<React.ComponentPropsWithoutRef<typeof Checkbox>, "id" | "children"> {
|
|
9
|
+
/** Primary label (always shown). */
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
/** Optional secondary line (12px muted); works for both plain and card. */
|
|
12
|
+
secondaryText?: React.ReactNode;
|
|
13
|
+
/** `plain` — no border/padding; `card` — bordered padded container (Figma Rich). */
|
|
14
|
+
appearance?: CheckboxFieldAppearance;
|
|
15
|
+
/** `inline` — compact label; `block` — label row can grow (Figma Checkbox Group). */
|
|
16
|
+
layout?: CheckboxFieldLayout;
|
|
17
|
+
/** Place checkbox on the right of the text block. */
|
|
18
|
+
flipped?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
}
|
|
21
|
+
/** @deprecated Prefer composing `Field` + `Checkbox` for new form layouts. */
|
|
22
|
+
declare const CheckboxField: React.ForwardRefExoticComponent<CheckboxFieldProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export { CheckboxField };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export type CheckboxProps = React.ComponentPropsWithoutRef<typeof Checkbox>;
|
|
5
|
+
export { Checkbox };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Checkbox } from './checkbox';
|
|
2
|
+
export type { CheckboxProps } from './checkbox';
|
|
3
|
+
export { CheckboxField, CHECKBOX_FIELD_APPEARANCES, CHECKBOX_FIELD_LAYOUTS, } from './checkbox-field';
|
|
4
|
+
export type { CheckboxFieldAppearance, CheckboxFieldLayout, CheckboxFieldProps, } from './checkbox-field';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { KuatSlotContent } from '../../../lib/react-node-compat';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface ContentCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "content" | "children" | "title"> {
|
|
4
|
+
className?: string;
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
/** Optional media; when `null`, the media area is removed (no gap). */
|
|
7
|
+
imageSrc?: string | null;
|
|
8
|
+
imageAlt?: string;
|
|
9
|
+
/** Header props (not slots). */
|
|
10
|
+
badge: KuatSlotContent;
|
|
11
|
+
category: KuatSlotContent;
|
|
12
|
+
title: KuatSlotContent;
|
|
13
|
+
titleHeadingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
|
+
/** Optional basic content text (hidden when omitted). */
|
|
15
|
+
contentText?: string | null;
|
|
16
|
+
/** Header Accessory slot (flex row). */
|
|
17
|
+
headerAccessory?: KuatSlotContent | null;
|
|
18
|
+
/** Custom content slot below basic content. */
|
|
19
|
+
customContent?: KuatSlotContent | null;
|
|
20
|
+
/** Footer slot. */
|
|
21
|
+
footer?: KuatSlotContent | null;
|
|
22
|
+
children?: KuatSlotContent;
|
|
23
|
+
/** Width behavior for the root card container. */
|
|
24
|
+
width?: "default" | "fluid" | "custom";
|
|
25
|
+
/** Used when `width` is `custom`; accepts CSS max-width values. */
|
|
26
|
+
maxWidth?: React.CSSProperties["maxWidth"];
|
|
27
|
+
}
|
|
28
|
+
declare const ContentCard: React.ForwardRefExoticComponent<ContentCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export { ContentCard };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './dropdown-menu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Equal Experts logo icon (bracket mark only, no wordmark).
|
|
4
|
+
* Extracted from full EE logo; used in dark Service logo lockup.
|
|
5
|
+
* Source: https://github.com/EqualExperts/brand-assets
|
|
6
|
+
*/
|
|
7
|
+
export interface EELogoIconProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function EELogoIcon({ className }: EELogoIconProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { EELogoIcon };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const FIELD_ORIENTATIONS: readonly ["responsive", "vertical", "horizontal"];
|
|
3
|
+
export type FieldOrientation = (typeof FIELD_ORIENTATIONS)[number];
|
|
4
|
+
export interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
orientation?: FieldOrientation;
|
|
6
|
+
}
|
|
7
|
+
declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const FieldSet: React.ForwardRefExoticComponent<React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
9
|
+
export type FieldLegendVariant = "legend" | "label";
|
|
10
|
+
export interface FieldLegendProps extends React.HTMLAttributes<HTMLLegendElement> {
|
|
11
|
+
variant?: FieldLegendVariant;
|
|
12
|
+
}
|
|
13
|
+
declare const FieldLegend: React.ForwardRefExoticComponent<FieldLegendProps & React.RefAttributes<HTMLLegendElement>>;
|
|
14
|
+
declare const FieldGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const FieldLabel: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
|
|
16
|
+
declare const FieldContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const FieldTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const FieldDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
declare const FieldSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
type FieldIssue = {
|
|
21
|
+
message?: string;
|
|
22
|
+
};
|
|
23
|
+
export interface FieldErrorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
24
|
+
errors?: Array<FieldIssue | undefined> | FieldIssue;
|
|
25
|
+
issues?: Array<FieldIssue | undefined>;
|
|
26
|
+
}
|
|
27
|
+
declare const FieldError: React.ForwardRefExoticComponent<FieldErrorProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FIELD_ORIENTATIONS, } from './field';
|
|
2
|
+
export type { FieldErrorProps, FieldLegendProps, FieldLegendVariant, FieldOrientation, FieldProps, } from './field';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ButtonColor, ButtonVariant } from '../button/button';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/** @deprecated Use "primary" instead. */
|
|
4
|
+
export declare const ICON_BUTTON_VARIANT_DEFAULT_ALIAS = "default";
|
|
5
|
+
export declare const ICON_BUTTON_SIZES: readonly ["mini", "small", "regular", "large"];
|
|
6
|
+
/** @deprecated Use "small" instead. */
|
|
7
|
+
export declare const ICON_BUTTON_SIZE_SM_ALIAS = "sm";
|
|
8
|
+
/** @deprecated Use "large" instead. */
|
|
9
|
+
export declare const ICON_BUTTON_SIZE_LG_ALIAS = "lg";
|
|
10
|
+
export declare const ICON_BUTTON_ROUNDNESS: readonly ["default", "round"];
|
|
11
|
+
export type IconButtonSize = (typeof ICON_BUTTON_SIZES)[number];
|
|
12
|
+
export type IconButtonRoundness = (typeof ICON_BUTTON_ROUNDNESS)[number];
|
|
13
|
+
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
14
|
+
variant?: ButtonVariant | typeof ICON_BUTTON_VARIANT_DEFAULT_ALIAS;
|
|
15
|
+
size?: IconButtonSize | typeof ICON_BUTTON_SIZE_SM_ALIAS | typeof ICON_BUTTON_SIZE_LG_ALIAS;
|
|
16
|
+
color?: ButtonColor;
|
|
17
|
+
roundness?: IconButtonRoundness;
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
declare function iconButtonVariants(options?: {
|
|
22
|
+
variant?: IconButtonProps["variant"];
|
|
23
|
+
size?: IconButtonProps["size"];
|
|
24
|
+
color?: ButtonColor;
|
|
25
|
+
roundness?: IconButtonRoundness;
|
|
26
|
+
}): string;
|
|
27
|
+
export { IconButton, iconButtonVariants };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { IconButton, iconButtonVariants, ICON_BUTTON_SIZES, ICON_BUTTON_ROUNDNESS, ICON_BUTTON_VARIANT_DEFAULT_ALIAS, ICON_BUTTON_SIZE_SM_ALIAS, ICON_BUTTON_SIZE_LG_ALIAS, } from './icon-button';
|
|
2
|
+
export type { IconButtonProps, IconButtonSize, IconButtonRoundness, } from './icon-button';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const INPUT_SIZES: readonly ["regular", "large", "small", "mini"];
|
|
3
|
+
export type InputSize = (typeof INPUT_SIZES)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Shared props for the Kuat `Input` wrapper + native field.
|
|
6
|
+
*
|
|
7
|
+
* For `type="file"`, avoid treating the control like a text field: browsers restrict the
|
|
8
|
+
* `value`, and React controlled file inputs are unusual—prefer an uncontrolled input with
|
|
9
|
+
* `ref` and `onChange` (see [shadcn file example](https://ui.shadcn.com/docs/components/radix/input#file)).
|
|
10
|
+
*/
|
|
11
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
12
|
+
/** Visual size; maps to `input--size-*` (not the HTML `size` attribute). */
|
|
13
|
+
size?: InputSize;
|
|
14
|
+
/** Optional content before the field (icon, text, checkbox, etc.). */
|
|
15
|
+
leftDecoration?: React.ReactNode;
|
|
16
|
+
/** Optional content after the field (suffix text, button, icon, etc.). */
|
|
17
|
+
rightDecoration?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export { Input };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { KuatCarousel, KuatCarouselContent, KuatCarouselItem, KuatCarouselPrevious, KuatCarouselNext, useKuatCarousel, } from './kuat-carousel';
|
|
2
|
+
export type { KuatCarouselSlidesPerView, KuatCarouselProps, KuatCarouselContentProps, KuatCarouselItemProps, } from './kuat-carousel';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useCarousel, CarouselEventHandler, CarouselEventHandlers, CarouselContentProps, CarouselItemProps, CarouselProps, CarouselItemBasis } from '../carousel';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type KuatCarouselSlidesPerView = CarouselItemBasis;
|
|
4
|
+
export interface KuatCarouselProps extends Omit<CarouselProps, "basis"> {
|
|
5
|
+
slidesPerView?: KuatCarouselSlidesPerView;
|
|
6
|
+
}
|
|
7
|
+
declare const KuatCarousel: React.ForwardRefExoticComponent<KuatCarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
type KuatCarouselContentProps = CarouselContentProps;
|
|
9
|
+
type KuatCarouselItemProps = CarouselItemProps;
|
|
10
|
+
declare const KuatCarouselContent: React.ForwardRefExoticComponent<CarouselContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const KuatCarouselItem: React.ForwardRefExoticComponent<CarouselItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const KuatCarouselPrevious: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
declare const KuatCarouselNext: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
declare const useKuatCarousel: typeof useCarousel;
|
|
15
|
+
export type { KuatCarouselContentProps, KuatCarouselItemProps, CarouselEventHandler, CarouselEventHandlers };
|
|
16
|
+
export { KuatCarousel, KuatCarouselContent, KuatCarouselItem, KuatCarouselPrevious, KuatCarouselNext, useKuatCarousel, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { KuatHeader, EELogo, kuatHeaderVariants, } from './kuat-header';
|
|
2
|
+
export { KUAT_HEADER_VARIANTS, KUAT_HEADER_LOCKUP_VARIANTS, KUAT_HEADER_APP_SWITCHER_EMPTY, EE_LOGO_TEXT_COLORS, } from './kuat-header.types';
|
|
3
|
+
export type { KuatHeaderProps, EELogoProps, KuatHeaderVariant, KuatHeaderLockupVariant, EELogoTextColor, KuatHeaderSubItem, KuatHeaderNavItem, KuatHeaderAccountItem, KuatHeaderAccountConfig, KuatHeaderAccountLabels, KuatHeaderAccountMobileTier, KuatHeaderActionItem, KuatHeaderApp, KuatHeaderAppSwitcherConfig, KuatHeaderAppSwitcherEmpty, KuatHeaderAppSwitcherLabels, KuatHeaderLockupConfig, } from './kuat-header.types';
|
|
4
|
+
export { shouldShowAppSwitcher, resolveAppSwitcherLabels, resolveHeaderLockup, resolveAccountLabels, shouldShowAccountMobileTier, hasStructuredAccount, resolveDesktopAccountMenuItems, shouldUseDesktopAccountDropdown, } from './kuat-header.logic';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EELogoProps, KuatHeaderProps, KuatHeaderVariant } from './kuat-header.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type { EELogoProps, EELogoTextColor, KuatHeaderAccountConfig, KuatHeaderAccountItem, KuatHeaderAccountLabels, KuatHeaderAccountMobileTier, KuatHeaderActionItem, KuatHeaderApp, KuatHeaderAppSwitcherConfig, KuatHeaderAppSwitcherEmpty, KuatHeaderAppSwitcherLabels, KuatHeaderLockupConfig, KuatHeaderLockupVariant, KuatHeaderNavItem, KuatHeaderProps, KuatHeaderSubItem, KuatHeaderVariant, } from './kuat-header.types';
|
|
4
|
+
export { KUAT_HEADER_VARIANTS, KUAT_HEADER_LOCKUP_VARIANTS, EE_LOGO_TEXT_COLORS, KUAT_HEADER_APP_SWITCHER_EMPTY, } from './kuat-header.types';
|
|
5
|
+
export { shouldShowAppSwitcher, resolveAppSwitcherLabels, resolveHeaderLockup, } from './kuat-header.logic';
|
|
6
|
+
/**
|
|
7
|
+
* Equal Experts Logo component
|
|
8
|
+
* Source: https://github.com/EqualExperts/brand-assets/blob/main/logo/logo-colour.svg
|
|
9
|
+
*/
|
|
10
|
+
declare function EELogo({ className, textColor }: EELogoProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const KuatHeader: React.ForwardRefExoticComponent<KuatHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
12
|
+
/** Returns class string for header variant (backward compatibility). */
|
|
13
|
+
export declare function kuatHeaderVariants(options?: {
|
|
14
|
+
variant?: KuatHeaderVariant;
|
|
15
|
+
}): string;
|
|
16
|
+
export { KuatHeader, EELogo };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { KuatHeaderAccountConfig, KuatHeaderAppSwitcherConfig, KuatHeaderAppSwitcherLabels, KuatHeaderLockupConfig, KuatHeaderLockupVariant, KuatHeaderSubItem } from './kuat-header.types';
|
|
3
|
+
|
|
4
|
+
export declare function shouldShowAppSwitcher(config?: KuatHeaderAppSwitcherConfig): boolean;
|
|
5
|
+
export declare function resolveAppSwitcherLabels(config?: KuatHeaderAppSwitcherConfig): Required<KuatHeaderAppSwitcherLabels>;
|
|
6
|
+
export declare function resolveAppSwitcherEmptyMessage(config?: KuatHeaderAppSwitcherConfig): string;
|
|
7
|
+
export declare function shouldShowAccountMobileTier(account?: KuatHeaderAccountConfig): boolean;
|
|
8
|
+
export declare function hasStructuredAccount(account?: KuatHeaderAccountConfig): boolean;
|
|
9
|
+
/** Menu rows for the desktop account dropdown (from `account.mobile.items`). */
|
|
10
|
+
export declare function resolveDesktopAccountMenuItems(account?: KuatHeaderAccountConfig): KuatHeaderSubItem[];
|
|
11
|
+
/** Single primary row + mobile menu items → desktop shows a dropdown, not a direct link. */
|
|
12
|
+
export declare function shouldUseDesktopAccountDropdown(account?: KuatHeaderAccountConfig): boolean;
|
|
13
|
+
export declare function resolveAccountLabels(account?: KuatHeaderAccountConfig): {
|
|
14
|
+
teaserTitle: string;
|
|
15
|
+
teaserDescription: string;
|
|
16
|
+
nav: string;
|
|
17
|
+
title: string;
|
|
18
|
+
};
|
|
19
|
+
export type HeaderLockupMode = "hidden" | "custom" | "builtin";
|
|
20
|
+
export declare function resolveHeaderLockup(options: {
|
|
21
|
+
logo?: ReactNode | null;
|
|
22
|
+
lockup?: KuatHeaderLockupConfig;
|
|
23
|
+
}): {
|
|
24
|
+
mode: HeaderLockupMode;
|
|
25
|
+
lockupVariant: KuatHeaderLockupVariant;
|
|
26
|
+
};
|
|
27
|
+
export declare function resolveMobileSheetAriaLabel(options: {
|
|
28
|
+
mobileMenuAriaLabel?: string;
|
|
29
|
+
showAppSwitcher: boolean;
|
|
30
|
+
hasStructuredNavigation: boolean;
|
|
31
|
+
hasAccountMobileTier: boolean;
|
|
32
|
+
}): string;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export declare const KUAT_HEADER_VARIANTS: readonly ["default", "bold"];
|
|
3
|
+
export type KuatHeaderVariant = (typeof KUAT_HEADER_VARIANTS)[number];
|
|
4
|
+
export declare const KUAT_HEADER_LOCKUP_VARIANTS: readonly ["default", "demo"];
|
|
5
|
+
export type KuatHeaderLockupVariant = (typeof KUAT_HEADER_LOCKUP_VARIANTS)[number];
|
|
6
|
+
export declare const EE_LOGO_TEXT_COLORS: readonly ["grey", "white"];
|
|
7
|
+
export type EELogoTextColor = (typeof EE_LOGO_TEXT_COLORS)[number];
|
|
8
|
+
export declare const KUAT_HEADER_APP_SWITCHER_EMPTY: readonly ["hide", "message"];
|
|
9
|
+
export type KuatHeaderAppSwitcherEmpty = (typeof KUAT_HEADER_APP_SWITCHER_EMPTY)[number];
|
|
10
|
+
export interface KuatHeaderApp {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
href: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
icon?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface KuatHeaderAppSwitcherLabels {
|
|
18
|
+
trigger?: string;
|
|
19
|
+
nav?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
teaserTitle?: string;
|
|
22
|
+
teaserDescription?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface KuatHeaderAppSwitcherConfig {
|
|
25
|
+
apps: KuatHeaderApp[];
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
empty?: KuatHeaderAppSwitcherEmpty;
|
|
28
|
+
emptyMessage?: string;
|
|
29
|
+
linkTarget?: React.HTMLAttributeAnchorTarget;
|
|
30
|
+
labels?: KuatHeaderAppSwitcherLabels;
|
|
31
|
+
onOpen?: () => void;
|
|
32
|
+
onSelect?: (app: KuatHeaderApp) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface KuatHeaderAccountItem {
|
|
35
|
+
label: string;
|
|
36
|
+
href: string;
|
|
37
|
+
icon?: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export interface KuatHeaderAccountMobileTier {
|
|
40
|
+
heading: string;
|
|
41
|
+
subtitle?: string;
|
|
42
|
+
items: KuatHeaderAccountItem[];
|
|
43
|
+
}
|
|
44
|
+
export interface KuatHeaderAccountLabels {
|
|
45
|
+
teaserTitle?: string;
|
|
46
|
+
teaserDescription?: string;
|
|
47
|
+
nav?: string;
|
|
48
|
+
title?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface KuatHeaderAccountConfig {
|
|
51
|
+
items: KuatHeaderAccountItem[];
|
|
52
|
+
mobile?: KuatHeaderAccountMobileTier;
|
|
53
|
+
labels?: KuatHeaderAccountLabels;
|
|
54
|
+
}
|
|
55
|
+
export interface KuatHeaderLockupConfig {
|
|
56
|
+
variant: KuatHeaderLockupVariant;
|
|
57
|
+
}
|
|
58
|
+
export interface KuatHeaderSubItem {
|
|
59
|
+
label: string;
|
|
60
|
+
url: string;
|
|
61
|
+
}
|
|
62
|
+
export interface KuatHeaderNavItem extends KuatHeaderSubItem {
|
|
63
|
+
items?: KuatHeaderSubItem[];
|
|
64
|
+
}
|
|
65
|
+
/** @deprecated Use `KuatHeaderAccountItem` with `href`. */
|
|
66
|
+
export interface KuatHeaderActionItem {
|
|
67
|
+
label: string;
|
|
68
|
+
url: string;
|
|
69
|
+
icon?: React.ReactNode;
|
|
70
|
+
items?: KuatHeaderSubItem[];
|
|
71
|
+
}
|
|
72
|
+
export interface KuatHeaderProps extends React.HTMLAttributes<HTMLElement> {
|
|
73
|
+
variant?: KuatHeaderVariant;
|
|
74
|
+
title?: string;
|
|
75
|
+
/** Custom logo node. `null` hides logo. Built-in EE logo only when `lockup` is set. */
|
|
76
|
+
logo?: React.ReactNode | null;
|
|
77
|
+
lockup?: KuatHeaderLockupConfig;
|
|
78
|
+
navigation?: React.ReactNode | KuatHeaderNavItem[];
|
|
79
|
+
/** Structured account chrome (desktop links + optional mobile tier). */
|
|
80
|
+
account?: KuatHeaderAccountConfig;
|
|
81
|
+
/** Custom account / actions markup (escape hatch). */
|
|
82
|
+
accountMarkup?: React.ReactNode;
|
|
83
|
+
appSwitcher?: KuatHeaderAppSwitcherConfig;
|
|
84
|
+
mobileMenuTrigger?: React.ReactNode;
|
|
85
|
+
mobileMenu?: React.ReactNode;
|
|
86
|
+
mobileMenuAriaLabel?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface EELogoProps {
|
|
89
|
+
className?: string;
|
|
90
|
+
textColor?: EELogoTextColor;
|
|
91
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const KUAT_LOGO_LOCKUP_USE: readonly ["service", "demo"];
|
|
3
|
+
export type KuatLogoLockupUse = (typeof KUAT_LOGO_LOCKUP_USE)[number];
|
|
4
|
+
export declare const KUAT_LOGO_LOCKUP_MODE: readonly ["light", "dark"];
|
|
5
|
+
export type KuatLogoLockupMode = (typeof KUAT_LOGO_LOCKUP_MODE)[number];
|
|
6
|
+
export interface KuatLogoLockupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** Service name (Service use) or primary title (Demo use) */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Service: logo first + name. Demo: title primary, "A demo by" + small logo. */
|
|
10
|
+
use?: KuatLogoLockupUse;
|
|
11
|
+
/** Visual theme */
|
|
12
|
+
mode?: KuatLogoLockupMode;
|
|
13
|
+
/** When true, force dark styling (e.g. on dark background) */
|
|
14
|
+
forceDark?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const KuatLogoLockup: React.ForwardRefExoticComponent<KuatLogoLockupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export { KuatLogoLockup };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const KUAT_RADIAL_PROGRESS_SIZES: readonly ["mini", "small", "medium", "large"];
|
|
3
|
+
export declare const KUAT_RADIAL_PROGRESS_COLORS: readonly ["default", "primary", "ee-blue", "tech-blue", "transform-teal", "equal-ember"];
|
|
4
|
+
export type KuatRadialProgressSize = (typeof KUAT_RADIAL_PROGRESS_SIZES)[number];
|
|
5
|
+
export type KuatRadialProgressColor = (typeof KUAT_RADIAL_PROGRESS_COLORS)[number];
|
|
6
|
+
export interface KuatRadialProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
|
|
7
|
+
/** Value from 0 to 100 */
|
|
8
|
+
value: number;
|
|
9
|
+
/** Bar colour from Kuat palette; default uses semantic foreground-bar token */
|
|
10
|
+
color?: KuatRadialProgressColor;
|
|
11
|
+
size?: KuatRadialProgressSize;
|
|
12
|
+
/** When true, animate from 0 to value on mount */
|
|
13
|
+
animate?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const KuatRadialProgress: React.ForwardRefExoticComponent<KuatRadialProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export { KuatRadialProgress };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { RadioGroup, RadioGroupItem } from './radio';
|
|
2
|
+
export type { RadioGroupProps, RadioGroupItemProps } from './radio';
|
|
3
|
+
export { RadioField, RADIO_FIELD_APPEARANCES, RADIO_FIELD_LAYOUTS, } from './radio-field';
|
|
4
|
+
export type { RadioFieldAppearance, RadioFieldLayout, RadioFieldProps, } from './radio-field';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RadioGroupItem } from './radio';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const RADIO_FIELD_APPEARANCES: readonly ["plain", "card"];
|
|
4
|
+
export type RadioFieldAppearance = (typeof RADIO_FIELD_APPEARANCES)[number];
|
|
5
|
+
export declare const RADIO_FIELD_LAYOUTS: readonly ["inline", "block"];
|
|
6
|
+
export type RadioFieldLayout = (typeof RADIO_FIELD_LAYOUTS)[number];
|
|
7
|
+
/** @deprecated Prefer composing `Field` + `RadioGroupItem` for new form layouts. */
|
|
8
|
+
export interface RadioFieldProps extends Omit<React.ComponentPropsWithoutRef<typeof RadioGroupItem>, "id" | "children"> {
|
|
9
|
+
/** Primary label (always shown). */
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
/** Optional secondary line (12px muted); works for both plain and card. */
|
|
12
|
+
secondaryText?: React.ReactNode;
|
|
13
|
+
/** `plain` — no border/padding; `card` — bordered padded container (Figma Rich). */
|
|
14
|
+
appearance?: RadioFieldAppearance;
|
|
15
|
+
/** `inline` — compact label; `block` — label row can grow (Figma Radio Group). */
|
|
16
|
+
layout?: RadioFieldLayout;
|
|
17
|
+
/** Place radio on the right of the text block. */
|
|
18
|
+
flipped?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
/** Required — must match a unique option in the parent `RadioGroup`. */
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
/** @deprecated Prefer composing `Field` + `RadioGroupItem` for new form layouts. */
|
|
24
|
+
declare const RadioField: React.ForwardRefExoticComponent<RadioFieldProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export { RadioField };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroup>;
|
|
6
|
+
export type RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupItem>;
|
|
7
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export declare const SELECT_SIZES: readonly ["regular", "large", "small", "mini"];
|
|
3
|
+
export type SelectSize = (typeof SELECT_SIZES)[number];
|
|
4
|
+
export declare const SELECT_LINES: readonly ["single", "double"];
|
|
5
|
+
export type SelectLines = (typeof SELECT_LINES)[number];
|
|
6
|
+
export interface SelectItemOption {
|
|
7
|
+
value: string;
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
prepend?: React.ReactNode;
|
|
12
|
+
decoration?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface SelectItemGroup {
|
|
15
|
+
label: React.ReactNode;
|
|
16
|
+
items: SelectItemOption[];
|
|
17
|
+
}
|
|
18
|
+
export type SelectItems = Array<SelectItemOption | SelectItemGroup>;
|
|
19
|
+
export declare function isSelectItemGroup(item: SelectItemOption | SelectItemGroup): item is SelectItemGroup;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { KuatSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SELECT_LINES, SELECT_SIZES, } from './select';
|
|
2
|
+
export type { KuatSelectProps, SelectContentProps, SelectItemProps, SelectLabelProps, SelectProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps, } from './select';
|
|
3
|
+
export type { SelectItemGroup, SelectItemOption, SelectItems, SelectLines, SelectSize, } from './constants';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SELECT_LINES, SELECT_SIZES, SelectItems, SelectLines, SelectSize } from './constants';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
4
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
9
|
+
size?: SelectSize;
|
|
10
|
+
lines?: SelectLines;
|
|
11
|
+
label?: React.ReactNode;
|
|
12
|
+
prepend?: React.ReactNode;
|
|
13
|
+
decoration?: React.ReactNode;
|
|
14
|
+
invalid?: boolean;
|
|
15
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
19
|
+
size?: SelectSize;
|
|
20
|
+
maxHeight?: number | string;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
|
|
24
|
+
prepend?: React.ReactNode;
|
|
25
|
+
description?: React.ReactNode;
|
|
26
|
+
decoration?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export interface KuatSelectProps extends Omit<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, "children"> {
|
|
30
|
+
items?: SelectItems;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
size?: SelectSize;
|
|
33
|
+
lines?: SelectLines;
|
|
34
|
+
prepend?: React.ReactNode;
|
|
35
|
+
decoration?: React.ReactNode;
|
|
36
|
+
label?: React.ReactNode;
|
|
37
|
+
invalid?: boolean;
|
|
38
|
+
position?: React.ComponentPropsWithoutRef<typeof SelectContent>["position"];
|
|
39
|
+
maxHeight?: number | string;
|
|
40
|
+
triggerClassName?: string;
|
|
41
|
+
contentClassName?: string;
|
|
42
|
+
emptyText?: React.ReactNode;
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
triggerProps?: Omit<React.ComponentPropsWithoutRef<typeof SelectTrigger>, "children" | "size" | "lines" | "label" | "prepend" | "decoration" | "invalid">;
|
|
45
|
+
}
|
|
46
|
+
declare function KuatSelect({ items, placeholder, size, lines, prepend, decoration, label, invalid, position, maxHeight, triggerClassName, contentClassName, emptyText, children, triggerProps, ...rootProps }: KuatSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export type SelectProps = React.ComponentPropsWithoutRef<typeof Select>;
|
|
48
|
+
export type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectTrigger>;
|
|
49
|
+
export type SelectContentProps = React.ComponentPropsWithoutRef<typeof SelectContent>;
|
|
50
|
+
export type SelectLabelProps = React.ComponentPropsWithoutRef<typeof SelectLabel>;
|
|
51
|
+
export type SelectSeparatorProps = React.ComponentPropsWithoutRef<typeof SelectSeparator>;
|
|
52
|
+
export type SelectValueProps = React.ComponentPropsWithoutRef<typeof SelectValue>;
|
|
53
|
+
export { KuatSelect, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SELECT_LINES, SELECT_SIZES, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
export declare const SEPARATOR_ORIENTATIONS: readonly ["horizontal", "vertical"];
|
|
4
|
+
export type SeparatorOrientation = (typeof SEPARATOR_ORIENTATIONS)[number];
|
|
5
|
+
export interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
6
|
+
orientation?: SeparatorOrientation;
|
|
7
|
+
}
|
|
8
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Separator };
|