nntc-ui 0.0.72 → 0.0.74
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/index.d.ts +19 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, DetailedHTMLProps, InputHTMLAttributes, PropsWithChildren, ChangeEvent, JSX, MutableRefObject, ReactElement, CSSProperties, HTMLProps, ElementType } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import defaultDayjs from 'dayjs';
|
|
5
4
|
import { Placement } from '@floating-ui/react';
|
|
6
5
|
|
|
7
6
|
type PropsObject = {
|
|
@@ -65,6 +64,23 @@ interface Props$l {
|
|
|
65
64
|
}
|
|
66
65
|
declare function Select(props: UiProps<Props$l> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
67
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Минимальный контракт для инстанса dayjs.
|
|
69
|
+
* Позволяет передавать dayjs из приложения (другая версия/плагины) без конфликта типов.
|
|
70
|
+
*/
|
|
71
|
+
interface DayjsInstance {
|
|
72
|
+
format(template?: string): string;
|
|
73
|
+
year(): number;
|
|
74
|
+
month(): number;
|
|
75
|
+
startOf(unit: string): DayjsInstance;
|
|
76
|
+
valueOf(): number;
|
|
77
|
+
daysInMonth(): number;
|
|
78
|
+
day(): number;
|
|
79
|
+
add(value: number, unit?: string): DayjsInstance;
|
|
80
|
+
}
|
|
81
|
+
type DayjsConfigType = string | number | Date | null | undefined;
|
|
82
|
+
type DayjsFactory = (date?: DayjsConfigType) => DayjsInstance;
|
|
83
|
+
|
|
68
84
|
type Variant$6 = 'filled' | 'outlined';
|
|
69
85
|
type Size$9 = 'medium' | 'small';
|
|
70
86
|
type ValueType = 'date' | 'year';
|
|
@@ -79,8 +95,7 @@ interface Props$k {
|
|
|
79
95
|
defaultValues?: (string | undefined)[];
|
|
80
96
|
onClear?: () => void;
|
|
81
97
|
onValueChange?: (values: (string | undefined)[]) => void;
|
|
82
|
-
|
|
83
|
-
dayjs?: typeof defaultDayjs;
|
|
98
|
+
dayjs?: DayjsFactory;
|
|
84
99
|
}
|
|
85
100
|
declare function DateTime(props: UiProps<Props$k> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
86
101
|
|
|
@@ -441,4 +456,4 @@ interface Props {
|
|
|
441
456
|
}
|
|
442
457
|
declare const Chip: (props: PropsWithChildren<UiProps<Props>>) => react_jsx_runtime.JSX.Element;
|
|
443
458
|
|
|
444
|
-
export { type AdditionalButton, Button, ButtonsGroup, Card, Checkbox, Checklist, type Item$3 as ChecklistItem, type SelectedItems as ChecklistSelectedItems, Chip, ColorPicker, type ColumnAlign, DateTime, type FilterBy, Input, Layout, Menu, type Divider as MenuDivider, type Item$2 as MenuItem, Modal, MultiSelect, type Item$4 as MultiSelectItem, type TitleVariant as MultiSelectTitleVariant, type Pair, Pairs, Popover, SearchInput, Select, type Divider$1 as SelectDivider, type Item$5 as SelectItem, type SortBy, type SortType, Surface, type TableCell, type TableColumn, type TableRow, Tabs, type Item$1 as TabsItem, Tooltip, _default as TreeView, type Item as TreeViewItem, Typography, type VerticalAlign, VirtualTable, type VirtualTableRef, WrapForLabel, defaultRowHeight as virtualTableDefaultRowHeight };
|
|
459
|
+
export { type AdditionalButton, Button, ButtonsGroup, Card, Checkbox, Checklist, type Item$3 as ChecklistItem, type SelectedItems as ChecklistSelectedItems, Chip, ColorPicker, type ColumnAlign, DateTime, type DayjsFactory, type DayjsInstance, type FilterBy, Input, Layout, Menu, type Divider as MenuDivider, type Item$2 as MenuItem, Modal, MultiSelect, type Item$4 as MultiSelectItem, type TitleVariant as MultiSelectTitleVariant, type Pair, Pairs, Popover, SearchInput, Select, type Divider$1 as SelectDivider, type Item$5 as SelectItem, type SortBy, type SortType, Surface, type TableCell, type TableColumn, type TableRow, Tabs, type Item$1 as TabsItem, Tooltip, _default as TreeView, type Item as TreeViewItem, Typography, type VerticalAlign, VirtualTable, type VirtualTableRef, WrapForLabel, defaultRowHeight as virtualTableDefaultRowHeight };
|