@moondreamsdev/dreamer-ui 1.6.6-test.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/package.json +2 -2
  2. package/dist/src/components/button/Button.d.ts +0 -10
  3. package/dist/src/components/button/LoadingDots.d.ts +0 -1
  4. package/dist/src/components/button/index.d.ts +0 -3
  5. package/dist/src/components/button/variants.d.ts +0 -34
  6. package/dist/src/components/checkbox/Checkbox.d.ts +0 -11
  7. package/dist/src/components/checkbox/hooks.d.ts +0 -1
  8. package/dist/src/components/checkbox/index.d.ts +0 -1
  9. package/dist/src/components/index.d.ts +0 -7
  10. package/dist/src/components/input/Input.d.ts +0 -11
  11. package/dist/src/components/input/index.d.ts +0 -1
  12. package/dist/src/components/input/variants.d.ts +0 -20
  13. package/dist/src/components/label/Label.d.ts +0 -9
  14. package/dist/src/components/label/index.d.ts +0 -1
  15. package/dist/src/components/radiogroup/RadioGroup.d.ts +0 -19
  16. package/dist/src/components/radiogroup/RadioGroupItem.d.ts +0 -12
  17. package/dist/src/components/radiogroup/RadioInput.d.ts +0 -9
  18. package/dist/src/components/radiogroup/hooks.d.ts +0 -1
  19. package/dist/src/components/radiogroup/index.d.ts +0 -3
  20. package/dist/src/components/slot/Slot.d.ts +0 -7
  21. package/dist/src/components/slot/index.d.ts +0 -1
  22. package/dist/src/components/textarea/CharacterCount.d.ts +0 -6
  23. package/dist/src/components/textarea/Textarea.d.ts +0 -14
  24. package/dist/src/components/textarea/hooks.d.ts +0 -1
  25. package/dist/src/components/textarea/index.d.ts +0 -1
  26. package/dist/src/components/textarea/variants.d.ts +0 -19
  27. package/dist/src/index.d.ts +0 -1
  28. package/dist/src/shared/forms/StatusHelpMessage.d.ts +0 -7
  29. package/dist/src/shared/forms/index.d.ts +0 -1
  30. package/dist/src/symbols/Check.d.ts +0 -4
  31. package/dist/src/symbols/CheckCircled.d.ts +0 -3
  32. package/dist/src/symbols/ExclamationTriangle.d.ts +0 -3
  33. package/dist/src/symbols/EyeClosed.d.ts +0 -3
  34. package/dist/src/symbols/EyeOpened.d.ts +0 -3
  35. package/dist/src/symbols/QuestionMarkCircled.d.ts +0 -4
  36. package/dist/src/symbols/index.d.ts +0 -6
  37. package/dist/src/test.d.ts +0 -1
  38. package/dist/src/utils/index.d.ts +0 -1
  39. package/dist/src/utils/join.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.6.6-test.6",
3
+ "version": "1.6.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "vite",
56
- "build": "npm run build:lib && npm run build:types && npm run build:setup",
56
+ "build": "npm run build:lib && npm run build:setup && npm run build:types",
57
57
  "build:lib": "vite build --config vite.config.lib.mts",
58
58
  "build:types": "tsc --project tsconfig.lib.json",
59
59
  "build:demo": "tsc -b && vite build",
