@factorialco/deprecated-design-system 0.0.4 → 0.0.6
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/deprecated-design-system.d.ts +0 -83
- package/dist/deprecated-design-system.js +9888 -11595
- package/dist/deprecated-design-system.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -4,23 +4,16 @@ import { DayPicker as DayPicker_2 } from 'react-day-picker';
|
|
|
4
4
|
import { default as default_2 } from 'react';
|
|
5
5
|
import { default as default_3 } from 'moment';
|
|
6
6
|
import { default as default_4 } from 'react-infinite-scroller';
|
|
7
|
-
import { DOMConversionMap } from 'lexical';
|
|
8
|
-
import { DOMExportOutput } from 'lexical';
|
|
9
7
|
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
10
|
-
import { EditorConfig } from 'lexical';
|
|
11
8
|
import { FC } from 'react';
|
|
12
|
-
import { FileRejection } from 'react-dropzone';
|
|
13
|
-
import { InitialEditorStateType } from '@lexical/react/LexicalComposer';
|
|
14
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
15
10
|
import { JSXElementConstructor } from 'react';
|
|
16
11
|
import { LargeIcon as LargeIcon_2 } from '../..';
|
|
17
|
-
import { LexicalEditor } from 'lexical';
|
|
18
12
|
import { Link as Link_2 } from 'react-router-dom';
|
|
19
13
|
import { MotionProps } from 'framer-motion';
|
|
20
14
|
import { MotionStyle } from 'framer-motion';
|
|
21
15
|
import { MotionValue } from 'framer-motion';
|
|
22
16
|
import { MouseEventHandler } from 'react';
|
|
23
|
-
import { NodeKey } from 'lexical';
|
|
24
17
|
import { PieCustomLayerProps } from '@nivo/pie';
|
|
25
18
|
import * as Primitive_2 from '@radix-ui/react-dialog';
|
|
26
19
|
import { Props as Props_10 } from './ImageStep';
|
|
@@ -34,14 +27,9 @@ import { ReactElement } from 'react';
|
|
|
34
27
|
import { ReactNode } from 'react';
|
|
35
28
|
import { ResponsiveBar } from '@nivo/bar';
|
|
36
29
|
import { ResponsiveLine } from '@nivo/line';
|
|
37
|
-
import { SerializedTextNode } from 'lexical';
|
|
38
30
|
import { SettingProps } from './restricted/Settings';
|
|
39
|
-
import { Spread } from 'lexical';
|
|
40
|
-
import { TextNode } from 'lexical';
|
|
41
31
|
import { To } from 'react-router-dom';
|
|
42
32
|
|
|
43
|
-
export declare function $createMentionNode(mention: any): MentionNode;
|
|
44
|
-
|
|
45
33
|
export declare function ActionItem({ children, disabled, highlighted, whiteDisabled, transparent, onClick, selected, showIcon, href, to, icon, slim, }: React_2.PropsWithChildren<Props_101>): JSX_2.Element | null;
|
|
46
34
|
|
|
47
35
|
declare interface ActionProps {
|
|
@@ -1102,42 +1090,6 @@ declare type DurationInputProps = {
|
|
|
1102
1090
|
locale: string;
|
|
1103
1091
|
};
|
|
1104
1092
|
|
|
1105
|
-
declare type editorDimensions = Dimensions;
|
|
1106
|
-
|
|
1107
|
-
export declare interface EditorHandle {
|
|
1108
|
-
clear: () => void;
|
|
1109
|
-
clearFiles: () => void;
|
|
1110
|
-
focus: () => void;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
declare interface EditorProps<TResult> {
|
|
1114
|
-
onChange: (html: string | null | TResult) => void;
|
|
1115
|
-
onFiles?: onFiles;
|
|
1116
|
-
initialEditorState?: {
|
|
1117
|
-
data?: InitialEditorStateType;
|
|
1118
|
-
files?: File[];
|
|
1119
|
-
};
|
|
1120
|
-
/**
|
|
1121
|
-
* Limits the maximum allowed file size (in MB) for file upload size.
|
|
1122
|
-
*/
|
|
1123
|
-
maxFileSize?: number;
|
|
1124
|
-
height?: editorDimensions;
|
|
1125
|
-
placeholder: string;
|
|
1126
|
-
readonly?: boolean;
|
|
1127
|
-
isRichText?: boolean;
|
|
1128
|
-
enableBetaFeatures?: boolean;
|
|
1129
|
-
missingLabel: string;
|
|
1130
|
-
selectValue: string;
|
|
1131
|
-
richTextCustomPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
|
|
1132
|
-
customPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
|
|
1133
|
-
richCustomOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
|
|
1134
|
-
customOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
|
|
1135
|
-
onDropRejected: (rejections: FileRejection[]) => void;
|
|
1136
|
-
saveButtonLabel: string;
|
|
1137
|
-
removeButtonLabel: string;
|
|
1138
|
-
errorLabelFn: (validUrl: boolean, linkUrl: string) => string | undefined;
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
1093
|
declare type Element_2 = ReactElement<PropsWithChildren, JSXElementConstructor<unknown>>;
|
|
1142
1094
|
|
|
1143
1095
|
declare type Element_3 = ReactElement<PropsWithChildren, JSXElementConstructor<unknown>>;
|
|
@@ -1579,21 +1531,6 @@ declare type MediumProps = Props_14 & {
|
|
|
1579
1531
|
icon: MediumIcon;
|
|
1580
1532
|
};
|
|
1581
1533
|
|
|
1582
|
-
declare class MentionNode extends TextNode {
|
|
1583
|
-
__mention: string;
|
|
1584
|
-
__id: number;
|
|
1585
|
-
__employeeId: number;
|
|
1586
|
-
static getType(): string;
|
|
1587
|
-
static clone(node: MentionNode): MentionNode;
|
|
1588
|
-
static importJSON(serializedNode: SerializedMentionNode): MentionNode;
|
|
1589
|
-
constructor(mention: any, text?: string, key?: NodeKey);
|
|
1590
|
-
exportJSON(): SerializedMentionNode;
|
|
1591
|
-
createDOM(config: EditorConfig): HTMLElement;
|
|
1592
|
-
exportDOM(): DOMExportOutput;
|
|
1593
|
-
static importDOM(): DOMConversionMap | null;
|
|
1594
|
-
isTextEntity(): true;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
1534
|
export declare function MiniCard({ buttonCta, children, counter, disabled, onClick, title, }: React_2.PropsWithChildren<Props_97>): JSX_2.Element;
|
|
1598
1535
|
|
|
1599
1536
|
export declare const MiniCardHeader: ({ counter, children, disabled }: React_2.PropsWithChildren<Props_98>) => JSX_2.Element;
|
|
@@ -1798,8 +1735,6 @@ export declare const NumericMetric: ({ title, isPercentage, value, decimals, foo
|
|
|
1798
1735
|
|
|
1799
1736
|
declare type OnClickArguments = Parameters<MouseEventHandler<HTMLButtonElement>>;
|
|
1800
1737
|
|
|
1801
|
-
declare type onFiles = (files: File[]) => void;
|
|
1802
|
-
|
|
1803
1738
|
declare const Option_2: FC<Props_5>;
|
|
1804
1739
|
|
|
1805
1740
|
declare interface Option_3 {
|
|
@@ -3133,12 +3068,6 @@ export declare const Selector: {
|
|
|
3133
3068
|
Popover: FC<PopoverProps>;
|
|
3134
3069
|
};
|
|
3135
3070
|
|
|
3136
|
-
declare type SerializedMentionNode = Spread<{
|
|
3137
|
-
mentionName: string;
|
|
3138
|
-
type: 'mention';
|
|
3139
|
-
version: 1;
|
|
3140
|
-
}, SerializedTextNode>;
|
|
3141
|
-
|
|
3142
3071
|
declare interface SettingsProps {
|
|
3143
3072
|
onClick: () => void;
|
|
3144
3073
|
description: string;
|
|
@@ -3544,10 +3473,6 @@ declare interface TextCalloutProps extends BaseCalloutProps {
|
|
|
3544
3473
|
children?: never;
|
|
3545
3474
|
}
|
|
3546
3475
|
|
|
3547
|
-
export declare const TextEditor: <TResult>(props: Omit<EditorProps<TResult>, "maxFileSizeError"> & {
|
|
3548
|
-
maxFileSizeError: string;
|
|
3549
|
-
} & default_2.RefAttributes<EditorHandle>) => default_2.ReactElement | null;
|
|
3550
|
-
|
|
3551
3476
|
export declare const TextField: {
|
|
3552
3477
|
({ type, onClick, onChange, onFocus, onBlur, onKeyDown, autofocus, error, hideError, isNotValid, label, inputId, hideLabel, hideBorder, value, placeholder, maxLength, getRef, focused: forceFocus, readonly, description, secondaryLabel, ariaHidden, completed, loading, mandatory, indicator, min, max, step, isClickableIcon, isFloatingIndicator, defaultValue, showEllipsis, textAlign, attachmentPosition, autofilled, title, avoidPasswordManagers, onboardingId, missingLabel, selectValue, }: DesignSystemTextFieldProps): JSX_2.Element;
|
|
3553
3478
|
Select(props: DesignSystemTextFieldProps): JSX_2.Element;
|
|
@@ -5001,12 +4926,6 @@ export declare function useDangerousConfirmationDialog(): {
|
|
|
5001
4926
|
isOpen: boolean;
|
|
5002
4927
|
};
|
|
5003
4928
|
|
|
5004
|
-
/**
|
|
5005
|
-
* A hook similar to `useLexicalComposerContext`, but that rerenders when
|
|
5006
|
-
* something in the editor changes.
|
|
5007
|
-
*/
|
|
5008
|
-
export declare const useEditor: () => LexicalEditor;
|
|
5009
|
-
|
|
5010
4929
|
export declare function useEffect(effect: React_2.EffectCallback, deps: Scalar[]): void;
|
|
5011
4930
|
|
|
5012
4931
|
export declare function useLightness(): Lightness;
|
|
@@ -5041,8 +4960,6 @@ export declare function useUnsafeEffect(effect: React_2.EffectCallback, deps?: R
|
|
|
5041
4960
|
|
|
5042
4961
|
export declare function useUnsafeMemo<T>(factory: () => T, deps?: React_2.DependencyList | undefined): T;
|
|
5043
4962
|
|
|
5044
|
-
export declare function validateUrl(url: string): boolean;
|
|
5045
|
-
|
|
5046
4963
|
declare type Value = string | number | null | undefined;
|
|
5047
4964
|
|
|
5048
4965
|
/**
|