@delightui/components 0.1.17 → 0.1.19

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/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as React$1 from 'react';
2
- import React__default, { HTMLAttributes, ReactNode, ImgHTMLAttributes, SyntheticEvent, MouseEvent, InputHTMLAttributes, Dispatch, SetStateAction, TextareaHTMLAttributes, CSSProperties, FormHTMLAttributes, Ref, LiHTMLAttributes, TdHTMLAttributes, TableHTMLAttributes } from 'react';
1
+ import React$1, { HTMLAttributes, ReactNode, ImgHTMLAttributes, SyntheticEvent, MouseEvent, InputHTMLAttributes, Dispatch, SetStateAction, TextareaHTMLAttributes, CSSProperties, FormHTMLAttributes, Ref, LiHTMLAttributes, TdHTMLAttributes, TableHTMLAttributes } from 'react';
3
2
  import { LinkProps } from 'react-router-dom';
4
3
  import { Offset } from 'react-overlays/usePopper';
5
4
  import { Plugin } from 'flatpickr/dist/types/options';
@@ -37,7 +36,7 @@ type ActionCardProps = HTMLAttributes<HTMLDivElement> & Omit<LinkProps, 'to'> &
37
36
  /**
38
37
  * ActionCard component definition.
39
38
  */
40
- declare const ActionCard: (props: ActionCardProps) => React__default.JSX.Element;
39
+ declare const ActionCard: (props: ActionCardProps) => React$1.JSX.Element;
41
40
 
42
41
  /**
43
42
  * Enum for different image fit options.
@@ -89,7 +88,7 @@ type ActionImageProps = ImageProps & {
89
88
  /**
90
89
  * ActionImage component definition.
91
90
  */
92
- declare const ActionImage: (props: ActionImageProps) => React__default.JSX.Element;
91
+ declare const ActionImage: (props: ActionImageProps) => React$1.JSX.Element;
93
92
 
94
93
  type ButtonAppearanceEnum = 'Default' | 'Inverse';
95
94
  type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
@@ -153,7 +152,7 @@ type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
153
152
  /**
154
153
  * Button component definition.
155
154
  */
156
- declare const Button: (props: ButtonProps) => React__default.JSX.Element;
155
+ declare const Button: (props: ButtonProps) => React$1.JSX.Element;
157
156
 
158
157
  type CardProps = {
159
158
  /**
@@ -169,7 +168,7 @@ type CardProps = {
169
168
  /**
170
169
  * Card component definition.
171
170
  */
172
- declare const Card: (props: CardProps) => React__default.JSX.Element;
171
+ declare const Card: (props: CardProps) => React$1.JSX.Element;
173
172
 
174
173
  type IconStyleEnum = 'Outlined' | 'Filled' | 'Round';
175
174
  type IconSizeEnum = 'Small' | 'Medium' | 'Large';
@@ -194,7 +193,7 @@ interface IconProps {
194
193
  className?: string;
195
194
  }
196
195
 
197
- declare const Icon: (props: IconProps) => React__default.JSX.Element | null;
196
+ declare const Icon: (props: IconProps) => React$1.JSX.Element | null;
198
197
 
199
198
  type IconButtonAppearanceEnum = 'Default' | 'Inverse';
200
199
  type IconButtonStyleEnum = 'Primary' | 'Secondary';
@@ -221,7 +220,7 @@ interface IconButtonProps extends Omit<ButtonProps, 'leadingIcon' | 'trailingIco
221
220
  size?: IconButtonSizeEnum;
222
221
  }
223
222
 
224
- declare const IconButton: (props: IconButtonProps) => React__default.JSX.Element;
223
+ declare const IconButton: (props: IconButtonProps) => React$1.JSX.Element;
225
224
 
226
225
  /**
227
226
  * Enum for different input types.
@@ -261,15 +260,15 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
261
260
  'component-variant'?: string;
262
261
  };
263
262
 
264
- declare const Input: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> & {
263
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> & {
265
264
  inputType?: InputTypeEnum;
266
265
  value?: string;
267
266
  onValueChanged?: (value: string) => void;
268
267
  invalid?: boolean;
269
- leadingIcon?: React__default.ReactNode;
270
- trailingIcon?: React__default.ReactNode;
268
+ leadingIcon?: React$1.ReactNode;
269
+ trailingIcon?: React$1.ReactNode;
271
270
  'component-variant'?: string;
272
- } & React__default.RefAttributes<HTMLInputElement>>;
271
+ } & React$1.RefAttributes<HTMLInputElement>>;
273
272
 
274
273
  /**
275
274
  * Enum for the alignment of the list.
@@ -350,13 +349,13 @@ type PasswordProps = Omit<InputProps, 'inputType' | 'trailingIcon'> & {
350
349
  hideTrailingIcon?: boolean;
351
350
  };
352
351
 
353
- declare const Password: (props: PasswordProps) => React__default.JSX.Element;
352
+ declare const Password: (props: PasswordProps) => React$1.JSX.Element;
354
353
 
355
354
  type SpinnerProps = {
356
355
  className?: string;
357
356
  };
358
357
 
359
- declare const Spinner: ({ className }: SpinnerProps) => React__default.JSX.Element;
358
+ declare const Spinner: ({ className }: SpinnerProps) => React$1.JSX.Element;
360
359
 
361
360
  declare const types: readonly ["Heading1", "Heading2", "Heading3", "Heading4", "Heading5", "Heading6", "BodyLarge", "BodyMedium", "BodySmall"];
362
361
  declare const weights: readonly ["Thin", "ExtraLight", "Light", "Regular", "Medium", "SemiBold", "Bold", "ExtraBold", "Black", "ExtraBlack", 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
@@ -436,7 +435,7 @@ interface TextProps {
436
435
  /**
437
436
  * Text component definition.
438
437
  */
