@antscorp/antsomi-ui 1.3.3-beta.4 → 1.3.3-beta.41
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/es/assets/images/iphone-top-bar.png +0 -0
- package/es/assets/images/iphone.png +0 -0
- package/es/assets/images/stars_slider.png +0 -0
- package/es/components/atoms/Input/Input.d.ts +3 -0
- package/es/components/atoms/Input/Input.js +4 -3
- package/es/components/atoms/InputDynamic/EditCaretPositioning.d.ts +2 -0
- package/es/components/atoms/InputDynamic/EditCaretPositioning.js +89 -0
- package/es/components/atoms/InputDynamic/InputDynamic.d.ts +30 -0
- package/es/components/atoms/InputDynamic/InputDynamic.js +320 -0
- package/es/components/atoms/InputDynamic/PopupShortLink.d.ts +16 -0
- package/es/components/atoms/InputDynamic/PopupShortLink.js +85 -0
- package/es/components/atoms/InputDynamic/index.d.ts +2 -0
- package/es/components/atoms/InputDynamic/index.js +1 -0
- package/es/components/atoms/InputDynamic/styled.d.ts +12 -0
- package/es/components/atoms/InputDynamic/styled.js +281 -0
- package/es/components/atoms/InputDynamic/utils.d.ts +22 -0
- package/es/components/atoms/InputDynamic/utils.js +751 -0
- package/es/components/atoms/MobileFrame/MobileFrame.d.ts +4 -0
- package/es/components/atoms/MobileFrame/MobileFrame.js +22 -0
- package/es/components/atoms/MobileFrame/constants.d.ts +4 -0
- package/es/components/atoms/MobileFrame/constants.js +4 -0
- package/es/components/atoms/MobileFrame/index.d.ts +2 -0
- package/es/components/atoms/MobileFrame/index.js +1 -0
- package/es/components/atoms/MobileFrame/styled.d.ts +3 -0
- package/es/components/atoms/MobileFrame/styled.js +33 -0
- package/es/components/atoms/Pagination/index.d.ts +1 -0
- package/es/components/atoms/PreviewTabs/PreviewTabs.d.ts +7 -0
- package/es/components/atoms/PreviewTabs/PreviewTabs.js +67 -0
- package/es/components/atoms/PreviewTabs/index.d.ts +2 -0
- package/es/components/atoms/PreviewTabs/index.js +1 -0
- package/es/components/atoms/PreviewTabs/styled.d.ts +6 -0
- package/es/components/atoms/PreviewTabs/styled.js +79 -0
- package/es/components/atoms/RateV2/RateV2.d.ts +18 -0
- package/es/components/atoms/RateV2/RateV2.js +73 -0
- package/es/components/atoms/RateV2/index.d.ts +1 -0
- package/es/components/atoms/RateV2/index.js +1 -0
- package/es/components/atoms/RequiredLabel/index.d.ts +1 -0
- package/es/components/atoms/RequiredLabel/index.js +4 -3
- package/es/components/atoms/Slider/index.d.ts +2 -1
- package/es/components/atoms/Slider/index.js +7 -14
- package/es/components/atoms/SliderV2/index.d.ts +6 -0
- package/es/components/atoms/SliderV2/index.js +21 -0
- package/es/components/atoms/Spin/Spin.d.ts +2 -1
- package/es/components/atoms/Spin/styled.d.ts +1 -1
- package/es/components/atoms/index.d.ts +7 -0
- package/es/components/atoms/index.js +5 -0
- package/es/components/common/ConfigProvider/GlobalStyle.js +66 -2
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -1
- package/es/components/icons/AudioRecordIcon.d.ts +2 -1
- package/es/components/icons/BugIcon.d.ts +2 -1
- package/es/components/icons/CameraIcon.d.ts +2 -1
- package/es/components/icons/CaptureIcon.d.ts +2 -1
- package/es/components/icons/CheckSlimIcon.d.ts +2 -1
- package/es/components/icons/CloseIcon.d.ts +2 -1
- package/es/components/icons/CommentIcon.d.ts +2 -1
- package/es/components/icons/EventIcon.d.ts +2 -1
- package/es/components/icons/FreeDrawIcon.d.ts +2 -1
- package/es/components/icons/GPTIcon.d.ts +2 -1
- package/es/components/icons/GPTIconV2.d.ts +2 -1
- package/es/components/icons/GPTIconV3.d.ts +2 -1
- package/es/components/icons/HighlightIcon.d.ts +2 -1
- package/es/components/icons/IdeaIcon.d.ts +2 -1
- package/es/components/icons/InvisibleIcon.d.ts +2 -1
- package/es/components/icons/MuteIcon.d.ts +2 -1
- package/es/components/icons/OpenUrlIcon.d.ts +2 -1
- package/es/components/icons/PauseIcon.d.ts +2 -1
- package/es/components/icons/PlaneIcon.d.ts +2 -1
- package/es/components/icons/RequestIcon.d.ts +2 -1
- package/es/components/icons/StopRecordIcon.d.ts +2 -1
- package/es/components/icons/UserIcon.d.ts +2 -1
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -1
- package/es/components/icons/WarningIcon.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +2 -1
- package/es/components/molecules/FontSetting/constants.d.ts +3 -0
- package/es/components/molecules/FontSetting/constants.js +22 -0
- package/es/components/molecules/FontSetting/index.d.ts +10 -4
- package/es/components/molecules/FontSetting/index.js +36 -35
- package/es/components/molecules/FontSetting/types.d.ts +1 -1
- package/es/components/molecules/Modal/Modal.d.ts +2 -2
- package/es/components/molecules/Modal/index.d.ts +1 -0
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/ModalV2/ModalV2.d.ts +5 -0
- package/es/components/molecules/ModalV2/ModalV2.js +26 -0
- package/es/components/molecules/ModalV2/index.d.ts +2 -0
- package/es/components/molecules/ModalV2/index.js +1 -0
- package/es/components/molecules/ModalV2/styled.d.ts +7 -0
- package/es/components/molecules/ModalV2/styled.js +22 -0
- package/es/components/molecules/PreviewModal/PreviewModal.d.ts +7 -0
- package/es/components/molecules/PreviewModal/PreviewModal.js +30 -0
- package/es/components/molecules/PreviewModal/index.d.ts +2 -0
- package/es/components/molecules/PreviewModal/index.js +1 -0
- package/es/components/molecules/PreviewModal/styled.d.ts +4 -0
- package/es/components/molecules/PreviewModal/styled.js +39 -0
- package/es/components/molecules/ResizeGrid/ResizeGrid.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +719 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +86 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.d.ts +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.js +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +80 -0
- package/es/components/molecules/ResizeGrid/constant.d.ts +35 -0
- package/es/components/molecules/ResizeGrid/constant.js +111 -0
- package/es/components/molecules/ResizeGrid/index.d.ts +2 -0
- package/es/components/molecules/ResizeGrid/index.js +1 -0
- package/es/components/molecules/ResizeGrid/styled.d.ts +10 -0
- package/es/components/molecules/ResizeGrid/styled.js +56 -0
- package/es/components/molecules/ResizeGrid/types.d.ts +147 -0
- package/es/components/molecules/ResizeGrid/types.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.d.ts +9 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.js +49 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.d.ts +10 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.js +47 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.d.ts +8 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +36 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.d.ts +2 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.js +765 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/index.d.ts +3 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/index.js +2 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.d.ts +9 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +17 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.d.ts +10 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.js +32 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.d.ts +6 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.js +15 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +4 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +47 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.d.ts +2 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +9 -0
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +37 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.d.ts +10 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +37 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.d.ts +1 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.js +1 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.d.ts +6 -0
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +20 -0
- package/es/components/molecules/RichMenu/index.d.ts +3 -0
- package/es/components/molecules/RichMenu/index.js +3 -0
- package/es/components/molecules/Select/Select.d.ts +4 -2
- package/es/components/molecules/Select/Test.d.ts +2 -1
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +4 -2
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +2 -1
- package/es/components/molecules/index.d.ts +6 -0
- package/es/components/molecules/index.js +4 -0
- package/es/components/organism/Help/styled.d.ts +6 -2
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +1 -0
- package/es/constants/richMenu.d.ts +19 -0
- package/es/constants/richMenu.js +19 -0
- package/es/constants/storybook.d.ts +2 -1
- package/es/constants/theme.js +13 -2
- package/es/hooks/useDeepCompareEffect.d.ts +1 -0
- package/es/hooks/useDeepCompareEffect.js +21 -0
- package/es/locales/en/translation.json +3 -1
- package/es/locales/i18n.d.ts +3 -0
- package/es/locales/translations.d.ts +2 -0
- package/es/locales/vi/translation.json +2 -1
- package/es/test.d.ts +2 -1
- package/es/test.js +164 -66
- package/es/types/index.d.ts +12 -0
- package/es/types/index.js +2 -1
- package/es/types/richMenu.d.ts +191 -0
- package/es/types/richMenu.js +1 -0
- package/es/types/variables.d.ts +2 -0
- package/es/types/variables.js +1 -0
- package/es/utils/common.d.ts +2 -0
- package/es/utils/common.js +16 -0
- package/es/utils/handleError.d.ts +32 -2
- package/es/utils/handleError.js +42 -4
- package/package.json +8 -6
- package/dist/0173b5993573afa04880.woff +0 -0
- package/dist/0dfb9214dfd945cd7290.png +0 -1
- package/dist/2883cad25a2b4e87ce5f.eot +0 -0
- package/dist/4f54a37971347e3d7122.png +0 -1
- package/dist/574b7bee0563a9fe9a29.png +0 -1
- package/dist/6b586356e837581204dc.svg +0 -1
- package/dist/72eec5c1c786b45a667f.ttf +0 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +0 -1
- package/dist/dbc405edd6e0806efbc9.svg +0 -1
- package/dist/e32f09119052a55cce3c.png +0 -1
- package/dist/e3851b9384a984c6fdb5.png +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -69
- package/dist/main.css +0 -69
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/725a52bd91a3ce534b10833df510e5fa.png +0 -0
- package/dist/public/icons/7d037e0b378e87a82804443636cd0e13.svg +0 -346
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +0 -87
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/transparent.svg +0 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2
|
+
// Libraries
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Input } from '../Input/Input';
|
|
5
|
+
// Constants
|
|
6
|
+
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
7
|
+
export const WrapperInputStyle = styled.div `
|
|
8
|
+
color: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorText};
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
.input-wrapper-outter {
|
|
12
|
+
position: relative;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
min-height: 22px;
|
|
15
|
+
max-height: 6rem;
|
|
16
|
+
overflow: auto;
|
|
17
|
+
padding: 5px;
|
|
18
|
+
border-bottom: 1px solid ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.blue1};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.customize-antsomi-profile {
|
|
22
|
+
position: absolute;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
right: 4px;
|
|
25
|
+
top: 50%;
|
|
26
|
+
transform: translateY(-50%);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
color: rgb(0, 94, 184);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.styles-input-wrapper {
|
|
32
|
+
border-bottom: 1px solid ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue1} !important;
|
|
33
|
+
:hover {
|
|
34
|
+
cursor: text;
|
|
35
|
+
background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.blue};
|
|
36
|
+
border-bottom: 1px solid ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.blue1};
|
|
37
|
+
}
|
|
38
|
+
:focus-within {
|
|
39
|
+
background-color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.bw0};
|
|
40
|
+
border-bottom: 1px solid rgb(0, 94, 184);
|
|
41
|
+
}
|
|
42
|
+
:active {
|
|
43
|
+
background-color: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.bw0};
|
|
44
|
+
border-bottom: 1px solid rgb(0, 94, 184);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.input-error {
|
|
49
|
+
border-bottom-color: rgb(239, 51, 64);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.customize-antsomi-profile-outter {
|
|
53
|
+
position: absolute;
|
|
54
|
+
font-size: 20px;
|
|
55
|
+
right: 2.8rem;
|
|
56
|
+
top: 2.3rem;
|
|
57
|
+
transform: translateY(-50%);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
color: ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.blue7};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.input-personal {
|
|
63
|
+
padding: 0px 4px;
|
|
64
|
+
padding-right: 32px;
|
|
65
|
+
outline: none;
|
|
66
|
+
overflow-wrap: normal;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
text-overflow: unset;
|
|
69
|
+
white-space: normal;
|
|
70
|
+
// display: inline-block;
|
|
71
|
+
|
|
72
|
+
.detect-url {
|
|
73
|
+
background-color: #e8feca;
|
|
74
|
+
display: inline;
|
|
75
|
+
position: relative;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/*
|
|
80
|
+
$base-color: ${(_j = THEME.token) === null || _j === void 0 ? void 0 : _j.blue7};
|
|
81
|
+
$bg-base-color: #fff;
|
|
82
|
+
$border-base-color: ${(_k = THEME.token) === null || _k === void 0 ? void 0 : _k.bw3_5};
|
|
83
|
+
$bg-btn-base-color: #f4f6f8; */
|
|
84
|
+
|
|
85
|
+
.antsomi-wrapper-personalization {
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
background: $bg-base-color;
|
|
89
|
+
border: 1px solid $border-base-color;
|
|
90
|
+
border-radius: ${(_l = THEME.token) === null || _l === void 0 ? void 0 : _l.borderRadius}px;
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
font-family: Roboto, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
95
|
+
// box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
96
|
+
.header {
|
|
97
|
+
padding: 13px 20px;
|
|
98
|
+
position: relative;
|
|
99
|
+
|
|
100
|
+
.title {
|
|
101
|
+
font-size: 20px;
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
color: $base-color;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:before {
|
|
107
|
+
content: '';
|
|
108
|
+
position: absolute;
|
|
109
|
+
left: 0;
|
|
110
|
+
bottom: 0;
|
|
111
|
+
height: 15px;
|
|
112
|
+
width: 95%;
|
|
113
|
+
border-bottom: 1px solid $border-base-color;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.body {
|
|
118
|
+
overflow: auto;
|
|
119
|
+
flex-grow: 1;
|
|
120
|
+
padding: 0 5px;
|
|
121
|
+
|
|
122
|
+
table {
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
table-layout: fixed;
|
|
126
|
+
border-collapse: collapse;
|
|
127
|
+
border-spacing: 0;
|
|
128
|
+
th,
|
|
129
|
+
td {
|
|
130
|
+
text-align: left;
|
|
131
|
+
padding: 0 15px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.footer {
|
|
137
|
+
display: flex;
|
|
138
|
+
padding: 15px 25px;
|
|
139
|
+
justify-content: flex-end;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.btn {
|
|
144
|
+
min-width: 100px;
|
|
145
|
+
min-height: 40px;
|
|
146
|
+
border-radius: ${(_m = THEME.token) === null || _m === void 0 ? void 0 : _m.borderRadius}px;
|
|
147
|
+
outline: none;
|
|
148
|
+
border: none;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
|
|
151
|
+
&:focus {
|
|
152
|
+
outline: none !important;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.group-btn {
|
|
157
|
+
width: 222px;
|
|
158
|
+
display: flex;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.btn-default {
|
|
163
|
+
background-color: $bg-btn-base-color;
|
|
164
|
+
color: $base-color;
|
|
165
|
+
border: 1px solid #d7dfe8;
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
background-color: #e3e9ef;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.btn-blue {
|
|
173
|
+
background-color: $base-color;
|
|
174
|
+
color: $bg-base-color;
|
|
175
|
+
border: 1px solid #707070;
|
|
176
|
+
opacity: 0.9;
|
|
177
|
+
|
|
178
|
+
&:hover {
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.input-outline {
|
|
184
|
+
border-top-style: hidden;
|
|
185
|
+
border-right-style: hidden;
|
|
186
|
+
border-left-style: hidden;
|
|
187
|
+
height: 27px;
|
|
188
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
|
|
189
|
+
|
|
190
|
+
&:focus {
|
|
191
|
+
outline: none;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.insert-word {
|
|
196
|
+
padding: 5px 8px;
|
|
197
|
+
color: white;
|
|
198
|
+
border: 1px solid;
|
|
199
|
+
border-radius: 20px;
|
|
200
|
+
height: 30px;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
line-height: 1px;
|
|
203
|
+
background: #bbefbe;
|
|
204
|
+
|
|
205
|
+
&.blue {
|
|
206
|
+
background: #3c39ba;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.orange {
|
|
210
|
+
background: #fbac00;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.violet-pc {
|
|
214
|
+
background: #6750a7;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.disabled {
|
|
218
|
+
background: #ccc;
|
|
219
|
+
}
|
|
220
|
+
&.custom {
|
|
221
|
+
background: #bbefbe;
|
|
222
|
+
// border: 1px solid #BBEFBE;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
em {
|
|
226
|
+
color: white;
|
|
227
|
+
font-style: normal;
|
|
228
|
+
font-size: 13px;
|
|
229
|
+
opacity: 0;
|
|
230
|
+
user-select: none;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&:hover {
|
|
234
|
+
em {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
`;
|
|
240
|
+
export const SpanIcon = styled.span `
|
|
241
|
+
${({ isDisabled }) => isDisabled && `cursor: not-allowed !important; opacity: 0.5;`}
|
|
242
|
+
font-size: 20px;
|
|
243
|
+
`;
|
|
244
|
+
export const InputWrapper = styled.div `
|
|
245
|
+
.input__wrapper {
|
|
246
|
+
display: flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
|
|
249
|
+
div.--default {
|
|
250
|
+
min-width: 120px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
`;
|
|
254
|
+
export const InputShortLink = styled(Input) ``;
|
|
255
|
+
export const TooltipHover = styled.div `
|
|
256
|
+
position: fixed;
|
|
257
|
+
left: ${props => `${props.left}px`};
|
|
258
|
+
top: ${props => `${props.top}px`};
|
|
259
|
+
|
|
260
|
+
display: ${props => (props.isShow ? 'flex' : 'none')};
|
|
261
|
+
justify-content: center;
|
|
262
|
+
align-items: center;
|
|
263
|
+
|
|
264
|
+
background: rgba(0, 0, 0, 0.62);
|
|
265
|
+
transition: opacity 186ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
266
|
+
transform 124ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
267
|
+
color: #fff;
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
270
|
+
0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
271
|
+
border-radius: 4px;
|
|
272
|
+
height: 24px;
|
|
273
|
+
width: auto;
|
|
274
|
+
z-index: 999;
|
|
275
|
+
padding: 5px 10px;
|
|
276
|
+
user-select: none;
|
|
277
|
+
white-space: nowrap;
|
|
278
|
+
text-overflow: ellipsis;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
box-sizing: border-box;
|
|
281
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function validateURL(string: string): boolean;
|
|
2
|
+
export declare const getInsertPatternWithAppendSpaceEnd: (id: any, code: any, label: any, bgColor: any) => string;
|
|
3
|
+
export declare const genShortLinkValue: (url: string, type?: string) => {
|
|
4
|
+
id: string;
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const getInsertPattern: (id: any, code: any, label: any, bgColor: any) => string;
|
|
9
|
+
export declare const convertHtmlText: (htmlText: string, format: string | undefined, state: any, objectWidgetInput?: {}, type?: string, init?: string) => string;
|
|
10
|
+
export declare const handleUpdateInputPersonalization: (listIconRemove: any, listBtnElement: any) => void;
|
|
11
|
+
export declare function removeHtmlTag(text: any): string;
|
|
12
|
+
export declare function convertBreakTag(text: any): any;
|
|
13
|
+
export declare function convertDivToBreakTag(text: any): any;
|
|
14
|
+
export declare const pasteHtmlAtCaret: (html: any, selectPastedContent: any, callback?: any) => void;
|
|
15
|
+
export declare const getInsertLinkPatternWithAppendSpaceEnd: (id: string | number, value: string, label: string) => string;
|
|
16
|
+
export declare const validateHTMLTags: {
|
|
17
|
+
escapeCustomTags(t: any): any;
|
|
18
|
+
isCustomTag(t: any): boolean;
|
|
19
|
+
isValidTag(t: any): boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const spacingNonTracking: (data: any) => boolean;
|
|
22
|
+
export declare const initialValue: (initValue: string) => string | undefined;
|