tinacms 0.0.0-e5c0e91-20250421003142 → 0.0.0-e6ffde4-20251216055147
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/admin/api.d.ts +4 -1
- package/dist/admin/components/{Sidebar.d.ts → AdminNav.d.ts} +0 -3
- package/dist/admin/components/Page.d.ts +3 -9
- package/dist/admin/components/ui/tooltip.d.ts +7 -0
- package/dist/admin/pages/CollectionCreatePage.d.ts +1 -1
- package/dist/admin/pages/CollectionListPage.d.ts +2 -2
- package/dist/admin/pages/DashboardPage.d.ts +0 -3
- package/dist/admin/pages/ScreenPage.d.ts +0 -3
- package/dist/auth/AuthModal.d.ts +1 -4
- package/dist/auth/TinaCloudProvider.d.ts +0 -1
- package/dist/auth/authenticate.d.ts +1 -1
- package/dist/cache/node-cache.d.ts +6 -2
- package/dist/client.d.ts +4 -1
- package/dist/client.js +240 -181
- package/dist/index.d.ts +61 -1
- package/dist/index.js +122119 -33719
- package/dist/internalClient/authProvider.d.ts +0 -2
- package/dist/internalClient/index.d.ts +26 -1
- package/dist/react.d.ts +41 -1
- package/dist/react.js +209 -204
- package/dist/rich-text/index.d.ts +148 -1
- package/dist/rich-text/index.js +234 -224
- package/dist/rich-text/prism.d.ts +10 -1
- package/dist/rich-text/prism.js +16 -18
- package/dist/rich-text/static.d.ts +154 -0
- package/dist/rich-text/{index.mjs → static.js} +99 -99
- package/dist/tina-cms.d.ts +1 -1
- package/dist/toolkit/components/ProgressBar.d.ts +11 -0
- package/dist/toolkit/components/media/media-item.d.ts +11 -1
- package/dist/toolkit/components/ui/breadcrumb.d.ts +11 -0
- package/dist/toolkit/components/ui/button.d.ts +11 -0
- package/dist/toolkit/components/ui/calendar.d.ts +8 -0
- package/dist/toolkit/components/ui/date-time-picker.d.ts +111 -0
- package/dist/toolkit/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/toolkit/components/ui/input.d.ts +3 -0
- package/dist/toolkit/components/ui/popover.d.ts +7 -0
- package/dist/toolkit/components/ui/select.d.ts +13 -0
- package/dist/toolkit/fields/components/color-picker/block-widget.d.ts +3 -0
- package/dist/toolkit/fields/components/color-picker/color-input.d.ts +35 -0
- package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +6 -2
- package/dist/toolkit/fields/components/color-picker/color-utils.d.ts +37 -0
- package/dist/toolkit/fields/components/color-picker/sketch-widget.d.ts +3 -0
- package/dist/toolkit/fields/components/password-field.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/components/button.d.ts +2 -2
- package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
- package/dist/toolkit/fields/components/reference/components/popover.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/model/reference-link-props.d.ts +2 -0
- package/dist/toolkit/fields/components/select.d.ts +2 -2
- package/dist/toolkit/fields/components/text-field.d.ts +1 -1
- package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +0 -2
- package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
- package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +1 -1
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
- package/dist/toolkit/fields/plugins/list-field-meta.d.ts +1 -1
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -19
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/{table-dropdown-menu.d.ts → table/table-dropdown-menu.d.ts} +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +262 -207
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
- package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
- package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
- package/dist/toolkit/form-builder/fields-builder.d.ts +1 -1
- package/dist/toolkit/form-builder/form-builder.d.ts +8 -9
- package/dist/toolkit/form-builder/index.d.ts +1 -0
- package/dist/toolkit/forms/field.d.ts +3 -0
- package/dist/toolkit/forms/form.d.ts +22 -3
- package/dist/toolkit/git-client/git-client.d.ts +25 -2
- package/dist/toolkit/git-client/git-file.d.ts +18 -0
- package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
- package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
- package/dist/toolkit/icons/Tina.d.ts +0 -5
- package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
- package/dist/toolkit/icons/index.d.ts +1 -0
- package/dist/toolkit/index.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +4 -1
- package/dist/toolkit/plugin-branch-switcher/index.d.ts +0 -1
- package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
- package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/NavMenuTrigger.d.ts +11 -0
- package/dist/toolkit/react-sidebar/components/VersionInfo.d.ts +2 -0
- package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
- package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
- package/dist/toolkit/react-sidebar/components/form-list.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
- package/dist/toolkit/react-sidebar/components/nav-components.d.ts +11 -0
- package/dist/toolkit/react-sidebar/components/nav-context.d.ts +15 -0
- package/dist/toolkit/react-sidebar/components/nav.d.ts +6 -3
- package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +0 -5
- package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +28 -7
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +0 -7
- package/dist/toolkit/react-sidebar/components/sync-status.d.ts +5 -8
- package/dist/toolkit/react-sidebar/index.d.ts +4 -1
- package/dist/toolkit/styles/button.d.ts +2 -2
- package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
- package/dist/toolkit/styles/index.d.ts +1 -0
- package/dist/toolkit/tina-cms.d.ts +3 -3
- package/dist/toolkit/tina-state.d.ts +11 -0
- package/dist/unifiedClient/index.d.ts +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +59 -83
- package/dist/admin/pages/IndexingPage.d.ts +0 -2
- package/dist/client.mjs +0 -132
- package/dist/index.mjs +0 -35128
- package/dist/node-cache-5e8db9f0.mjs +0 -63
- package/dist/react.mjs +0 -246
- package/dist/rich-text/prism.mjs +0 -16
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
- package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +0 -2
- package/dist/toolkit/react-datetime/DateTime.d.ts +0 -135
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import 'moment-timezone';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { DayPickerProps } from 'react-day-picker';
|
|
4
|
+
type TimePickerType = 'minutes' | 'seconds' | 'hours' | '12hours';
|
|
5
|
+
type Period = 'AM' | 'PM';
|
|
6
|
+
declare const formatCurrentDate: ({ dateFormat, timeFormat, displayDate, }: {
|
|
7
|
+
dateFormat?: string;
|
|
8
|
+
timeFormat?: string;
|
|
9
|
+
displayDate: Date;
|
|
10
|
+
}) => string;
|
|
11
|
+
interface TimePickerInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
12
|
+
picker: TimePickerType;
|
|
13
|
+
date?: Date | null;
|
|
14
|
+
onDateChange?: (date: Date | undefined) => void;
|
|
15
|
+
period?: Period;
|
|
16
|
+
onRightFocus?: () => void;
|
|
17
|
+
onLeftFocus?: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const TimePickerInput: React.ForwardRefExoticComponent<TimePickerInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
interface TimePickerProps {
|
|
21
|
+
date?: Date | null;
|
|
22
|
+
onChange?: (date: Date | undefined) => void;
|
|
23
|
+
hourCycle?: 12 | 24;
|
|
24
|
+
/**
|
|
25
|
+
* Determines the smallest unit that is displayed in the datetime picker.
|
|
26
|
+
* Default is 'second'.
|
|
27
|
+
* */
|
|
28
|
+
granularity?: Granularity;
|
|
29
|
+
}
|
|
30
|
+
interface TimePickerRef {
|
|
31
|
+
minuteRef: HTMLInputElement | null;
|
|
32
|
+
hourRef: HTMLInputElement | null;
|
|
33
|
+
secondRef: HTMLInputElement | null;
|
|
34
|
+
}
|
|
35
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<TimePickerRef>>;
|
|
36
|
+
type Granularity = 'day' | 'hour' | 'minute' | 'second';
|
|
37
|
+
type DateTimePickerProps = {
|
|
38
|
+
value?: Date;
|
|
39
|
+
onChange?: (date: Date | undefined) => void;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
dateFormat?: string;
|
|
42
|
+
timeFormat?: string;
|
|
43
|
+
/** showing `AM/PM` or not. */
|
|
44
|
+
hourCycle?: 12 | 24;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The year range will be: `This year + yearRange` and `this year - yearRange`.
|
|
48
|
+
* Default is 50.
|
|
49
|
+
* For example:
|
|
50
|
+
* This year is 2024, The year dropdown will be 1974 to 2024 which is generated by `2024 - 50 = 1974` and `2024 + 50 = 2074`.
|
|
51
|
+
* */
|
|
52
|
+
yearRange?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The format is derived from the `date-fns` documentation.
|
|
55
|
+
* @reference https://date-fns.org/v3.6.0/docs/format
|
|
56
|
+
**/
|
|
57
|
+
displayFormat?: {
|
|
58
|
+
hour24?: string;
|
|
59
|
+
hour12?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The granularity prop allows you to control the smallest unit that is displayed by DateTimePicker.
|
|
63
|
+
* By default, the value is `second` which shows all time inputs.
|
|
64
|
+
**/
|
|
65
|
+
granularity?: Granularity;
|
|
66
|
+
className?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Show the default month and time when popup the calendar. Default is the current Date().
|
|
69
|
+
**/
|
|
70
|
+
defaultPopupValue?: Date;
|
|
71
|
+
} & Pick<DayPickerProps, 'locale' | 'weekStartsOn' | 'showWeekNumber' | 'showOutsideDays'>;
|
|
72
|
+
type DateTimePickerRef = {
|
|
73
|
+
value?: Date;
|
|
74
|
+
} & Omit<HTMLInputElement, 'value'>;
|
|
75
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<{
|
|
76
|
+
value?: Date;
|
|
77
|
+
onChange?: (date: Date | undefined) => void;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
dateFormat?: string;
|
|
80
|
+
timeFormat?: string;
|
|
81
|
+
/** showing `AM/PM` or not. */
|
|
82
|
+
hourCycle?: 12 | 24;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The year range will be: `This year + yearRange` and `this year - yearRange`.
|
|
86
|
+
* Default is 50.
|
|
87
|
+
* For example:
|
|
88
|
+
* This year is 2024, The year dropdown will be 1974 to 2024 which is generated by `2024 - 50 = 1974` and `2024 + 50 = 2074`.
|
|
89
|
+
* */
|
|
90
|
+
yearRange?: number;
|
|
91
|
+
/**
|
|
92
|
+
* The format is derived from the `date-fns` documentation.
|
|
93
|
+
* @reference https://date-fns.org/v3.6.0/docs/format
|
|
94
|
+
**/
|
|
95
|
+
displayFormat?: {
|
|
96
|
+
hour24?: string;
|
|
97
|
+
hour12?: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* The granularity prop allows you to control the smallest unit that is displayed by DateTimePicker.
|
|
101
|
+
* By default, the value is `second` which shows all time inputs.
|
|
102
|
+
**/
|
|
103
|
+
granularity?: Granularity;
|
|
104
|
+
className?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Show the default month and time when popup the calendar. Default is the current Date().
|
|
107
|
+
**/
|
|
108
|
+
defaultPopupValue?: Date;
|
|
109
|
+
} & Pick<DayPickerProps, "showOutsideDays" | "showWeekNumber" | "locale" | "weekStartsOn"> & React.RefAttributes<Partial<DateTimePickerRef>>>;
|
|
110
|
+
export { DateTimePicker, TimePickerInput, TimePicker, formatCurrentDate };
|
|
111
|
+
export type { TimePickerType, DateTimePickerProps, DateTimePickerRef };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: 'default' | 'destructive';
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
|
|
13
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
14
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
|
|
15
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
20
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
|
|
21
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
|
|
25
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface WidgetProps {
|
|
3
|
+
presetColors: string[];
|
|
4
|
+
color: string;
|
|
5
|
+
onChange: (color: string | null) => void;
|
|
6
|
+
width: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useHexInput: (color: string, onChange: (color: string | null) => void) => {
|
|
9
|
+
inputValue: string;
|
|
10
|
+
handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
handleFocus: () => void;
|
|
12
|
+
handleBlur: () => void;
|
|
13
|
+
handleSwatchClick: (c: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const SwatchButton: React.FC<{
|
|
16
|
+
color: string;
|
|
17
|
+
isSelected: boolean;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const ColorPreview: React.FC<{
|
|
21
|
+
color: string;
|
|
22
|
+
size?: 'sm' | 'lg';
|
|
23
|
+
}>;
|
|
24
|
+
export declare const HexInput: React.FC<{
|
|
25
|
+
value: string;
|
|
26
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
onFocus: () => void;
|
|
28
|
+
onBlur: () => void;
|
|
29
|
+
fullWidth?: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const SwatchGrid: React.FC<{
|
|
32
|
+
colors: string[];
|
|
33
|
+
selectedColor: string;
|
|
34
|
+
onSelect: (color: string) => void;
|
|
35
|
+
}>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ColorFormat } from './color-formatter';
|
|
3
|
-
|
|
3
|
+
interface FieldInput {
|
|
4
|
+
value: string | null;
|
|
5
|
+
onChange: (value: string | null) => void;
|
|
6
|
+
}
|
|
4
7
|
interface Props {
|
|
5
8
|
colorFormat: ColorFormat;
|
|
6
9
|
userColors: string[];
|
|
7
10
|
widget?: 'sketch' | 'block';
|
|
8
|
-
|
|
11
|
+
width?: string;
|
|
12
|
+
input: FieldInput;
|
|
9
13
|
}
|
|
10
14
|
export declare const ColorPicker: React.FC<Props>;
|
|
11
15
|
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const TRANSPARENT = "transparent";
|
|
2
|
+
export declare const isValidHex: (value: string) => boolean;
|
|
3
|
+
export declare const expandHex: (hex: string) => string;
|
|
4
|
+
export declare const hexToRgb: (hex: string) => {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
} | null;
|
|
9
|
+
/**
|
|
10
|
+
* Converts RGB color values to a hex color string (e.g., "#FF0000" for red).
|
|
11
|
+
*
|
|
12
|
+
* How it works:
|
|
13
|
+
* We need to convert three numbers (r, g, b) each ranging 0-255 into a 6-digit hex string.
|
|
14
|
+
* For example: rgb(255, 128, 0) should become "#FF8000"
|
|
15
|
+
*
|
|
16
|
+
* The bit-shifting approach combines all three values into one number:
|
|
17
|
+
* - (1 << 24) = 16777216 (0x1000000) - This adds a leading '1' to guarantee we always
|
|
18
|
+
* get 7 hex digits, which we later remove. Without this, rgb(0, 0, 255) would give
|
|
19
|
+
* us "FF" instead of "0000FF".
|
|
20
|
+
* - (r << 16) shifts red left by 16 bits, placing it in positions for the first two hex digits
|
|
21
|
+
* - (g << 8) shifts green left by 8 bits, placing it in positions for the middle two hex digits
|
|
22
|
+
* - b stays as-is, occupying the last two hex digits
|
|
23
|
+
*
|
|
24
|
+
* Example with rgb(255, 128, 0):
|
|
25
|
+
* 16777216 + (255 << 16) + (128 << 8) + 0
|
|
26
|
+
* = 16777216 + 16711680 + 32768 + 0
|
|
27
|
+
* = 33521664
|
|
28
|
+
* = 0x1FF8000 (as hex string: "1FF8000")
|
|
29
|
+
* After slice(1): "FF8000"
|
|
30
|
+
* Final result: "#FF8000"
|
|
31
|
+
*/
|
|
32
|
+
export declare const rgbToHex: (r: number, g: number, b: number) => string;
|
|
33
|
+
export declare const checkerboardStyle: (size?: number) => {
|
|
34
|
+
backgroundImage: string;
|
|
35
|
+
backgroundSize: string;
|
|
36
|
+
backgroundPosition: string;
|
|
37
|
+
};
|
|
@@ -4,6 +4,6 @@ export interface PasswordFieldProps extends a {
|
|
|
4
4
|
error?: boolean;
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
|
-
export declare const passwordFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded
|
|
7
|
+
export declare const passwordFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded";
|
|
8
8
|
export declare const BasePasswordField: React.ForwardRefExoticComponent<Omit<PasswordFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: {
|
|
4
4
|
variant?: "outline";
|
|
5
5
|
size?: "default" | "icon" | "sm" | "lg";
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}
|
|
@@ -1,67 +1,55 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
} &
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
-
} & {
|
|
4
|
+
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
5
|
asChild?: boolean;
|
|
8
|
-
}, "
|
|
6
|
+
}, "ref"> & {
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
disablePointerSelection?: boolean;
|
|
9
9
|
label?: string;
|
|
10
|
+
loop?: boolean;
|
|
10
11
|
shouldFilter?: boolean;
|
|
11
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
12
|
-
defaultValue?: string;
|
|
13
12
|
value?: string;
|
|
14
|
-
onValueChange?: (value: string) => void;
|
|
15
|
-
loop?: boolean;
|
|
16
|
-
disablePointerSelection?: boolean;
|
|
17
13
|
vimBindings?: boolean;
|
|
14
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
18
16
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<
|
|
20
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
21
|
-
} & {
|
|
17
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.ClassAttributes<HTMLInputElement> & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
22
18
|
asChild?: boolean;
|
|
23
|
-
}, "
|
|
19
|
+
}, "ref">, "value" | "type" | "onChange"> & {
|
|
24
20
|
value?: string;
|
|
25
21
|
onValueChange?: (search: string) => void;
|
|
26
22
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
23
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
28
24
|
children?: React.ReactNode;
|
|
29
|
-
} &
|
|
30
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
-
} & {
|
|
25
|
+
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
32
26
|
asChild?: boolean;
|
|
33
|
-
}, "
|
|
27
|
+
}, "ref"> & {
|
|
34
28
|
label?: string;
|
|
35
29
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
30
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
37
31
|
children?: React.ReactNode;
|
|
38
|
-
} &
|
|
39
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
40
|
-
} & {
|
|
32
|
+
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
41
33
|
asChild?: boolean;
|
|
42
|
-
}, "
|
|
34
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
35
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
44
36
|
children?: React.ReactNode;
|
|
45
|
-
} & Omit<
|
|
46
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
-
} & {
|
|
37
|
+
} & Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
48
38
|
asChild?: boolean;
|
|
49
|
-
}, "
|
|
39
|
+
}, "ref">, "value" | "heading"> & {
|
|
40
|
+
forceMount?: boolean;
|
|
50
41
|
heading?: React.ReactNode;
|
|
51
42
|
value?: string;
|
|
52
|
-
forceMount?: boolean;
|
|
53
43
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
44
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
55
45
|
children?: React.ReactNode;
|
|
56
|
-
} & Omit<
|
|
57
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
-
} & {
|
|
46
|
+
} & Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
59
47
|
asChild?: boolean;
|
|
60
|
-
}, "
|
|
48
|
+
}, "ref">, "value" | "disabled" | "onSelect"> & {
|
|
61
49
|
disabled?: boolean;
|
|
62
|
-
onSelect?: (value: string) => void;
|
|
63
|
-
value?: string;
|
|
64
|
-
keywords?: string[];
|
|
65
50
|
forceMount?: boolean;
|
|
51
|
+
keywords?: string[];
|
|
52
|
+
value?: string;
|
|
53
|
+
onSelect?: (value: string) => void;
|
|
66
54
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
55
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { Field } from '../../forms';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
type Option = {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -18,6 +18,6 @@ export interface SelectProps {
|
|
|
18
18
|
options?: (Option | string)[];
|
|
19
19
|
className?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const selectFieldClasses = "shadow appearance-none bg-white block pl-3 pr-8 py-2 truncate w-full text-base cursor-pointer border border-gray-200 focus:outline-none focus:shadow-outline focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded
|
|
21
|
+
export declare const selectFieldClasses = "shadow appearance-none h-full bg-white block pl-3 pr-8 py-2 truncate w-full text-base cursor-pointer border border-gray-200 focus:outline-none focus:shadow-outline focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded";
|
|
22
22
|
export declare const Select: React.FC<SelectProps>;
|
|
23
23
|
export {};
|
|
@@ -4,6 +4,6 @@ export interface TextFieldProps extends a {
|
|
|
4
4
|
error?: boolean;
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
|
-
export declare const textFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded
|
|
7
|
+
export declare const textFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded";
|
|
8
8
|
export declare const BaseTextField: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const ButtonToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("
|
|
1
|
+
export declare const ButtonToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("..").ButtonToggleProps, {}>) => import("react").JSX.Element;
|
|
2
2
|
export declare const ButtonToggleFieldPlugin: {
|
|
3
3
|
name: string;
|
|
4
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("
|
|
4
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("..").ButtonToggleProps, {}>) => import("react").JSX.Element;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const CheckboxGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("
|
|
1
|
+
export declare const CheckboxGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("..").CheckboxGroupProps, {}>) => import("react").JSX.Element;
|
|
2
2
|
export declare const CheckboxGroupFieldPlugin: {
|
|
3
3
|
name: string;
|
|
4
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("
|
|
4
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("..").CheckboxGroupProps, {}>) => import("react").JSX.Element;
|
|
5
5
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
6
6
|
};
|
|
@@ -4,6 +4,7 @@ export interface ColorFieldProps {
|
|
|
4
4
|
colorFormat: string;
|
|
5
5
|
colors: string[];
|
|
6
6
|
widget?: 'sketch' | 'block';
|
|
7
|
+
width?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const ColorField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => React.JSX.Element;
|
|
9
10
|
export declare const ColorFieldPlugin: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type InputProps } from '../components';
|
|
3
3
|
import type { DatetimepickerProps } from 'react-datetime';
|
|
4
|
-
import type { Field } from '../../forms';
|
|
5
4
|
export declare const DateField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => React.JSX.Element;
|
|
6
|
-
export declare const ReactDateTimeWithStyles: (props: DatetimepickerProps & Partial<Field>) => React.JSX.Element;
|
|
7
5
|
export declare const DateFieldPlugin: {
|
|
8
6
|
__type: string;
|
|
9
7
|
name: string;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DropResult {
|
|
3
|
+
destination: {
|
|
4
|
+
index: number;
|
|
5
|
+
} | null;
|
|
6
|
+
source: {
|
|
7
|
+
index: number;
|
|
8
|
+
};
|
|
9
|
+
type: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DragDropContextProps {
|
|
12
|
+
onDragEnd: (result: DropResult) => void;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface DroppableProps {
|
|
16
|
+
droppableId: string;
|
|
17
|
+
type: string;
|
|
18
|
+
children: (provided: {
|
|
19
|
+
innerRef: React.RefObject<HTMLDivElement>;
|
|
20
|
+
placeholder: React.ReactNode;
|
|
21
|
+
}) => React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export interface DraggableProps {
|
|
24
|
+
draggableId: string;
|
|
25
|
+
index: number;
|
|
26
|
+
children: (provided: {
|
|
27
|
+
innerRef: React.RefObject<HTMLElement>;
|
|
28
|
+
draggableProps: {
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
ref?: any;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
dragHandleProps: {
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
}, snapshot: {
|
|
38
|
+
isDragging: boolean;
|
|
39
|
+
}) => React.ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare const DragDropContext: React.FC<DragDropContextProps>;
|
|
42
|
+
export declare const Droppable: React.FC<DroppableProps>;
|
|
43
|
+
export declare const Draggable: React.FC<DraggableProps>;
|
|
44
|
+
interface SortableProviderProps {
|
|
45
|
+
items: string[];
|
|
46
|
+
children: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export declare const SortableProvider: React.FC<SortableProviderProps>;
|
|
49
|
+
export {};
|
|
@@ -4,6 +4,7 @@ interface GroupFieldDefinititon extends Field {
|
|
|
4
4
|
component: 'group';
|
|
5
5
|
fields: Field[];
|
|
6
6
|
defaultItem?: object | (() => object);
|
|
7
|
+
addItemBehavior?: 'append' | 'prepend';
|
|
7
8
|
/**
|
|
8
9
|
* An optional function which generates `props` for
|
|
9
10
|
* this items's `li`.
|
|
@@ -50,8 +51,9 @@ export declare const ItemDeleteButton: ({ onClick, disabled }: {
|
|
|
50
51
|
onClick: any;
|
|
51
52
|
disabled?: boolean;
|
|
52
53
|
}) => React.JSX.Element;
|
|
53
|
-
export declare const DragHandle: ({ isDragging }: {
|
|
54
|
+
export declare const DragHandle: ({ isDragging, dragHandleProps, }: {
|
|
54
55
|
isDragging: boolean;
|
|
56
|
+
dragHandleProps?: any;
|
|
55
57
|
}) => React.JSX.Element;
|
|
56
58
|
export declare const GroupListField: ({ tinaForm, form, field, input, meta, index }: GroupProps) => React.JSX.Element;
|
|
57
59
|
export declare const GroupListFieldPlugin: {
|
|
@@ -7,9 +7,12 @@ interface ListFieldDefinititon extends Field {
|
|
|
7
7
|
field: {
|
|
8
8
|
component: 'text' | 'textarea' | 'number' | 'select' | 'image';
|
|
9
9
|
};
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
10
12
|
type?: string;
|
|
11
13
|
list?: boolean;
|
|
12
14
|
parentTypename?: string;
|
|
15
|
+
addItemBehavior?: 'append' | 'prepend';
|
|
13
16
|
/**
|
|
14
17
|
* An optional function which generates `props` for
|
|
15
18
|
* this items's `li`.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type InputFieldType } from '../wrap-field-with-meta';
|
|
3
|
-
import type { MdxTemplate } from './plate/types';
|
|
4
3
|
import type { InputProps } from '../../../fields/components';
|
|
5
|
-
import type {
|
|
4
|
+
import type { ToolbarOverrideType, ToolbarOverrides } from './plate/toolbar/toolbar-overrides';
|
|
5
|
+
import type { MdxTemplate } from './plate/types';
|
|
6
6
|
export type RichTextType = React.PropsWithChildren<InputFieldType<InputProps, {
|
|
7
7
|
templates: MdxTemplate[];
|
|
8
8
|
toolbarOverride?: ToolbarOverrideType[];
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PlateContentProps } from '@udecode/plate
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PlateContentProps } from '@udecode/plate/react';
|
|
3
3
|
import type { VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const editorContainerVariants: (props?: {
|
|
5
|
+
variant?: "default" | "select" | "comment" | "demo";
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
|
+
export declare const EditorContainer: {
|
|
8
|
+
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof editorContainerVariants>): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
4
11
|
declare const editorVariants: (props?: {
|
|
5
12
|
disabled?: boolean;
|
|
6
|
-
focusRing?: boolean;
|
|
7
13
|
focused?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
14
|
+
variant?: "default" | "select" | "none" | "fullWidth" | "comment" | "demo" | "ai" | "aiChat";
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
16
|
export type EditorProps = PlateContentProps & VariantProps<typeof editorVariants>;
|
|
12
|
-
declare const Editor: React.ForwardRefExoticComponent<{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} & Omit<import("slate-react/dist/components/editable").EditableProps, "decorate" | "renderElement" | "renderLeaf"> & VariantProps<(props?: {
|
|
17
|
+
export declare const Editor: React.ForwardRefExoticComponent<Omit<import("@udecode/plate").EditableProps, "decorate"> & {
|
|
18
|
+
autoFocusOnEditable?: boolean;
|
|
19
|
+
decorate?: import("@udecode/plate/react").PlateStoreState["decorate"];
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
renderEditable?: (editable: React.ReactElement<any>) => React.ReactNode;
|
|
22
|
+
} & VariantProps<(props?: {
|
|
19
23
|
disabled?: boolean;
|
|
20
|
-
focusRing?: boolean;
|
|
21
24
|
focused?: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
export { Editor };
|
|
25
|
+
variant?: "default" | "select" | "none" | "fullWidth" | "comment" | "demo" | "ai" | "aiChat";
|
|
26
|
+
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export {};
|