@fibery/ui-kit 1.17.0 → 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.
Files changed (101) hide show
  1. package/index.ts +1 -1
  2. package/package.json +26 -21
  3. package/src/Button/actions-button.tsx +2 -2
  4. package/src/Button/button-base.tsx +2 -2
  5. package/src/Button/button-group.tsx +1 -1
  6. package/src/Button/button.tsx +3 -3
  7. package/src/Button/icon-button.tsx +1 -0
  8. package/src/Select/custom-select-partials/clear-indicator.tsx +22 -0
  9. package/src/Select/custom-select-partials/drop-down-indicator.tsx +26 -0
  10. package/src/Select/custom-select-partials/group-heading.tsx +54 -0
  11. package/src/Select/custom-select-partials/menu.tsx +25 -0
  12. package/src/Select/custom-select-partials/no-option-message.tsx +10 -0
  13. package/src/Select/custom-select-partials/option.tsx +92 -0
  14. package/src/Select/index.tsx +18 -47
  15. package/src/Select/select-in-popover.tsx +2 -2
  16. package/src/Select/styles.ts +11 -53
  17. package/src/antd/styles.ts +1 -1
  18. package/src/back-button.tsx +3 -0
  19. package/src/create-inline-theme.ts +2 -0
  20. package/src/design-system.ts +961 -0
  21. package/src/emoji-picker/app-icon-picker.tsx +2 -2
  22. package/src/emoji-picker/emoji-picker-content-with-color.tsx +4 -4
  23. package/src/emoji-picker/emoji-picker.tsx +11 -5
  24. package/src/emoji-picker/icon-emoji-picker.tsx +2 -2
  25. package/src/emoji-picker/primitives/category.tsx +2 -2
  26. package/src/emoji-picker/primitives/content.tsx +3 -2
  27. package/src/emoji-picker/primitives/emoji.tsx +6 -3
  28. package/src/emoji-picker/primitives/footer.tsx +1 -1
  29. package/src/emoji-picker/primitives/header.tsx +1 -1
  30. package/src/emoji-picker/primitives/layout.ts +1 -1
  31. package/src/emoji-picker/primitives/search.tsx +1 -1
  32. package/src/emoji-picker/primitives/skin-tone.tsx +1 -1
  33. package/src/emoji-picker/stores/lazy-emoji-data-store.tsx +3 -3
  34. package/src/emoji-picker/stores/lazy-icon-data-store.tsx +1 -1
  35. package/src/error-alert.tsx +2 -2
  36. package/src/form-field-loader.tsx +1 -1
  37. package/src/icons/Icon.tsx +4 -4
  38. package/src/icons/ast/Activity.ts +1 -1
  39. package/src/icons/ast/BellFilled.ts +8 -0
  40. package/src/icons/ast/BellOff.ts +8 -0
  41. package/src/icons/ast/BellRinging.ts +8 -0
  42. package/src/icons/ast/Export.ts +8 -0
  43. package/src/icons/ast/Favorites.ts +1 -1
  44. package/src/icons/ast/FavoritesChecked.ts +1 -1
  45. package/src/icons/ast/FavoritesOff.ts +8 -0
  46. package/src/icons/ast/GlobeSimple.ts +8 -0
  47. package/src/icons/ast/Import.ts +8 -0
  48. package/src/icons/ast/Lab.ts +8 -0
  49. package/src/icons/ast/Link.ts +8 -0
  50. package/src/icons/ast/Network.ts +8 -0
  51. package/src/icons/ast/Pencil.ts +8 -0
  52. package/src/icons/ast/People.ts +8 -0
  53. package/src/icons/ast/RicheditorLinkCreate.ts +1 -1
  54. package/src/icons/ast/RicheditorOpenLink.ts +1 -1
  55. package/src/icons/ast/RicheditorUnlink.ts +1 -1
  56. package/src/icons/ast/ShieldKeyhole.ts +8 -0
  57. package/src/icons/ast/Terminal.ts +8 -0
  58. package/src/icons/ast/TypeUrl.ts +1 -1
  59. package/src/icons/ast/index.tsx +14 -4
  60. package/src/icons/{getIconContainerStyle.tsx → get-icon-container-style.tsx} +1 -1
  61. package/src/icons/react/BellFilled.tsx +12 -0
  62. package/src/icons/react/BellOff.tsx +12 -0
  63. package/src/icons/react/BellRinging.tsx +12 -0
  64. package/src/icons/react/Export.tsx +12 -0
  65. package/src/icons/react/FavoritesOff.tsx +12 -0
  66. package/src/icons/react/GlobeSimple.tsx +12 -0
  67. package/src/icons/react/Import.tsx +12 -0
  68. package/src/icons/react/Lab.tsx +12 -0
  69. package/src/icons/react/Link.tsx +12 -0
  70. package/src/icons/react/Network.tsx +12 -0
  71. package/src/icons/react/Pencil.tsx +12 -0
  72. package/src/icons/react/People.tsx +12 -0
  73. package/src/icons/react/ShieldKeyhole.tsx +12 -0
  74. package/src/icons/react/Terminal.tsx +12 -0
  75. package/src/icons/react/index.tsx +14 -4
  76. package/src/{Item.tsx → item.tsx} +1 -1
  77. package/src/loaders.tsx +19 -6
  78. package/src/loading-sausage.tsx +3 -1
  79. package/src/{ThemeProvider.tsx → theme-provider.tsx} +11 -1
  80. package/src/theme-styles.ts +2 -5
  81. package/src/toast/index.tsx +47 -0
  82. package/src/toast/primitives.tsx +140 -0
  83. package/src/tooltip.tsx +3 -3
  84. package/src/BackButton.tsx +0 -3
  85. package/src/Select/components.tsx +0 -90
  86. package/src/designSystem.ts +0 -951
  87. package/src/icons/ast/AppTemplatesOneColor.ts +0 -8
  88. package/src/icons/ast/CopyUrl.ts +0 -8
  89. package/src/icons/ast/FavoritesMenu.ts +0 -8
  90. package/src/icons/ast/Markdown.ts +0 -8
  91. package/src/icons/react/AppTemplatesOneColor.tsx +0 -12
  92. package/src/icons/react/CopyUrl.tsx +0 -12
  93. package/src/icons/react/FavoritesMenu.tsx +0 -12
  94. package/src/icons/react/Markdown.tsx +0 -12
  95. /package/src/Button/{AddButton.tsx → add-button.tsx} +0 -0
  96. /package/src/Button/{BackButton.tsx → back-button.tsx} +0 -0
  97. /package/src/{Button.tsx → button.tsx} +0 -0
  98. /package/src/icons/{generateIconFromAst.ts → generate-icon-from-ast.ts} +0 -0
  99. /package/src/icons/{IconAsPaths.ts → get-paths.ts} +0 -0
  100. /package/src/icons/{getShiftStyle.ts → get-shift-style.ts} +0 -0
  101. /package/src/{Pallete.ts → pallete.ts} +0 -0
@@ -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 FavoritesMenu } from './FavoritesMenu';
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,5 +1,5 @@
1
1
  import {CSSProperties} from "react";
2
- import {themeVars} from "../designSystem";
2
+ import {themeVars} from "../design-system";
3
3
 
4
4
  export const getIconContainerStyle = (
5
5
  containerSize: number,
@@ -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 FavoritesMenu } from './FavoritesMenu';
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 "./designSystem";
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 "./designSystem";
6
- import {getShiftStyle} from "./icons/getShiftStyle";
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 "./ThemeProvider";
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
- export const Spinner = ({size = 20, containerSize = 15, width = 2, color = "#000000", backgroundColor = "#FFFFFF"}) => {
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,
@@ -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 "./designSystem";
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 "./designSystem";
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,
@@ -1,8 +1,8 @@
1
1
  import {css} from "@linaria/core";
2
- import {createInlineTheme, getThemeColors, colors} from "./designSystem";
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
- const light2Theme = getThemeColors(colors.brandColors.blue, "light2");
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
+ };