@fibery/ui-kit 1.17.1 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +26 -21
- package/src/Button/actions-button.tsx +2 -2
- package/src/Button/button-base.tsx +2 -2
- package/src/Button/button-group.tsx +1 -1
- package/src/Button/button.tsx +3 -3
- package/src/Button/icon-button.tsx +1 -0
- package/src/Select/custom-select-partials/clear-indicator.tsx +22 -0
- package/src/Select/custom-select-partials/drop-down-indicator.tsx +26 -0
- package/src/Select/custom-select-partials/group-heading.tsx +54 -0
- package/src/Select/custom-select-partials/menu.tsx +25 -0
- package/src/Select/custom-select-partials/no-option-message.tsx +10 -0
- package/src/Select/custom-select-partials/option.tsx +92 -0
- package/src/Select/index.tsx +18 -47
- package/src/Select/select-in-popover.tsx +2 -2
- package/src/Select/styles.ts +11 -53
- package/src/antd/styles.ts +1 -1
- package/src/back-button.tsx +3 -0
- package/src/create-inline-theme.ts +2 -0
- package/src/design-system.ts +961 -0
- package/src/emoji-picker/app-icon-picker.tsx +2 -2
- package/src/emoji-picker/emoji-picker-content-with-color.tsx +4 -4
- package/src/emoji-picker/emoji-picker.tsx +11 -5
- package/src/emoji-picker/icon-emoji-picker.tsx +2 -2
- package/src/emoji-picker/primitives/category.tsx +1 -1
- package/src/emoji-picker/primitives/content.tsx +3 -2
- package/src/emoji-picker/primitives/emoji.tsx +1 -1
- package/src/emoji-picker/primitives/footer.tsx +1 -1
- package/src/emoji-picker/primitives/header.tsx +1 -1
- package/src/emoji-picker/primitives/layout.ts +1 -1
- package/src/emoji-picker/primitives/search.tsx +1 -1
- package/src/emoji-picker/primitives/skin-tone.tsx +1 -1
- package/src/emoji-picker/stores/lazy-emoji-data-store.tsx +3 -3
- package/src/emoji-picker/stores/lazy-icon-data-store.tsx +1 -1
- package/src/error-alert.tsx +2 -2
- package/src/form-field-loader.tsx +1 -1
- package/src/icons/Icon.tsx +4 -4
- package/src/icons/ast/Activity.ts +1 -1
- package/src/icons/ast/BellFilled.ts +8 -0
- package/src/icons/ast/BellOff.ts +8 -0
- package/src/icons/ast/BellRinging.ts +8 -0
- package/src/icons/ast/Export.ts +8 -0
- package/src/icons/ast/Favorites.ts +1 -1
- package/src/icons/ast/FavoritesChecked.ts +1 -1
- package/src/icons/ast/FavoritesOff.ts +8 -0
- package/src/icons/ast/GlobeSimple.ts +8 -0
- package/src/icons/ast/Import.ts +8 -0
- package/src/icons/ast/Lab.ts +8 -0
- package/src/icons/ast/Link.ts +8 -0
- package/src/icons/ast/Network.ts +8 -0
- package/src/icons/ast/Pencil.ts +8 -0
- package/src/icons/ast/People.ts +8 -0
- package/src/icons/ast/RicheditorLinkCreate.ts +1 -1
- package/src/icons/ast/RicheditorOpenLink.ts +1 -1
- package/src/icons/ast/RicheditorUnlink.ts +1 -1
- package/src/icons/ast/ShieldKeyhole.ts +8 -0
- package/src/icons/ast/Terminal.ts +8 -0
- package/src/icons/ast/TypeUrl.ts +1 -1
- package/src/icons/ast/index.tsx +14 -4
- package/src/icons/{getIconContainerStyle.tsx → get-icon-container-style.tsx} +1 -1
- package/src/icons/react/BellFilled.tsx +12 -0
- package/src/icons/react/BellOff.tsx +12 -0
- package/src/icons/react/BellRinging.tsx +12 -0
- package/src/icons/react/Export.tsx +12 -0
- package/src/icons/react/FavoritesOff.tsx +12 -0
- package/src/icons/react/GlobeSimple.tsx +12 -0
- package/src/icons/react/Import.tsx +12 -0
- package/src/icons/react/Lab.tsx +12 -0
- package/src/icons/react/Link.tsx +12 -0
- package/src/icons/react/Network.tsx +12 -0
- package/src/icons/react/Pencil.tsx +12 -0
- package/src/icons/react/People.tsx +12 -0
- package/src/icons/react/ShieldKeyhole.tsx +12 -0
- package/src/icons/react/Terminal.tsx +12 -0
- package/src/icons/react/index.tsx +14 -4
- package/src/{Item.tsx → item.tsx} +1 -1
- package/src/loaders.tsx +19 -6
- package/src/loading-sausage.tsx +3 -1
- package/src/{ThemeProvider.tsx → theme-provider.tsx} +11 -1
- package/src/theme-styles.ts +2 -5
- package/src/toast/index.tsx +47 -0
- package/src/toast/primitives.tsx +140 -0
- package/src/tooltip.tsx +3 -3
- package/src/BackButton.tsx +0 -3
- package/src/Select/components.tsx +0 -90
- package/src/designSystem.ts +0 -951
- package/src/icons/ast/AppTemplatesOneColor.ts +0 -8
- package/src/icons/ast/CopyUrl.ts +0 -8
- package/src/icons/ast/FavoritesMenu.ts +0 -8
- package/src/icons/ast/Markdown.ts +0 -8
- package/src/icons/react/AppTemplatesOneColor.tsx +0 -12
- package/src/icons/react/CopyUrl.tsx +0 -12
- package/src/icons/react/FavoritesMenu.tsx +0 -12
- package/src/icons/react/Markdown.tsx +0 -12
- /package/src/Button/{AddButton.tsx → add-button.tsx} +0 -0
- /package/src/Button/{BackButton.tsx → back-button.tsx} +0 -0
- /package/src/{Button.tsx → button.tsx} +0 -0
- /package/src/icons/{generateIconFromAst.ts → generate-icon-from-ast.ts} +0 -0
- /package/src/icons/{IconAsPaths.ts → get-paths.ts} +0 -0
- /package/src/icons/{getShiftStyle.ts → get-shift-style.ts} +0 -0
- /package/src/{Pallete.ts → pallete.ts} +0 -0
package/src/icons/ast/index.tsx
CHANGED
|
@@ -16,7 +16,6 @@ export { default as AntdFilledInfoCircle } from './AntdFilledInfoCircle';
|
|
|
16
16
|
export { default as AppDetails } from './AppDetails';
|
|
17
17
|
export { default as AppStoreOneColor } from './AppStoreOneColor';
|
|
18
18
|
export { default as AppStore } from './AppStore';
|
|
19
|
-
export { default as AppTemplatesOneColor } from './AppTemplatesOneColor';
|
|
20
19
|
export { default as AppTemplates } from './AppTemplates';
|
|
21
20
|
export { default as AppWebhooks } from './AppWebhooks';
|
|
22
21
|
export { default as AppWiki } from './AppWiki';
|
|
@@ -35,6 +34,9 @@ export { default as Back } from './Back';
|
|
|
35
34
|
export { default as BacklogIcon } from './BacklogIcon';
|
|
36
35
|
export { default as BatchActionsIcon } from './BatchActionsIcon';
|
|
37
36
|
export { default as BellCircle } from './BellCircle';
|
|
37
|
+
export { default as BellFilled } from './BellFilled';
|
|
38
|
+
export { default as BellOff } from './BellOff';
|
|
39
|
+
export { default as BellRinging } from './BellRinging';
|
|
38
40
|
export { default as BellX } from './BellX';
|
|
39
41
|
export { default as Bolt } from './Bolt';
|
|
40
42
|
export { default as Cards } from './Cards';
|
|
@@ -49,7 +51,6 @@ export { default as Columns2 } from './Columns2';
|
|
|
49
51
|
export { default as Columns4 } from './Columns4';
|
|
50
52
|
export { default as Columns } from './Columns';
|
|
51
53
|
export { default as Copy } from './Copy';
|
|
52
|
-
export { default as CopyUrl } from './CopyUrl';
|
|
53
54
|
export { default as Database } from './Database';
|
|
54
55
|
export { default as Delete } from './Delete';
|
|
55
56
|
export { default as Demo } from './Demo';
|
|
@@ -60,6 +61,7 @@ export { default as DragHandle } from './DragHandle';
|
|
|
60
61
|
export { default as DynamicFilterValue } from './DynamicFilterValue';
|
|
61
62
|
export { default as Email } from './Email';
|
|
62
63
|
export { default as EmojiDelete } from './EmojiDelete';
|
|
64
|
+
export { default as Export } from './Export';
|
|
63
65
|
export { default as ExtensionAssignments } from './ExtensionAssignments';
|
|
64
66
|
export { default as ExtensionAvatar } from './ExtensionAvatar';
|
|
65
67
|
export { default as ExtensionComments } from './ExtensionComments';
|
|
@@ -67,7 +69,7 @@ export { default as ExtensionFiles } from './ExtensionFiles';
|
|
|
67
69
|
export { default as ExtensionReferences } from './ExtensionReferences';
|
|
68
70
|
export { default as ExtensionWorkflow } from './ExtensionWorkflow';
|
|
69
71
|
export { default as FavoritesChecked } from './FavoritesChecked';
|
|
70
|
-
export { default as
|
|
72
|
+
export { default as FavoritesOff } from './FavoritesOff';
|
|
71
73
|
export { default as Favorites } from './Favorites';
|
|
72
74
|
export { default as FiberyMono } from './FiberyMono';
|
|
73
75
|
export { default as Fields } from './Fields';
|
|
@@ -80,6 +82,7 @@ export { default as FormWithCover } from './FormWithCover';
|
|
|
80
82
|
export { default as FormWithoutCover } from './FormWithoutCover';
|
|
81
83
|
export { default as Github } from './Github';
|
|
82
84
|
export { default as Gitlab } from './Gitlab';
|
|
85
|
+
export { default as GlobeSimple } from './GlobeSimple';
|
|
83
86
|
export { default as Globe } from './Globe';
|
|
84
87
|
export { default as GoogleDrive } from './GoogleDrive';
|
|
85
88
|
export { default as GoogleMap } from './GoogleMap';
|
|
@@ -87,16 +90,18 @@ export { default as Hide } from './Hide';
|
|
|
87
90
|
export { default as Hint } from './Hint';
|
|
88
91
|
export { default as Home } from './Home';
|
|
89
92
|
export { default as ImageXmark } from './ImageXmark';
|
|
93
|
+
export { default as Import } from './Import';
|
|
90
94
|
export { default as Integration } from './Integration';
|
|
91
95
|
export { default as InvitePeople } from './InvitePeople';
|
|
92
96
|
export { default as Items } from './Items';
|
|
93
97
|
export { default as Jira } from './Jira';
|
|
98
|
+
export { default as Lab } from './Lab';
|
|
94
99
|
export { default as LeftPanel } from './LeftPanel';
|
|
95
100
|
export { default as Levels } from './Levels';
|
|
96
101
|
export { default as LineDivider } from './LineDivider';
|
|
102
|
+
export { default as Link } from './Link';
|
|
97
103
|
export { default as Lock } from './Lock';
|
|
98
104
|
export { default as Loom } from './Loom';
|
|
99
|
-
export { default as Markdown } from './Markdown';
|
|
100
105
|
export { default as MenuCollapser } from './MenuCollapser';
|
|
101
106
|
export { default as MessagePlusSquare } from './MessagePlusSquare';
|
|
102
107
|
export { default as Milestones } from './Milestones';
|
|
@@ -106,6 +111,7 @@ export { default as Mixpanel } from './Mixpanel';
|
|
|
106
111
|
export { default as MoreCompact } from './MoreCompact';
|
|
107
112
|
export { default as More } from './More';
|
|
108
113
|
export { default as MySpace } from './MySpace';
|
|
114
|
+
export { default as Network } from './Network';
|
|
109
115
|
export { default as Notifications } from './Notifications';
|
|
110
116
|
export { default as ObjChild } from './ObjChild';
|
|
111
117
|
export { default as ObjM2M } from './ObjM2M';
|
|
@@ -116,6 +122,8 @@ export { default as OnSchedule } from './OnSchedule';
|
|
|
116
122
|
export { default as OpenAsPage } from './OpenAsPage';
|
|
117
123
|
export { default as PageRegularMode } from './PageRegularMode';
|
|
118
124
|
export { default as PageWideMode } from './PageWideMode';
|
|
125
|
+
export { default as Pencil } from './Pencil';
|
|
126
|
+
export { default as People } from './People';
|
|
119
127
|
export { default as Photo } from './Photo';
|
|
120
128
|
export { default as Popup } from './Popup';
|
|
121
129
|
export { default as Posts } from './Posts';
|
|
@@ -172,6 +180,7 @@ export { default as SelfReferenceOn } from './SelfReferenceOn';
|
|
|
172
180
|
export { default as Settings } from './Settings';
|
|
173
181
|
export { default as Share } from './Share';
|
|
174
182
|
export { default as Shared } from './Shared';
|
|
183
|
+
export { default as ShieldKeyhole } from './ShieldKeyhole';
|
|
175
184
|
export { default as SidebarFieldsOpened } from './SidebarFieldsOpened';
|
|
176
185
|
export { default as SidebarFields } from './SidebarFields';
|
|
177
186
|
export { default as Sidebar } from './Sidebar';
|
|
@@ -186,6 +195,7 @@ export { default as SortOnTop } from './SortOnTop';
|
|
|
186
195
|
export { default as Sort } from './Sort';
|
|
187
196
|
export { default as Spinner } from './Spinner';
|
|
188
197
|
export { default as Templates } from './Templates';
|
|
198
|
+
export { default as Terminal } from './Terminal';
|
|
189
199
|
export { default as Twitter } from './Twitter';
|
|
190
200
|
export { default as TypeBoolean } from './TypeBoolean';
|
|
191
201
|
export { default as TypeButton } from './TypeButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import BellFilledSvg from '../ast/BellFilled';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const BellFilled = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={BellFilledSvg} />;
|
|
10
|
+
|
|
11
|
+
BellFilled.displayName = 'BellFilled';
|
|
12
|
+
export default BellFilled;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import BellOffSvg from '../ast/BellOff';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const BellOff = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={BellOffSvg} />;
|
|
10
|
+
|
|
11
|
+
BellOff.displayName = 'BellOff';
|
|
12
|
+
export default BellOff;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import BellRingingSvg from '../ast/BellRinging';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const BellRinging = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={BellRingingSvg} />;
|
|
10
|
+
|
|
11
|
+
BellRinging.displayName = 'BellRinging';
|
|
12
|
+
export default BellRinging;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import ExportSvg from '../ast/Export';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Export = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={ExportSvg} />;
|
|
10
|
+
|
|
11
|
+
Export.displayName = 'Export';
|
|
12
|
+
export default Export;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import FavoritesOffSvg from '../ast/FavoritesOff';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const FavoritesOff = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={FavoritesOffSvg} />;
|
|
10
|
+
|
|
11
|
+
FavoritesOff.displayName = 'FavoritesOff';
|
|
12
|
+
export default FavoritesOff;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import GlobeSimpleSvg from '../ast/GlobeSimple';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const GlobeSimple = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={GlobeSimpleSvg} />;
|
|
10
|
+
|
|
11
|
+
GlobeSimple.displayName = 'GlobeSimple';
|
|
12
|
+
export default GlobeSimple;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import ImportSvg from '../ast/Import';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Import = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={ImportSvg} />;
|
|
10
|
+
|
|
11
|
+
Import.displayName = 'Import';
|
|
12
|
+
export default Import;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import LabSvg from '../ast/Lab';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Lab = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={LabSvg} />;
|
|
10
|
+
|
|
11
|
+
Lab.displayName = 'Lab';
|
|
12
|
+
export default Lab;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import LinkSvg from '../ast/Link';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Link = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={LinkSvg} />;
|
|
10
|
+
|
|
11
|
+
Link.displayName = 'Link';
|
|
12
|
+
export default Link;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import NetworkSvg from '../ast/Network';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Network = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={NetworkSvg} />;
|
|
10
|
+
|
|
11
|
+
Network.displayName = 'Network';
|
|
12
|
+
export default Network;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import PencilSvg from '../ast/Pencil';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Pencil = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={PencilSvg} />;
|
|
10
|
+
|
|
11
|
+
Pencil.displayName = 'Pencil';
|
|
12
|
+
export default Pencil;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import PeopleSvg from '../ast/People';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const People = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={PeopleSvg} />;
|
|
10
|
+
|
|
11
|
+
People.displayName = 'People';
|
|
12
|
+
export default People;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import ShieldKeyholeSvg from '../ast/ShieldKeyhole';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const ShieldKeyhole = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={ShieldKeyholeSvg} />;
|
|
10
|
+
|
|
11
|
+
ShieldKeyhole.displayName = 'ShieldKeyhole';
|
|
12
|
+
export default ShieldKeyhole;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This icon file is generated automatically.
|
|
2
|
+
|
|
3
|
+
import TerminalSvg from '../ast/Terminal';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { IconBaseProps } from '../types';
|
|
6
|
+
|
|
7
|
+
const Terminal = (
|
|
8
|
+
props: IconBaseProps,
|
|
9
|
+
): JSX.Element => <Icon {...props} icon={TerminalSvg} />;
|
|
10
|
+
|
|
11
|
+
Terminal.displayName = 'Terminal';
|
|
12
|
+
export default Terminal;
|
|
@@ -16,7 +16,6 @@ export { default as AntdFilledInfoCircle } from './AntdFilledInfoCircle';
|
|
|
16
16
|
export { default as AppDetails } from './AppDetails';
|
|
17
17
|
export { default as AppStoreOneColor } from './AppStoreOneColor';
|
|
18
18
|
export { default as AppStore } from './AppStore';
|
|
19
|
-
export { default as AppTemplatesOneColor } from './AppTemplatesOneColor';
|
|
20
19
|
export { default as AppTemplates } from './AppTemplates';
|
|
21
20
|
export { default as AppWebhooks } from './AppWebhooks';
|
|
22
21
|
export { default as AppWiki } from './AppWiki';
|
|
@@ -35,6 +34,9 @@ export { default as Back } from './Back';
|
|
|
35
34
|
export { default as BacklogIcon } from './BacklogIcon';
|
|
36
35
|
export { default as BatchActionsIcon } from './BatchActionsIcon';
|
|
37
36
|
export { default as BellCircle } from './BellCircle';
|
|
37
|
+
export { default as BellFilled } from './BellFilled';
|
|
38
|
+
export { default as BellOff } from './BellOff';
|
|
39
|
+
export { default as BellRinging } from './BellRinging';
|
|
38
40
|
export { default as BellX } from './BellX';
|
|
39
41
|
export { default as Bolt } from './Bolt';
|
|
40
42
|
export { default as Cards } from './Cards';
|
|
@@ -49,7 +51,6 @@ export { default as Columns2 } from './Columns2';
|
|
|
49
51
|
export { default as Columns4 } from './Columns4';
|
|
50
52
|
export { default as Columns } from './Columns';
|
|
51
53
|
export { default as Copy } from './Copy';
|
|
52
|
-
export { default as CopyUrl } from './CopyUrl';
|
|
53
54
|
export { default as Database } from './Database';
|
|
54
55
|
export { default as Delete } from './Delete';
|
|
55
56
|
export { default as Demo } from './Demo';
|
|
@@ -60,6 +61,7 @@ export { default as DragHandle } from './DragHandle';
|
|
|
60
61
|
export { default as DynamicFilterValue } from './DynamicFilterValue';
|
|
61
62
|
export { default as Email } from './Email';
|
|
62
63
|
export { default as EmojiDelete } from './EmojiDelete';
|
|
64
|
+
export { default as Export } from './Export';
|
|
63
65
|
export { default as ExtensionAssignments } from './ExtensionAssignments';
|
|
64
66
|
export { default as ExtensionAvatar } from './ExtensionAvatar';
|
|
65
67
|
export { default as ExtensionComments } from './ExtensionComments';
|
|
@@ -67,7 +69,7 @@ export { default as ExtensionFiles } from './ExtensionFiles';
|
|
|
67
69
|
export { default as ExtensionReferences } from './ExtensionReferences';
|
|
68
70
|
export { default as ExtensionWorkflow } from './ExtensionWorkflow';
|
|
69
71
|
export { default as FavoritesChecked } from './FavoritesChecked';
|
|
70
|
-
export { default as
|
|
72
|
+
export { default as FavoritesOff } from './FavoritesOff';
|
|
71
73
|
export { default as Favorites } from './Favorites';
|
|
72
74
|
export { default as FiberyMono } from './FiberyMono';
|
|
73
75
|
export { default as Fields } from './Fields';
|
|
@@ -80,6 +82,7 @@ export { default as FormWithCover } from './FormWithCover';
|
|
|
80
82
|
export { default as FormWithoutCover } from './FormWithoutCover';
|
|
81
83
|
export { default as Github } from './Github';
|
|
82
84
|
export { default as Gitlab } from './Gitlab';
|
|
85
|
+
export { default as GlobeSimple } from './GlobeSimple';
|
|
83
86
|
export { default as Globe } from './Globe';
|
|
84
87
|
export { default as GoogleDrive } from './GoogleDrive';
|
|
85
88
|
export { default as GoogleMap } from './GoogleMap';
|
|
@@ -87,16 +90,18 @@ export { default as Hide } from './Hide';
|
|
|
87
90
|
export { default as Hint } from './Hint';
|
|
88
91
|
export { default as Home } from './Home';
|
|
89
92
|
export { default as ImageXmark } from './ImageXmark';
|
|
93
|
+
export { default as Import } from './Import';
|
|
90
94
|
export { default as Integration } from './Integration';
|
|
91
95
|
export { default as InvitePeople } from './InvitePeople';
|
|
92
96
|
export { default as Items } from './Items';
|
|
93
97
|
export { default as Jira } from './Jira';
|
|
98
|
+
export { default as Lab } from './Lab';
|
|
94
99
|
export { default as LeftPanel } from './LeftPanel';
|
|
95
100
|
export { default as Levels } from './Levels';
|
|
96
101
|
export { default as LineDivider } from './LineDivider';
|
|
102
|
+
export { default as Link } from './Link';
|
|
97
103
|
export { default as Lock } from './Lock';
|
|
98
104
|
export { default as Loom } from './Loom';
|
|
99
|
-
export { default as Markdown } from './Markdown';
|
|
100
105
|
export { default as MenuCollapser } from './MenuCollapser';
|
|
101
106
|
export { default as MessagePlusSquare } from './MessagePlusSquare';
|
|
102
107
|
export { default as Milestones } from './Milestones';
|
|
@@ -106,6 +111,7 @@ export { default as Mixpanel } from './Mixpanel';
|
|
|
106
111
|
export { default as MoreCompact } from './MoreCompact';
|
|
107
112
|
export { default as More } from './More';
|
|
108
113
|
export { default as MySpace } from './MySpace';
|
|
114
|
+
export { default as Network } from './Network';
|
|
109
115
|
export { default as Notifications } from './Notifications';
|
|
110
116
|
export { default as ObjChild } from './ObjChild';
|
|
111
117
|
export { default as ObjM2M } from './ObjM2M';
|
|
@@ -116,6 +122,8 @@ export { default as OnSchedule } from './OnSchedule';
|
|
|
116
122
|
export { default as OpenAsPage } from './OpenAsPage';
|
|
117
123
|
export { default as PageRegularMode } from './PageRegularMode';
|
|
118
124
|
export { default as PageWideMode } from './PageWideMode';
|
|
125
|
+
export { default as Pencil } from './Pencil';
|
|
126
|
+
export { default as People } from './People';
|
|
119
127
|
export { default as Photo } from './Photo';
|
|
120
128
|
export { default as Popup } from './Popup';
|
|
121
129
|
export { default as Posts } from './Posts';
|
|
@@ -172,6 +180,7 @@ export { default as SelfReferenceOn } from './SelfReferenceOn';
|
|
|
172
180
|
export { default as Settings } from './Settings';
|
|
173
181
|
export { default as Share } from './Share';
|
|
174
182
|
export { default as Shared } from './Shared';
|
|
183
|
+
export { default as ShieldKeyhole } from './ShieldKeyhole';
|
|
175
184
|
export { default as SidebarFieldsOpened } from './SidebarFieldsOpened';
|
|
176
185
|
export { default as SidebarFields } from './SidebarFields';
|
|
177
186
|
export { default as Sidebar } from './Sidebar';
|
|
@@ -186,6 +195,7 @@ export { default as SortOnTop } from './SortOnTop';
|
|
|
186
195
|
export { default as Sort } from './Sort';
|
|
187
196
|
export { default as Spinner } from './Spinner';
|
|
188
197
|
export { default as Templates } from './Templates';
|
|
198
|
+
export { default as Terminal } from './Terminal';
|
|
189
199
|
export { default as Twitter } from './Twitter';
|
|
190
200
|
export { default as TypeBoolean } from './TypeBoolean';
|
|
191
201
|
export { default as TypeButton } from './TypeButton';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import {forwardRef, Ref, ReactNode, MouseEvent, CSSProperties, AriaRole} from "react";
|
|
4
|
-
import {themeVars} from "./
|
|
4
|
+
import {themeVars} from "./design-system";
|
|
5
5
|
|
|
6
6
|
const getGridStyle = ({
|
|
7
7
|
multiline,
|
package/src/loaders.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {css, cx} from "@linaria/core";
|
|
2
2
|
import {styled} from "@linaria/react";
|
|
3
|
-
import {ReactNode} from "react";
|
|
3
|
+
import {ReactNode, memo} from "react";
|
|
4
4
|
import {IconBaseProps} from "./icons/types";
|
|
5
|
-
import {border, layout, space, textStyles, themeVars} from "./
|
|
6
|
-
import {getShiftStyle} from "./icons/
|
|
5
|
+
import {border, layout, space, textStyles, themeVars} from "./design-system";
|
|
6
|
+
import {getShiftStyle} from "./icons/get-shift-style";
|
|
7
7
|
import {LoadingSausage} from "./loading-sausage";
|
|
8
|
-
import {useTheme} from "./
|
|
8
|
+
import {useTheme} from "./theme-provider";
|
|
9
9
|
|
|
10
10
|
export const LoadingView = styled.div<{absolute: boolean; backgroundColor?: string}>`
|
|
11
11
|
position: ${(props) => (props.absolute ? "absolute" : "static")};
|
|
@@ -104,7 +104,20 @@ const ContainerSpinner = styled.div<{containerSize: number}>`
|
|
|
104
104
|
line-height: ${(props) => props.containerSize}px;
|
|
105
105
|
`;
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
type SpinnerProps = {
|
|
108
|
+
size?: number;
|
|
109
|
+
containerSize?: number;
|
|
110
|
+
width?: number;
|
|
111
|
+
color?: string;
|
|
112
|
+
backgroundColor?: string;
|
|
113
|
+
};
|
|
114
|
+
export const Spinner = memo<SpinnerProps>(function Spinner({
|
|
115
|
+
size = 20,
|
|
116
|
+
containerSize = 15,
|
|
117
|
+
width = 2,
|
|
118
|
+
color = "#000000",
|
|
119
|
+
backgroundColor = "#FFFFFF",
|
|
120
|
+
}) {
|
|
108
121
|
const spinnerStyle = {
|
|
109
122
|
width: size,
|
|
110
123
|
height: size,
|
|
@@ -119,7 +132,7 @@ export const Spinner = ({size = 20, containerSize = 15, width = 2, color = "#000
|
|
|
119
132
|
<div style={spinnerStyle} className={spinner} />
|
|
120
133
|
</ContainerSpinner>
|
|
121
134
|
);
|
|
122
|
-
};
|
|
135
|
+
});
|
|
123
136
|
|
|
124
137
|
export const LoadingTreeMenuItem = ({
|
|
125
138
|
color,
|
package/src/loading-sausage.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {styled} from "@linaria/react";
|
|
|
3
3
|
import cn from "classnames";
|
|
4
4
|
import _ from "lodash";
|
|
5
5
|
import {memo, useRef} from "react";
|
|
6
|
-
import {space, themeVars} from "./
|
|
6
|
+
import {space, themeVars} from "./design-system";
|
|
7
7
|
|
|
8
8
|
const getRandomWithSeed = _.memoize((seed: number) => {
|
|
9
9
|
const x = Math.sin(seed + 1) * 10000;
|
|
@@ -11,6 +11,8 @@ const getRandomWithSeed = _.memoize((seed: number) => {
|
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
export const getRandomInt = (min: number, max: number, seed?: number): number => {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15
|
+
// @ts-ignore
|
|
14
16
|
const random = seed ? getRandomWithSeed(seed) : process.env.NODE_ENV === "test" ? 0.5 : Math.random();
|
|
15
17
|
return Math.floor(random * (max - min + 1)) + min;
|
|
16
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import invariant from "invariant";
|
|
2
2
|
import {themeStyles} from "./theme-styles";
|
|
3
3
|
import {createContext, ReactNode, useContext, useEffect, useState} from "react";
|
|
4
|
-
import {colors, getThemeColors, ThemeColors} from "./
|
|
4
|
+
import {colors, getThemeColors, ThemeColors} from "./design-system";
|
|
5
5
|
import {
|
|
6
6
|
subscribeOnThemeMenuPreferenceChange,
|
|
7
7
|
subscribeOnThemeModeChange,
|
|
@@ -51,6 +51,16 @@ export function useThemeMenuPreference(): ThemeMenuPreference {
|
|
|
51
51
|
return themeMenuPreference;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export function useMenuTheme() {
|
|
55
|
+
const themeMode = useThemeMode();
|
|
56
|
+
return getThemeColors(colors.brandColors.blue, themeMode === "light" ? "light" : "dark");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function MenuThemeProvider({children}: {children: ReactNode}) {
|
|
60
|
+
const theme = useMenuTheme();
|
|
61
|
+
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
export function RootThemeProvider({
|
|
55
65
|
initialThemeMode,
|
|
56
66
|
initialPreference,
|
package/src/theme-styles.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
|
-
import {createInlineTheme, getThemeColors, colors} from "./
|
|
2
|
+
import {createInlineTheme, getThemeColors, colors} from "./design-system";
|
|
3
3
|
const lightTheme = getThemeColors(colors.brandColors.blue, "light");
|
|
4
4
|
const darkTheme = getThemeColors(colors.brandColors.blue, "dark");
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export const themeStyles = css`
|
|
7
7
|
:global(html) {
|
|
8
8
|
&:root {
|
|
@@ -11,8 +11,5 @@ export const themeStyles = css`
|
|
|
11
11
|
&.dark-theme:root {
|
|
12
12
|
${createInlineTheme(darkTheme, [])}
|
|
13
13
|
}
|
|
14
|
-
&.light-theme-and-dark-menu:root {
|
|
15
|
-
${createInlineTheme(light2Theme, [])}
|
|
16
|
-
}
|
|
17
14
|
}
|
|
18
15
|
`;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {css} from "@linaria/core";
|
|
2
|
+
import {ToastRoot, ToastTitle, ToastSubtitle, ToastClose, ToastAction} from "./primitives";
|
|
3
|
+
import {space} from "../design-system";
|
|
4
|
+
|
|
5
|
+
export {ToastProvider, ToastViewport, ToastAction} from "./primitives";
|
|
6
|
+
|
|
7
|
+
export type ToastProps = {
|
|
8
|
+
title: React.ReactNode;
|
|
9
|
+
subTitle?: React.ReactNode;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
action?: React.ReactElement<typeof ToastAction>;
|
|
12
|
+
autoClose?: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const rootCss = css`
|
|
16
|
+
min-width: 320px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: ${space.l}px;
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const messageCss = css`
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: ${space.xs}px;
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
const iconCss = css`
|
|
30
|
+
grid-area: icon;
|
|
31
|
+
`;
|
|
32
|
+
export const Toast: React.FC<ToastProps> = ({title, subTitle, icon, action, autoClose = true}) => {
|
|
33
|
+
const close = autoClose ? null : <ToastClose />;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<ToastRoot duration={autoClose ? 5000 : Infinity} className={rootCss}>
|
|
37
|
+
{icon ? <div className={iconCss}>{icon}</div> : null}
|
|
38
|
+
<div className={messageCss}>
|
|
39
|
+
<ToastTitle>{title}</ToastTitle>
|
|
40
|
+
{subTitle ? <ToastSubtitle>{subTitle}</ToastSubtitle> : null}
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
{action}
|
|
44
|
+
{close}
|
|
45
|
+
</ToastRoot>
|
|
46
|
+
);
|
|
47
|
+
};
|