439
- declare const Text: (props: TextProps) => React__default.JSX.Element;
438
+ declare const Text: (props: TextProps) => React$1.JSX.Element;
440
439
 
441
440
  type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'> & {
442
441
  /**
@@ -459,12 +458,12 @@ type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'>
459
458
  className?: string;
460
459
  };
461
460
 
462
- declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & {
461
+ declare const TextArea: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & {
463
462
  value?: string;
464
463
  onValueChanged?: (value: string) => void;
465
464
  invalid?: boolean;
466
465
  className?: string;
467
- } & React__default.RefAttributes<HTMLTextAreaElement>>;
466
+ } & React$1.RefAttributes<HTMLTextAreaElement>>;
468
467
 
469
468
  /**
470
469
  * Enum for the alignment of the button-group.
@@ -498,7 +497,7 @@ type ButtonGroupProps = {
498
497
  /**
499
498
  * ButtonGroup component definition.
500
499
  */
501
- declare const ButtonGroup: (props: ButtonGroupProps) => React__default.JSX.Element;
500
+ declare const ButtonGroup: (props: ButtonGroupProps) => React$1.JSX.Element;
502
501
 
503
502
  /**
504
503
  * Enum for the action type of the Popover.
@@ -526,7 +525,7 @@ type PopoverProps = {
526
525
  /**
527
526
  * Ref or Element for the Popover component to render in.
528
527
  */
529
- container?: HTMLElement | React__default.RefObject<HTMLElement> | null;
528
+ container?: HTMLElement | React$1.RefObject<HTMLElement> | null;
530
529
  /**
531
530
  * The content to display in the Popover.
532
531
  */
