@factorialco/deprecated-design-system 0.0.2 → 0.0.4
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.
|
@@ -104,7 +104,7 @@ export declare type AvatarBadgeProps = React.ComponentProps<typeof Badge_2>;
|
|
|
104
104
|
|
|
105
105
|
export declare type AvatarColorProps = Extract<ColorFamily, 'grey' | 'radicalRed' | 'tangerine' | 'malibu' | 'lime' | 'champagne' | 'viridian' | 'purple'>;
|
|
106
106
|
|
|
107
|
-
export declare const AvatarStack: ({ avatars, size, leftover, textSize, backgroundColor, textColor, overlap, gap }: AvatarStackProps) => JSX_2.Element;
|
|
107
|
+
export declare const AvatarStack: ({ avatars, size, leftover, textSize, backgroundColor, textColor, overlap, gap, }: AvatarStackProps) => JSX_2.Element;
|
|
108
108
|
|
|
109
109
|
export declare interface AvatarStackProps {
|
|
110
110
|
size: Dimensions;
|
|
@@ -269,6 +269,7 @@ declare type BaseProps = React_2.PropsWithChildren<{
|
|
|
269
269
|
htmlTag?: AllowedTags;
|
|
270
270
|
stroked?: boolean;
|
|
271
271
|
inline?: boolean;
|
|
272
|
+
fontStyle?: FontStyle;
|
|
272
273
|
className?: string;
|
|
273
274
|
weight?: WeightType;
|
|
274
275
|
innerRef?: {
|
|
@@ -504,7 +505,7 @@ declare interface CallToActionAtomProps {
|
|
|
504
505
|
notShowAgainCheckBoxProps?: NotShowAgainProps;
|
|
505
506
|
}
|
|
506
507
|
|
|
507
|
-
export declare const CallToActionPad: ({ backgroundColor, title, description, onClick, buttonLabel, link, textAlign, "aria-label": ariaLabel, size, notShowAgainCheckBoxProps }: CallToActionProps) => JSX_2.Element;
|
|
508
|
+
export declare const CallToActionPad: ({ backgroundColor, title, description, onClick, buttonLabel, link, textAlign, "aria-label": ariaLabel, size, notShowAgainCheckBoxProps, }: CallToActionProps) => JSX_2.Element;
|
|
508
509
|
|
|
509
510
|
declare type CallToActionProps = TooltipPadProps & CallToActionAtomProps;
|
|
510
511
|
|
|
@@ -1127,8 +1128,8 @@ declare interface EditorProps<TResult> {
|
|
|
1127
1128
|
enableBetaFeatures?: boolean;
|
|
1128
1129
|
missingLabel: string;
|
|
1129
1130
|
selectValue: string;
|
|
1130
|
-
richTextCustomPlugins?: default_2.ReactNode;
|
|
1131
|
-
customPlugins?: default_2.ReactNode;
|
|
1131
|
+
richTextCustomPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
|
|
1132
|
+
customPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
|
|
1132
1133
|
richCustomOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
|
|
1133
1134
|
customOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
|
|
1134
1135
|
onDropRejected: (rejections: FileRejection[]) => void;
|
|
@@ -1265,6 +1266,8 @@ export declare const fonts: {
|
|
|
1265
1266
|
|
|
1266
1267
|
export declare type FontsSizes = keyof typeof fonts.sizes;
|
|
1267
1268
|
|
|
1269
|
+
declare type FontStyle = 'italic' | 'normal';
|
|
1270
|
+
|
|
1268
1271
|
export declare type FontsWeights = keyof typeof fonts.weights;
|
|
1269
1272
|
|
|
1270
1273
|
declare const Footer: FC<PropsWithChildren<Props_77>>;
|
|
@@ -1434,7 +1437,7 @@ declare interface ItemListAtomProps {
|
|
|
1434
1437
|
gapDivider?: boolean;
|
|
1435
1438
|
}
|
|
1436
1439
|
|
|
1437
|
-
export declare const ItemListPad: ({ backgroundColor, title, children, "aria-label": ariaLabel, gapDivider, size }: React_2.PropsWithChildren<ItemListProps>) => JSX_2.Element;
|
|
1440
|
+
export declare const ItemListPad: ({ backgroundColor, title, children, "aria-label": ariaLabel, gapDivider, size, }: React_2.PropsWithChildren<ItemListProps>) => JSX_2.Element;
|
|
1438
1441
|
|
|
1439
1442
|
declare type ItemListProps = TooltipPadProps & ItemListAtomProps;
|
|
1440
1443
|
|
|
@@ -3325,17 +3328,17 @@ declare const Table: {
|
|
|
3325
3328
|
Body: (props: {
|
|
3326
3329
|
children?: React_2.ReactNode | undefined;
|
|
3327
3330
|
} & React_2.RefAttributes<HTMLTableSectionElement>) => React_2.ReactElement | null;
|
|
3328
|
-
BodyWithInfiniteScroll: ({ children, page, loadMore, hasMore, colSpan }: React_2.PropsWithChildren< TableBodyWithInfiniteScrollProps>) => JSX_2.Element;
|
|
3329
|
-
Cell: ({ children, sticky, colSpan, wide, rowClickable, verticalAlign, isExplotable, noBorder, width, padding, paddingY, paddingX, style }: React_2.PropsWithChildren< TableCellProps>) => JSX_2.Element;
|
|
3330
|
-
ExpandableRow: ({ content, toggle, opened, icon, iconColSpan, iconPosition, isExpandable, children }: React_2.PropsWithChildren< TableExpandableRowProps>) => JSX_2.Element;
|
|
3331
|
+
BodyWithInfiniteScroll: ({ children, page, loadMore, hasMore, colSpan, }: React_2.PropsWithChildren< TableBodyWithInfiniteScrollProps>) => JSX_2.Element;
|
|
3332
|
+
Cell: ({ children, sticky, colSpan, wide, rowClickable, verticalAlign, isExplotable, noBorder, width, padding, paddingY, paddingX, style, }: React_2.PropsWithChildren< TableCellProps>) => JSX_2.Element;
|
|
3333
|
+
ExpandableRow: ({ content, toggle, opened, icon, iconColSpan, iconPosition, isExpandable, children, }: React_2.PropsWithChildren< TableExpandableRowProps>) => JSX_2.Element;
|
|
3331
3334
|
GridContext: React_2.Context<boolean>;
|
|
3332
3335
|
Head: (props: {
|
|
3333
3336
|
children?: React_2.ReactNode | undefined;
|
|
3334
3337
|
} & React_2.RefAttributes<HTMLTableSectionElement>) => React_2.ReactElement | null;
|
|
3335
|
-
HeadCell: ({ left, children, width, sticky, highlighted, colSpan, wide, ellipsis, justifyContent, padding, paddingY, paddingX, background, style }: React_2.PropsWithChildren< TableHeadCellProps>) => JSX_2.Element;
|
|
3338
|
+
HeadCell: ({ left, children, width, sticky, highlighted, colSpan, wide, ellipsis, justifyContent, padding, paddingY, paddingX, background, style, }: React_2.PropsWithChildren< TableHeadCellProps>) => JSX_2.Element;
|
|
3336
3339
|
Loading: ({ colSpan }: TableLoadingProps) => JSX_2.Element;
|
|
3337
3340
|
Row: {
|
|
3338
|
-
({ trRef, children, onMouseEnter, onMouseLeave, onClick, link, background, clickable, className, backgroundHover, style }: TableRowProps): JSX_2.Element;
|
|
3341
|
+
({ trRef, children, onMouseEnter, onMouseLeave, onClick, link, background, clickable, className, backgroundHover, style, }: TableRowProps): JSX_2.Element;
|
|
3339
3342
|
Router: ({ children, to, background }: {
|
|
3340
3343
|
to: string;
|
|
3341
3344
|
background?: Colors;
|
|
@@ -3343,8 +3346,8 @@ declare const Table: {
|
|
|
3343
3346
|
children?: React_2.ReactNode | undefined;
|
|
3344
3347
|
}) => JSX_2.Element;
|
|
3345
3348
|
};
|
|
3346
|
-
SortableHeadCell: ({ left, right, sticky, children, colSpan, onSort, sortAttribute, sortDirection, attribute, wide, width, padding, justifyContent }: React_2.PropsWithChildren< SortableHeadCellProps>) => JSX_2.Element;
|
|
3347
|
-
SortingHeader: ({ children, selected, onClick, justifyContent }: React_2.PropsWithChildren< TableSortingHeaderProps>) => JSX_2.Element;
|
|
3349
|
+
SortableHeadCell: ({ left, right, sticky, children, colSpan, onSort, sortAttribute, sortDirection, attribute, wide, width, padding, justifyContent, }: React_2.PropsWithChildren< SortableHeadCellProps>) => JSX_2.Element;
|
|
3350
|
+
SortingHeader: ({ children, selected, onClick, justifyContent, }: React_2.PropsWithChildren< TableSortingHeaderProps>) => JSX_2.Element;
|
|
3348
3351
|
};
|
|
3349
3352
|
export { Table as GammaTable }
|
|
3350
3353
|
export { Table }
|
|
@@ -3470,7 +3473,7 @@ declare interface TabStruct {
|
|
|
3470
3473
|
}
|
|
3471
3474
|
|
|
3472
3475
|
declare const Tag: {
|
|
3473
|
-
({ icon, circle, inline, onClose, children, leftItem, disabled, rightItem, solid, upcased, ellipsis, size, capitalize, showCircle, type, showActionIcon, iconColor }: React_2.PropsWithChildren<Props_20>): JSX_2.Element;
|
|
3476
|
+
({ icon, circle, inline, onClose, children, leftItem, disabled, rightItem, solid, upcased, ellipsis, size, capitalize, showCircle, type, showActionIcon, iconColor, }: React_2.PropsWithChildren<Props_20>): JSX_2.Element;
|
|
3474
3477
|
Types: typeof TagColor;
|
|
3475
3478
|
};
|
|
3476
3479
|
export { Tag as CircleTag }
|
|
@@ -3511,21 +3514,21 @@ declare type Target = 'upwards' | 'downwards' | 'neutral';
|
|
|
3511
3514
|
declare type TargetType = '_self' | '_blank';
|
|
3512
3515
|
|
|
3513
3516
|
declare const Text_2: {
|
|
3514
|
-
({ children, size, stroked, inline, dotted, dottedUnderline, weight, className, caps, capitalize, ellipsis, lineClamp, color, htmlTag, underlined, innerRef, whiteSpace, letterSpacing, overflowWrap, displayContents, title, id }: DesignSystemTextProps): React_2.ReactElement<{
|
|
3517
|
+
({ children, size, stroked, inline, dotted, dottedUnderline, weight, className, caps, capitalize, ellipsis, fontStyle, lineClamp, color, htmlTag, underlined, innerRef, whiteSpace, letterSpacing, overflowWrap, displayContents, title, id, }: DesignSystemTextProps): React_2.ReactElement<{
|
|
3515
3518
|
className: string;
|
|
3516
3519
|
title: React_2.ReactNode;
|
|
3517
3520
|
ref: {
|
|
3518
3521
|
current: null | HTMLElement;
|
|
3519
3522
|
} | undefined;
|
|
3520
3523
|
style: {
|
|
3521
|
-
|
|
3524
|
+
fontStyle: FontStyle;
|
|
3522
3525
|
};
|
|
3523
3526
|
id: string | undefined;
|
|
3524
3527
|
}, string | React_2.JSXElementConstructor<any>>;
|
|
3525
|
-
Header1({ children, htmlTag, weight, stroked, inline, innerRef, overflowWrap, color, ellipsis, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3526
|
-
Header2({ children, htmlTag, weight, stroked, inline, innerRef, overflowWrap, color, ellipsis, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3527
|
-
Header3({ children, htmlTag, stroked, inline, innerRef, overflowWrap, color, ellipsis, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3528
|
-
Normal({ children, weight, color, whiteSpace, ellipsis, lineClamp, caps, capitalize, stroked, dotted, underlined, dottedUnderline, size, htmlTag, innerRef, overflowWrap, ...baseProps }: NormalProps): JSX_2.Element;
|
|
3528
|
+
Header1({ children, htmlTag, weight, stroked, inline, innerRef, overflowWrap, color, ellipsis, fontStyle, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3529
|
+
Header2({ children, htmlTag, weight, stroked, inline, fontStyle, innerRef, overflowWrap, color, ellipsis, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3530
|
+
Header3({ children, htmlTag, stroked, inline, innerRef, overflowWrap, color, ellipsis, fontStyle, lineClamp, caps, capitalize, ...baseProps }: HeaderTextProps): JSX_2.Element;
|
|
3531
|
+
Normal({ children, weight, color, whiteSpace, ellipsis, fontStyle, lineClamp, caps, capitalize, stroked, dotted, underlined, dottedUnderline, size, htmlTag, innerRef, overflowWrap, ...baseProps }: NormalProps): JSX_2.Element;
|
|
3529
3532
|
};
|
|
3530
3533
|
export { Text_2 as GammaText }
|
|
3531
3534
|
export { Text_2 as Text }
|
|
@@ -4219,7 +4222,7 @@ export declare const ToggleButton: ({ onClick, label, disabled, toggled }: Butto
|
|
|
4219
4222
|
|
|
4220
4223
|
export declare const Toggler: ({ active, disabled, onChange, type, ariaLabel }: Props_103) => JSX_2.Element;
|
|
4221
4224
|
|
|
4222
|
-
export declare const TogglerCheckbox: ({ value, label, labelBefore, disabled, information, informationIcon, onChange, labelWeight, pendingAction, iconActive, iconInactive, "aria-label": ariaLabel }: Props_36) => JSX_2.Element;
|
|
4225
|
+
export declare const TogglerCheckbox: ({ value, label, labelBefore, disabled, information, informationIcon, onChange, labelWeight, pendingAction, iconActive, iconInactive, "aria-label": ariaLabel, }: Props_36) => JSX_2.Element;
|
|
4223
4226
|
|
|
4224
4227
|
export declare const tokens: {
|
|
4225
4228
|
base: {
|
|
@@ -4856,7 +4859,7 @@ declare const tooltipBackgroundColors: {
|
|
|
4856
4859
|
radicalRed1000: string;
|
|
4857
4860
|
};
|
|
4858
4861
|
|
|
4859
|
-
declare function TooltipButton({ to, onClick, children, disabled, 'aria-label': ariaLabel }: React_2.PropsWithChildren<TooltipButtonProps>): JSX_2.Element;
|
|
4862
|
+
declare function TooltipButton({ to, onClick, children, disabled, 'aria-label': ariaLabel, }: React_2.PropsWithChildren<TooltipButtonProps>): JSX_2.Element;
|
|
4860
4863
|
|
|
4861
4864
|
declare interface TooltipButtonProps {
|
|
4862
4865
|
onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -4910,7 +4913,7 @@ declare interface TooltipItemListProps {
|
|
|
4910
4913
|
backgroundColor?: 'viridian1000' | 'grey1000' | 'grey800' | 'radicalRed1000';
|
|
4911
4914
|
}
|
|
4912
4915
|
|
|
4913
|
-
declare function TooltipPad({ children, 'aria-label': ariaLabel }: React_2.PropsWithChildren<TooltipPadProps_2>): JSX_2.Element;
|
|
4916
|
+
declare function TooltipPad({ children, 'aria-label': ariaLabel, }: React_2.PropsWithChildren<TooltipPadProps_2>): JSX_2.Element;
|
|
4914
4917
|
|
|
4915
4918
|
declare type TooltipPadBackgroundColors = $Keys<typeof tooltipBackgroundColors>;
|
|
4916
4919
|
|
|
@@ -5014,7 +5017,7 @@ export declare function useOnNext<T>(onNext: (data: T) => void | Promise<unknown
|
|
|
5014
5017
|
|
|
5015
5018
|
export declare function useOverflow(): boolean;
|
|
5016
5019
|
|
|
5017
|
-
export declare const useRelativeTime: ({ date, skipSuffix, includeTime, forceRelative, from }: UseRelativeTimeOptions) => {
|
|
5020
|
+
export declare const useRelativeTime: ({ date, skipSuffix, includeTime, forceRelative, from, }: UseRelativeTimeOptions) => {
|
|
5018
5021
|
formatted: string | null;
|
|
5019
5022
|
absolute: string | null;
|
|
5020
5023
|
date: Date | undefined;
|