@delightui/components 0.1.144 → 0.1.145

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 (42) hide show
  1. package/dist/cjs/components/molecules/DatePicker/DateInput/DateInput.d.ts +3 -0
  2. package/dist/cjs/components/molecules/DatePicker/DateInput/DateInput.presenter.d.ts +14 -0
  3. package/dist/cjs/components/molecules/DatePicker/DateInput/DateInput.types.d.ts +15 -0
  4. package/dist/cjs/components/molecules/DatePicker/DateInput/index.d.ts +4 -0
  5. package/dist/cjs/components/molecules/DatePicker/DatePicker.d.ts +1 -4
  6. package/dist/cjs/components/molecules/DatePicker/DatePicker.types.d.ts +2 -111
  7. package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.constants.d.ts +10 -0
  8. package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.d.ts +5 -0
  9. package/dist/cjs/components/molecules/DatePicker/{DatePicker.presenter.d.ts → DatePickerBase/DatePickerBase.presenter.d.ts} +6 -12
  10. package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.types.d.ts +116 -0
  11. package/dist/{esm/components/molecules/DatePicker → cjs/components/molecules/DatePicker/DatePickerBase}/Plugins/customTimeSelector.d.ts +1 -1
  12. package/dist/{esm/components/molecules/DatePicker → cjs/components/molecules/DatePicker/DatePickerBase}/Plugins/dateTimeSelector.d.ts +1 -1
  13. package/dist/{esm/components/molecules/DatePicker → cjs/components/molecules/DatePicker/DatePickerBase}/Plugins/timeSelector.d.ts +1 -1
  14. package/dist/cjs/components/molecules/DatePicker/DatePickerBase/index.d.ts +3 -0
  15. package/dist/cjs/components/molecules/DatePicker/index.d.ts +4 -2
  16. package/dist/cjs/library.css +257 -131
  17. package/dist/cjs/library.js +3 -3
  18. package/dist/cjs/library.js.map +1 -1
  19. package/dist/esm/components/molecules/DatePicker/DateInput/DateInput.d.ts +3 -0
  20. package/dist/esm/components/molecules/DatePicker/DateInput/DateInput.presenter.d.ts +14 -0
  21. package/dist/esm/components/molecules/DatePicker/DateInput/DateInput.types.d.ts +15 -0
  22. package/dist/esm/components/molecules/DatePicker/DateInput/index.d.ts +4 -0
  23. package/dist/esm/components/molecules/DatePicker/DatePicker.d.ts +1 -4
  24. package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +2 -111
  25. package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.constants.d.ts +10 -0
  26. package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.d.ts +5 -0
  27. package/dist/esm/components/molecules/DatePicker/{DatePicker.presenter.d.ts → DatePickerBase/DatePickerBase.presenter.d.ts} +6 -12
  28. package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.types.d.ts +116 -0
  29. package/dist/{cjs/components/molecules/DatePicker → esm/components/molecules/DatePicker/DatePickerBase}/Plugins/customTimeSelector.d.ts +1 -1
  30. package/dist/{cjs/components/molecules/DatePicker → esm/components/molecules/DatePicker/DatePickerBase}/Plugins/dateTimeSelector.d.ts +1 -1
  31. package/dist/{cjs/components/molecules/DatePicker → esm/components/molecules/DatePicker/DatePickerBase}/Plugins/timeSelector.d.ts +1 -1
  32. package/dist/esm/components/molecules/DatePicker/DatePickerBase/index.d.ts +3 -0
  33. package/dist/esm/components/molecules/DatePicker/index.d.ts +4 -2
  34. package/dist/esm/library.css +257 -131
  35. package/dist/esm/library.js +2 -2
  36. package/dist/esm/library.js.map +1 -1
  37. package/dist/index.d.ts +30 -8
  38. package/package.json +1 -1
  39. /package/dist/cjs/components/molecules/DatePicker/{Plugins → DatePickerBase/Plugins}/utils.d.ts +0 -0
  40. /package/dist/cjs/components/molecules/DatePicker/{Plugins → DatePickerBase/Plugins}/utils.test.d.ts +0 -0
  41. /package/dist/esm/components/molecules/DatePicker/{Plugins → DatePickerBase/Plugins}/utils.d.ts +0 -0
  42. /package/dist/esm/components/molecules/DatePicker/{Plugins → DatePickerBase/Plugins}/utils.test.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
3
3
  import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, ReactNode, MouseEvent, FormHTMLAttributes, Ref, InputHTMLAttributes, TextareaHTMLAttributes, ComponentType, LiHTMLAttributes, CSSProperties, TableHTMLAttributes, TdHTMLAttributes, ReactElement, AriaRole, KeyboardEventHandler } from 'react';
4
4
  import { LinkProps } from 'react-router-dom';
5
5
  import { Plugin } from 'flatpickr/dist/types/options';
