@liketysplit/react-luna 0.1.3 → 0.1.5

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.
Files changed (50) hide show
  1. package/dist/components/index.d.ts +14 -0
  2. package/dist/components/layout-shared.d.ts +18 -0
  3. package/dist/components/luna-autocomplete/LunaAutocomplete.d.ts +16 -0
  4. package/dist/components/luna-autocomplete/LunaAutocomplete.props.d.ts +19 -0
  5. package/dist/components/luna-autocomplete/index.d.ts +2 -0
  6. package/dist/components/luna-card/LunaCard.d.ts +18 -0
  7. package/dist/components/luna-card/LunaCard.props.d.ts +18 -0
  8. package/dist/components/luna-card/index.d.ts +2 -0
  9. package/dist/components/luna-checkbox/LunaCheckbox.d.ts +9 -0
  10. package/dist/components/luna-checkbox/LunaCheckbox.props.d.ts +8 -0
  11. package/dist/components/luna-checkbox/index.d.ts +2 -0
  12. package/dist/components/luna-column/LunaColumn.d.ts +10 -0
  13. package/dist/components/luna-column/LunaColumn.props.d.ts +10 -0
  14. package/dist/components/luna-column/index.d.ts +2 -0
  15. package/dist/components/luna-divider/LunaDivider.d.ts +13 -0
  16. package/dist/components/luna-divider/LunaDivider.props.d.ts +16 -0
  17. package/dist/components/luna-divider/index.d.ts +2 -0
  18. package/dist/components/luna-grid/LunaGrid.d.ts +11 -0
  19. package/dist/components/luna-grid/LunaGrid.props.d.ts +11 -0
  20. package/dist/components/luna-grid/index.d.ts +2 -0
  21. package/dist/components/luna-header/LunaHeader.d.ts +10 -0
  22. package/dist/components/luna-header/LunaHeader.props.d.ts +11 -0
  23. package/dist/components/luna-header/index.d.ts +2 -0
  24. package/dist/components/luna-input/LunaInput.d.ts +12 -0
  25. package/dist/components/luna-input/LunaInput.props.d.ts +11 -0
  26. package/dist/components/luna-input/index.d.ts +2 -0
  27. package/dist/components/luna-multiselect/LunaMultiselect.d.ts +16 -0
  28. package/dist/components/luna-multiselect/LunaMultiselect.props.d.ts +19 -0
  29. package/dist/components/luna-multiselect/index.d.ts +2 -0
  30. package/dist/components/luna-radio/LunaRadio.d.ts +8 -0
  31. package/dist/components/luna-radio/LunaRadio.props.d.ts +7 -0
  32. package/dist/components/luna-radio/index.d.ts +2 -0
  33. package/dist/components/luna-row/LunaRow.d.ts +11 -0
  34. package/dist/components/luna-row/LunaRow.props.d.ts +11 -0
  35. package/dist/components/luna-row/index.d.ts +2 -0
  36. package/dist/components/luna-select/LunaSelect.d.ts +13 -0
  37. package/dist/components/luna-select/LunaSelect.props.d.ts +16 -0
  38. package/dist/components/luna-select/index.d.ts +2 -0
  39. package/dist/components/luna-text/LunaText.d.ts +15 -0
  40. package/dist/components/luna-text/LunaText.props.d.ts +16 -0
  41. package/dist/components/luna-text/index.d.ts +2 -0
  42. package/dist/components/luna-textarea/LunaTextarea.d.ts +16 -0
  43. package/dist/components/luna-textarea/LunaTextarea.props.d.ts +15 -0
  44. package/dist/components/luna-textarea/index.d.ts +2 -0
  45. package/dist/components/useParentBackgroundVar.d.ts +2 -0
  46. package/dist/index.js +2501 -560
  47. package/dist/style.css +1 -1
  48. package/dist/theme/base.test.d.ts +1 -0
  49. package/dist/theme/types.d.ts +101 -0
  50. package/package.json +1 -1
@@ -1 +1,15 @@
1
1
  export * from "./luna-button";
