@fibery/ui-kit 1.40.0 → 1.40.2
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/CHANGELOG.md +12 -0
- package/package.json +5 -4
- package/src/appIcons.json +10 -0
- package/src/box.tsx +2 -2
- package/src/button/base-button.tsx +18 -3
- package/src/button/button.tsx +14 -6
- package/src/button/icon-button.tsx +4 -1
- package/src/design-system.ts +6 -3
- package/src/dot.tsx +36 -0
- package/src/file-item-2.tsx +12 -12
- package/src/html-styles.ts +11 -15
- package/src/icons/ast/Dividers.ts +8 -0
- package/src/icons/ast/DoubleLine.ts +8 -0
- package/src/icons/ast/LineJump.ts +8 -0
- package/src/icons/ast/QuickFilter.ts +8 -0
- package/src/icons/ast/QuickFilterPersonal.ts +8 -0
- package/src/icons/ast/index.tsx +5 -0
- package/src/icons/react/Dividers.tsx +13 -0
- package/src/icons/react/DoubleLine.tsx +13 -0
- package/src/icons/react/LineJump.tsx +13 -0
- package/src/icons/react/QuickFilter.tsx +13 -0
- package/src/icons/react/QuickFilterPersonal.tsx +13 -0
- package/src/icons/react/index.tsx +5 -0
- package/src/icons/svg/dividers.svg +3 -0
- package/src/icons/svg/double-line.svg +3 -0
- package/src/icons/svg/line-jump.svg +4 -0
- package/src/icons/svg/quick-filter-personal.svg +3 -0
- package/src/icons/svg/quick-filter.svg +3 -0
- package/src/images-gallery/get-gallery-src.ts +71 -0
- package/src/images-gallery/images-gallery.tsx +1 -1
- package/src/images-gallery/thumbnails-mime-types-white-list.ts +17 -0
- package/src/notification-dot.tsx +11 -21
- package/src/popover/index.tsx +22 -13
- package/src/select/components/menu.tsx +1 -0
- package/src/select/index.tsx +95 -259
- package/src/select/select-in-popover.tsx +11 -3
- package/src/select/select.tsx +288 -0
- package/src/toast/toast.tsx +1 -1
- package/src/toggle-button/toggle-button.tsx +16 -4
- package/src/toggle-on-off.tsx +10 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "1.40.
|
|
3
|
+
"version": "1.40.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"@radix-ui/react-context-menu": "2.2.1",
|
|
12
12
|
"@radix-ui/react-dropdown-menu": "2.1.1",
|
|
13
13
|
"@radix-ui/react-navigation-menu": "1.2.1",
|
|
14
|
+
"@radix-ui/react-slot": "1.2.4",
|
|
14
15
|
"@radix-ui/react-toast": "1.2.2",
|
|
15
16
|
"@radix-ui/react-toggle": "1.1.10",
|
|
16
17
|
"@radix-ui/react-toggle-group": "1.1.11",
|
|
@@ -57,10 +58,10 @@
|
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@babel/core": "7.28.5",
|
|
59
60
|
"@babel/runtime": "7.28.4",
|
|
60
|
-
"@testing-library/dom": "
|
|
61
|
+
"@testing-library/dom": "10.4.1",
|
|
61
62
|
"@testing-library/jest-dom": "6.9.1",
|
|
62
|
-
"@testing-library/react": "
|
|
63
|
-
"@testing-library/user-event": "
|
|
63
|
+
"@testing-library/react": "16.3.1",
|
|
64
|
+
"@testing-library/user-event": "14.6.1",
|
|
64
65
|
"@types/chroma-js": "2.1.3",
|
|
65
66
|
"@types/color-hash": "1.0.2",
|
|
66
67
|
"@types/history": "4.7.11",
|
package/src/appIcons.json
CHANGED
|
@@ -13063,6 +13063,16 @@
|
|
|
13063
13063
|
"imageUrl": "https://images-temp.fibery.io/ui/appIcons/linear.svg",
|
|
13064
13064
|
"file": "linear.svg"
|
|
13065
13065
|
},
|
|
13066
|
+
{
|
|
13067
|
+
"name": "Stripe",
|
|
13068
|
+
"short_names": ["stripe"],
|
|
13069
|
+
"customCategory": "Integrations",
|
|
13070
|
+
"text": "",
|
|
13071
|
+
"emoticons": [],
|
|
13072
|
+
"keywords": ["logo", "brand", "integration", "stripe"],
|
|
13073
|
+
"imageUrl": "https://images-temp.fibery.io/ui/appIcons/stripe.svg",
|
|
13074
|
+
"file": "stripe.svg"
|
|
13075
|
+
},
|
|
13066
13076
|
{
|
|
13067
13077
|
"name": "Openion",
|
|
13068
13078
|
"short_names": ["openion"],
|
package/src/box.tsx
CHANGED
|
@@ -296,7 +296,7 @@ const defaultRadius = {
|
|
|
296
296
|
rb: border.radius6,
|
|
297
297
|
lb: border.radius6,
|
|
298
298
|
};
|
|
299
|
-
type
|
|
299
|
+
export type BoxProps = HTMLProps<HTMLDivElement> & {
|
|
300
300
|
as?: React.ElementType;
|
|
301
301
|
} & {
|
|
302
302
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -342,7 +342,7 @@ type Props = HTMLProps<HTMLDivElement> & {
|
|
|
342
342
|
* Fibery system card-like container with all mouse, focus and selected states support.
|
|
343
343
|
* States described at: https://www.figma.com/file/Qff2eEFvZhjpxSqeFD5n58/FI---UI-Projects?type=design&node-id=4085%3A30506&mode=design&t=UvkBPcZSg5hKi86D-1
|
|
344
344
|
*/
|
|
345
|
-
export const Box = forwardRef<HTMLDivElement,
|
|
345
|
+
export const Box = forwardRef<HTMLDivElement, BoxProps>((props, ref) => {
|
|
346
346
|
const {
|
|
347
347
|
selected,
|
|
348
348
|
done,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {css, CSSProperties, cx} from "@linaria/core";
|
|
2
|
+
import {Slot} from "@radix-ui/react-slot";
|
|
2
3
|
import {forwardRef} from "react";
|
|
3
4
|
import {themeVars} from "../design-system";
|
|
4
5
|
import {iconColorVar} from "../icons/Icon";
|
|
@@ -12,6 +13,7 @@ export type BaseButtonProps = {
|
|
|
12
13
|
color?: ButtonColor;
|
|
13
14
|
pressed?: boolean;
|
|
14
15
|
supportMobile?: boolean;
|
|
16
|
+
asChild?: boolean;
|
|
15
17
|
} & React.ComponentPropsWithRef<"button">;
|
|
16
18
|
|
|
17
19
|
export const xLargeButtonHeight = 40;
|
|
@@ -36,6 +38,7 @@ export const baseButton = css`
|
|
|
36
38
|
|
|
37
39
|
@media (any-hover: hover) {
|
|
38
40
|
&:hover:not(:disabled) {
|
|
41
|
+
color: var(--fibery-button-text-color);
|
|
39
42
|
background-color: var(--fibery-button-hover-color);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
@@ -112,13 +115,25 @@ const getColors = (variant: ButtonVariant, color: ButtonColor) => {
|
|
|
112
115
|
|
|
113
116
|
export const BaseButton = forwardRef<HTMLButtonElement, BaseButtonProps>(
|
|
114
117
|
(
|
|
115
|
-
{
|
|
118
|
+
{
|
|
119
|
+
variant = "solid",
|
|
120
|
+
color = "accent",
|
|
121
|
+
type = "button",
|
|
122
|
+
className,
|
|
123
|
+
children,
|
|
124
|
+
style,
|
|
125
|
+
pressed,
|
|
126
|
+
asChild,
|
|
127
|
+
...buttonProps
|
|
128
|
+
},
|
|
116
129
|
ref
|
|
117
130
|
) => {
|
|
118
131
|
const colors = getColors(variant, color);
|
|
119
132
|
|
|
133
|
+
const Component = asChild ? Slot : "button";
|
|
134
|
+
|
|
120
135
|
return (
|
|
121
|
-
<
|
|
136
|
+
<Component
|
|
122
137
|
style={{...colors, ...style}}
|
|
123
138
|
aria-pressed={pressed || buttonProps["aria-pressed"]}
|
|
124
139
|
data-variant={variant}
|
|
@@ -129,7 +144,7 @@ export const BaseButton = forwardRef<HTMLButtonElement, BaseButtonProps>(
|
|
|
129
144
|
{...buttonProps}
|
|
130
145
|
>
|
|
131
146
|
{children}
|
|
132
|
-
</
|
|
147
|
+
</Component>
|
|
133
148
|
);
|
|
134
149
|
}
|
|
135
150
|
);
|
package/src/button/button.tsx
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {css, cx} from "@linaria/core";
|
|
2
|
+
import {Slot, Slottable} from "@radix-ui/react-slot";
|
|
2
3
|
import {forwardRef} from "react";
|
|
3
4
|
import {border, fontWeight, space, textStyles} from "../design-system";
|
|
4
5
|
import {iconSizeVar} from "../icons/Icon";
|
|
5
6
|
import SpinnerIcon from "../icons/react/Spinner";
|
|
6
|
-
import {BaseButton, BaseButtonProps, ButtonSize, xLargeButtonHeight} from "./base-button";
|
|
7
|
-
import {useIsSupportHardwareKeyboard} from "../use-is-support-hardware-keyboard";
|
|
8
7
|
import {useIsPhone} from "../use-is-phone";
|
|
8
|
+
import {useIsSupportHardwareKeyboard} from "../use-is-support-hardware-keyboard";
|
|
9
|
+
import {BaseButton, BaseButtonProps, ButtonSize, xLargeButtonHeight} from "./base-button";
|
|
9
10
|
|
|
10
11
|
export type ButtonProps = {
|
|
11
12
|
size?: ButtonSize;
|
|
@@ -193,12 +194,16 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
193
194
|
disabled,
|
|
194
195
|
shortcut,
|
|
195
196
|
fullWidth,
|
|
197
|
+
asChild,
|
|
196
198
|
...buttonProps
|
|
197
199
|
},
|
|
198
200
|
ref
|
|
199
201
|
) => {
|
|
200
202
|
const isSupportHardwareKeyboard = useIsSupportHardwareKeyboard();
|
|
201
203
|
const isPhone = useIsPhone();
|
|
204
|
+
|
|
205
|
+
const Component = asChild ? Slot : "button";
|
|
206
|
+
|
|
202
207
|
return (
|
|
203
208
|
<BaseButton
|
|
204
209
|
ref={ref}
|
|
@@ -213,12 +218,15 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
213
218
|
iconEnd && withIconEnd,
|
|
214
219
|
!children && withoutChildren
|
|
215
220
|
)}
|
|
221
|
+
asChild
|
|
216
222
|
{...buttonProps}
|
|
217
223
|
>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
224
|
+
<Component>
|
|
225
|
+
{pending ? <SpinnerIcon /> : iconStart}
|
|
226
|
+
<Slottable>{children}</Slottable>
|
|
227
|
+
{iconEnd}
|
|
228
|
+
{shortcut && isSupportHardwareKeyboard ? <span className={shortcutContainer}>{shortcut}</span> : null}
|
|
229
|
+
</Component>
|
|
222
230
|
</BaseButton>
|
|
223
231
|
);
|
|
224
232
|
}
|
|
@@ -9,7 +9,10 @@ import {useIsPhone} from "../use-is-phone";
|
|
|
9
9
|
export type IconButtonProps = {
|
|
10
10
|
size?: ButtonSize;
|
|
11
11
|
pending?: boolean;
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
/** NOTE: it won't work properly together with `pending` prop. TODO: figure out how to use Slottable correctly (position spinner as absolute above?) */
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
} & Omit<BaseButtonProps, "asChild">;
|
|
13
16
|
|
|
14
17
|
export const iconButton = css`
|
|
15
18
|
display: flex;
|
package/src/design-system.ts
CHANGED
|
@@ -532,7 +532,7 @@ export const themeColors = {
|
|
|
532
532
|
todayMarkerColor: [red.red8, redDark.red6],
|
|
533
533
|
viewBgOverlayColor: [getOpacities(slate.slate8).opacity20, getOpacities(slateDark.slate1).opacity60],
|
|
534
534
|
floatEditorMenuBg: [slate.slate1, slateDark.slate6],
|
|
535
|
-
floatEditorActiveColor: [
|
|
535
|
+
floatEditorActiveColor: [indigo.indigo11, indigoDark.indigo11],
|
|
536
536
|
planBadgeBgColor: [yellow.yellow10, yellowDark.yellow10],
|
|
537
537
|
commentColor: [getOpacities(yellow.yellow6).opacity60, getOpacities(yellowDark.yellow9).opacity40],
|
|
538
538
|
cellBackgroundColor: [slate.slate2, slateDark.slate2],
|
|
@@ -685,8 +685,8 @@ export const themeColors = {
|
|
|
685
685
|
getOpacities(indigo.indigo11).opacity80,
|
|
686
686
|
getOpacities(indigoDark.indigo11).opacity80,
|
|
687
687
|
],
|
|
688
|
-
colorTextButtonSoftNeutral: [slate.
|
|
689
|
-
colorTextButtonSoftNeutralActive: [getOpacities(slate.
|
|
688
|
+
colorTextButtonSoftNeutral: [slate.slate11, slateDark.slate11],
|
|
689
|
+
colorTextButtonSoftNeutralActive: [getOpacities(slate.slate11).opacity80, getOpacities(slateDark.slate11).opacity80],
|
|
690
690
|
colorTextButtonSoftDestructive: [red.red11, redDark.red11],
|
|
691
691
|
colorTextButtonSoftDestructiveActive: [getOpacities(red.red11).opacity80, getOpacities(redDark.red11).opacity80],
|
|
692
692
|
colorIconButtonSoftAccent: [indigo.indigo11, indigoDark.indigo11],
|
|
@@ -740,6 +740,9 @@ export const themeColors = {
|
|
|
740
740
|
|
|
741
741
|
// Text editor
|
|
742
742
|
colorBgEditorImageZoomed: [slate.slate3, slateDark.slate6],
|
|
743
|
+
colorMermaidPrimaryColor: [slate.slate2, slateDark.slate8],
|
|
744
|
+
colorMermaidPrimaryBorderColor: [slate.slate9, slateDark.slate9],
|
|
745
|
+
colorMermaidLineColor: [slate.slate10, slateDark.slate9],
|
|
743
746
|
|
|
744
747
|
//Whiteboard
|
|
745
748
|
instrumentsMenuBg: [getOpacities(whiteA.whiteA0).opacity100, getOpacities(slateDark.slate4).opacity100],
|
package/src/dot.tsx
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {css, CSSProperties, cx} from "@linaria/core";
|
|
2
|
+
import {space, themeVars} from "./design-system";
|
|
3
|
+
import {useMemo} from "react";
|
|
4
|
+
|
|
5
|
+
const dotColorVar = "--fibery-dot-color";
|
|
6
|
+
|
|
7
|
+
const dotCss = css`
|
|
8
|
+
background-color: var(${dotColorVar});
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
|
|
11
|
+
&[data-size="small"] {
|
|
12
|
+
width: ${space.s4}px;
|
|
13
|
+
height: ${space.s4}px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-size="medium"] {
|
|
17
|
+
width: ${space.s6}px;
|
|
18
|
+
height: ${space.s6}px;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
type Props = {
|
|
23
|
+
className?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
size?: "small" | "medium";
|
|
26
|
+
} & React.ComponentProps<"div">;
|
|
27
|
+
|
|
28
|
+
export const Dot = ({className, color = themeVars.active, size = "small", style, ...props}: Props) => {
|
|
29
|
+
const colors: CSSProperties = useMemo(() => {
|
|
30
|
+
return {
|
|
31
|
+
[dotColorVar]: color,
|
|
32
|
+
};
|
|
33
|
+
}, [color]);
|
|
34
|
+
|
|
35
|
+
return <div className={cx(className, dotCss)} style={{...colors, ...style}} data-size={size} {...props} />;
|
|
36
|
+
};
|
package/src/file-item-2.tsx
CHANGED
|
@@ -102,6 +102,8 @@ export type FileItemProps = {
|
|
|
102
102
|
disabled?: boolean;
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
export const minFileTileWidth = 120;
|
|
106
|
+
|
|
105
107
|
export function FileItem(props: FileItemProps) {
|
|
106
108
|
const {onDownloadClick, onRemoveClick} = props;
|
|
107
109
|
const {name, thumbnailUrl, status, previewData: preview, contentType} = props.data;
|
|
@@ -133,7 +135,7 @@ export function FileItem(props: FileItemProps) {
|
|
|
133
135
|
|
|
134
136
|
useEffect(() => {
|
|
135
137
|
if (!preview) {
|
|
136
|
-
return;
|
|
138
|
+
return undefined;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
if (zoomed) {
|
|
@@ -152,6 +154,10 @@ export function FileItem(props: FileItemProps) {
|
|
|
152
154
|
actions: <FilePreviewActions url={preview.originalSrc} name={name} onDownloadClick={onDownloadClick} />,
|
|
153
155
|
});
|
|
154
156
|
}
|
|
157
|
+
|
|
158
|
+
return () => {
|
|
159
|
+
imagesRegistry.delete(preview.originalSrc);
|
|
160
|
+
};
|
|
155
161
|
}, [galleryMethods, zoomed, preview, imagesRegistry, name, onDownloadClick]);
|
|
156
162
|
|
|
157
163
|
const onContainerClick = useCallback(() => {
|
|
@@ -169,6 +175,7 @@ export function FileItem(props: FileItemProps) {
|
|
|
169
175
|
css`
|
|
170
176
|
flex: 1 0 0;
|
|
171
177
|
height: 100%;
|
|
178
|
+
min-width: ${minFileTileWidth}px;
|
|
172
179
|
`,
|
|
173
180
|
isBackgroundReady &&
|
|
174
181
|
css`
|
|
@@ -258,10 +265,9 @@ export function FileItem(props: FileItemProps) {
|
|
|
258
265
|
</Icon>
|
|
259
266
|
<div
|
|
260
267
|
className={css`
|
|
261
|
-
align-content: center;
|
|
262
|
-
|
|
263
268
|
display: flex;
|
|
264
|
-
|
|
269
|
+
width: 100%;
|
|
270
|
+
justify-content: center;
|
|
265
271
|
gap: 10px;
|
|
266
272
|
flex-shrink: 0;
|
|
267
273
|
color: ${themeVars.colorTextMenuItem};
|
|
@@ -272,8 +278,6 @@ export function FileItem(props: FileItemProps) {
|
|
|
272
278
|
<FileTitle
|
|
273
279
|
title={name}
|
|
274
280
|
className={css`
|
|
275
|
-
-webkit-line-clamp: 1;
|
|
276
|
-
-webkit-box-orient: vertical;
|
|
277
281
|
overflow: hidden;
|
|
278
282
|
text-overflow: ellipsis;
|
|
279
283
|
`}
|
|
@@ -327,10 +331,10 @@ export function FileItem(props: FileItemProps) {
|
|
|
327
331
|
<div
|
|
328
332
|
className={css`
|
|
329
333
|
display: flex;
|
|
334
|
+
width: 100%;
|
|
330
335
|
align-self: flex-start;
|
|
331
336
|
align-items: flex-end;
|
|
332
337
|
text-overflow: ellipsis;
|
|
333
|
-
//overflow: hidden;
|
|
334
338
|
box-sizing: border-box;
|
|
335
339
|
`}
|
|
336
340
|
>
|
|
@@ -440,16 +444,12 @@ function FileTitle({title, className}: {title: string; className?: string}) {
|
|
|
440
444
|
vertical-align: top;
|
|
441
445
|
text-align: center;
|
|
442
446
|
justify-content: center;
|
|
443
|
-
word-break: break-word;
|
|
444
447
|
overflow: hidden;
|
|
445
448
|
font-size: ${fontSize.mini}px;
|
|
446
449
|
font-weight: ${fontWeight.medium};
|
|
447
450
|
line-height: ${lineHeight.heading};
|
|
448
451
|
text-transform: none;
|
|
449
452
|
text-overflow: ellipsis;
|
|
450
|
-
-webkit-line-clamp: 1;
|
|
451
|
-
-webkit-box-orient: vertical;
|
|
452
|
-
|
|
453
453
|
&:hover {
|
|
454
454
|
text-decoration: none;
|
|
455
455
|
color: inherit;
|
|
@@ -463,7 +463,7 @@ function FileTitle({title, className}: {title: string; className?: string}) {
|
|
|
463
463
|
display: flex;
|
|
464
464
|
min-width: 0;
|
|
465
465
|
align-items: center;
|
|
466
|
-
max-width:
|
|
466
|
+
max-width: 180px;
|
|
467
467
|
`}
|
|
468
468
|
>
|
|
469
469
|
<span
|
package/src/html-styles.ts
CHANGED
|
@@ -142,7 +142,7 @@ const htmlStyles = {
|
|
|
142
142
|
paddingTop: space.s3,
|
|
143
143
|
paddingBottom: space.s3,
|
|
144
144
|
...textStyles.big,
|
|
145
|
-
lineHeight: lineHeight.
|
|
145
|
+
lineHeight: lineHeight.regular,
|
|
146
146
|
},
|
|
147
147
|
"& .fibery-rich-text-check-item": {
|
|
148
148
|
marginTop: space.s3,
|
|
@@ -150,7 +150,7 @@ const htmlStyles = {
|
|
|
150
150
|
paddingTop: space.s3,
|
|
151
151
|
paddingBottom: space.s3,
|
|
152
152
|
...textStyles.big,
|
|
153
|
-
lineHeight: lineHeight.
|
|
153
|
+
lineHeight: lineHeight.regular,
|
|
154
154
|
},
|
|
155
155
|
"& table": {
|
|
156
156
|
marginTop: space.s8,
|
|
@@ -167,7 +167,7 @@ const htmlStyles = {
|
|
|
167
167
|
paddingTop: space.s3,
|
|
168
168
|
paddingBottom: space.s3,
|
|
169
169
|
...textStyles.big,
|
|
170
|
-
lineHeight: lineHeight.
|
|
170
|
+
lineHeight: lineHeight.regular,
|
|
171
171
|
},
|
|
172
172
|
},
|
|
173
173
|
"& .code-block": {
|
|
@@ -223,14 +223,12 @@ const htmlStyles = {
|
|
|
223
223
|
},
|
|
224
224
|
},
|
|
225
225
|
"& > *:first-child": {
|
|
226
|
-
marginTop:
|
|
226
|
+
marginTop: space.s3,
|
|
227
227
|
paddingTop: space.s3,
|
|
228
228
|
paddingBottom: space.s3,
|
|
229
229
|
},
|
|
230
230
|
"& > *:last-child": {
|
|
231
|
-
marginBottom:
|
|
232
|
-
paddingTop: space.s3,
|
|
233
|
-
paddingBottom: space.s3,
|
|
231
|
+
marginBottom: space.s3,
|
|
234
232
|
},
|
|
235
233
|
"& > .fibery-rich-text-image-block:last-child": {
|
|
236
234
|
marginBottom: space.s4,
|
|
@@ -352,7 +350,7 @@ const smallHtmlStyles = {
|
|
|
352
350
|
paddingTop: space.s2,
|
|
353
351
|
paddingBottom: space.s2,
|
|
354
352
|
...textStyles.regular,
|
|
355
|
-
lineHeight: lineHeight.
|
|
353
|
+
lineHeight: lineHeight.regular,
|
|
356
354
|
},
|
|
357
355
|
"& .fibery-rich-text-check-item": {
|
|
358
356
|
marginTop: space.s2,
|
|
@@ -360,7 +358,7 @@ const smallHtmlStyles = {
|
|
|
360
358
|
paddingTop: space.s2,
|
|
361
359
|
paddingBottom: space.s2,
|
|
362
360
|
...textStyles.regular,
|
|
363
|
-
lineHeight: lineHeight.
|
|
361
|
+
lineHeight: lineHeight.regular,
|
|
364
362
|
},
|
|
365
363
|
"& table": {
|
|
366
364
|
marginTop: space.s6,
|
|
@@ -377,7 +375,7 @@ const smallHtmlStyles = {
|
|
|
377
375
|
paddingTop: space.s2,
|
|
378
376
|
paddingBottom: space.s2,
|
|
379
377
|
...textStyles.regular,
|
|
380
|
-
lineHeight: lineHeight.
|
|
378
|
+
lineHeight: lineHeight.regular,
|
|
381
379
|
},
|
|
382
380
|
},
|
|
383
381
|
"& .code-block": {
|
|
@@ -439,8 +437,6 @@ const smallHtmlStyles = {
|
|
|
439
437
|
},
|
|
440
438
|
"& > *:last-child": {
|
|
441
439
|
marginBottom: 0,
|
|
442
|
-
paddingTop: space.s2,
|
|
443
|
-
paddingBottom: space.s2,
|
|
444
440
|
},
|
|
445
441
|
"& > .fibery-rich-text-image-block:last-child": {
|
|
446
442
|
marginBottom: space.s2,
|
|
@@ -546,7 +542,7 @@ const chatHtmlStyles = {
|
|
|
546
542
|
paddingTop: space.s2,
|
|
547
543
|
paddingBottom: space.s2,
|
|
548
544
|
...textStyles.regular,
|
|
549
|
-
lineHeight: lineHeight.
|
|
545
|
+
lineHeight: lineHeight.regular,
|
|
550
546
|
[`${mobileRootSelector} &`]: {
|
|
551
547
|
...textStyles.big,
|
|
552
548
|
},
|
|
@@ -557,7 +553,7 @@ const chatHtmlStyles = {
|
|
|
557
553
|
paddingTop: space.s2,
|
|
558
554
|
paddingBottom: space.s2,
|
|
559
555
|
...textStyles.regular,
|
|
560
|
-
lineHeight: lineHeight.
|
|
556
|
+
lineHeight: lineHeight.regular,
|
|
561
557
|
},
|
|
562
558
|
"& table": {
|
|
563
559
|
marginTop: space.s4,
|
|
@@ -574,7 +570,7 @@ const chatHtmlStyles = {
|
|
|
574
570
|
paddingTop: space.s2,
|
|
575
571
|
paddingBottom: space.s2,
|
|
576
572
|
...textStyles.regular,
|
|
577
|
-
lineHeight: lineHeight.
|
|
573
|
+
lineHeight: lineHeight.regular,
|
|
578
574
|
},
|
|
579
575
|
},
|
|
580
576
|
"& .code-block": {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const Dividers: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"d":"M5 16.027 5.221 18l1.435-1.369L9.11 9.876a3.465 3.465 0 0 1-1.568-.872L5 16.027Zm7.45-7.023a3.51 3.51 0 0 1-1.569.872l2.454 6.755L14.77 18l.23-1.973-2.55-7.023Zm.15-2.026a2.665 2.665 0 0 0-1.719-3.04v-1.05A.89.89 0 0 0 9.996 2a.89.89 0 0 0-.886.889v1.049a2.675 2.675 0 0 0-1.772 2.506 2.661 2.661 0 0 0 3.154 2.623 2.674 2.674 0 0 0 2.108-2.09Zm-2.604.355a.89.89 0 0 1 0-1.777.89.89 0 0 1 0 1.777Z"},"children":[]}],"metadata":""}]},"name":"dividers"};
|
|
7
|
+
|
|
8
|
+
export default Dividers;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const DoubleLine: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M1.5 7.5a.75.75 0 0 1 .75-.75h15.5a.75.75 0 0 1 0 1.5H2.25a.75.75 0 0 1-.75-.75Zm0 5a.75.75 0 0 1 .75-.75h15.5a.75.75 0 0 1 0 1.5H2.25a.75.75 0 0 1-.75-.75Z"},"children":[]}],"metadata":""}]},"name":"double-line"};
|
|
7
|
+
|
|
8
|
+
export default DoubleLine;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const LineJump: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M3.05 6.11h2.69c.37 0 .72.14.98.4L9.4 9.19a.83.83 0 0 0 1.18 0 .83.83 0 0 0 0-1.18L7.9 5.33a3.03 3.03 0 0 0-2.16-.89H3.05a.83.83 0 0 0 0 1.66v.01Z"},"children":[]},{"type":"element","tagName":"path","properties":{"d":"m18.63 10.79-3.06-3.05a.83.83 0 1 0-1.17 1.17l1.63 1.64H.83a.83.83 0 1 0 0 1.66h15.2l-1.63 1.63a.83.83 0 1 0 1.17 1.18l3.05-3.05a.831.831 0 0 0 0-1.18h.01Z"},"children":[]}],"metadata":""}]},"name":"line-jump"};
|
|
7
|
+
|
|
8
|
+
export default LineJump;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const QuickFilter: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"d":"M15.25 2A2.75 2.75 0 0 1 18 4.75v10.5A2.75 2.75 0 0 1 15.25 18H4.75A2.75 2.75 0 0 1 2 15.25V4.75A2.75 2.75 0 0 1 4.75 2h10.5ZM4.75 3.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V4.75c0-.69-.56-1.25-1.25-1.25H4.75Zm6.5 8.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5h2.5Zm1-2.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5Zm1-2.75a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h6.5Z","fill":"#000"},"children":[]}],"metadata":""}]},"name":"quick-filter"};
|
|
7
|
+
|
|
8
|
+
export default QuickFilter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const QuickFilterPersonal: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"d":"M2.75 11.25a.75.75 0 0 1 .75.75v3.25c0 .69.56 1.25 1.25 1.25H8A.75.75 0 0 1 8 18H4.75A2.75 2.75 0 0 1 2 15.25V12a.75.75 0 0 1 .75-.75Zm14.5 0A.75.75 0 0 1 18 12v3.25A2.75 2.75 0 0 1 15.25 18H12a.75.75 0 0 1 0-1.5h3.25c.69 0 1.25-.56 1.25-1.25V12a.75.75 0 0 1 .75-.75Zm-6 .75a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5h2.5Zm1-2.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h4.5ZM8 2a.75.75 0 0 1 0 1.5H4.75c-.69 0-1.25.56-1.25 1.25V8A.75.75 0 0 1 2 8V4.75A2.75 2.75 0 0 1 4.75 2H8Zm7.25 0A2.75 2.75 0 0 1 18 4.75V8a.75.75 0 0 1-1.5 0V4.75c0-.69-.56-1.25-1.25-1.25H12A.75.75 0 0 1 12 2h3.25Zm-2 4.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h6.5Z","fill":"#000"},"children":[]}],"metadata":""}]},"name":"quick-filter-personal"};
|
|
7
|
+
|
|
8
|
+
export default QuickFilterPersonal;
|
package/src/icons/ast/index.tsx
CHANGED
|
@@ -96,9 +96,11 @@ export { default as DateRange } from './DateRange';
|
|
|
96
96
|
export { default as Delete } from './Delete';
|
|
97
97
|
export { default as Demo } from './Demo';
|
|
98
98
|
export { default as Dependency } from './Dependency';
|
|
99
|
+
export { default as Dividers } from './Dividers';
|
|
99
100
|
export { default as Document } from './Document';
|
|
100
101
|
export { default as DoubleArrowLeft } from './DoubleArrowLeft';
|
|
101
102
|
export { default as DoubleArrowRight } from './DoubleArrowRight';
|
|
103
|
+
export { default as DoubleLine } from './DoubleLine';
|
|
102
104
|
export { default as DragBlockHandleSingle } from './DragBlockHandleSingle';
|
|
103
105
|
export { default as DragBlockHandle } from './DragBlockHandle';
|
|
104
106
|
export { default as DragHandle } from './DragHandle';
|
|
@@ -190,6 +192,7 @@ export { default as LeftPanel } from './LeftPanel';
|
|
|
190
192
|
export { default as LevelPlus } from './LevelPlus';
|
|
191
193
|
export { default as Levels } from './Levels';
|
|
192
194
|
export { default as LineDivider } from './LineDivider';
|
|
195
|
+
export { default as LineJump } from './LineJump';
|
|
193
196
|
export { default as Link } from './Link';
|
|
194
197
|
export { default as LocationEdit } from './LocationEdit';
|
|
195
198
|
export { default as LockOutline } from './LockOutline';
|
|
@@ -246,6 +249,8 @@ export { default as PresentPlay } from './PresentPlay';
|
|
|
246
249
|
export { default as PresentStop } from './PresentStop';
|
|
247
250
|
export { default as PrivateItems } from './PrivateItems';
|
|
248
251
|
export { default as Question } from './Question';
|
|
252
|
+
export { default as QuickFilterPersonal } from './QuickFilterPersonal';
|
|
253
|
+
export { default as QuickFilter } from './QuickFilter';
|
|
249
254
|
export { default as ReadOnly } from './ReadOnly';
|
|
250
255
|
export { default as Refresh } from './Refresh';
|
|
251
256
|
export { default as RemovePeople } from './RemovePeople';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import DividersSvg from '../ast/Dividers';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const Dividers = forwardRef<SVGSVGElement, IconBaseProps>(function Dividers(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={DividersSvg} />});
|
|
12
|
+
|
|
13
|
+
export default Dividers;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import DoubleLineSvg from '../ast/DoubleLine';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const DoubleLine = forwardRef<SVGSVGElement, IconBaseProps>(function DoubleLine(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={DoubleLineSvg} />});
|
|
12
|
+
|
|
13
|
+
export default DoubleLine;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import LineJumpSvg from '../ast/LineJump';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const LineJump = forwardRef<SVGSVGElement, IconBaseProps>(function LineJump(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={LineJumpSvg} />});
|
|
12
|
+
|
|
13
|
+
export default LineJump;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import QuickFilterSvg from '../ast/QuickFilter';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const QuickFilter = forwardRef<SVGSVGElement, IconBaseProps>(function QuickFilter(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={QuickFilterSvg} />});
|
|
12
|
+
|
|
13
|
+
export default QuickFilter;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import {forwardRef} from 'react';
|
|
4
|
+
import QuickFilterPersonalSvg from '../ast/QuickFilterPersonal';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { IconBaseProps } from '../types';
|
|
7
|
+
|
|
8
|
+
const QuickFilterPersonal = forwardRef<SVGSVGElement, IconBaseProps>(function QuickFilterPersonal(
|
|
9
|
+
props: IconBaseProps,
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={QuickFilterPersonalSvg} />});
|
|
12
|
+
|
|
13
|
+
export default QuickFilterPersonal;
|
|
@@ -96,9 +96,11 @@ export { default as DateRange } from './DateRange';
|
|
|
96
96
|
export { default as Delete } from './Delete';
|
|
97
97
|
export { default as Demo } from './Demo';
|
|
98
98
|
export { default as Dependency } from './Dependency';
|
|
99
|
+
export { default as Dividers } from './Dividers';
|
|
99
100
|
export { default as Document } from './Document';
|
|
100
101
|
export { default as DoubleArrowLeft } from './DoubleArrowLeft';
|
|
101
102
|
export { default as DoubleArrowRight } from './DoubleArrowRight';
|
|
103
|
+
export { default as DoubleLine } from './DoubleLine';
|
|
102
104
|
export { default as DragBlockHandleSingle } from './DragBlockHandleSingle';
|
|
103
105
|
export { default as DragBlockHandle } from './DragBlockHandle';
|
|
104
106
|
export { default as DragHandle } from './DragHandle';
|
|
@@ -190,6 +192,7 @@ export { default as LeftPanel } from './LeftPanel';
|
|
|
190
192
|
export { default as LevelPlus } from './LevelPlus';
|
|
191
193
|
export { default as Levels } from './Levels';
|
|
192
194
|
export { default as LineDivider } from './LineDivider';
|
|
195
|
+
export { default as LineJump } from './LineJump';
|
|
193
196
|
export { default as Link } from './Link';
|
|
194
197
|
export { default as LocationEdit } from './LocationEdit';
|
|
195
198
|
export { default as LockOutline } from './LockOutline';
|
|
@@ -246,6 +249,8 @@ export { default as PresentPlay } from './PresentPlay';
|
|
|
246
249
|
export { default as PresentStop } from './PresentStop';
|
|
247
250
|
export { default as PrivateItems } from './PrivateItems';
|
|
248
251
|
export { default as Question } from './Question';
|
|
252
|
+
export { default as QuickFilterPersonal } from './QuickFilterPersonal';
|
|
253
|
+
export { default as QuickFilter } from './QuickFilter';
|
|
249
254
|
export { default as ReadOnly } from './ReadOnly';
|
|
250
255
|
export { default as Refresh } from './Refresh';
|
|
251
256
|
export { default as RemovePeople } from './RemovePeople';
|