@@ -1,10 +0,0 @@
1
- import { ButtonHTMLAttributes, Ref } from 'react';
2
- import { ButtonVariants } from './variants';
3
- interface ButtonProps extends Partial<ButtonVariants>, ButtonHTMLAttributes<HTMLButtonElement> {
4
- ref?: Ref<HTMLButtonElement>;
5
- loading?: boolean;
6
- linkTo?: string;
7
- linkProps?: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
8
- }
9
- export default function Button({ variant, size, rounded, loading, linkTo, linkProps, type, className, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- export default function LoadingDots(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export { default as Button } from './Button';
2
- export { default as ButtonLoadingDots } from './LoadingDots';
3
- export { type ButtonVariants, type ButtonSize, type ButtonRounded } from './variants';
@@ -1,34 +0,0 @@
1
- export declare const buttonVariants: {
2
- readonly base: "";
3
- readonly primary: "bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground";
4
- readonly secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80";
5
- readonly tertiary: "text-primary hover:text-primary-foreground disabled:text-muted";
6
- readonly outline: "border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted";
7
- readonly link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted";
8
- readonly danger: "bg-danger text-danger-foreground hover:bg-danger/85 disabled:bg-muted disabled:text-muted-foreground";
9
- };
10
- export type ButtonVariant = keyof typeof buttonVariants;
11
- export declare const sizeVariants: {
12
- readonly stripped: "";
13
- readonly fitted: "size-fit";
14
- readonly sm: "px-2 py-1 text-sm";
15
- readonly md: "px-4 py-2 text-base";
16
- readonly lg: "px-6 py-3 text-lg";
17
- readonly icon: "p-1 w-fit aspect-square";
18
- readonly full: "p-2 w-full";
19
- };
20
- export type ButtonSize = keyof typeof sizeVariants;
21
- export declare const roundedVariants: {
22
- readonly none: "rounded-none";
23
- readonly sm: "rounded-sm";
24
- readonly md: "rounded-md";
25
- readonly lg: "rounded-lg";
26
- readonly full: "rounded-full";
27
- };
28
- export type ButtonRounded = keyof typeof roundedVariants;
29
- export interface ButtonVariants {
30
- variant: ButtonVariant;
31
- size: ButtonSize;
32
- rounded: ButtonRounded;
33
- }
34
- export declare const buttonDefaults: ButtonVariants;
@@ -1,11 +0,0 @@
1
- import React, { Ref } from 'react';
2
- export interface CheckboxProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- ref?: Ref<HTMLButtonElement>;
4
- size?: number;
5
- color?: string;
6
- filled?: boolean;
7
- rounded?: boolean;
8
- checked?: boolean;
9
- onCheckedChange?: (checked: boolean) => void;
10
- }
11
- export default function Checkbox({ ref, id, size, color, filled, rounded, checked, onCheckedChange, disabled, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function useFilledBackgroundColor(id: string): string;
@@ -1 +0,0 @@
1
- export { default as Checkbox, type CheckboxProps } from './Checkbox';
@@ -1,7 +0,0 @@
1
- export * from './button';
2
- export * from './checkbox';
3
- export * from './input';
4
- export * from './label';
5
- export * from './slot';
6
- export * from './radiogroup';
7
- export * from './textarea';
@@ -1,11 +0,0 @@
1
- import { Ref } from 'react';
2
- import './styles.css';
3
- import { InputVariants } from './variants';
4
- interface InputProps extends Partial<InputVariants>, React.InputHTMLAttributes<HTMLInputElement> {
5
- ref?: Ref<HTMLInputElement>;
6
- displayOnlyMode?: boolean;
7
- errorMessage?: string;
8
- successMessage?: string;
9
- }
10
- export default function Input({ variant, rounded, displayOnlyMode, errorMessage, successMessage, type, className, ...rest }: InputProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1 +0,0 @@
1
- export { default as Input } from './Input';
@@ -1,20 +0,0 @@
1
- export declare const inputVariants: {
2
- readonly base: "";
3
- readonly default: "ring ring-transparent focus:ring-primary-foreground not-disabled:data-error:ring-danger not-disabled:data-success:ring-success";
4
- readonly underline: "border-b border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-danger not-disabled:data-success:border-success";
5
- readonly outline: "border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-danger not-disabled:data-success:border-success";
6
- };
7
- export type InputVariant = keyof typeof inputVariants;
8
- export declare const roundedVariants: {
9
- readonly none: "rounded-none";
10
- readonly sm: "rounded-sm";
11
- readonly md: "rounded-md";
12
- readonly lg: "rounded-lg";
13
- readonly full: "px-3 rounded-full";
14
- };
15
- export type InputRounded = keyof typeof roundedVariants;
16
- export interface InputVariants {
17
- variant: InputVariant;
18
- rounded: InputRounded;
19
- }
20
- export declare const inputDefaults: InputVariants;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
3
- display?: 'block' | 'inline';
4
- width?: React.CSSProperties['width'];
5
- required?: boolean;
6
- helpMessage?: string;
7
- suffix?: React.ReactNode;
8
- }
9
- export declare function Label({ display, width, className, required, helpMessage, suffix, htmlFor, children, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { Label, type LabelProps } from './Label';
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { RadioGroupItemProps } from './RadioGroupItem';
3
- export type RadioOption = {
4
- label: string;
5
- value: string;
6
- disabled?: boolean;
7
- description?: string;
8
- };
9
- export type RadioGroupProps = {
10
- options?: (string | RadioOption)[];
11
- value: string | undefined;
12
- onChange: (value: string) => void;
13
- name?: string;
14
- children?: React.ReactElement<RadioGroupItemProps>[] | React.ReactElement<RadioGroupItemProps>;
15
- className?: string;
16
- childrenClassName?: string;
17
- hideInputs?: boolean;
18
- };
19
- export declare function RadioGroup({ options, value, onChange, name, children, className, childrenClassName, hideInputs, }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- export interface RadioGroupItemProps {
2
- value: string;
3
- children: React.ReactNode;
4
- className?: string;
5
- isSelected?: boolean;
6
- onChange?: (value: string) => void;
7
- disabled?: boolean;
8
- name?: string;
9
- hideInput?: boolean;
10
- description?: string;
11
- }
12
- export declare function RadioGroupItem({ value, children, className, isSelected, onChange, disabled, hideInput, description, name, }: RadioGroupItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- export type RadioInputProps = {
2
- itemId: string;
3
- checked: boolean;
4
- onChange: () => void;
5
- name: string;
6
- disabled?: boolean;
7
- className?: string;
8
- };
9
- export declare function RadioInput({ itemId, checked, onChange, name, disabled, className }: RadioInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function useRadioFocus(id: string, selectedOptionIndex: number): void;
@@ -1,3 +0,0 @@
1
- export { RadioGroup, type RadioGroupProps, type RadioOption } from './RadioGroup';
2
- export { RadioGroupItem, type RadioGroupItemProps } from './RadioGroupItem';
3
- export { RadioInput, type RadioInputProps } from './RadioInput';
@@ -1,7 +0,0 @@
1
- import React, { HTMLAttributes, ReactNode, Ref } from 'react';
2
- interface SlotProps<T> extends HTMLAttributes<T> {
3
- children?: ReactNode;
4
- ref?: Ref<T>;
5
- }
6
- export declare function Slot<T = HTMLElement>({ children, ref, ...props }: SlotProps<T>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
7
- export {};
@@ -1 +0,0 @@
1
- export * from './Slot';
@@ -1,6 +0,0 @@
1
- interface CharacterCountProps {
2
- elementId: string;
3
- maxLength: number;
4
- }
5
- export default function CharacterCount({ elementId, maxLength }: CharacterCountProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,14 +0,0 @@
1
- import { Ref } from 'react';
2
- import './styles.css';
3
- import { TextareaVariants } from './variants';
4
- interface TextareaProps extends Partial<TextareaVariants>, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
5
- ref?: Ref<HTMLTextAreaElement>;
6
- displayOnlyMode?: boolean;
7
- errorMessage?: string;
8
- successMessage?: string;
9
- hideResizeHandle?: boolean;
10
- autoExpand?: boolean;
11
- characterLimit?: number;
12
- }
13
- export default function Textarea({ variant, rounded, displayOnlyMode, errorMessage, successMessage, hideResizeHandle, autoExpand, characterLimit, className, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1 +0,0 @@
1
- export declare function useAutoExpand(id: string, autoExpand: boolean): void;
@@ -1 +0,0 @@
1
- export { default as Textarea } from './Textarea';
@@ -1,19 +0,0 @@
1
- export declare const textareaVariants: {
2
- readonly base: "";
3
- readonly 'left-line': "border-l border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-danger not-disabled:data-success:border-success";
4
- readonly outline: "border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-danger not-disabled:data-success:border-success";
5
- };
6
- export type TextareaVariant = keyof typeof textareaVariants;
7
- export declare const roundedVariants: {
8
- readonly none: "rounded-none";
9
- readonly sm: "rounded-sm";
10
- readonly md: "rounded-md";
11
- readonly lg: "rounded-lg";
12
- readonly full: "px-3 rounded-full";
13
- };
14
- export type TextareaRounded = keyof typeof roundedVariants;
15
- export interface TextareaVariants {
16
- variant: TextareaVariant;
17
- rounded: TextareaRounded;
18
- }
19
- export declare const textareaDefaults: TextareaVariants;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- interface StatusHelpMessageProps {
2
- elementId: string;
3
- type: 'error' | 'success';
4
- message?: string;
5
- }
6
- export default function StatusHelpMessage({ elementId, type, message }: StatusHelpMessageProps): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
@@ -1 +0,0 @@
1
- export { default as StatusHelpMessage } from './StatusHelpMessage';
@@ -1,4 +0,0 @@
1
- export default function Check({ size, color }: {
2
- size?: number;
3
- color?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export default function CheckCircled({ size }: {
2
- size?: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export default function ExclamationTriangle({ size }: {
2
- size?: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export default function EyeClosed({ size }: {
2
- size?: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export default function EyeClosed({ size }: {
2
- size?: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export default function QuestionMarkCircled({ size, color }: {
2
- size?: number;
3
- color?: string;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export { default as Check } from './Check';
2
- export { default as CheckCircled } from './CheckCircled';
3
- export { default as ExclamationTriangle } from './ExclamationTriangle';
4
- export { default as EyeClosed } from './EyeClosed';
5
- export { default as EyeOpened } from './EyeOpened';
6
- export { default as QuestionMarkCircled } from './QuestionMarkCircled';
@@ -1 +0,0 @@
1
- export declare const hello = "world";
@@ -1 +0,0 @@
1
- export { join } from './join';
@@ -1,8 +0,0 @@
1
- /**
2
- * Joins an array of strings, filtering out any undefined or null values.
3
- * Primarily used to join class names.
4
- *
5
- * @param args - The strings to join.
6
- * @returns The joined string or `undefined` if no valid strings are provided.
7
- */
8
- export declare function join(...args: Array<string | boolean | undefined | null>): string | undefined;