@baishuyun/ai-design 2.0.37 → 2.1.0-alpha.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/.storybook/main.ts +31 -31
- package/.storybook/preview.ts +16 -16
- package/CHANGELOG.md +512 -492
- package/components.json +22 -22
- package/package.json +9 -6
- package/scripts/strip-layers.cjs +41 -41
- package/src/components/abs-fullscreen-gradient-bg.tsx +35 -35
- package/src/components/agent-helper/agent-category-select-menu/index.tsx +57 -57
- package/src/components/agent-helper/agent-entry-card/index.tsx +94 -94
- package/src/components/agent-helper/agent-helper-card/index.tsx +179 -179
- package/src/components/agent-helper/agent-helper-card-list/index.tsx +59 -59
- package/src/components/agent-helper/agent-helper-main-layout/index.tsx +60 -60
- package/src/components/agent-helper/agent-sort-select/index.tsx +89 -89
- package/src/components/agent-helper/agent-tag/index.tsx +29 -29
- package/src/components/agent-helper/app-select/index.tsx +559 -559
- package/src/components/agent-helper/condition-group/index.tsx +75 -75
- package/src/components/agent-helper/condition-input/index.tsx +233 -233
- package/src/components/agent-helper/condition-item/index.tsx +237 -237
- package/src/components/agent-helper/condition-quantifier-select/index.tsx +142 -142
- package/src/components/agent-helper/condition-trigger-description/index.tsx +49 -49
- package/src/components/agent-helper/date-picker/calendar-panel.tsx +164 -164
- package/src/components/agent-helper/date-picker/date-input.tsx +91 -91
- package/src/components/agent-helper/date-picker/date-picker.tsx +327 -327
- package/src/components/agent-helper/date-picker/footer-panel.tsx +44 -44
- package/src/components/agent-helper/date-picker/index.ts +3 -3
- package/src/components/agent-helper/date-picker/month-panel.tsx +82 -82
- package/src/components/agent-helper/date-picker/time-panel.tsx +146 -146
- package/src/components/agent-helper/date-picker/types.ts +37 -37
- package/src/components/agent-helper/date-picker/utils.ts +121 -121
- package/src/components/agent-helper/date-picker/year-panel.tsx +86 -86
- package/src/components/agent-helper/exec-log-filter/index.tsx +232 -232
- package/src/components/agent-helper/field-edit-preference-select/index.tsx +291 -291
- package/src/components/agent-helper/field-select/index.tsx +466 -466
- package/src/components/agent-helper/field-value-input/china-address-data.ts +4117 -4117
- package/src/components/agent-helper/field-value-input/display.tsx +71 -71
- package/src/components/agent-helper/field-value-input/icons.tsx +38 -38
- package/src/components/agent-helper/field-value-input/index.tsx +144 -144
- package/src/components/agent-helper/field-value-input/inputs.tsx +247 -247
- package/src/components/agent-helper/field-value-input/picker-inputs.tsx +1141 -1141
- package/src/components/agent-helper/flow-node-action-trigger-select/index.tsx +57 -57
- package/src/components/agent-helper/form-action-trigger-select/index.tsx +60 -60
- package/src/components/agent-helper/form-divider/index.tsx +44 -44
- package/src/components/agent-helper/form-select/index.tsx +732 -732
- package/src/components/agent-helper/monthdays-select/index.tsx +378 -378
- package/src/components/agent-helper/offset-preference-select/index.tsx +268 -268
- package/src/components/agent-helper/offset-type-select/index.tsx +66 -66
- package/src/components/agent-helper/offset-unit-select/index.tsx +54 -54
- package/src/components/agent-helper/placeholder-card/index.tsx +75 -75
- package/src/components/agent-helper/prompt-input/index.tsx +646 -640
- package/src/components/agent-helper/relational-operator-select/index.tsx +179 -179
- package/src/components/agent-helper/repeat-by-type-select/index.tsx +53 -53
- package/src/components/agent-helper/repeat-preference-select/index.tsx +162 -162
- package/src/components/agent-helper/repeat-preference-type-select/index.tsx +58 -58
- package/src/components/agent-helper/search-input/index.tsx +35 -35
- package/src/components/agent-helper/table/index.tsx +114 -114
- package/src/components/agent-helper/trigger-select/index.tsx +121 -121
- package/src/components/agent-helper/trigger-time-preference-select/index.tsx +189 -189
- package/src/components/agent-helper/trigger-time-source-type-select/index.tsx +53 -53
- package/src/components/agent-helper/weekdays-select/index.tsx +230 -230
- package/src/components/agent-scroll-selector.tsx +193 -193
- package/src/components/agent-select.tsx +154 -154
- package/src/components/attachment-part-group.tsx +35 -35
- package/src/components/attachment-part.tsx +296 -296
- package/src/components/attachments-previewer.tsx +272 -272
- package/src/components/base-button.tsx +49 -49
- package/src/components/border-animation.tsx +107 -107
- package/src/components/border-color-animation.tsx +66 -66
- package/src/components/bot-avatar-name.tsx +36 -36
- package/src/components/bot-icon.tsx +23 -23
- package/src/components/bs-entry-select/app-group-folder.tsx +61 -61
- package/src/components/bs-entry-select/bs-entry-select.tsx +296 -296
- package/src/components/bs-entry-select/build-tree.ts +265 -265
- package/src/components/bs-entry-select/entry-item.tsx +45 -45
- package/src/components/bs-entry-select/entry-popover.tsx +99 -99
- package/src/components/bs-entry-select/index.ts +7 -7
- package/src/components/bs-entry-select/other-app-section.tsx +96 -96
- package/src/components/bs-entry-select/scroll-slider.tsx +872 -872
- package/src/components/bs-entry-select/search-input.tsx +4 -4
- package/src/components/bs-entry-select/tree-item-node.tsx +84 -84
- package/src/components/bs-entry-select/types.ts +46 -46
- package/src/components/bs-icons.tsx +1362 -1362
- package/src/components/card-field.tsx +23 -23
- package/src/components/card.tsx +36 -36
- package/src/components/chat-area-header.tsx +65 -65
- package/src/components/check-card.tsx +77 -77
- package/src/components/circle-checker.tsx +66 -66
- package/src/components/collapsible-txt-msg.tsx +75 -75
- package/src/components/collapsible.tsx +9 -9
- package/src/components/confirm-dialog.tsx +139 -139
- package/src/components/date-range-picker.tsx +91 -91
- package/src/components/fake-bot-msg.tsx +51 -51
- package/src/components/field-checker-list-msg.tsx +146 -146
- package/src/components/field-checker.tsx +185 -185
- package/src/components/field-icon.tsx +13 -13
- package/src/components/field-value-checker.tsx +116 -116
- package/src/components/fields-design-info-table.tsx +160 -160
- package/src/components/fields-generating-indicator.tsx +95 -95
- package/src/components/fields-portal.tsx +18 -18
- package/src/components/fields-previewer.tsx +216 -216
- package/src/components/font-icon.tsx +65 -65
- package/src/components/form-info-editor.tsx +263 -263
- package/src/components/formula-tag.tsx +32 -32
- package/src/components/generate-animation.tsx +56 -56
- package/src/components/icon-btn.tsx +43 -43
- package/src/components/icon-card.tsx +67 -67
- package/src/components/icons/calendar-icon.tsx +5 -5
- package/src/components/icons/clear-all-icon.tsx +5 -5
- package/src/components/icons/empty-agent-icon.tsx +93 -93
- package/src/components/icons/empty-table-icon.tsx +104 -104
- package/src/components/icons/grids-icon.tsx +5 -5
- package/src/components/img-part.tsx +27 -27
- package/src/components/legacy-slot.tsx +110 -110
- package/src/components/line-checker.tsx +168 -168
- package/src/components/linear-gradient-border-btn.tsx +48 -48
- package/src/components/linear-gradient-color-bg-animation.tsx +103 -103
- package/src/components/memoized-markdown.tsx +32 -32
- package/src/components/message-content.tsx +21 -21
- package/src/components/number-part.tsx +46 -46
- package/src/components/office-container.tsx +289 -265
- package/src/components/option-item.tsx +27 -27
- package/src/components/output-config-editor.tsx +478 -478
- package/src/components/previewer-header.tsx +270 -270
- package/src/components/primary-confirm-btn.tsx +58 -58
- package/src/components/primary-entry-btn.tsx +48 -48
- package/src/components/radio-card.tsx +63 -63
- package/src/components/scroll-to-bottom-btn.tsx +28 -28
- package/src/components/split-line.tsx +9 -9
- package/src/components/square-checker.tsx +87 -87
- package/src/components/subform-fields-value-checker.tsx +184 -184
- package/src/components/tab-radio-group.tsx +83 -83
- package/src/components/tooltip.tsx +53 -53
- package/src/components/ui/button.tsx +51 -51
- package/src/components/ui/calendar.tsx +57 -57
- package/src/components/ui/dialog.tsx +104 -104
- package/src/components/ui/drawer.tsx +279 -279
- package/src/components/ui/form.tsx +202 -202
- package/src/components/ui/icons.tsx +1267 -1267
- package/src/components/ui/input.tsx +28 -28
- package/src/components/ui/label.tsx +30 -30
- package/src/components/ui/popover.tsx +85 -85
- package/src/components/ui/select.tsx +236 -236
- package/src/components/ui/spinner.tsx +17 -17
- package/src/components/ui/switch.tsx +33 -33
- package/src/components/ui/tabs.tsx +62 -62
- package/src/components/ui/textarea.tsx +28 -28
- package/src/components/ui/tooltip.tsx +53 -53
- package/src/components/user-txt-msg-bubble.tsx +47 -47
- package/src/components/warning-msg.tsx +27 -27
- package/src/const/ui.ts +119 -119
- package/src/css.d.ts +4 -4
- package/src/hooks/use-column-appear.ts +78 -78
- package/src/hooks/use-portal-container.ts +27 -27
- package/src/hooks/use-resizable-width.ts +129 -129
- package/src/hooks/use-select-popover-position.ts +74 -74
- package/src/hooks/use-shadow.ts +127 -127
- package/src/index.ts +226 -226
- package/src/lib/utils.ts +138 -138
- package/src/stories/AbsFullscreenGradientBg.stories.tsx +36 -36
- package/src/stories/AgentCategorySelectMenu.stories.tsx +33 -33
- package/src/stories/AgentEntryCard.stories.tsx +90 -90
- package/src/stories/AgentHelperCard.stories.tsx +105 -105
- package/src/stories/AgentHelperCardList.stories.tsx +120 -120
- package/src/stories/AgentHelperMainLayout.stories.tsx +71 -71
- package/src/stories/AgentScrollSelector.stories.tsx +95 -95
- package/src/stories/AgentSelect.stories.tsx +134 -134
- package/src/stories/AgentTag.stories.tsx +44 -44
- package/src/stories/AppSelect.stories.tsx +250 -250
- package/src/stories/AttachmentPart.stories.tsx +122 -122
- package/src/stories/AttachmentPartGroup.stories.tsx +152 -152
- package/src/stories/AttachmentsPreviewer.stories.tsx +306 -306
- package/src/stories/BaseButton.stories.tsx +33 -33
- package/src/stories/BorderAnimation.stories.tsx +116 -116
- package/src/stories/BorderColorAnimation.stories.tsx +63 -63
- package/src/stories/BotAvatarAndName.stories.ts +24 -24
- package/src/stories/BotIcon.stories.ts +22 -22
- package/src/stories/BsConditionInput.stories.tsx +460 -460
- package/src/stories/BsEntrySelect.stories.tsx +343 -343
- package/src/stories/BsTooltip.stories.tsx +32 -32
- package/src/stories/Card.stories.tsx +28 -28
- package/src/stories/CardField.stories.tsx +87 -87
- package/src/stories/ChatAreaHeader.stories.ts +26 -26
- package/src/stories/CheckCard.stories.tsx +114 -114
- package/src/stories/CircleChecker.stories.tsx +89 -89
- package/src/stories/CollapsibleTextMsg.stories.ts +44 -44
- package/src/stories/ConditionGroup.stories.tsx +216 -216
- package/src/stories/ConditionInput.stories.tsx +502 -502
- package/src/stories/ConditionItem.stories.tsx +163 -163
- package/src/stories/ConditonQuantifierSelect.stories.tsx +54 -54
- package/src/stories/ConditonTriggerDescription.stories.tsx +61 -61
- package/src/stories/ConfirmDialog.stories.tsx +123 -123
- package/src/stories/DataTable.stories.tsx +191 -191
- package/src/stories/DatePicker.stories.tsx +174 -174
- package/src/stories/ExecLogFilter.stories.tsx +145 -145
- package/src/stories/FakeBotMsg.stories.tsx +36 -36
- package/src/stories/FieldEditPreferenceSelect.stories.tsx +161 -161
- package/src/stories/FieldSelect.stories.tsx +228 -228
- package/src/stories/FieldValueInput.stories.tsx +442 -442
- package/src/stories/FlowNodeActionTriggerSelect.stories.tsx +80 -80
- package/src/stories/Form.stories.tsx +302 -302
- package/src/stories/FormActionTriggerSelect.stories.tsx +80 -80
- package/src/stories/FormDivider.stories.tsx +31 -31
- package/src/stories/FormInfoEditor.stories.tsx +173 -173
- package/src/stories/FormSelect.stories.tsx +222 -222
- package/src/stories/FormulaTag.stories.tsx +68 -68
- package/src/stories/GenerateAnimation.stories.ts +20 -20
- package/src/stories/IconBtn.stories.tsx +32 -32
- package/src/stories/IconCard.stories.tsx +35 -35
- package/src/stories/IconLib.tsx +45 -45
- package/src/stories/Icons.stories.ts +22 -22
- package/src/stories/ImgMsgPart.stories.tsx +42 -42
- package/src/stories/Input.stories.tsx +102 -102
- package/src/stories/Label.stories.tsx +66 -66
- package/src/stories/LegacySlot.stories.tsx +56 -56
- package/src/stories/LineChecker.stories.tsx +133 -133
- package/src/stories/LinearGradientBorderBtn.stories.tsx +86 -86
- package/src/stories/LinearGradientColorBgAnimation.stories.tsx +60 -60
- package/src/stories/MemoizedMarkdown.stories.tsx +102 -102
- package/src/stories/MessageContent.stories.tsx +36 -36
- package/src/stories/MonthdaysSelect.stories.tsx +78 -78
- package/src/stories/NumbersMsgPart.stories.tsx +42 -42
- package/src/stories/OfficeContainer.stories.tsx +287 -287
- package/src/stories/OffsetPreferenceSelect.stories.tsx +118 -118
- package/src/stories/OffsetTypeSelect.stories.tsx +75 -75
- package/src/stories/OffsetUnitSelect.stories.tsx +61 -61
- package/src/stories/OptionItem.stories.tsx +77 -77
- package/src/stories/OutputConfigEditor.stories.tsx +96 -96
- package/src/stories/PlaceholderCard.stories.tsx +35 -35
- package/src/stories/PreviewerHeader.stories.tsx +91 -91
- package/src/stories/PrimaryConfirmBtn.stories.tsx +60 -60
- package/src/stories/PrimaryEntryBtn.stories.tsx +74 -74
- package/src/stories/PromptInput.stories.tsx +228 -228
- package/src/stories/RadioCard.stories.tsx +103 -103
- package/src/stories/RelationalOperatorSelect.stories.tsx +61 -61
- package/src/stories/RepeatByTypeSelect.stories.tsx +58 -58
- package/src/stories/RepeatPreferenceSelect.stories.tsx +107 -107
- package/src/stories/RepeatPreferenceTypeSelect.stories.tsx +58 -58
- package/src/stories/ScrollToBottom.stories.tsx +24 -24
- package/src/stories/SearchInput.stories.tsx +50 -50
- package/src/stories/Select.stories.tsx +128 -128
- package/src/stories/SplitLine.stories.tsx +40 -40
- package/src/stories/SquareChecker.stories.tsx +96 -96
- package/src/stories/TabRadioGroup.stories.tsx +84 -84
- package/src/stories/Textarea.stories.tsx +67 -67
- package/src/stories/TriggerSelect.stories.tsx +48 -48
- package/src/stories/TriggerTimePreferenceSelect.stories.tsx +106 -106
- package/src/stories/TriggerTimeSourceTypeSelect.stories.tsx +68 -68
- package/src/stories/UserTextMsgBubble.stories.ts +24 -24
- package/src/stories/WarningMessage.stories.tsx +23 -23
- package/src/stories/WeekdaysSelect.stories.tsx +66 -66
- package/src/stories/assets/demo.css +539 -539
- package/src/stories/assets/demo_index.html +7988 -7988
- package/src/stories/assets/iconfont.css +1377 -1377
- package/src/stories/assets/iconfont.json +2382 -2382
- package/src/stories/assets/iconfont.svg +697 -697
- package/src/stories/collapsible.stories.tsx +47 -47
- package/src/stories/drawer.stories.tsx +196 -196
- package/src/stories/field-checker-list-msg.stories.tsx +95 -95
- package/src/stories/field-checker.stories.tsx +117 -117
- package/src/stories/field-icon.stories.tsx +70 -70
- package/src/stories/field-value-checker.stories.tsx +113 -113
- package/src/stories/fields-design-info-table.stories.tsx +203 -203
- package/src/stories/fields-generating.stories.tsx +41 -41
- package/src/stories/fields-previewer.stories.tsx +77 -77
- package/src/stories/subform-fields-value-checker.stories.tsx +98 -98
- package/src/style.css +226 -226
- package/src/types.ts +8 -8
- package/style.css +3652 -3652
- package/tsconfig.json +13 -13
- package/vite.config.ts +44 -44
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
export const EmptyTableIcon = () => (
|
|
2
|
-
<svg width="226" height="140" viewBox="0 0 226 140" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<mask id="mask0_27318_12913" style={{maskType: 'alpha'}} maskUnits="userSpaceOnUse" x="2" y="104" width="224" height="26">
|
|
4
|
-
<rect x="2" y="104" width="224" height="26" fill="white"/>
|
|
5
|
-
</mask>
|
|
6
|
-
<g mask="url(#mask0_27318_12913)">
|
|
7
|
-
<ellipse cx="114" cy="125.388" rx="112" ry="21.3877" fill="url(#paint0_linear_27318_12913)"/>
|
|
8
|
-
</g>
|
|
9
|
-
<ellipse cx="180.5" cy="88" rx="9.5" ry="13" fill="url(#paint1_linear_27318_12913)"/>
|
|
10
|
-
<path d="M180.174 115.619V76.75L181.313 115.619H180.174Z" fill="#D5DDF4"/>
|
|
11
|
-
<path d="M180.335 98.452L174.316 92.9456L180.335 96.6705V98.452Z" fill="#D5DDF4"/>
|
|
12
|
-
<path d="M183.263 87.1152L180.335 90.3543V91.488L183.263 87.1152Z" fill="#D5DDF4"/>
|
|
13
|
-
<path d="M180.361 114.658L151.396 115.619H180.361V114.658Z" fill="url(#paint2_linear_27318_12913)"/>
|
|
14
|
-
<ellipse cx="57.0939" cy="96.3957" rx="5.5" ry="7" transform="rotate(-4.32208 57.0939 96.3957)" fill="url(#paint3_linear_27318_12913)"/>
|
|
15
|
-
<path d="M57.9574 110.568L56.5527 91.9824L56.609 110.429L57.9574 110.568Z" fill="#D5DDF4"/>
|
|
16
|
-
<path d="M57.2532 102.29L59.9123 99.4604L57.1893 101.444L57.2532 102.29Z" fill="#D5DDF4"/>
|
|
17
|
-
<path d="M55.4569 97.0143L56.9627 98.4465L57.0034 98.9846L55.4569 97.0143Z" fill="#D5DDF4"/>
|
|
18
|
-
<path d="M57.7578 109.621L25.897 112.752L57.8303 110.58L57.7578 109.621Z" fill="url(#paint4_linear_27318_12913)"/>
|
|
19
|
-
<g filter="url(#filter0_f_27318_12913)">
|
|
20
|
-
<ellipse cx="114" cy="105" rx="32" ry="3" fill="#D9E3FF"/>
|
|
21
|
-
</g>
|
|
22
|
-
<path d="M100.076 41.8107C99.8672 41.319 99.9595 40.8175 100.317 40.4996C101.071 39.8294 102.543 40.2799 102.984 41.3161L108.731 54.7977C109.054 55.5548 108.657 56.2807 107.846 56.418C107.036 56.5551 106.119 56.053 105.798 55.2965L100.076 41.8107Z" fill="#90ACF8"/>
|
|
23
|
-
<path d="M100.076 41.8107C99.8672 41.319 99.9595 40.8175 100.317 40.4996C101.071 39.8294 102.543 40.2799 102.984 41.3161L108.731 54.7977C109.054 55.5548 108.657 56.2807 107.846 56.418C107.036 56.5551 106.119 56.053 105.798 55.2965L100.076 41.8107Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
24
|
-
<path d="M128.076 41.8107C127.867 41.319 127.96 40.8175 128.317 40.4996C129.071 39.8294 130.543 40.2799 130.984 41.3161L136.731 54.7977C137.054 55.5548 136.657 56.2807 135.846 56.418C135.036 56.5551 134.119 56.053 133.798 55.2965L128.076 41.8107Z" fill="#90ACF8"/>
|
|
25
|
-
<path d="M128.076 41.8107C127.867 41.319 127.96 40.8175 128.317 40.4996C129.071 39.8294 130.543 40.2799 130.984 41.3161L136.731 54.7977C137.054 55.5548 136.657 56.2807 135.846 56.418C135.036 56.5551 134.119 56.053 133.798 55.2965L128.076 41.8107Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
26
|
-
<rect x="83" y="49.0039" width="62" height="56" rx="6" fill="#A1BCFF"/>
|
|
27
|
-
<path d="M83 55.0039C83 51.6902 85.6863 49.0039 89 49.0039H139C142.314 49.0039 145 51.6902 145 55.0039V99.0039C145 102.318 142.314 105.004 139 105.004H89C85.6863 105.004 83 102.318 83 99.0039V55.0039Z" fill="#6590F8" fillOpacity="0.2"/>
|
|
28
|
-
<rect x="85" y="51.0039" width="58" height="52" rx="6" fill="white"/>
|
|
29
|
-
<mask id="mask1_27318_12913" style={{maskType: 'alpha'}} maskUnits="userSpaceOnUse" x="85" y="51" width="58" height="53">
|
|
30
|
-
<rect x="85" y="51.0039" width="58" height="52" rx="6" fill="white"/>
|
|
31
|
-
</mask>
|
|
32
|
-
<g mask="url(#mask1_27318_12913)">
|
|
33
|
-
<g filter="url(#filter4_f_27318_12913)">
|
|
34
|
-
<circle cx="94.5" cy="50.5039" r="22.5" fill="#B9FAFF"/>
|
|
35
|
-
</g>
|
|
36
|
-
</g>
|
|
37
|
-
<path d="M99.2387 41.3748C99.5599 40.6177 100.478 40.1151 101.289 40.2524C102.1 40.3896 102.496 41.1146 102.175 41.8717L96.5177 55.2053C96.1965 55.9624 95.2787 56.4649 94.4678 56.3277C93.6569 56.1905 93.2599 55.4655 93.5811 54.7084L99.2387 41.3748Z" fill="#90ACF8"/>
|
|
38
|
-
<path d="M99.2387 41.3748C99.5599 40.6177 100.478 40.1151 101.289 40.2524C102.1 40.3896 102.496 41.1146 102.175 41.8717L96.5177 55.2053C96.1965 55.9624 95.2787 56.4649 94.4678 56.3277C93.6569 56.1905 93.2599 55.4655 93.5811 54.7084L99.2387 41.3748Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
39
|
-
<path d="M127.239 41.3748C127.56 40.6177 128.478 40.1151 129.289 40.2524C130.1 40.3896 130.496 41.1146 130.175 41.8717L124.518 55.2053C124.196 55.9624 123.279 56.4649 122.468 56.3277C121.657 56.1905 121.26 55.4655 121.581 54.7084L127.239 41.3748Z" fill="#90ACF8"/>
|
|
40
|
-
<path d="M127.239 41.3748C127.56 40.6177 128.478 40.1151 129.289 40.2524C130.1 40.3896 130.496 41.1146 130.175 41.8717L124.518 55.2053C124.196 55.9624 123.279 56.4649 122.468 56.3277C121.657 56.1905 121.26 55.4655 121.581 54.7084L127.239 41.3748Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
41
|
-
<path d="M93 72C95.5455 72 122.061 72 135 72" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
42
|
-
<path d="M93 78C95.5455 78 122.061 78 135 78" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
43
|
-
<path d="M93 84C95.5455 84 122.061 84 135 84" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
44
|
-
<path d="M93 90C95.5455 90 122.061 90 135 90" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
45
|
-
<path d="M93 65C93 63.8954 93.8954 63 95 63H133C134.105 63 135 63.8954 135 65V67H93V65Z" fill="#90ACF8"/>
|
|
46
|
-
<path d="M81.1403 34.5888C79.9314 33.9913 77.705 34.2123 77.705 34.2123C77.705 34.2123 78.8677 36.5458 80.2271 37.3255C81.4631 38.0345 83.8153 38.0059 83.8153 38.0059C83.8153 38.0059 82.6624 35.3412 81.1403 34.5888Z" fill="url(#paint5_linear_27318_12913)"/>
|
|
47
|
-
<path d="M87.2808 35.0187C87.3779 34.2182 86.8061 33.009 86.8061 33.009C86.8061 33.009 85.7135 34.1317 85.5431 35.0534C85.3882 35.8916 85.876 37.2102 85.876 37.2102C85.876 37.2102 87.1586 36.0266 87.2808 35.0187Z" fill="url(#paint6_linear_27318_12913)"/>
|
|
48
|
-
<path d="M153.928 47.3664C156.181 46.1202 158.244 42.3936 158.244 42.3936C158.244 42.3936 153.297 41.6869 150.592 42.9715C148.133 44.1394 145.63 47.8547 145.63 47.8547C145.63 47.8547 151.09 48.9356 153.928 47.3664Z" fill="url(#paint7_linear_27318_12913)"/>
|
|
49
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M153.637 76.3923L155.699 72.8501L157.686 76.4173L153.637 76.3923ZM153.367 88.8968L153.492 76.9325L157.821 76.9591L157.696 88.9234L153.367 88.8968ZM157.667 91.6253C157.661 92.2343 157.202 92.7251 156.642 92.7217L154.342 92.7084C153.782 92.7049 153.333 92.2083 153.339 91.5994L153.362 89.4388L157.691 89.4654L157.667 91.6253Z" fill="url(#paint8_linear_27318_12913)"/>
|
|
50
|
-
<path fillRule="evenodd" clipRule="evenodd" d="M153.637 76.3923L155.699 72.8501L157.686 76.4173L153.637 76.3923ZM153.367 88.8968L153.492 76.9325L157.821 76.9591L157.696 88.9234L153.367 88.8968ZM157.667 91.6253C157.661 92.2343 157.202 92.7251 156.642 92.7217L154.342 92.7084C153.782 92.7049 153.333 92.2083 153.339 91.5994L153.362 89.4388L157.691 89.4654L157.667 91.6253Z" fill="url(#paint9_linear_27318_12913)" fillOpacity="0.2"/>
|
|
51
|
-
<defs>
|
|
52
|
-
<filter id="filter0_f_27318_12913" x="78" y="98" width="72" height="14" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
53
|
-
<feFlood floodOpacity="0" result="BackgroundImageFix"/>
|
|
54
|
-
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
55
|
-
<feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_27318_12913"/>
|
|
56
|
-
</filter>
|
|
57
|
-
<filter id="filter4_f_27318_12913" x="8" y="-35.9961" width="173" height="173" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
58
|
-
<feFlood floodOpacity="0" result="BackgroundImageFix"/>
|
|
59
|
-
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
60
|
-
<feGaussianBlur stdDeviation="32" result="effect1_foregroundBlur_27318_12913"/>
|
|
61
|
-
</filter>
|
|
62
|
-
<linearGradient id="paint0_linear_27318_12913" x1="114" y1="104" x2="114" y2="125.628" gradientUnits="userSpaceOnUse">
|
|
63
|
-
<stop stopColor="#E6EEFF"/>
|
|
64
|
-
<stop offset="1" stopColor="white" stopOpacity="0"/>
|
|
65
|
-
</linearGradient>
|
|
66
|
-
<linearGradient id="paint1_linear_27318_12913" x1="180.5" y1="75" x2="180.5" y2="101" gradientUnits="userSpaceOnUse">
|
|
67
|
-
<stop stopColor="#E7EFFF"/>
|
|
68
|
-
<stop offset="1" stopColor="#F3F7FD"/>
|
|
69
|
-
</linearGradient>
|
|
70
|
-
<linearGradient id="paint2_linear_27318_12913" x1="180.361" y1="115.139" x2="151.396" y2="115.139" gradientUnits="userSpaceOnUse">
|
|
71
|
-
<stop stopColor="#D5DDF4"/>
|
|
72
|
-
<stop offset="1" stopColor="#EDF2FF"/>
|
|
73
|
-
</linearGradient>
|
|
74
|
-
<linearGradient id="paint3_linear_27318_12913" x1="57.0939" y1="89.3957" x2="57.0939" y2="103.396" gradientUnits="userSpaceOnUse">
|
|
75
|
-
<stop stopColor="#E7EFFF"/>
|
|
76
|
-
<stop offset="1" stopColor="#F3F7FD"/>
|
|
77
|
-
</linearGradient>
|
|
78
|
-
<linearGradient id="paint4_linear_27318_12913" x1="57.5801" y1="109.876" x2="25.8608" y2="112.273" gradientUnits="userSpaceOnUse">
|
|
79
|
-
<stop stopColor="#D5DDF4"/>
|
|
80
|
-
<stop offset="1" stopColor="#EDF2FF"/>
|
|
81
|
-
</linearGradient>
|
|
82
|
-
<linearGradient id="paint5_linear_27318_12913" x1="80.3215" y1="37.4237" x2="81.2554" y2="34.6" gradientUnits="userSpaceOnUse">
|
|
83
|
-
<stop stopColor="#DBE6FF"/>
|
|
84
|
-
<stop offset="1" stopColor="#F1F5FF"/>
|
|
85
|
-
</linearGradient>
|
|
86
|
-
<linearGradient id="paint6_linear_27318_12913" x1="85.5063" y1="35.1263" x2="87.2977" y2="35.0905" gradientUnits="userSpaceOnUse">
|
|
87
|
-
<stop stopColor="#DBE6FF"/>
|
|
88
|
-
<stop offset="1" stopColor="#F1F5FF"/>
|
|
89
|
-
</linearGradient>
|
|
90
|
-
<linearGradient id="paint7_linear_27318_12913" x1="150.335" y1="43.013" x2="153.754" y2="47.5582" gradientUnits="userSpaceOnUse">
|
|
91
|
-
<stop stopColor="#DBE6FF"/>
|
|
92
|
-
<stop offset="1" stopColor="#F1F5FF"/>
|
|
93
|
-
</linearGradient>
|
|
94
|
-
<linearGradient id="paint8_linear_27318_12913" x1="151.15" y1="98.5161" x2="150.2" y2="78.1749" gradientUnits="userSpaceOnUse">
|
|
95
|
-
<stop stopColor="#6893F9"/>
|
|
96
|
-
<stop offset="1" stopColor="#92B3FD"/>
|
|
97
|
-
</linearGradient>
|
|
98
|
-
<linearGradient id="paint9_linear_27318_12913" x1="151.15" y1="98.5161" x2="150.2" y2="78.1749" gradientUnits="userSpaceOnUse">
|
|
99
|
-
<stop stopColor="#6893F9"/>
|
|
100
|
-
<stop offset="1" stopColor="#92B3FD"/>
|
|
101
|
-
</linearGradient>
|
|
102
|
-
</defs>
|
|
103
|
-
</svg>
|
|
104
|
-
);
|
|
1
|
+
export const EmptyTableIcon = () => (
|
|
2
|
+
<svg width="226" height="140" viewBox="0 0 226 140" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<mask id="mask0_27318_12913" style={{maskType: 'alpha'}} maskUnits="userSpaceOnUse" x="2" y="104" width="224" height="26">
|
|
4
|
+
<rect x="2" y="104" width="224" height="26" fill="white"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<g mask="url(#mask0_27318_12913)">
|
|
7
|
+
<ellipse cx="114" cy="125.388" rx="112" ry="21.3877" fill="url(#paint0_linear_27318_12913)"/>
|
|
8
|
+
</g>
|
|
9
|
+
<ellipse cx="180.5" cy="88" rx="9.5" ry="13" fill="url(#paint1_linear_27318_12913)"/>
|
|
10
|
+
<path d="M180.174 115.619V76.75L181.313 115.619H180.174Z" fill="#D5DDF4"/>
|
|
11
|
+
<path d="M180.335 98.452L174.316 92.9456L180.335 96.6705V98.452Z" fill="#D5DDF4"/>
|
|
12
|
+
<path d="M183.263 87.1152L180.335 90.3543V91.488L183.263 87.1152Z" fill="#D5DDF4"/>
|
|
13
|
+
<path d="M180.361 114.658L151.396 115.619H180.361V114.658Z" fill="url(#paint2_linear_27318_12913)"/>
|
|
14
|
+
<ellipse cx="57.0939" cy="96.3957" rx="5.5" ry="7" transform="rotate(-4.32208 57.0939 96.3957)" fill="url(#paint3_linear_27318_12913)"/>
|
|
15
|
+
<path d="M57.9574 110.568L56.5527 91.9824L56.609 110.429L57.9574 110.568Z" fill="#D5DDF4"/>
|
|
16
|
+
<path d="M57.2532 102.29L59.9123 99.4604L57.1893 101.444L57.2532 102.29Z" fill="#D5DDF4"/>
|
|
17
|
+
<path d="M55.4569 97.0143L56.9627 98.4465L57.0034 98.9846L55.4569 97.0143Z" fill="#D5DDF4"/>
|
|
18
|
+
<path d="M57.7578 109.621L25.897 112.752L57.8303 110.58L57.7578 109.621Z" fill="url(#paint4_linear_27318_12913)"/>
|
|
19
|
+
<g filter="url(#filter0_f_27318_12913)">
|
|
20
|
+
<ellipse cx="114" cy="105" rx="32" ry="3" fill="#D9E3FF"/>
|
|
21
|
+
</g>
|
|
22
|
+
<path d="M100.076 41.8107C99.8672 41.319 99.9595 40.8175 100.317 40.4996C101.071 39.8294 102.543 40.2799 102.984 41.3161L108.731 54.7977C109.054 55.5548 108.657 56.2807 107.846 56.418C107.036 56.5551 106.119 56.053 105.798 55.2965L100.076 41.8107Z" fill="#90ACF8"/>
|
|
23
|
+
<path d="M100.076 41.8107C99.8672 41.319 99.9595 40.8175 100.317 40.4996C101.071 39.8294 102.543 40.2799 102.984 41.3161L108.731 54.7977C109.054 55.5548 108.657 56.2807 107.846 56.418C107.036 56.5551 106.119 56.053 105.798 55.2965L100.076 41.8107Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
24
|
+
<path d="M128.076 41.8107C127.867 41.319 127.96 40.8175 128.317 40.4996C129.071 39.8294 130.543 40.2799 130.984 41.3161L136.731 54.7977C137.054 55.5548 136.657 56.2807 135.846 56.418C135.036 56.5551 134.119 56.053 133.798 55.2965L128.076 41.8107Z" fill="#90ACF8"/>
|
|
25
|
+
<path d="M128.076 41.8107C127.867 41.319 127.96 40.8175 128.317 40.4996C129.071 39.8294 130.543 40.2799 130.984 41.3161L136.731 54.7977C137.054 55.5548 136.657 56.2807 135.846 56.418C135.036 56.5551 134.119 56.053 133.798 55.2965L128.076 41.8107Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
26
|
+
<rect x="83" y="49.0039" width="62" height="56" rx="6" fill="#A1BCFF"/>
|
|
27
|
+
<path d="M83 55.0039C83 51.6902 85.6863 49.0039 89 49.0039H139C142.314 49.0039 145 51.6902 145 55.0039V99.0039C145 102.318 142.314 105.004 139 105.004H89C85.6863 105.004 83 102.318 83 99.0039V55.0039Z" fill="#6590F8" fillOpacity="0.2"/>
|
|
28
|
+
<rect x="85" y="51.0039" width="58" height="52" rx="6" fill="white"/>
|
|
29
|
+
<mask id="mask1_27318_12913" style={{maskType: 'alpha'}} maskUnits="userSpaceOnUse" x="85" y="51" width="58" height="53">
|
|
30
|
+
<rect x="85" y="51.0039" width="58" height="52" rx="6" fill="white"/>
|
|
31
|
+
</mask>
|
|
32
|
+
<g mask="url(#mask1_27318_12913)">
|
|
33
|
+
<g filter="url(#filter4_f_27318_12913)">
|
|
34
|
+
<circle cx="94.5" cy="50.5039" r="22.5" fill="#B9FAFF"/>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
<path d="M99.2387 41.3748C99.5599 40.6177 100.478 40.1151 101.289 40.2524C102.1 40.3896 102.496 41.1146 102.175 41.8717L96.5177 55.2053C96.1965 55.9624 95.2787 56.4649 94.4678 56.3277C93.6569 56.1905 93.2599 55.4655 93.5811 54.7084L99.2387 41.3748Z" fill="#90ACF8"/>
|
|
38
|
+
<path d="M99.2387 41.3748C99.5599 40.6177 100.478 40.1151 101.289 40.2524C102.1 40.3896 102.496 41.1146 102.175 41.8717L96.5177 55.2053C96.1965 55.9624 95.2787 56.4649 94.4678 56.3277C93.6569 56.1905 93.2599 55.4655 93.5811 54.7084L99.2387 41.3748Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
39
|
+
<path d="M127.239 41.3748C127.56 40.6177 128.478 40.1151 129.289 40.2524C130.1 40.3896 130.496 41.1146 130.175 41.8717L124.518 55.2053C124.196 55.9624 123.279 56.4649 122.468 56.3277C121.657 56.1905 121.26 55.4655 121.581 54.7084L127.239 41.3748Z" fill="#90ACF8"/>
|
|
40
|
+
<path d="M127.239 41.3748C127.56 40.6177 128.478 40.1151 129.289 40.2524C130.1 40.3896 130.496 41.1146 130.175 41.8717L124.518 55.2053C124.196 55.9624 123.279 56.4649 122.468 56.3277C121.657 56.1905 121.26 55.4655 121.581 54.7084L127.239 41.3748Z" fill="#90ACF8" fillOpacity="0.2"/>
|
|
41
|
+
<path d="M93 72C95.5455 72 122.061 72 135 72" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
42
|
+
<path d="M93 78C95.5455 78 122.061 78 135 78" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
43
|
+
<path d="M93 84C95.5455 84 122.061 84 135 84" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
44
|
+
<path d="M93 90C95.5455 90 122.061 90 135 90" stroke="#CEDCF6" strokeWidth="0.5"/>
|
|
45
|
+
<path d="M93 65C93 63.8954 93.8954 63 95 63H133C134.105 63 135 63.8954 135 65V67H93V65Z" fill="#90ACF8"/>
|
|
46
|
+
<path d="M81.1403 34.5888C79.9314 33.9913 77.705 34.2123 77.705 34.2123C77.705 34.2123 78.8677 36.5458 80.2271 37.3255C81.4631 38.0345 83.8153 38.0059 83.8153 38.0059C83.8153 38.0059 82.6624 35.3412 81.1403 34.5888Z" fill="url(#paint5_linear_27318_12913)"/>
|
|
47
|
+
<path d="M87.2808 35.0187C87.3779 34.2182 86.8061 33.009 86.8061 33.009C86.8061 33.009 85.7135 34.1317 85.5431 35.0534C85.3882 35.8916 85.876 37.2102 85.876 37.2102C85.876 37.2102 87.1586 36.0266 87.2808 35.0187Z" fill="url(#paint6_linear_27318_12913)"/>
|
|
48
|
+
<path d="M153.928 47.3664C156.181 46.1202 158.244 42.3936 158.244 42.3936C158.244 42.3936 153.297 41.6869 150.592 42.9715C148.133 44.1394 145.63 47.8547 145.63 47.8547C145.63 47.8547 151.09 48.9356 153.928 47.3664Z" fill="url(#paint7_linear_27318_12913)"/>
|
|
49
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M153.637 76.3923L155.699 72.8501L157.686 76.4173L153.637 76.3923ZM153.367 88.8968L153.492 76.9325L157.821 76.9591L157.696 88.9234L153.367 88.8968ZM157.667 91.6253C157.661 92.2343 157.202 92.7251 156.642 92.7217L154.342 92.7084C153.782 92.7049 153.333 92.2083 153.339 91.5994L153.362 89.4388L157.691 89.4654L157.667 91.6253Z" fill="url(#paint8_linear_27318_12913)"/>
|
|
50
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M153.637 76.3923L155.699 72.8501L157.686 76.4173L153.637 76.3923ZM153.367 88.8968L153.492 76.9325L157.821 76.9591L157.696 88.9234L153.367 88.8968ZM157.667 91.6253C157.661 92.2343 157.202 92.7251 156.642 92.7217L154.342 92.7084C153.782 92.7049 153.333 92.2083 153.339 91.5994L153.362 89.4388L157.691 89.4654L157.667 91.6253Z" fill="url(#paint9_linear_27318_12913)" fillOpacity="0.2"/>
|
|
51
|
+
<defs>
|
|
52
|
+
<filter id="filter0_f_27318_12913" x="78" y="98" width="72" height="14" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
53
|
+
<feFlood floodOpacity="0" result="BackgroundImageFix"/>
|
|
54
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
55
|
+
<feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_27318_12913"/>
|
|
56
|
+
</filter>
|
|
57
|
+
<filter id="filter4_f_27318_12913" x="8" y="-35.9961" width="173" height="173" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB">
|
|
58
|
+
<feFlood floodOpacity="0" result="BackgroundImageFix"/>
|
|
59
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
60
|
+
<feGaussianBlur stdDeviation="32" result="effect1_foregroundBlur_27318_12913"/>
|
|
61
|
+
</filter>
|
|
62
|
+
<linearGradient id="paint0_linear_27318_12913" x1="114" y1="104" x2="114" y2="125.628" gradientUnits="userSpaceOnUse">
|
|
63
|
+
<stop stopColor="#E6EEFF"/>
|
|
64
|
+
<stop offset="1" stopColor="white" stopOpacity="0"/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
<linearGradient id="paint1_linear_27318_12913" x1="180.5" y1="75" x2="180.5" y2="101" gradientUnits="userSpaceOnUse">
|
|
67
|
+
<stop stopColor="#E7EFFF"/>
|
|
68
|
+
<stop offset="1" stopColor="#F3F7FD"/>
|
|
69
|
+
</linearGradient>
|
|
70
|
+
<linearGradient id="paint2_linear_27318_12913" x1="180.361" y1="115.139" x2="151.396" y2="115.139" gradientUnits="userSpaceOnUse">
|
|
71
|
+
<stop stopColor="#D5DDF4"/>
|
|
72
|
+
<stop offset="1" stopColor="#EDF2FF"/>
|
|
73
|
+
</linearGradient>
|
|
74
|
+
<linearGradient id="paint3_linear_27318_12913" x1="57.0939" y1="89.3957" x2="57.0939" y2="103.396" gradientUnits="userSpaceOnUse">
|
|
75
|
+
<stop stopColor="#E7EFFF"/>
|
|
76
|
+
<stop offset="1" stopColor="#F3F7FD"/>
|
|
77
|
+
</linearGradient>
|
|
78
|
+
<linearGradient id="paint4_linear_27318_12913" x1="57.5801" y1="109.876" x2="25.8608" y2="112.273" gradientUnits="userSpaceOnUse">
|
|
79
|
+
<stop stopColor="#D5DDF4"/>
|
|
80
|
+
<stop offset="1" stopColor="#EDF2FF"/>
|
|
81
|
+
</linearGradient>
|
|
82
|
+
<linearGradient id="paint5_linear_27318_12913" x1="80.3215" y1="37.4237" x2="81.2554" y2="34.6" gradientUnits="userSpaceOnUse">
|
|
83
|
+
<stop stopColor="#DBE6FF"/>
|
|
84
|
+
<stop offset="1" stopColor="#F1F5FF"/>
|
|
85
|
+
</linearGradient>
|
|
86
|
+
<linearGradient id="paint6_linear_27318_12913" x1="85.5063" y1="35.1263" x2="87.2977" y2="35.0905" gradientUnits="userSpaceOnUse">
|
|
87
|
+
<stop stopColor="#DBE6FF"/>
|
|
88
|
+
<stop offset="1" stopColor="#F1F5FF"/>
|
|
89
|
+
</linearGradient>
|
|
90
|
+
<linearGradient id="paint7_linear_27318_12913" x1="150.335" y1="43.013" x2="153.754" y2="47.5582" gradientUnits="userSpaceOnUse">
|
|
91
|
+
<stop stopColor="#DBE6FF"/>
|
|
92
|
+
<stop offset="1" stopColor="#F1F5FF"/>
|
|
93
|
+
</linearGradient>
|
|
94
|
+
<linearGradient id="paint8_linear_27318_12913" x1="151.15" y1="98.5161" x2="150.2" y2="78.1749" gradientUnits="userSpaceOnUse">
|
|
95
|
+
<stop stopColor="#6893F9"/>
|
|
96
|
+
<stop offset="1" stopColor="#92B3FD"/>
|
|
97
|
+
</linearGradient>
|
|
98
|
+
<linearGradient id="paint9_linear_27318_12913" x1="151.15" y1="98.5161" x2="150.2" y2="78.1749" gradientUnits="userSpaceOnUse">
|
|
99
|
+
<stop stopColor="#6893F9"/>
|
|
100
|
+
<stop offset="1" stopColor="#92B3FD"/>
|
|
101
|
+
</linearGradient>
|
|
102
|
+
</defs>
|
|
103
|
+
</svg>
|
|
104
|
+
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const GridsIcon = () => (
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
3
|
-
<path d="M6.5 8.5C7.05228 8.5 7.5 8.94772 7.5 9.5V14C7.5 14.5177 7.10667 14.9438 6.60254 14.9951L6.5 15H2L1.89746 14.9951C1.42703 14.9472 1.05278 14.573 1.00488 14.1025L1 14V9.5C1 8.94772 1.44772 8.5 2 8.5H6.5ZM14 8.5C14.5523 8.5 15 8.94772 15 9.5V14C15 14.5177 14.6067 14.9438 14.1025 14.9951L14 15H9.5L9.39746 14.9951C8.92703 14.9472 8.55278 14.573 8.50488 14.1025L8.5 14V9.5C8.5 8.94772 8.94772 8.5 9.5 8.5H14ZM9.5 14H14V9.5H9.5V14ZM2 14H6.5V9.5H2V14ZM6.5 1C7.05228 1 7.5 1.44772 7.5 2V6.5C7.5 7.01768 7.10667 7.44379 6.60254 7.49512L6.5 7.5H2L1.89746 7.49512C1.42703 7.44722 1.05278 7.07297 1.00488 6.60254L1 6.5V2C1 1.44772 1.44772 1 2 1H6.5ZM14 1C14.5523 1 15 1.44772 15 2V6.5C15 7.01768 14.6067 7.44379 14.1025 7.49512L14 7.5H9.5L9.39746 7.49512C8.92703 7.44722 8.55278 7.07297 8.50488 6.60254L8.5 6.5V2C8.5 1.44772 8.94772 1 9.5 1H14ZM2 6.5H6.5V2H2V6.5ZM9.5 6.5H14V2H9.5V6.5Z" fill="#666666"/>
|
|
4
|
-
</svg>
|
|
5
|
-
);
|
|
1
|
+
export const GridsIcon = () => (
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
3
|
+
<path d="M6.5 8.5C7.05228 8.5 7.5 8.94772 7.5 9.5V14C7.5 14.5177 7.10667 14.9438 6.60254 14.9951L6.5 15H2L1.89746 14.9951C1.42703 14.9472 1.05278 14.573 1.00488 14.1025L1 14V9.5C1 8.94772 1.44772 8.5 2 8.5H6.5ZM14 8.5C14.5523 8.5 15 8.94772 15 9.5V14C15 14.5177 14.6067 14.9438 14.1025 14.9951L14 15H9.5L9.39746 14.9951C8.92703 14.9472 8.55278 14.573 8.50488 14.1025L8.5 14V9.5C8.5 8.94772 8.94772 8.5 9.5 8.5H14ZM9.5 14H14V9.5H9.5V14ZM2 14H6.5V9.5H2V14ZM6.5 1C7.05228 1 7.5 1.44772 7.5 2V6.5C7.5 7.01768 7.10667 7.44379 6.60254 7.49512L6.5 7.5H2L1.89746 7.49512C1.42703 7.44722 1.05278 7.07297 1.00488 6.60254L1 6.5V2C1 1.44772 1.44772 1 2 1H6.5ZM14 1C14.5523 1 15 1.44772 15 2V6.5C15 7.01768 14.6067 7.44379 14.1025 7.49512L14 7.5H9.5L9.39746 7.49512C8.92703 7.44722 8.55278 7.07297 8.50488 6.60254L8.5 6.5V2C8.5 1.44772 8.94772 1 9.5 1H14ZM2 6.5H6.5V2H2V6.5ZM9.5 6.5H14V2H9.5V6.5Z" fill="#666666"/>
|
|
4
|
+
</svg>
|
|
5
|
+
);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { cn } from '../lib/utils';
|
|
2
|
-
|
|
3
|
-
export interface ImgMsgPartProps {
|
|
4
|
-
url: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Size in pixels (width & height), defaults to 102 */
|
|
8
|
-
size?: number;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const ImgMsgPart = ({ url, alt = '', className, size = 102, onClick }: ImgMsgPartProps) => {
|
|
13
|
-
return (
|
|
14
|
-
<div
|
|
15
|
-
className={cn('relative overflow-hidden rounded-[10px] border border-[#e0e0e0] hover:border-[#0265FF]/20 hover:cursor-pointer', onClick && 'cursor-pointer', className)}
|
|
16
|
-
style={{ width: size, height: size }}
|
|
17
|
-
onClick={onClick}
|
|
18
|
-
>
|
|
19
|
-
<img
|
|
20
|
-
src={url}
|
|
21
|
-
alt={alt}
|
|
22
|
-
className="block w-full h-full object-cover rounded-[10px]"
|
|
23
|
-
loading="lazy"
|
|
24
|
-
/>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
1
|
+
import { cn } from '../lib/utils';
|
|
2
|
+
|
|
3
|
+
export interface ImgMsgPartProps {
|
|
4
|
+
url: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Size in pixels (width & height), defaults to 102 */
|
|
8
|
+
size?: number;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const ImgMsgPart = ({ url, alt = '', className, size = 102, onClick }: ImgMsgPartProps) => {
|
|
13
|
+
return (
|
|
14
|
+
<div
|
|
15
|
+
className={cn('relative overflow-hidden rounded-[10px] border border-[#e0e0e0] hover:border-[#0265FF]/20 hover:cursor-pointer', onClick && 'cursor-pointer', className)}
|
|
16
|
+
style={{ width: size, height: size }}
|
|
17
|
+
onClick={onClick}
|
|
18
|
+
>
|
|
19
|
+
<img
|
|
20
|
+
src={url}
|
|
21
|
+
alt={alt}
|
|
22
|
+
className="block w-full h-full object-cover rounded-[10px]"
|
|
23
|
+
loading="lazy"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { LegacySlotRenderer } from '../types';
|
|
3
|
-
|
|
4
|
-
export interface LegacySlotProps {
|
|
5
|
-
renderLegacy: LegacySlotRenderer;
|
|
6
|
-
props: unknown;
|
|
7
|
-
shadow?: boolean;
|
|
8
|
-
injectedStyles?: string;
|
|
9
|
-
withHostStyles?: boolean;
|
|
10
|
-
onSetRef?: (ref: HTMLDivElement) => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const STYLE_INJECTED_ATTR = 'data-style-injected';
|
|
14
|
-
|
|
15
|
-
const injectStylesIntoShadow = (currentElement: Node) => {
|
|
16
|
-
if (!currentElement) return;
|
|
17
|
-
|
|
18
|
-
let shadowRoot: ShadowRoot | null = null;
|
|
19
|
-
|
|
20
|
-
if (currentElement instanceof Element && currentElement.shadowRoot) {
|
|
21
|
-
shadowRoot = currentElement.shadowRoot;
|
|
22
|
-
} else {
|
|
23
|
-
let node: Node | null = currentElement.parentNode;
|
|
24
|
-
while (node) {
|
|
25
|
-
if (node instanceof ShadowRoot) {
|
|
26
|
-
shadowRoot = node;
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
node = node.parentNode;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (!shadowRoot) return;
|
|
34
|
-
if (shadowRoot.querySelector(`style[${STYLE_INJECTED_ATTR}]`)) return;
|
|
35
|
-
|
|
36
|
-
document.head.querySelectorAll('style').forEach((styleEl) => {
|
|
37
|
-
const cloned = styleEl.cloneNode(true) as HTMLElement;
|
|
38
|
-
cloned.setAttribute(STYLE_INJECTED_ATTR, '');
|
|
39
|
-
shadowRoot!.appendChild(cloned);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// if style is loaded by link tag, we also need to copy it into shadow DOM
|
|
43
|
-
document.head.querySelectorAll('link[rel="stylesheet"]').forEach((linkEl) => {
|
|
44
|
-
const cloned = linkEl.cloneNode(true) as HTMLElement;
|
|
45
|
-
cloned.setAttribute(STYLE_INJECTED_ATTR, '');
|
|
46
|
-
shadowRoot!.appendChild(cloned);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export function LegacySlot({
|
|
51
|
-
renderLegacy,
|
|
52
|
-
props,
|
|
53
|
-
shadow = false,
|
|
54
|
-
withHostStyles = false,
|
|
55
|
-
injectedStyles,
|
|
56
|
-
onSetRef,
|
|
57
|
-
}: LegacySlotProps) {
|
|
58
|
-
const hostRef = useRef<HTMLDivElement>(null);
|
|
59
|
-
const cleanupRef = useRef<(() => void) | null>(null);
|
|
60
|
-
const mountPointRef = useRef<HTMLDivElement | null>(null);
|
|
61
|
-
const targetRef = useRef<HTMLElement | ShadowRoot | null>(null);
|
|
62
|
-
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
if (!hostRef.current) return;
|
|
65
|
-
|
|
66
|
-
const host = hostRef.current;
|
|
67
|
-
onSetRef?.(host);
|
|
68
|
-
let target: HTMLElement | ShadowRoot = host;
|
|
69
|
-
|
|
70
|
-
if (shadow) {
|
|
71
|
-
const shadowRoot = host.shadowRoot || host.attachShadow({ mode: 'open' });
|
|
72
|
-
target = shadowRoot;
|
|
73
|
-
|
|
74
|
-
if (withHostStyles) {
|
|
75
|
-
injectStylesIntoShadow(host);
|
|
76
|
-
}
|
|
77
|
-
if (typeof injectedStyles === 'string') {
|
|
78
|
-
const styleEl = document.createElement('style');
|
|
79
|
-
styleEl.setAttribute('data-legacy-injected-raw', '');
|
|
80
|
-
styleEl.textContent = injectedStyles;
|
|
81
|
-
shadowRoot.appendChild(styleEl);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
targetRef.current = target;
|
|
86
|
-
|
|
87
|
-
const mountPoint = document.createElement('div');
|
|
88
|
-
mountPoint.style.display = 'contents';
|
|
89
|
-
target.appendChild(mountPoint);
|
|
90
|
-
mountPointRef.current = mountPoint;
|
|
91
|
-
|
|
92
|
-
cleanupRef.current = renderLegacy(mountPoint, props as Record<string, any>);
|
|
93
|
-
|
|
94
|
-
return () => {
|
|
95
|
-
cleanupRef.current?.();
|
|
96
|
-
if (mountPointRef.current) {
|
|
97
|
-
mountPointRef.current.remove();
|
|
98
|
-
mountPointRef.current = null;
|
|
99
|
-
}
|
|
100
|
-
targetRef.current = null;
|
|
101
|
-
};
|
|
102
|
-
}, []);
|
|
103
|
-
|
|
104
|
-
useEffect(() => {
|
|
105
|
-
if (!mountPointRef.current) return;
|
|
106
|
-
cleanupRef.current = renderLegacy(mountPointRef.current, props as Record<string, any>);
|
|
107
|
-
}, [props, renderLegacy]);
|
|
108
|
-
|
|
109
|
-
return <div ref={hostRef} style={{ display: 'contents' }} />;
|
|
110
|
-
}
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { LegacySlotRenderer } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface LegacySlotProps {
|
|
5
|
+
renderLegacy: LegacySlotRenderer;
|
|
6
|
+
props: unknown;
|
|
7
|
+
shadow?: boolean;
|
|
8
|
+
injectedStyles?: string;
|
|
9
|
+
withHostStyles?: boolean;
|
|
10
|
+
onSetRef?: (ref: HTMLDivElement) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const STYLE_INJECTED_ATTR = 'data-style-injected';
|
|
14
|
+
|
|
15
|
+
const injectStylesIntoShadow = (currentElement: Node) => {
|
|
16
|
+
if (!currentElement) return;
|
|
17
|
+
|
|
18
|
+
let shadowRoot: ShadowRoot | null = null;
|
|
19
|
+
|
|
20
|
+
if (currentElement instanceof Element && currentElement.shadowRoot) {
|
|
21
|
+
shadowRoot = currentElement.shadowRoot;
|
|
22
|
+
} else {
|
|
23
|
+
let node: Node | null = currentElement.parentNode;
|
|
24
|
+
while (node) {
|
|
25
|
+
if (node instanceof ShadowRoot) {
|
|
26
|
+
shadowRoot = node;
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
node = node.parentNode;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (!shadowRoot) return;
|
|
34
|
+
if (shadowRoot.querySelector(`style[${STYLE_INJECTED_ATTR}]`)) return;
|
|
35
|
+
|
|
36
|
+
document.head.querySelectorAll('style').forEach((styleEl) => {
|
|
37
|
+
const cloned = styleEl.cloneNode(true) as HTMLElement;
|
|
38
|
+
cloned.setAttribute(STYLE_INJECTED_ATTR, '');
|
|
39
|
+
shadowRoot!.appendChild(cloned);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// if style is loaded by link tag, we also need to copy it into shadow DOM
|
|
43
|
+
document.head.querySelectorAll('link[rel="stylesheet"]').forEach((linkEl) => {
|
|
44
|
+
const cloned = linkEl.cloneNode(true) as HTMLElement;
|
|
45
|
+
cloned.setAttribute(STYLE_INJECTED_ATTR, '');
|
|
46
|
+
shadowRoot!.appendChild(cloned);
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export function LegacySlot({
|
|
51
|
+
renderLegacy,
|
|
52
|
+
props,
|
|
53
|
+
shadow = false,
|
|
54
|
+
withHostStyles = false,
|
|
55
|
+
injectedStyles,
|
|
56
|
+
onSetRef,
|
|
57
|
+
}: LegacySlotProps) {
|
|
58
|
+
const hostRef = useRef<HTMLDivElement>(null);
|
|
59
|
+
const cleanupRef = useRef<(() => void) | null>(null);
|
|
60
|
+
const mountPointRef = useRef<HTMLDivElement | null>(null);
|
|
61
|
+
const targetRef = useRef<HTMLElement | ShadowRoot | null>(null);
|
|
62
|
+
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (!hostRef.current) return;
|
|
65
|
+
|
|
66
|
+
const host = hostRef.current;
|
|
67
|
+
onSetRef?.(host);
|
|
68
|
+
let target: HTMLElement | ShadowRoot = host;
|
|
69
|
+
|
|
70
|
+
if (shadow) {
|
|
71
|
+
const shadowRoot = host.shadowRoot || host.attachShadow({ mode: 'open' });
|
|
72
|
+
target = shadowRoot;
|
|
73
|
+
|
|
74
|
+
if (withHostStyles) {
|
|
75
|
+
injectStylesIntoShadow(host);
|
|
76
|
+
}
|
|
77
|
+
if (typeof injectedStyles === 'string') {
|
|
78
|
+
const styleEl = document.createElement('style');
|
|
79
|
+
styleEl.setAttribute('data-legacy-injected-raw', '');
|
|
80
|
+
styleEl.textContent = injectedStyles;
|
|
81
|
+
shadowRoot.appendChild(styleEl);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
targetRef.current = target;
|
|
86
|
+
|
|
87
|
+
const mountPoint = document.createElement('div');
|
|
88
|
+
mountPoint.style.display = 'contents';
|
|
89
|
+
target.appendChild(mountPoint);
|
|
90
|
+
mountPointRef.current = mountPoint;
|
|
91
|
+
|
|
92
|
+
cleanupRef.current = renderLegacy(mountPoint, props as Record<string, any>);
|
|
93
|
+
|
|
94
|
+
return () => {
|
|
95
|
+
cleanupRef.current?.();
|
|
96
|
+
if (mountPointRef.current) {
|
|
97
|
+
mountPointRef.current.remove();
|
|
98
|
+
mountPointRef.current = null;
|
|
99
|
+
}
|
|
100
|
+
targetRef.current = null;
|
|
101
|
+
};
|
|
102
|
+
}, []);
|
|
103
|
+
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (!mountPointRef.current) return;
|
|
106
|
+
cleanupRef.current = renderLegacy(mountPointRef.current, props as Record<string, any>);
|
|
107
|
+
}, [props, renderLegacy]);
|
|
108
|
+
|
|
109
|
+
return <div ref={hostRef} style={{ display: 'contents' }} />;
|
|
110
|
+
}
|