@antscorp/antsomi-ui 1.3.4 → 1.3.5
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/css/main.scss +4 -0
- package/es/components/atoms/Flex/Flex.d.ts +2 -0
- package/es/components/atoms/Flex/Flex.js +1 -0
- package/es/components/atoms/Flex/index.d.ts +1 -0
- package/es/components/atoms/Flex/index.js +1 -0
- package/es/components/atoms/Input/Input.d.ts +11 -3
- package/es/components/atoms/Input/Input.js +3 -0
- package/es/components/atoms/Slider/index.d.ts +2 -1
- package/es/components/atoms/Slider/index.js +9 -16
- package/es/components/atoms/SliderV2/index.d.ts +5 -0
- package/es/components/atoms/SliderV2/index.js +23 -0
- package/es/components/atoms/Spin/Spin.d.ts +2 -1
- package/es/components/atoms/index.d.ts +3 -0
- package/es/components/atoms/index.js +3 -0
- package/es/components/common/ConfigProvider/ConfigProvider.d.ts +1 -0
- package/es/components/common/ConfigProvider/ConfigProvider.js +1 -0
- package/es/components/common/ConfigProvider/GlobalStyle.js +38 -1
- 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/Collapse/Collapse.d.ts +3 -3
- package/es/components/molecules/Collapse/Collapse.js +9 -0
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +9 -18
- package/es/components/molecules/ColorPicker/CustomPicker/styled.d.ts +5 -1
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +14 -3
- package/es/components/molecules/ColorPicker/index.js +3 -3
- package/es/components/molecules/ColorSetting/index.js +3 -3
- package/es/components/molecules/FontFamilySelect/constants.d.ts +307 -0
- package/es/components/molecules/FontFamilySelect/constants.js +257 -0
- package/es/components/molecules/FontFamilySelect/index.d.ts +17 -0
- package/es/components/molecules/FontFamilySelect/index.js +53 -0
- 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 +24 -0
- package/es/components/molecules/FontSetting/index.js +54 -0
- package/es/components/molecules/FontSetting/types.d.ts +22 -0
- package/es/components/molecules/FontSetting/types.js +1 -0
- package/es/components/molecules/FontWeightSelect/constants.d.ts +28 -0
- package/es/components/molecules/FontWeightSelect/constants.js +11 -0
- package/es/components/molecules/FontWeightSelect/index.d.ts +9 -0
- package/es/components/molecules/FontWeightSelect/index.js +39 -0
- package/es/components/molecules/Form/Form.d.ts +1 -0
- package/es/components/molecules/Form/Form.js +1 -0
- package/es/components/molecules/Form/index.d.ts +1 -0
- package/es/components/molecules/Form/index.js +1 -0
- package/es/components/molecules/GradientSetting/index.d.ts +19 -2
- package/es/components/molecules/GradientSetting/index.js +52 -30
- package/es/components/molecules/GradientSetting/styled.d.ts +1 -0
- package/es/components/molecules/GradientSetting/styled.js +59 -0
- package/es/components/molecules/InputNumber/index.js +2 -2
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/Select/Select.d.ts +3 -0
- package/es/components/molecules/Select/Select.js +23 -2
- package/es/components/molecules/Select/Test.d.ts +2 -1
- package/es/components/molecules/SettingWrapper/index.d.ts +1 -2
- package/es/components/molecules/SettingWrapperPopover/index.d.ts +16 -0
- package/es/components/molecules/SettingWrapperPopover/index.js +17 -0
- package/es/components/molecules/TextDecorationSelect/constants.d.ts +19 -0
- package/es/components/molecules/TextDecorationSelect/constants.js +26 -0
- package/es/components/molecules/TextDecorationSelect/index.d.ts +15 -0
- package/es/components/molecules/TextDecorationSelect/index.js +45 -0
- package/es/components/molecules/TextTransformSelect/constants.d.ts +13 -0
- package/es/components/molecules/TextTransformSelect/constants.js +19 -0
- package/es/components/molecules/TextTransformSelect/index.d.ts +9 -0
- package/es/components/molecules/TextTransformSelect/index.js +39 -0
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +2 -1
- package/es/components/molecules/index.d.ts +8 -0
- package/es/components/molecules/index.js +7 -0
- package/es/constants/storybook.d.ts +2 -1
- package/es/constants/theme.js +25 -3
- package/es/test.d.ts +2 -1
- package/es/test.js +26 -39
- package/package.json +5 -5
- 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 -68
- 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,307 @@
|
|
|
1
|
+
export declare const OPTION_FONT_FAMILY: readonly [{
|
|
2
|
+
readonly label: "Arial";
|
|
3
|
+
readonly value: "Arial";
|
|
4
|
+
readonly style: {
|
|
5
|
+
readonly fontFamily: "Arial";
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
readonly label: "Sacramento";
|
|
9
|
+
readonly value: "Sacramento";
|
|
10
|
+
readonly style: {
|
|
11
|
+
readonly fontFamily: "Sacramento";
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
readonly label: "PT Serif";
|
|
15
|
+
readonly value: "PT Serif";
|
|
16
|
+
readonly style: {
|
|
17
|
+
readonly fontFamily: "PT Serif";
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
readonly label: "Georgia";
|
|
21
|
+
readonly value: "Georgia";
|
|
22
|
+
readonly style: {
|
|
23
|
+
readonly fontFamily: "Georgia";
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
readonly label: "Helvetica";
|
|
27
|
+
readonly value: "Helvetica";
|
|
28
|
+
readonly style: {
|
|
29
|
+
readonly fontFamily: "Helvetica";
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
readonly label: "Helvetica Neue";
|
|
33
|
+
readonly value: "Helvetica Neue";
|
|
34
|
+
readonly style: {
|
|
35
|
+
readonly fontFamily: "Helvetica Neue";
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
readonly label: "Lucida Grande";
|
|
39
|
+
readonly value: "Lucida Grande";
|
|
40
|
+
readonly style: {
|
|
41
|
+
readonly fontFamily: "Lucida Grande";
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
readonly label: "Tahoma";
|
|
45
|
+
readonly value: "Tahoma";
|
|
46
|
+
readonly style: {
|
|
47
|
+
readonly fontFamily: "Tahoma";
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
readonly label: "Times New Roman";
|
|
51
|
+
readonly value: "Times New Roman";
|
|
52
|
+
readonly style: {
|
|
53
|
+
readonly fontFamily: "Times New Roman";
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
readonly label: "Verdana";
|
|
57
|
+
readonly value: "Verdana";
|
|
58
|
+
readonly style: {
|
|
59
|
+
readonly fontFamily: "Verdana";
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
readonly label: "Abril Fatface";
|
|
63
|
+
readonly value: "Abril Fatface";
|
|
64
|
+
readonly style: {
|
|
65
|
+
readonly fontFamily: "Abril Fatface";
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
readonly label: "Aleo";
|
|
69
|
+
readonly value: "Aleo";
|
|
70
|
+
readonly style: {
|
|
71
|
+
readonly fontFamily: "Aleo";
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
readonly label: "Arvo";
|
|
75
|
+
readonly value: "arvo";
|
|
76
|
+
readonly style: {
|
|
77
|
+
readonly fontFamily: "Arvo";
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
readonly label: "Bitter";
|
|
81
|
+
readonly value: "bitter";
|
|
82
|
+
readonly style: {
|
|
83
|
+
readonly fontFamily: "Bitter";
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
readonly label: "Bree Serif";
|
|
87
|
+
readonly value: "Bree Serif";
|
|
88
|
+
readonly style: {
|
|
89
|
+
readonly fontFamily: "Bree Serif";
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
readonly label: "Cabin";
|
|
93
|
+
readonly value: "Cabin";
|
|
94
|
+
readonly style: {
|
|
95
|
+
readonly fontFamily: "Cabin";
|
|
96
|
+
};
|
|
97
|
+
}, {
|
|
98
|
+
readonly label: "Cookie";
|
|
99
|
+
readonly value: "Cookie";
|
|
100
|
+
readonly style: {
|
|
101
|
+
readonly fontFamily: "Cookie";
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
readonly label: "Delius Swash Caps";
|
|
105
|
+
readonly value: "Delius Swash Caps";
|
|
106
|
+
readonly style: {
|
|
107
|
+
readonly fontFamily: "Delius Swash Caps";
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
readonly label: "Dosis";
|
|
111
|
+
readonly value: "Dosis";
|
|
112
|
+
readonly style: {
|
|
113
|
+
readonly fontFamily: "Dosis";
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
readonly label: "Droid Sans";
|
|
117
|
+
readonly value: "Droid Sans";
|
|
118
|
+
readonly style: {
|
|
119
|
+
readonly fontFamily: "Droid Sans";
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
readonly label: "Droid Serif";
|
|
123
|
+
readonly value: "Droid Serif";
|
|
124
|
+
readonly style: {
|
|
125
|
+
readonly fontFamily: "Droid Serif";
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
readonly label: "EB Garamond";
|
|
129
|
+
readonly value: "EB Garamond";
|
|
130
|
+
readonly style: {
|
|
131
|
+
readonly fontFamily: "EB Garamond";
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
readonly label: "Josefin Slab";
|
|
135
|
+
readonly value: "Josefin Slab";
|
|
136
|
+
readonly style: {
|
|
137
|
+
readonly fontFamily: "Josefin Slab";
|
|
138
|
+
};
|
|
139
|
+
}, {
|
|
140
|
+
readonly label: "Just Another Hand";
|
|
141
|
+
readonly value: "Just Another Hand";
|
|
142
|
+
readonly style: {
|
|
143
|
+
readonly fontFamily: "Just Another Hand";
|
|
144
|
+
};
|
|
145
|
+
}, {
|
|
146
|
+
readonly label: "Lakki Reddy";
|
|
147
|
+
readonly value: "Lakki Reddy";
|
|
148
|
+
readonly style: {
|
|
149
|
+
readonly fontFamily: "Lakki Reddy";
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
readonly label: "Lato";
|
|
153
|
+
readonly value: "Lato";
|
|
154
|
+
readonly style: {
|
|
155
|
+
readonly fontFamily: "Lato";
|
|
156
|
+
};
|
|
157
|
+
}, {
|
|
158
|
+
readonly label: "Libre Baskerville";
|
|
159
|
+
readonly value: "Libre Baskerville";
|
|
160
|
+
readonly style: {
|
|
161
|
+
readonly fontFamily: "Libre Baskerville";
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
readonly label: "Lobster";
|
|
165
|
+
readonly value: "Lobster";
|
|
166
|
+
readonly style: {
|
|
167
|
+
readonly fontFamily: "Lobster";
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
readonly label: "Lora";
|
|
171
|
+
readonly value: "Lora";
|
|
172
|
+
readonly style: {
|
|
173
|
+
readonly fontFamily: "Lora";
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
readonly label: "Mali";
|
|
177
|
+
readonly value: "Mali";
|
|
178
|
+
readonly style: {
|
|
179
|
+
readonly fontFamily: "Mali";
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
readonly label: "Merriweather";
|
|
183
|
+
readonly value: "Merriweather";
|
|
184
|
+
readonly style: {
|
|
185
|
+
readonly fontFamily: "Merriweather";
|
|
186
|
+
};
|
|
187
|
+
}, {
|
|
188
|
+
readonly label: "Montserrat";
|
|
189
|
+
readonly value: "Montserrat";
|
|
190
|
+
readonly style: {
|
|
191
|
+
readonly fontFamily: "Montserrat";
|
|
192
|
+
};
|
|
193
|
+
}, {
|
|
194
|
+
readonly label: "Noto Sans";
|
|
195
|
+
readonly value: "Noto Sans";
|
|
196
|
+
readonly style: {
|
|
197
|
+
readonly fontFamily: "Noto Sans";
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
readonly label: "Noto Serif";
|
|
201
|
+
readonly value: "Noto Serif";
|
|
202
|
+
readonly style: {
|
|
203
|
+
readonly fontFamily: "Noto Serif";
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
readonly label: "Nunito";
|
|
207
|
+
readonly value: "Nunito";
|
|
208
|
+
readonly style: {
|
|
209
|
+
readonly fontFamily: "Nunito";
|
|
210
|
+
};
|
|
211
|
+
}, {
|
|
212
|
+
readonly label: "Open Sans";
|
|
213
|
+
readonly value: "Open Sans";
|
|
214
|
+
readonly style: {
|
|
215
|
+
readonly fontFamily: "Open Sans";
|
|
216
|
+
};
|
|
217
|
+
}, {
|
|
218
|
+
readonly label: "Oswald";
|
|
219
|
+
readonly value: "Oswald";
|
|
220
|
+
readonly style: {
|
|
221
|
+
readonly fontFamily: "Oswald";
|
|
222
|
+
};
|
|
223
|
+
}, {
|
|
224
|
+
readonly label: "Poppins";
|
|
225
|
+
readonly value: "Poppins";
|
|
226
|
+
readonly style: {
|
|
227
|
+
readonly fontFamily: "Poppins";
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
readonly label: "PT Sans";
|
|
231
|
+
readonly value: "PT Sans";
|
|
232
|
+
readonly style: {
|
|
233
|
+
readonly fontFamily: "PT Sans";
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
readonly label: "Pinyon Script";
|
|
237
|
+
readonly value: "Pinyon Script";
|
|
238
|
+
readonly style: {
|
|
239
|
+
readonly fontFamily: "Pinyon Script";
|
|
240
|
+
};
|
|
241
|
+
}, {
|
|
242
|
+
readonly label: "Playfair Display";
|
|
243
|
+
readonly value: "Playfair Display";
|
|
244
|
+
readonly style: {
|
|
245
|
+
readonly fontFamily: "Playfair Display";
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
readonly label: "Quicksand";
|
|
249
|
+
readonly value: "Quicksand";
|
|
250
|
+
readonly style: {
|
|
251
|
+
readonly fontFamily: "Quicksand";
|
|
252
|
+
};
|
|
253
|
+
}, {
|
|
254
|
+
readonly label: "Raleway";
|
|
255
|
+
readonly value: "Raleway";
|
|
256
|
+
readonly style: {
|
|
257
|
+
readonly fontFamily: "Raleway";
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
readonly label: "Righteous";
|
|
261
|
+
readonly value: "Righteous";
|
|
262
|
+
readonly style: {
|
|
263
|
+
readonly fontFamily: "Righteous";
|
|
264
|
+
};
|
|
265
|
+
}, {
|
|
266
|
+
readonly label: "Roboto Slab";
|
|
267
|
+
readonly value: "Roboto Slab";
|
|
268
|
+
readonly style: {
|
|
269
|
+
readonly fontFamily: "Roboto Slab";
|
|
270
|
+
};
|
|
271
|
+
}, {
|
|
272
|
+
readonly label: "Roboto";
|
|
273
|
+
readonly value: "Roboto";
|
|
274
|
+
readonly style: {
|
|
275
|
+
readonly fontFamily: "Roboto";
|
|
276
|
+
};
|
|
277
|
+
}, {
|
|
278
|
+
readonly label: "Rubik";
|
|
279
|
+
readonly value: "Rubik";
|
|
280
|
+
readonly style: {
|
|
281
|
+
readonly fontFamily: "Rubik";
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
readonly label: "Sarabun";
|
|
285
|
+
readonly value: "Sarabun";
|
|
286
|
+
readonly style: {
|
|
287
|
+
readonly fontFamily: "Sarabun";
|
|
288
|
+
};
|
|
289
|
+
}, {
|
|
290
|
+
readonly label: "Source Sans Pro";
|
|
291
|
+
readonly value: "Source Sans Pro";
|
|
292
|
+
readonly style: {
|
|
293
|
+
readonly fontFamily: "Source Sans Pro";
|
|
294
|
+
};
|
|
295
|
+
}, {
|
|
296
|
+
readonly label: "Ubuntu";
|
|
297
|
+
readonly value: "Ubuntu";
|
|
298
|
+
readonly style: {
|
|
299
|
+
readonly fontFamily: "Ubuntu";
|
|
300
|
+
};
|
|
301
|
+
}, {
|
|
302
|
+
readonly label: "Vollkorn";
|
|
303
|
+
readonly value: "Vollkorn";
|
|
304
|
+
readonly style: {
|
|
305
|
+
readonly fontFamily: "Vollkorn";
|
|
306
|
+
};
|
|
307
|
+
}];
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
export const OPTION_FONT_FAMILY = [
|
|
2
|
+
{
|
|
3
|
+
label: 'Arial',
|
|
4
|
+
value: 'Arial',
|
|
5
|
+
style: { fontFamily: 'Arial' },
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
label: 'Sacramento',
|
|
9
|
+
value: 'Sacramento',
|
|
10
|
+
style: { fontFamily: 'Sacramento' },
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: 'PT Serif',
|
|
14
|
+
value: 'PT Serif',
|
|
15
|
+
style: { fontFamily: 'PT Serif' },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'Georgia',
|
|
19
|
+
value: 'Georgia',
|
|
20
|
+
style: { fontFamily: 'Georgia' },
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'Helvetica',
|
|
24
|
+
value: 'Helvetica',
|
|
25
|
+
style: { fontFamily: 'Helvetica' },
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: 'Helvetica Neue',
|
|
29
|
+
value: 'Helvetica Neue',
|
|
30
|
+
style: { fontFamily: 'Helvetica Neue' },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: 'Lucida Grande',
|
|
34
|
+
value: 'Lucida Grande',
|
|
35
|
+
style: { fontFamily: 'Lucida Grande' },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Tahoma',
|
|
39
|
+
value: 'Tahoma',
|
|
40
|
+
style: { fontFamily: 'Tahoma' },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'Times New Roman',
|
|
44
|
+
value: 'Times New Roman',
|
|
45
|
+
style: { fontFamily: 'Times New Roman' },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: 'Verdana',
|
|
49
|
+
value: 'Verdana',
|
|
50
|
+
style: { fontFamily: 'Verdana' },
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: 'Abril Fatface',
|
|
54
|
+
value: 'Abril Fatface',
|
|
55
|
+
style: { fontFamily: 'Abril Fatface' },
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: 'Aleo',
|
|
59
|
+
value: 'Aleo',
|
|
60
|
+
style: { fontFamily: 'Aleo' },
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Arvo',
|
|
64
|
+
value: 'arvo',
|
|
65
|
+
style: { fontFamily: 'Arvo' },
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Bitter',
|
|
69
|
+
value: 'bitter',
|
|
70
|
+
style: { fontFamily: 'Bitter' },
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Bree Serif',
|
|
74
|
+
value: 'Bree Serif',
|
|
75
|
+
style: { fontFamily: 'Bree Serif' },
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: 'Cabin',
|
|
79
|
+
value: 'Cabin',
|
|
80
|
+
style: { fontFamily: 'Cabin' },
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Cookie',
|
|
84
|
+
value: 'Cookie',
|
|
85
|
+
style: { fontFamily: 'Cookie' },
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Delius Swash Caps',
|
|
89
|
+
value: 'Delius Swash Caps',
|
|
90
|
+
style: { fontFamily: 'Delius Swash Caps' },
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
label: 'Dosis',
|
|
94
|
+
value: 'Dosis',
|
|
95
|
+
style: { fontFamily: 'Dosis' },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: 'Droid Sans',
|
|
99
|
+
value: 'Droid Sans',
|
|
100
|
+
style: { fontFamily: 'Droid Sans' },
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Droid Serif',
|
|
104
|
+
value: 'Droid Serif',
|
|
105
|
+
style: { fontFamily: 'Droid Serif' },
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: 'EB Garamond',
|
|
109
|
+
value: 'EB Garamond',
|
|
110
|
+
style: { fontFamily: 'EB Garamond' },
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: 'Josefin Slab',
|
|
114
|
+
value: 'Josefin Slab',
|
|
115
|
+
style: { fontFamily: 'Josefin Slab' },
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: 'Just Another Hand',
|
|
119
|
+
value: 'Just Another Hand',
|
|
120
|
+
style: { fontFamily: 'Just Another Hand' },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Lakki Reddy',
|
|
124
|
+
value: 'Lakki Reddy',
|
|
125
|
+
style: { fontFamily: 'Lakki Reddy' },
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: 'Lato',
|
|
129
|
+
value: 'Lato',
|
|
130
|
+
style: { fontFamily: 'Lato' },
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: 'Libre Baskerville',
|
|
134
|
+
value: 'Libre Baskerville',
|
|
135
|
+
style: { fontFamily: 'Libre Baskerville' },
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: 'Lobster',
|
|
139
|
+
value: 'Lobster',
|
|
140
|
+
style: { fontFamily: 'Lobster' },
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: 'Lora',
|
|
144
|
+
value: 'Lora',
|
|
145
|
+
style: { fontFamily: 'Lora' },
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: 'Mali',
|
|
149
|
+
value: 'Mali',
|
|
150
|
+
style: { fontFamily: 'Mali' },
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: 'Merriweather',
|
|
154
|
+
value: 'Merriweather',
|
|
155
|
+
style: { fontFamily: 'Merriweather' },
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: 'Montserrat',
|
|
159
|
+
value: 'Montserrat',
|
|
160
|
+
style: { fontFamily: 'Montserrat' },
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: 'Noto Sans',
|
|
164
|
+
value: 'Noto Sans',
|
|
165
|
+
style: { fontFamily: 'Noto Sans' },
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: 'Noto Serif',
|
|
169
|
+
value: 'Noto Serif',
|
|
170
|
+
style: { fontFamily: 'Noto Serif' },
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: 'Nunito',
|
|
174
|
+
value: 'Nunito',
|
|
175
|
+
style: { fontFamily: 'Nunito' },
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: 'Open Sans',
|
|
179
|
+
value: 'Open Sans',
|
|
180
|
+
style: { fontFamily: 'Open Sans' },
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: 'Oswald',
|
|
184
|
+
value: 'Oswald',
|
|
185
|
+
style: { fontFamily: 'Oswald' },
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: 'Poppins',
|
|
189
|
+
value: 'Poppins',
|
|
190
|
+
style: { fontFamily: 'Poppins' },
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
label: 'PT Sans',
|
|
194
|
+
value: 'PT Sans',
|
|
195
|
+
style: { fontFamily: 'PT Sans' },
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: 'Pinyon Script',
|
|
199
|
+
value: 'Pinyon Script',
|
|
200
|
+
style: { fontFamily: 'Pinyon Script' },
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: 'Playfair Display',
|
|
204
|
+
value: 'Playfair Display',
|
|
205
|
+
style: { fontFamily: 'Playfair Display' },
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
label: 'Quicksand',
|
|
209
|
+
value: 'Quicksand',
|
|
210
|
+
style: { fontFamily: 'Quicksand' },
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
label: 'Raleway',
|
|
214
|
+
value: 'Raleway',
|
|
215
|
+
style: { fontFamily: 'Raleway' },
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
label: 'Righteous',
|
|
219
|
+
value: 'Righteous',
|
|
220
|
+
style: { fontFamily: 'Righteous' },
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: 'Roboto Slab',
|
|
224
|
+
value: 'Roboto Slab',
|
|
225
|
+
style: { fontFamily: 'Roboto Slab' },
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: 'Roboto',
|
|
229
|
+
value: 'Roboto',
|
|
230
|
+
style: { fontFamily: 'Roboto' },
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
label: 'Rubik',
|
|
234
|
+
value: 'Rubik',
|
|
235
|
+
style: { fontFamily: 'Rubik' },
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: 'Sarabun',
|
|
239
|
+
value: 'Sarabun',
|
|
240
|
+
style: { fontFamily: 'Sarabun' },
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
label: 'Source Sans Pro',
|
|
244
|
+
value: 'Source Sans Pro',
|
|
245
|
+
style: { fontFamily: 'Source Sans Pro' },
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
label: 'Ubuntu',
|
|
249
|
+
value: 'Ubuntu',
|
|
250
|
+
style: { fontFamily: 'Ubuntu' },
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: 'Vollkorn',
|
|
254
|
+
value: 'Vollkorn',
|
|
255
|
+
style: { fontFamily: 'Vollkorn' },
|
|
256
|
+
},
|
|
257
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OPTION_FONT_FAMILY } from './constants';
|
|
3
|
+
import { SelectProps } from 'antd';
|
|
4
|
+
export type FontFamilySelectProps = Omit<SelectProps, 'onChange'> & {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
showOptions?: (typeof OPTION_FONT_FAMILY)[number]['label'][];
|
|
9
|
+
onChange?: (family: string) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Renders a select input for font family options.
|
|
13
|
+
*
|
|
14
|
+
* @param {FontFamilySelectProps} props - The props for the component.
|
|
15
|
+
* @return {ReactNode} The rendered React node.
|
|
16
|
+
*/
|
|
17
|
+
export declare const FontFamilySelect: React.FC<FontFamilySelectProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
// Libraries
|
|
13
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
14
|
+
// Molecules
|
|
15
|
+
import { Select } from '../Select';
|
|
16
|
+
import { SettingWrapper } from '../SettingWrapper';
|
|
17
|
+
// Constants
|
|
18
|
+
import { OPTION_FONT_FAMILY } from './constants';
|
|
19
|
+
import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
20
|
+
/**
|
|
21
|
+
* Renders a select input for font family options.
|
|
22
|
+
*
|
|
23
|
+
* @param {FontFamilySelectProps} props - The props for the component.
|
|
24
|
+
* @return {ReactNode} The rendered React node.
|
|
25
|
+
*/
|
|
26
|
+
export const FontFamilySelect = (props) => {
|
|
27
|
+
const { defaultValue, label, value, showOptions, onChange } = props, selectProps = __rest(props, ["defaultValue", "label", "value", "showOptions", "onChange"]);
|
|
28
|
+
const [selected, setSelected] = useState(defaultValue || value);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setSelected(value);
|
|
31
|
+
}, [value]);
|
|
32
|
+
const { t } = i18nInstance;
|
|
33
|
+
const filteredFontFamilyOptions = useMemo(() => {
|
|
34
|
+
let filteredOptions = [...OPTION_FONT_FAMILY];
|
|
35
|
+
if (showOptions === null || showOptions === void 0 ? void 0 : showOptions.length) {
|
|
36
|
+
filteredOptions = OPTION_FONT_FAMILY.filter(({ value }) => showOptions.some(font => font === value));
|
|
37
|
+
}
|
|
38
|
+
return filteredOptions;
|
|
39
|
+
}, [showOptions]);
|
|
40
|
+
const handleChange = (value) => {
|
|
41
|
+
if (typeof onChange === 'function') {
|
|
42
|
+
onChange(value);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return (React.createElement(SettingWrapper, { label: label !== null && label !== void 0 ? label : '', containerStyle: { width: '100%' }, vertical: true },
|
|
46
|
+
React.createElement(Select, Object.assign({ value: selected, options: [...filteredFontFamilyOptions], style: { fontFamily: value, width: '100%' }, onChange: select => {
|
|
47
|
+
setSelected(select);
|
|
48
|
+
handleChange(select);
|
|
49
|
+
}, showSearch: true }, selectProps))));
|
|
50
|
+
};
|
|
51
|
+
FontFamilySelect.defaultProps = {
|
|
52
|
+
showOptions: [],
|
|
53
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const FONT_SETTING_DEFAULT = {
|
|
2
|
+
fontColor: '#000000',
|
|
3
|
+
fontFamily: 'Roboto',
|
|
4
|
+
fontItalic: false,
|
|
5
|
+
fontSize: 14,
|
|
6
|
+
fontWeight: '400',
|
|
7
|
+
letterSpacing: 2,
|
|
8
|
+
lineHeight: 1.5,
|
|
9
|
+
textTransform: 'none',
|
|
10
|
+
textDecoration: 'none',
|
|
11
|
+
};
|
|
12
|
+
export const FONT_STYLE_DEFAULT = {
|
|
13
|
+
color: '#000000',
|
|
14
|
+
fontFamily: 'Roboto',
|
|
15
|
+
fontSize: 14,
|
|
16
|
+
fontWeight: '400',
|
|
17
|
+
lineHeight: 1.5,
|
|
18
|
+
letterSpacing: 2,
|
|
19
|
+
textTransform: 'none',
|
|
20
|
+
textDecoration: 'none',
|
|
21
|
+
fontStyle: 'normal',
|
|
22
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopoverProps } from 'antd';
|
|
3
|
+
import { SettingWrapperProps } from '../SettingWrapper';
|
|
4
|
+
import { TFontSettings, TFontStyles } from './types';
|
|
5
|
+
type TFontSettingOptions = 'fontFamily' | 'color' | 'fontSize' | 'fontWeight' | 'textTransform' | 'textDecoration' | 'italic' | 'lineHeight' | 'letterSpacing';
|
|
6
|
+
export type TFontSettingProps = {
|
|
7
|
+
label?: string;
|
|
8
|
+
settings: Partial<TFontSettings>;
|
|
9
|
+
styles: Partial<TFontStyles>;
|
|
10
|
+
showSettings?: TFontSettingOptions[];
|
|
11
|
+
wrapperProps?: Omit<SettingWrapperProps, 'label'>;
|
|
12
|
+
popoverProps?: Omit<PopoverProps, 'content'>;
|
|
13
|
+
childrenProps?: Omit<TFontSettingEditProps, 'settings' | 'styles' | 'onChange'>;
|
|
14
|
+
onChange?: (settings: Partial<TFontSettings>, styles: Partial<TFontStyles>) => void;
|
|
15
|
+
};
|
|
16
|
+
export type TFontSettingEditProps = {
|
|
17
|
+
settings: Partial<TFontSettings>;
|
|
18
|
+
styles: Partial<TFontStyles>;
|
|
19
|
+
showSettings?: TFontSettingOptions[];
|
|
20
|
+
onChange?: (settings: Partial<TFontSettings>, styles: Partial<TFontStyles>) => void;
|
|
21
|
+
};
|
|
22
|
+
export declare const FontSettingEdit: React.FC<TFontSettingEditProps>;
|
|
23
|
+
export declare const FontSetting: React.FC<TFontSettingProps>;
|
|
24
|
+
export {};
|