@@ -612,11 +611,11 @@ type ContextMenuProps = HTMLAttributes<HTMLUListElement> & {
612
611
  /**
613
612
  * The content to be rendered inside the context menu.
614
613
  */
615
- children: React__default.ReactNode;
614
+ children: React$1.ReactNode;
616
615
  /**
617
616
  * The element that triggers the display of the context menu.
618
617
  */
619
- target: React__default.ReactNode;
618
+ target: React$1.ReactNode;
620
619
  /**
621
620
  * Alignment of the menu relative to its target.
622
621
  * @default 'Center'
@@ -669,7 +668,7 @@ type ContextMenuProps = HTMLAttributes<HTMLUListElement> & {
669
668
  /**
670
669
  * ContextMenu component that renders a popover menu.
671
670
  */
672
- declare const ContextMenu: (props: ContextMenuProps) => React__default.JSX.Element;
671
+ declare const ContextMenu: (props: ContextMenuProps) => React$1.JSX.Element;
673
672
 
674
673
  /**
675
674
  * Props for the MenuItem component.
@@ -700,7 +699,7 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
700
699
  *
701
700
  * Renders a menu item (`<li>`) with optional disabled and selected states.
702
701
  */
703
- declare const MenuItem: (props: MenuItemProps) => React__default.JSX.Element;
702
+ declare const MenuItem: (props: MenuItemProps) => React$1.JSX.Element;
704
703
 
705
704
  type DatePickerPosition = 'auto' | 'above' | 'below' | 'auto left' | 'auto center' | 'auto right' | 'above left' | 'above center' | 'above right' | 'below left' | 'below center' | 'below right';
706
705
  type DatePickerProps = {
@@ -805,7 +804,7 @@ type CustomTimePickerConfig = {
805
804
  container?: HTMLElement | null;
806
805
  };
807
806
 
808
- declare const DatePicker: (props: DatePickerProps) => React__default.JSX.Element;
807
+ declare const DatePicker: (props: DatePickerProps) => React$1.JSX.Element;
809
808
 
810
809
  /**
811
810
  * Type representing the allowed values for form fields
@@ -927,13 +926,13 @@ type FormContextValues<T extends FormState = FormState> = {
927
926
  updateFieldValue: (name: string, value: FieldValue) => void;
928
927
  formErrors: FormErrors<T>;
929
928
  updateFieldError: (name: keyof T, errorMessage: string) => void;
930
- onFormSubmit: React__default.FormEventHandler<HTMLFormElement>;
929
+ onFormSubmit: React$1.FormEventHandler<HTMLFormElement>;
931
930
  updateFieldValidators: (name: keyof T, validate?: FieldValidationFunction) => void;
932
931
  updateRequiredFields: (name: keyof T, required?: boolean) => void;
933
932
  };
934
933
  type FormProviderProps<T extends FormState = FormState> = {
935
934
  formRef?: Ref<HTMLFormElement>;
936
- children?: React__default.ReactNode;
935
+ children?: React$1.ReactNode;
937
936
  formState?: T;
938
937
  onFormStateChange?: FormStateChangeHandler<T>;
939
938
  formValidator?: FormValidator<T>;
@@ -1041,7 +1040,7 @@ declare const useField: <T extends FieldValue = FieldValue>(props: UseFieldProps
1041
1040
  formFieldId: string | undefined;
1042
1041
  };
1043
1042
 
1044
- declare const FormField: (props: FormFieldProviderProps & FormFieldProps) => React__default.JSX.Element;
1043
+ declare const FormField: (props: FormFieldProviderProps & FormFieldProps) => React$1.JSX.Element;
1045
1044
 
1046
1045
  /**
1047
1046
  * Enum defining the possible sizes for the Modal component.
@@ -1100,15 +1099,15 @@ type ModalProps = {
1100
1099
  /**
1101
1100
  * Modal component for displaying a dialog window.
1102
1101
  */
1103
- declare const Modal: (props: ModalProps) => React__default.JSX.Element;
1102
+ declare const Modal: (props: ModalProps) => React$1.JSX.Element;
1104
1103
 
1105
1104
  type NavProps = HTMLAttributes<HTMLElement> & {};
1106
1105
 
1107
- declare const Nav: (props: NavProps) => React__default.JSX.Element;
1106
+ declare const Nav: (props: NavProps) => React$1.JSX.Element;
1108
1107
 
1109
1108
  type NavItemProps = LiHTMLAttributes<HTMLElement> & {};
1110
1109
 
1111
- declare const NavItem: (props: NavItemProps) => React__default.JSX.Element;
1110
+ declare const NavItem: (props: NavItemProps) => React$1.JSX.Element;
1112
1111
 
1113
1112
  type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'size' | 'style' | 'type'> & {
1114
1113
  /**
@@ -1130,13 +1129,13 @@ type NavLinkProps = Omit<LinkProps, 'to'> & Pick<ButtonProps, 'appearance' | 'si
1130
1129
  'component-variant'?: string;
1131
1130
  };
1132
1131
 
1133
- declare const NavLink: (props: NavLinkProps) => React__default.JSX.Element;
1132
+ declare const NavLink: (props: NavLinkProps) => React$1.JSX.Element;
1134
1133
 
1135
1134
  /**
1136
1135
  * Popover component that displays a floating content element in relation to a target element.
1137
1136
  * It can be triggered via different user actions like 'Click' or 'Hover'.
1138
1137
  */
1139
- declare const Popover: React__default.ForwardRefExoticComponent<PopoverProps & React__default.RefAttributes<PopoverHandle>>;
1138
+ declare const Popover: React$1.ForwardRefExoticComponent<PopoverProps & React$1.RefAttributes<PopoverHandle>>;
1140
1139
 
1141
1140
  /**
1142
1141
  * Props for the Option component, extending LiHTMLAttributes<HTMLLIElement>.
@@ -1176,7 +1175,7 @@ type OptionProps = LiHTMLAttributes<HTMLLIElement> & {
1176
1175
  * @param props - Props for configuring the Option component.
1177
1176
  * @returns Element representing the option.
1178
1177
  */
1179
- declare const Option: (props: OptionProps) => React__default.JSX.Element;
1178
+ declare const Option: (props: OptionProps) => React$1.JSX.Element;
1180
1179
 
1181
1180
  /**
1182
1181
  * Represents the context provided by the Select component.
@@ -1327,7 +1326,7 @@ declare const useSelectContext: () => SelectContextType;
1327
1326
  * @param props - Props for configuring the SelectProvider.
1328
1327
  * @returns JSX element that provides context to its children.
1329
1328
  */
1330
- declare const SelectProvider: ({ children, value, defaultValue, multiple, disabled, onValueChanged, }: SelectProviderProps) => React__default.JSX.Element;
1329
+ declare const SelectProvider: ({ children, value, defaultValue, multiple, disabled, onValueChanged, }: SelectProviderProps) => React$1.JSX.Element;
1331
1330
 
1332
1331
  /**
1333
1332
  * Select component that wraps SelectComponent with SelectProvider.
@@ -1359,7 +1358,7 @@ interface TabContentProps {
1359
1358
  className?: string;
1360
1359
  }
1361
1360
 
1362
- declare const TabContent: (props: TabContentProps) => React__default.JSX.Element | null;
1361
+ declare const TabContent: (props: TabContentProps) => React$1.JSX.Element | null;
1363
1362
 
1364
1363
  type TabItemStyleEnum = 'Filled' | 'Underlined';
1365
1364
  type TabItemProps = Omit<ButtonProps, 'actionType' | 'appearance' | 'size' | 'style' | 'type'> & {
@@ -1386,23 +1385,23 @@ type TabItemProps = Omit<ButtonProps, 'actionType' | 'appearance' | 'size' | 'st
1386
1385
  style?: TabItemStyleEnum;
1387
1386
  };
1388
1387
 
1389
- declare const TabItem: (props: TabItemProps) => React__default.JSX.Element;
1388
+ declare const TabItem: (props: TabItemProps) => React$1.JSX.Element;
1390
1389
 
1391
1390
  type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
1392
1391
 
1393
- declare const TableBody: (props: TableBodyProps) => React__default.JSX.Element;
1392
+ declare const TableBody: (props: TableBodyProps) => React$1.JSX.Element;
1394
1393
 
1395
1394
  type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
1396
1395
 
1397
- declare const TableCell: (props: TableCellProps) => React__default.JSX.Element;
1396
+ declare const TableCell: (props: TableCellProps) => React$1.JSX.Element;
1398
1397
 
1399
1398
  type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
1400
1399
 
1401
- declare const TableHeader: (props: TableHeaderProps) => React__default.JSX.Element;
1400
+ declare const TableHeader: (props: TableHeaderProps) => React$1.JSX.Element;
1402
1401
 
1403
1402
  type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
1404
1403
 
1405
- declare const TableRow: (props: TableRowProps) => React__default.JSX.Element;
1404
+ declare const TableRow: (props: TableRowProps) => React$1.JSX.Element;
1406
1405
 
1407
1406
  type TabsStyleEnum = 'Filled' | 'Underlined';
1408
1407
  type TabsTypeEnum = 'Horizontal' | 'Vertical';
@@ -1470,13 +1469,13 @@ type TabsProps = TabProviderProps & TabsViewProps;
1470
1469
  */
1471
1470
  declare const useTab: () => TabContextType;
1472
1471
 
1473
- declare const Tabs: (props: TabsProps) => React__default.JSX.Element;
1472
+ declare const Tabs: (props: TabsProps) => React$1.JSX.Element;
1474
1473
 
1475
- declare const Form: <T extends FormState>(props: FormProviderProps<T> & FormProps) => React__default.JSX.Element;
1474
+ declare const Form: <T extends FormState>(props: FormProviderProps<T> & FormProps) => React$1.JSX.Element;
1476
1475
 
1477
1476
  type TableProps = TableHTMLAttributes<HTMLTableElement>;
1478
1477
 
1479
- declare const Table: (props: TableProps) => React__default.JSX.Element;
1478
+ declare const Table: (props: TableProps) => React$1.JSX.Element;
1480
1479
 
1481
1480
  type ThemeContextType = {
1482
1481
  theme: string;
@@ -1487,7 +1486,7 @@ type ThemeProviderProps = {
1487
1486
  children?: ReactNode;
1488
1487
  };
1489
1488
 
1490
- declare const ThemeContext: React__default.Context<ThemeContextType>;
1491
- declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
1489
+ declare const ThemeContext: React$1.Context<ThemeContextType>;
1490
+ declare const ThemeProvider: React$1.FC<ThemeProviderProps>;
1492
1491
 
1493
1492
  export { ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, DatePicker, type DatePickerProps, type FieldValidationFunction, type FieldValidators, type FieldValue, Form, type FormContextValues, type FormErrors, FormField, type FormFieldProps, type FormProps, type FormProviderProps, type FormState, type FormStateChangeHandler, type FormSubmitHandler, type FormValidator, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, type ListProps, MenuItem, type MenuItemProps, Modal, type ModalProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, Option, type OptionProps, type OverlayDirectionEnum, Password, Popover, type PopoverHandle, type PopoverProps, type RequiredFields, Select, type SelectProps, SelectProvider, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Text, TextArea, type TextAreaProps, type TextDecorationEnum, type TextProps, type TextTypeEnum, type TextWeightEnum, ThemeContext, type ThemeContextType, ThemeProvider, type ThemeProviderProps, useField, useSelectContext, useTab };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",