2
+ export * from "./luna-card";
3
+ export * from "./luna-checkbox";
4
+ export * from "./luna-radio";
5
+ export * from "./luna-divider";
6
+ export * from "./luna-header";
7
+ export * from "./luna-input";
8
+ export * from "./luna-textarea";
9
+ export * from "./luna-select";
10
+ export * from "./luna-multiselect";
11
+ export * from "./luna-autocomplete";
12
+ export * from "./luna-text";
13
+ export * from "./luna-row";
14
+ export * from "./luna-column";
15
+ export * from "./luna-grid";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { useTheme } from "../theme";
3
+ export type LunaLayoutBreakpoint = "xs" | "sm" | "md" | "lg" | "xl";
4
+ export type LunaLayoutAlias = "mobile" | "tablet" | "desktop";
5
+ export type LunaLayoutSpanValue = number | "auto";
6
+ export type LunaLayoutResponsiveSpan = Partial<Record<LunaLayoutBreakpoint | LunaLayoutAlias, LunaLayoutSpanValue>>;
7
+ export type LunaLayoutSpan = LunaLayoutSpanValue | LunaLayoutResponsiveSpan | undefined;
8
+ export type LunaLayoutAlign = "start" | "center" | "end" | "stretch" | "baseline";
9
+ export type LunaLayoutJustify = "start" | "center" | "end" | "between" | "around" | "evenly";
10
+ export declare function toClassName(parts: Array<string | false | null | undefined>): string;
11
+ export declare function normalizeGap(value: string | undefined, theme: ReturnType<typeof useTheme>["theme"]): string | undefined;
12
+ export declare function normalizeLayoutSpan(span: LunaLayoutSpan): Record<LunaLayoutBreakpoint, LunaLayoutSpanValue>;
13
+ export declare function getChildSpan(child: React.ReactNode, defaultSpan?: LunaLayoutSpanValue): LunaLayoutSpan;
14
+ export declare function stripLayoutChildProps(child: React.ReactNode): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined;
15
+ export declare function buildSpanStyle(span: LunaLayoutSpan): React.CSSProperties;
16
+ export declare function mapAlign(value: LunaLayoutAlign | undefined): string | undefined;
17
+ export declare function mapJustify(value: LunaLayoutJustify | undefined): string | undefined;
18
+ export declare function wrapLayoutChildren(children: React.ReactNode, itemClassName: string, defaultSpan?: LunaLayoutSpanValue): import("react/jsx-runtime").JSX.Element[] | null | undefined;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { LunaAutocompleteOption } from "./LunaAutocomplete.props";
3
+ import "./LunaAutocomplete.css";
4
+ export declare const LunaAutocomplete: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "size" | "defaultValue" | "onChange"> & {
5
+ label?: React.ReactNode;
6
+ externalLabel?: boolean;
7
+ helpText?: React.ReactNode;
8
+ error?: React.ReactNode;
9
+ inputSize?: "sm" | "md" | "lg";
10
+ fullWidth?: boolean;
11
+ options: LunaAutocompleteOption[];
12
+ value?: string;
13
+ defaultValue?: string;
14
+ onChange?: (value: string) => void;
15
+ noResultsText?: React.ReactNode;
16
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,19 @@
1
+ import type React from "react";
2
+ export type LunaAutocompleteOption = {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ };
7
+ export type LunaAutocompleteProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange"> & {
8
+ label?: React.ReactNode;
9
+ externalLabel?: boolean;
10
+ helpText?: React.ReactNode;
11
+ error?: React.ReactNode;
12
+ inputSize?: "sm" | "md" | "lg";
13
+ fullWidth?: boolean;
14
+ options: LunaAutocompleteOption[];
15
+ value?: string;
16
+ defaultValue?: string;
17
+ onChange?: (value: string) => void;
18
+ noResultsText?: React.ReactNode;
19
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaAutocomplete";
2
+ export * from "./LunaAutocomplete.props";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import "./LunaCard.css";
3
+ export declare const LunaCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title" | "color"> & {
4
+ as?: React.ElementType;
5
+ header?: React.ReactNode;
6
+ actions?: React.ReactNode;
7
+ bodyAlign?: import("./LunaCard.props").LunaCardAlign;
8
+ actionsAlign?: import("./LunaCard.props").LunaCardAlign;
9
+ actionsGap?: string;
10
+ color?: string;
11
+ elevated?: boolean;
12
+ outlined?: boolean;
13
+ flat?: boolean;
14
+ interactive?: boolean;
15
+ rounded?: boolean;
16
+ padding?: string;
17
+ gap?: string;
18
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,18 @@
1
+ import type React from "react";
2
+ export type LunaCardAlign = "left" | "center" | "right";
3
+ export type LunaCardProps = Omit<React.HTMLAttributes<HTMLElement>, "title" | "color"> & {
4
+ as?: React.ElementType;
5
+ header?: React.ReactNode;
6
+ actions?: React.ReactNode;
7
+ bodyAlign?: LunaCardAlign;
8
+ actionsAlign?: LunaCardAlign;
9
+ actionsGap?: string;
10
+ color?: string;
11
+ elevated?: boolean;
12
+ outlined?: boolean;
13
+ flat?: boolean;
14
+ interactive?: boolean;
15
+ rounded?: boolean;
16
+ padding?: string;
17
+ gap?: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaCard";
2
+ export * from "./LunaCard.props";
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./LunaCheckbox.css";
3
+ export declare const LunaCheckbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
4
+ label?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ helpText?: React.ReactNode;
7
+ error?: React.ReactNode;
8
+ indeterminate?: boolean;
9
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,8 @@
1
+ import type React from "react";
2
+ export type LunaCheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
3
+ label?: React.ReactNode;
4
+ description?: React.ReactNode;
5
+ helpText?: React.ReactNode;
6
+ error?: React.ReactNode;
7
+ indeterminate?: boolean;
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaCheckbox";
2
+ export * from "./LunaCheckbox.props";
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./LunaColumn.css";
3
+ export declare const LunaColumn: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ align?: import("../layout-shared").LunaLayoutAlign;
7
+ justify?: import("../layout-shared").LunaLayoutJustify;
8
+ inline?: boolean;
9
+ colSpan?: import("../layout-shared").LunaLayoutSpan;
10
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,10 @@
1
+ import type React from "react";
2
+ import type { LunaLayoutAlign, LunaLayoutJustify, LunaLayoutSpan } from "../layout-shared";
3
+ export type LunaColumnProps = React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ align?: LunaLayoutAlign;
7
+ justify?: LunaLayoutJustify;
8
+ inline?: boolean;
9
+ colSpan?: LunaLayoutSpan;
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaColumn";
2
+ export * from "./LunaColumn.props";
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./LunaDivider.css";
3
+ export declare const LunaDivider: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "color"> & {
4
+ as?: React.ElementType;
5
+ colSpan?: import("../layout-shared").LunaLayoutSpan;
6
+ orientation?: import("./LunaDivider.props").LunaDividerOrientation;
7
+ tone?: import("./LunaDivider.props").LunaDividerTone;
8
+ inset?: boolean | string;
9
+ label?: React.ReactNode;
10
+ labelAlign?: import("./LunaDivider.props").LunaDividerLabelAlign;
11
+ spacing?: string;
12
+ decorative?: boolean;
13
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ import type { LunaLayoutSpan } from "../layout-shared";
3
+ export type LunaDividerOrientation = "horizontal" | "vertical";
4
+ export type LunaDividerTone = "default" | "muted" | "strong";
5
+ export type LunaDividerLabelAlign = "start" | "center" | "end";
6
+ export type LunaDividerProps = Omit<React.HTMLAttributes<HTMLElement>, "color"> & {
7
+ as?: React.ElementType;
8
+ colSpan?: LunaLayoutSpan;
9
+ orientation?: LunaDividerOrientation;
10
+ tone?: LunaDividerTone;
11
+ inset?: boolean | string;
12
+ label?: React.ReactNode;
13
+ labelAlign?: LunaDividerLabelAlign;
14
+ spacing?: string;
15
+ decorative?: boolean;
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaDivider";
2
+ export * from "./LunaDivider.props";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./LunaGrid.css";
3
+ export declare const LunaGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ columns?: number;
7
+ inline?: boolean;
8
+ align?: import("../layout-shared").LunaLayoutAlign;
9
+ justify?: import("../layout-shared").LunaLayoutJustify;
10
+ colSpan?: import("../layout-shared").LunaLayoutSpan;
11
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,11 @@
1
+ import type React from "react";
2
+ import type { LunaLayoutAlign, LunaLayoutJustify, LunaLayoutSpan } from "../layout-shared";
3
+ export type LunaGridProps = React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ columns?: number;
7
+ inline?: boolean;
8
+ align?: LunaLayoutAlign;
9
+ justify?: LunaLayoutJustify;
10
+ colSpan?: LunaLayoutSpan;
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaGrid";
2
+ export * from "./LunaGrid.props";
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./LunaHeader.css";
3
+ export declare const LunaHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ title?: React.ReactNode;
6
+ subtitle?: React.ReactNode;
7
+ align?: import("./LunaHeader.props").LunaHeaderAlign;
8
+ size?: import("./LunaHeader.props").LunaHeaderSize;
9
+ gap?: string;
10
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,11 @@
1
+ import type React from "react";
2
+ export type LunaHeaderAlign = "left" | "center" | "right";
3
+ export type LunaHeaderSize = "sm" | "md" | "lg";
4
+ export type LunaHeaderProps = React.HTMLAttributes<HTMLElement> & {
5
+ as?: React.ElementType;
6
+ title?: React.ReactNode;
7
+ subtitle?: React.ReactNode;
8
+ align?: LunaHeaderAlign;
9
+ size?: LunaHeaderSize;
10
+ gap?: string;
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaHeader";
2
+ export * from "./LunaHeader.props";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./LunaInput.css";
3
+ export declare const LunaInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
4
+ label?: React.ReactNode;
5
+ externalLabel?: boolean;
6
+ helpText?: React.ReactNode;
7
+ error?: React.ReactNode;
8
+ leading?: React.ReactNode;
9
+ trailing?: React.ReactNode;
10
+ inputSize?: "sm" | "md" | "lg";
11
+ fullWidth?: boolean;
12
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,11 @@
1
+ import type React from "react";
2
+ export type LunaInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
3
+ label?: React.ReactNode;
4
+ externalLabel?: boolean;
5
+ helpText?: React.ReactNode;
6
+ error?: React.ReactNode;
7
+ leading?: React.ReactNode;
8
+ trailing?: React.ReactNode;
9
+ inputSize?: "sm" | "md" | "lg";
10
+ fullWidth?: boolean;
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaInput";
2
+ export * from "./LunaInput.props";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { LunaMultiselectOption } from "./LunaMultiselect.props";
3
+ import "./LunaMultiselect.css";
4
+ export declare const LunaMultiselect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "value" | "size" | "multiple" | "defaultValue" | "onChange"> & {
5
+ label?: React.ReactNode;
6
+ externalLabel?: boolean;
7
+ helpText?: React.ReactNode;
8
+ error?: React.ReactNode;
9
+ inputSize?: "sm" | "md" | "lg";
10
+ fullWidth?: boolean;
11
+ options: LunaMultiselectOption[];
12
+ placeholder?: string;
13
+ value?: string[];
14
+ defaultValue?: string[];
15
+ onChange?: (value: string[]) => void;
16
+ } & React.RefAttributes<HTMLSelectElement>>;
@@ -0,0 +1,19 @@
1
+ import type React from "react";
2
+ export type LunaMultiselectOption = {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ };
7
+ export type LunaMultiselectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size" | "multiple" | "value" | "defaultValue" | "onChange"> & {
8
+ label?: React.ReactNode;
9
+ externalLabel?: boolean;
10
+ helpText?: React.ReactNode;
11
+ error?: React.ReactNode;
12
+ inputSize?: "sm" | "md" | "lg";
13
+ fullWidth?: boolean;
14
+ options: LunaMultiselectOption[];
15
+ placeholder?: string;
16
+ value?: string[];
17
+ defaultValue?: string[];
18
+ onChange?: (value: string[]) => void;
19
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaMultiselect";
2
+ export * from "./LunaMultiselect.props";
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./LunaRadio.css";
3
+ export declare const LunaRadio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
4
+ label?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ helpText?: React.ReactNode;
7
+ error?: React.ReactNode;
8
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,7 @@
1
+ import type React from "react";
2
+ export type LunaRadioProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
3
+ label?: React.ReactNode;
4
+ description?: React.ReactNode;
5
+ helpText?: React.ReactNode;
6
+ error?: React.ReactNode;
7
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaRadio";
2
+ export type { LunaRadioProps } from "./LunaRadio.props";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./LunaRow.css";
3
+ export declare const LunaRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ align?: import("../layout-shared").LunaLayoutAlign;
7
+ justify?: import("../layout-shared").LunaLayoutJustify;
8
+ wrap?: boolean;
9
+ inline?: boolean;
10
+ colSpan?: import("../layout-shared").LunaLayoutSpan;
11
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,11 @@
1
+ import type React from "react";
2
+ import type { LunaLayoutAlign, LunaLayoutJustify, LunaLayoutSpan } from "../layout-shared";
3
+ export type LunaRowProps = React.HTMLAttributes<HTMLElement> & {
4
+ as?: React.ElementType;
5
+ gap?: string;
6
+ align?: LunaLayoutAlign;
7
+ justify?: LunaLayoutJustify;
8
+ wrap?: boolean;
9
+ inline?: boolean;
10
+ colSpan?: LunaLayoutSpan;
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaRow";
2
+ export * from "./LunaRow.props";
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import type { LunaSelectOption } from "./LunaSelect.props";
3
+ import "./LunaSelect.css";
4
+ export declare const LunaSelect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & {
5
+ label?: React.ReactNode;
6
+ externalLabel?: boolean;
7
+ helpText?: React.ReactNode;
8
+ error?: React.ReactNode;
9
+ inputSize?: "sm" | "md" | "lg";
10
+ fullWidth?: boolean;
11
+ options: LunaSelectOption[];
12
+ placeholder?: string;
13
+ } & React.RefAttributes<HTMLSelectElement>>;
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ export type LunaSelectOption = {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ };
7
+ export type LunaSelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> & {
8
+ label?: React.ReactNode;
9
+ externalLabel?: boolean;
10
+ helpText?: React.ReactNode;
11
+ error?: React.ReactNode;
12
+ inputSize?: "sm" | "md" | "lg";
13
+ fullWidth?: boolean;
14
+ options: LunaSelectOption[];
15
+ placeholder?: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaSelect";
2
+ export * from "./LunaSelect.props";
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import "./LunaText.css";
3
+ export declare const LunaText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
4
+ as?: import("./LunaText.props").LunaTextAs;
5
+ variant?: string;
6
+ color?: string;
7
+ muted?: boolean;
8
+ truncate?: boolean;
9
+ surface?: boolean;
10
+ inline?: boolean;
11
+ align?: import("./LunaText.props").LunaTextAlign;
12
+ weight?: string | number;
13
+ italic?: boolean;
14
+ underline?: boolean;
15
+ } & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ export type LunaTextAlign = "left" | "center" | "right" | "justify";
3
+ export type LunaTextAs = React.ElementType;
4
+ export type LunaTextProps = React.HTMLAttributes<HTMLElement> & {
5
+ as?: LunaTextAs;
6
+ variant?: string;
7
+ color?: string;
8
+ muted?: boolean;
9
+ truncate?: boolean;
10
+ surface?: boolean;
11
+ inline?: boolean;
12
+ align?: LunaTextAlign;
13
+ weight?: string | number;
14
+ italic?: boolean;
15
+ underline?: boolean;
16
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaText";
2
+ export * from "./LunaText.props";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import "./LunaTextarea.css";
3
+ export declare const LunaTextarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
4
+ label?: React.ReactNode;
5
+ externalLabel?: boolean;
6
+ helpText?: React.ReactNode;
7
+ error?: React.ReactNode;
8
+ inputSize?: "sm" | "md" | "lg";
9
+ fullWidth?: boolean;
10
+ resize?: "none" | "vertical" | "horizontal" | "both";
11
+ autoGrow?: boolean;
12
+ minRows?: number;
13
+ maxRows?: number;
14
+ minHeight?: string;
15
+ height?: string;
16
+ } & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,15 @@
1
+ import type React from "react";
2
+ export type LunaTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
3
+ label?: React.ReactNode;
4
+ externalLabel?: boolean;
5
+ helpText?: React.ReactNode;
6
+ error?: React.ReactNode;
7
+ inputSize?: "sm" | "md" | "lg";
8
+ fullWidth?: boolean;
9
+ resize?: "none" | "vertical" | "horizontal" | "both";
10
+ autoGrow?: boolean;
11
+ minRows?: number;
12
+ maxRows?: number;
13
+ minHeight?: string;
14
+ height?: string;
15
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LunaTextarea";
2
+ export * from "./LunaTextarea.props";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare function useParentBackgroundVar<T extends HTMLElement>(deps?: React.DependencyList): React.MutableRefObject<T | null>;