@cleen/ui 0.1.56 → 0.1.57
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 +18 -5
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { WaveSurferOptions as WaveSurferOptions$1 } from 'wavesurfer.js/dist/typ
|
|
|
8
8
|
import Autoscroll from 'embla-carousel-auto-scroll';
|
|
9
9
|
import Autoplay from 'embla-carousel-autoplay';
|
|
10
10
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
11
|
-
import { DayPickerProps, DateRange } from 'react-day-picker';
|
|
11
|
+
import { DayPickerProps, DateRange, Matcher } from 'react-day-picker';
|
|
12
12
|
import * as react_toastify from 'react-toastify';
|
|
13
13
|
import { ToastOptions, ToastContainerProps } from 'react-toastify';
|
|
14
14
|
import ReactSelect, { components, SelectInstance, GroupBase } from 'react-select';
|
|
@@ -25,6 +25,10 @@ interface TooltipProps extends ComponentProps<'div'> {
|
|
|
25
25
|
hasArrow?: boolean;
|
|
26
26
|
openDelay?: number;
|
|
27
27
|
offset?: number;
|
|
28
|
+
extraUpdateTriggers?: (keyof WindowEventMap)[];
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
/**Use this to allow the tooltip to remain open when hovering over non-descendant elements (like a Popover that is rendered in a portals) */
|
|
31
|
+
allowNonDescendantHover?: boolean;
|
|
28
32
|
classNames?: {
|
|
29
33
|
container?: string;
|
|
30
34
|
labelContainer?: string;
|
|
@@ -44,7 +48,7 @@ interface TooltipProps extends ComponentProps<'div'> {
|
|
|
44
48
|
* - Override bubble colors with `bg` / `color`, or enable `invertColors` for a dark-on-light style.
|
|
45
49
|
* - Accepts `classNames` and `styles` for keys: `container`, `labelContainer`.
|
|
46
50
|
*/
|
|
47
|
-
declare const Tooltip: ({ bg, label, color, closeOnClick, hideOnMouseDown, isOpen, children, hasArrow, placement, offset, className, classNames, isDisabled, openDelay, invertColors, style, styles, onClick, onMouseEnter, onMouseLeave, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
51
|
+
declare const Tooltip: ({ bg, label, color, closeOnClick, hideOnMouseDown, isOpen, children, hasArrow, placement, offset, className, classNames, isDisabled, openDelay, invertColors, extraUpdateTriggers, allowNonDescendantHover, zIndex, style, styles, onClick, onMouseEnter, onMouseLeave, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
48
52
|
|
|
49
53
|
interface Bar {
|
|
50
54
|
type: 'bar';
|
|
@@ -1641,6 +1645,7 @@ type DropdownProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
|
1641
1645
|
isOpen?: boolean;
|
|
1642
1646
|
onOpenChange?: (isOpen: boolean) => void;
|
|
1643
1647
|
keepOpenOnClickContent?: boolean;
|
|
1648
|
+
zIndex?: number;
|
|
1644
1649
|
infoLabels?: InfoLabelsProps;
|
|
1645
1650
|
classNames?: {
|
|
1646
1651
|
container?: string;
|
|
@@ -1663,7 +1668,7 @@ type DropdownProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
|
1663
1668
|
*/
|
|
1664
1669
|
declare const Dropdown: react.ForwardRefExoticComponent<Omit<DropdownProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
1665
1670
|
|
|
1666
|
-
type DatePickerBase = Omit<DayPickerProps, 'classNames' | 'styles' | 'mode'> & {
|
|
1671
|
+
type DatePickerBase = Omit<DayPickerProps, 'classNames' | 'styles' | 'mode' | 'disabled'> & {
|
|
1667
1672
|
label?: ReactNode;
|
|
1668
1673
|
placeholder?: ReactNode;
|
|
1669
1674
|
min?: Date | 'today';
|
|
@@ -1694,7 +1699,10 @@ type DatePickerRangeProps = DatePickerBase & {
|
|
|
1694
1699
|
selected?: DateRange;
|
|
1695
1700
|
onSelect?: (value?: DateRange) => void;
|
|
1696
1701
|
};
|
|
1697
|
-
type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps
|
|
1702
|
+
type DatePickerProps = (DatePickerSingleProps | DatePickerRangeProps) & {
|
|
1703
|
+
disabled?: boolean;
|
|
1704
|
+
disabledDates?: Matcher | Matcher[];
|
|
1705
|
+
};
|
|
1698
1706
|
|
|
1699
1707
|
/**
|
|
1700
1708
|
* The `DatePicker` component is a controlled or uncontrolled date selection interface that combines a dropdown trigger with a calendar picker. It supports both single date and date range selection modes with customizable label, optional styling, and class name support for both the wrapper and internal DayPicker component.
|
|
@@ -2050,6 +2058,7 @@ interface GroupSelectorProps<G = unknown, I = unknown> {
|
|
|
2050
2058
|
isItemSaving?: boolean;
|
|
2051
2059
|
selectedColor?: string;
|
|
2052
2060
|
hasFiltering?: boolean;
|
|
2061
|
+
zIndex?: number;
|
|
2053
2062
|
className?: string;
|
|
2054
2063
|
classNames?: {
|
|
2055
2064
|
container?: string;
|
|
@@ -2096,7 +2105,7 @@ interface GroupSelectorProps<G = unknown, I = unknown> {
|
|
|
2096
2105
|
* - Use `isLoading`, `isGroupSaving`, `isItemSaving` to show loader states during async operations.
|
|
2097
2106
|
* - Accepts `classNames` and `styles` for granular visual customisation of every element.
|
|
2098
2107
|
*/
|
|
2099
|
-
declare const GroupSelector: <G = unknown, I = unknown>({ position, labels, groups, selectedItemID, groupThreeDotMenuOptions, itemThreeDotMenuOptions, refetchData, onGroupSave, onItemSave, onGroupThreeDotMenuClick, onItemThreeDotMenuClick, onSearchChange, onItemSelect, groupIDKey, groupTitleKey, itemsKey, itemIDKey, itemGroupIDKey, itemTitleKey, itemSubtitleKey, newValueMinLength, isLoading, isGroupSaving, isItemSaving, selectedColor, hasFiltering, className, classNames, style, styles, }: GroupSelectorProps<G, I>) => JSX.Element;
|
|
2108
|
+
declare const GroupSelector: <G = unknown, I = unknown>({ position, labels, groups, selectedItemID, groupThreeDotMenuOptions, itemThreeDotMenuOptions, refetchData, onGroupSave, onItemSave, onGroupThreeDotMenuClick, onItemThreeDotMenuClick, onSearchChange, onItemSelect, groupIDKey, groupTitleKey, itemsKey, itemIDKey, itemGroupIDKey, itemTitleKey, itemSubtitleKey, newValueMinLength, isLoading, isGroupSaving, isItemSaving, selectedColor, hasFiltering, zIndex, className, classNames, style, styles, }: GroupSelectorProps<G, I>) => JSX.Element;
|
|
2100
2109
|
|
|
2101
2110
|
declare const colorList: readonly ["blue", "lighter-blue", "primary", "indigo", "green", "red", "purple", "pink", "orange", "gray"];
|
|
2102
2111
|
type Color = (typeof colorList)[number];
|
|
@@ -2181,6 +2190,7 @@ type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
|
|
|
2181
2190
|
isNoDataVisibleOnCreateNew?: boolean;
|
|
2182
2191
|
menuDetachedFromPortal?: boolean;
|
|
2183
2192
|
menuRef?: RefObject<HTMLDivElement | null>;
|
|
2193
|
+
zIndex?: number;
|
|
2184
2194
|
classNames?: {
|
|
2185
2195
|
container?: string;
|
|
2186
2196
|
label?: string;
|
|
@@ -2300,6 +2310,7 @@ type MenuProps = ComponentProps<'div'> & {
|
|
|
2300
2310
|
triggerRef?: RefObject<HTMLDivElement | null>;
|
|
2301
2311
|
menuRef?: RefObject<HTMLDivElement | null>;
|
|
2302
2312
|
ignoreClickOutside?: boolean;
|
|
2313
|
+
zIndex?: number;
|
|
2303
2314
|
classNames?: {
|
|
2304
2315
|
container?: string;
|
|
2305
2316
|
trigger?: string;
|
|
@@ -2474,6 +2485,8 @@ type PopoverProps = Omit<ComponentProps<'div'>, 'content'> & {
|
|
|
2474
2485
|
onOpenChange?: (isOpen: boolean) => void;
|
|
2475
2486
|
content?: ReactNode;
|
|
2476
2487
|
position?: Position;
|
|
2488
|
+
offset?: number;
|
|
2489
|
+
zIndex?: number;
|
|
2477
2490
|
classNames?: {
|
|
2478
2491
|
container?: string;
|
|
2479
2492
|
trigger?: string;
|