6
- import FlatPickr from 'react-flatpickr';
6
+ import FlatPickr, { DateTimePickerProps } from 'react-flatpickr';
7
7
  import { ModalTransitionComponent } from 'react-overlays/cjs/Modal';
8
8
  import { Offset } from 'react-overlays/usePopper';
9
9
 
@@ -1273,7 +1273,7 @@ declare const ContextMenu: <T extends ListItemType>(props: ContextMenuProps<T>)
1273
1273
 
1274
1274
  type DatePickerPosition = 'auto' | 'above' | 'below' | 'auto left' | 'auto center' | 'auto right' | 'above left' | 'above center' | 'above right' | 'below left' | 'below center' | 'below right';
1275
1275
  type DatePickerValue = string | Date | (string | Date)[];
1276
- type DatePickerProps = ControlledFormComponentProps<DatePickerValue> & {
1276
+ type DatePickerBaseProps = ControlledFormComponentProps<DatePickerValue> & {
1277
1277
  /**
1278
1278
  * Additional class for styling.
1279
1279
  */
@@ -1362,6 +1362,33 @@ type DatePickerProps = ControlledFormComponentProps<DatePickerValue> & {
1362
1362
  * For example using this inside a Popover as content
1363
1363
  */
1364
1364
  useCustomTimeInputForTimePicker?: boolean;
1365
+ /**
1366
+ * Custom renderer for the input element used by Flatpickr.
1367
+ * Use this to supply your own input (e.g., shared Input atom) while still
1368
+ * letting Flatpickr control it via the provided ref.
1369
+ *
1370
+ * - props: Forwarded props that ReactFlatPickr would apply to its default input
1371
+ * - ref: Must be attached to your input so Flatpickr can bind events
1372
+ */
1373
+ renderInput?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement | null) => void) => React.ReactElement) | undefined;
1374
+ /**
1375
+ * Callback to toggle the input's readOnly state when the calendar opens/closes.
1376
+ * Prevents soft keyboards/unwanted edits while the popup is active.
1377
+ *
1378
+ * - value: true to set readOnly, false to restore editability
1379
+ */
1380
+ handleInputReadOnlyState?: (value: boolean) => void;
1381
+ };
1382
+ type CustomTimePickerConfig = {
1383
+ minuteStep: number;
1384
+ };
1385
+ type DatePickerBaseSharedProps = Omit<DatePickerBaseProps, 'renderInput' | 'handleInputReadOnlyState'>;
1386
+
1387
+ type DatePickerProps = Omit<DatePickerBaseSharedProps, 'noCalendar' | 'inline'> & {};
1388
+
1389
+ declare const DatePicker: (props: DatePickerProps) => react_jsx_runtime.JSX.Element;
1390
+
1391
+ type DateInputProps = DatePickerBaseSharedProps & {
1365
1392
  /**
1366
1393
  * Placeholder text for the date picker input
1367
1394
  */
@@ -1375,11 +1402,6 @@ type DatePickerProps = ControlledFormComponentProps<DatePickerValue> & {
1375
1402
  */
1376
1403
  trailingIcon?: React.ReactNode;
1377
1404
  };
1378
- type CustomTimePickerConfig = {
1379
- minuteStep: number;
1380
- };
1381
-
1382
- declare const DatePicker: (props: DatePickerProps) => react_jsx_runtime.JSX.Element;
1383
1405
 
1384
1406
  declare const FormField: (props: FormFieldProps) => react_jsx_runtime.JSX.Element;
1385
1407
 
@@ -2748,4 +2770,4 @@ declare const NotificationContext: React__default.Context<NotificationContextVal
2748
2770
  declare const NotificationProvider: React__default.FC<NotificationProviderProps>;
2749
2771
  declare const useNotification: () => NotificationContextValue;
2750
2772
 
2751
- export { type AccessibilityActions, type AccessibilityProps, Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Checkbox, CheckboxItem, type CheckboxItemProps, type CheckboxLabelAlignmentEnum, type CheckboxProps, type CheckboxSizeEnum, type CheckboxTypeEnum, Chip, ChipInput, type ChipInputProps, type ChipProps, ConditionalView, type ConditionalViewProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, DatePicker, type DatePickerProps, SortableItem as DraggableItem, SortableTrigger as DraggableItemTrigger, Dropzone, DropzoneClear, DropzoneContent, type DropzoneContentProps, type DropzoneContentTypeEnum, DropzoneFilename, DropzoneFilename as DropzonePreview, type DropzoneProps, DropzoneSupportedFormats as DropzoneReject, DropzoneTrigger as DropzoneRoot, DropzoneSupportedFormats, DropzoneTrigger, 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, Grid, GridItem, type GridItemProps, GridList, type GridListProps, type GridProps, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, ListItem, type ListItemProps$1 as ListItemProps, type ListProps, Modal, type ModalComponentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalProvider, type ModalProviderProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type Notification, type NotificationContainerProps, NotificationContext, type NotificationOffset, type NotificationPosition, NotificationProvider, type NotificationTrigger, Option, type OptionLike, type OptionLikeKey, type OptionProps, type OverlayDirectionEnum, Pagination, PaginationNumberField, type PaginationNumberFieldProps, type PaginationProps, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, RadioButton, RadioButtonItem, type RadioButtonItemProps, type RadioButtonLabelAlignmentEnum, type RadioButtonProps, type RadioButtonSizeEnum, RadioGroup, type RadioGroupProps, RenderStateView, type RenderStateViewProps, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Search, type SearchCallback, type SearchStyleEnum as SearchModeEnum, type SearchProps, Select, SelectListItem, type SelectListItemProps, type SelectProps, SelectProvider, SlideOutPanel, type SlideOutPanelDirectionEnum, type SlideOutPanelProps, type SlideOutPanelSizeEnum, Slider, type SliderProps, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, 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, Toggle, ToggleButton, type ToggleButtonProps, type ToggleLabelAlignmentEnum, type ToggleProps, Tooltip, type TooltipProps, type TriggerNotificationPayload, type UseModalReturn, WrapTextNodes, type WrapTextNodesProps, applyPropsToChildren, getClickAccessibilityProps, mergeRefs, useDebounce, useDropzoneContext, useForm, useFormTyped, useInflateView, useModal, useNotification, useSelectContext, useTab };
2773
+ export { type AccessibilityActions, type AccessibilityProps, Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionCard, type ActionCardProps, ActionImage, type ActionImageProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Breakpoint, type BreakpointProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, type CardProps, Checkbox, CheckboxItem, type CheckboxItemProps, type CheckboxLabelAlignmentEnum, type CheckboxProps, type CheckboxSizeEnum, type CheckboxTypeEnum, Chip, ChipInput, type ChipInputProps, type ChipProps, ConditionalView, type ConditionalViewProps, ContextMenu, type ContextMenuProps, type CustomTimePickerConfig, CustomToggle, type CustomToggleProps, type DateInputProps, DatePicker, type DatePickerProps, SortableItem as DraggableItem, SortableTrigger as DraggableItemTrigger, Dropzone, DropzoneClear, DropzoneContent, type DropzoneContentProps, type DropzoneContentTypeEnum, DropzoneFilename, DropzoneFilename as DropzonePreview, type DropzoneProps, DropzoneSupportedFormats as DropzoneReject, DropzoneTrigger as DropzoneRoot, DropzoneSupportedFormats, DropzoneTrigger, 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, Grid, GridItem, type GridItemProps, GridList, type GridListProps, type GridProps, Icon, IconButton, type IconButtonProps, type IconButtonStyleEnum, type IconProps, type IconSizeEnum, type IconStyleEnum, Image, type ImageFitEnum, type ImageProps, Input, type InputProps, type InputTypeEnum, List, ListItem, type ListItemProps$1 as ListItemProps, type ListProps, Modal, type ModalComponentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalProvider, type ModalProviderProps, Nav, NavItem, type NavItemProps, NavLink, type NavLinkProps, type NavProps, type Notification, type NotificationContainerProps, NotificationContext, type NotificationOffset, type NotificationPosition, NotificationProvider, type NotificationTrigger, Option, type OptionLike, type OptionLikeKey, type OptionProps, type OverlayDirectionEnum, Pagination, PaginationNumberField, type PaginationNumberFieldProps, type PaginationProps, Password, Popover, type PopoverHandle, type PopoverProps, ProgressBar, type ProgressBarProps, RadioButton, RadioButtonItem, type RadioButtonItemProps, type RadioButtonLabelAlignmentEnum, type RadioButtonProps, type RadioButtonSizeEnum, RadioGroup, type RadioGroupProps, RenderStateView, type RenderStateViewProps, RepeaterList, type RepeaterListProps, type RequiredFields, ResponsiveComponent, type ResponsiveComponentProps, Search, type SearchCallback, type SearchStyleEnum as SearchModeEnum, type SearchProps, Select, SelectListItem, type SelectListItemProps, type SelectProps, SelectProvider, SlideOutPanel, type SlideOutPanelDirectionEnum, type SlideOutPanelProps, type SlideOutPanelSizeEnum, Slider, type SliderProps, Spinner, type SpinnerProps, TabContent, type TabContentProps, TabItem, type TabItemProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, 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, Toggle, ToggleButton, type ToggleButtonProps, type ToggleLabelAlignmentEnum, type ToggleProps, Tooltip, type TooltipProps, type TriggerNotificationPayload, type UseModalReturn, WrapTextNodes, type WrapTextNodesProps, applyPropsToChildren, getClickAccessibilityProps, mergeRefs, useDebounce, useDropzoneContext, useForm, useFormTyped, useInflateView, useModal, useNotification, useSelectContext, useTab };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.144",
3
+ "version": "0.1.145",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",