@xaypay/tui 0.0.71 → 0.0.72
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/dist/index.es.js +454 -166
- package/dist/index.js +454 -166
- package/package.json +1 -1
- package/src/components/autocomplate/autocomplate.stories.js +1 -1
- package/src/components/icon/ListItemJpeg.js +21 -0
- package/src/components/icon/ListItemPng.js +21 -0
- package/src/components/icon/index.js +2 -1
- package/src/components/input/index.js +22 -15
- package/src/components/input/input.stories.js +11 -5
- package/src/components/newAutocomplete/NewAutocomplete.stories.js +26 -26
- package/src/components/newAutocomplete/index.js +113 -92
- package/src/components/newFile/fileItem.js +213 -0
- package/src/components/newFile/index.js +154 -129
- package/src/components/newFile/newFile.stories.js +5 -2
- package/src/components/textarea/index.js +30 -1
- package/src/stories/configuration.stories.mdx +42 -0
- package/src/stories/static/autocomplete-usage.png +0 -0
- package/src/stories/static/file-single-usage.png +0 -0
- package/src/stories/static/file-usage.png +0 -0
- package/src/stories/static/input-usage.png +0 -0
- package/src/stories/static/tooltip-usage.png +0 -0
- package/src/stories/usage.stories.mdx +17 -8
- package/tui.config.js +20 -2
- package/src/stories/static/input-tooltip-usage.png +0 -0
- package/src/stories/static/new-autocomplete-usage.png +0 -0
|
@@ -8,14 +8,17 @@ import Plugin from './assets/plugin.svg';
|
|
|
8
8
|
import Repo from './assets/repo.svg';
|
|
9
9
|
import StackAlt from './assets/stackalt.svg';
|
|
10
10
|
|
|
11
|
+
import fileImage from './static/file-usage.png';
|
|
11
12
|
import captcha from './static/captcha-usage.png';
|
|
13
|
+
import inputImage from './static/input-usage.png';
|
|
12
14
|
import buttonImage from './static/button-usage.png';
|
|
13
15
|
import selectImage from './static/select-usage.png';
|
|
14
16
|
import toastImage from './static/toaster-usage.png';
|
|
17
|
+
import tooltipImage from './static/tooltip-usage.png';
|
|
15
18
|
import textareaImage from './static/textarea-usage.png';
|
|
19
|
+
import fileSingleImage from './static/file-single-usage.png';
|
|
16
20
|
import toasterImage from './static/toaster-container-usage.png';
|
|
17
|
-
import
|
|
18
|
-
import newAutocompleteImage from './static/new-autocomplete-usage.png';
|
|
21
|
+
import autocompleteImage from './static/autocomplete-usage.png';
|
|
19
22
|
|
|
20
23
|
<Meta title="Intro/Usage" />
|
|
21
24
|
|
|
@@ -130,15 +133,15 @@ import newAutocompleteImage from './static/new-autocomplete-usage.png';
|
|
|
130
133
|
# Usage
|
|
131
134
|
|
|
132
135
|
### Button
|
|
133
|
-
|
|
134
136
|
<img src={buttonImage} alt="button image" />
|
|
135
137
|
|
|
136
|
-
### Input
|
|
138
|
+
### Input
|
|
139
|
+
<img src={inputImage} alt="input image" />
|
|
137
140
|
|
|
138
|
-
|
|
141
|
+
### Tooltip
|
|
142
|
+
<img src={tooltipImage} alt="tooltip image" />
|
|
139
143
|
|
|
140
144
|
### Select
|
|
141
|
-
|
|
142
145
|
<img src={selectImage} alt="select image" />
|
|
143
146
|
|
|
144
147
|
### Toaster
|
|
@@ -153,7 +156,13 @@ import newAutocompleteImage from './static/new-autocomplete-usage.png';
|
|
|
153
156
|
<img src={textareaImage} alt="textarea image" />
|
|
154
157
|
|
|
155
158
|
### NewAutocomplete
|
|
156
|
-
<img src={
|
|
159
|
+
<img src={autocompleteImage} alt="autocomplete image" />
|
|
157
160
|
|
|
158
161
|
### Captcha
|
|
159
|
-
<img src={captcha} alt="captcha image" />
|
|
162
|
+
<img src={captcha} alt="captcha image" />
|
|
163
|
+
|
|
164
|
+
### NewFile in Multiple Mode
|
|
165
|
+
<img src={fileImage} alt="file image" />
|
|
166
|
+
|
|
167
|
+
### NewFile in Single Mode
|
|
168
|
+
<img src={fileSingleImage} alt="file image" />
|
package/tui.config.js
CHANGED
|
@@ -238,10 +238,12 @@ module.exports = {
|
|
|
238
238
|
minWidth: '200px', // for minimum width
|
|
239
239
|
maxWidth: '500px', // for maximum width
|
|
240
240
|
labelSize: '16px', // for label font size
|
|
241
|
+
errorSize: '12px', // for error font size
|
|
241
242
|
minHeight: '100px', // for minimum height
|
|
242
243
|
maxHeight: '300px', // for maximum height
|
|
243
244
|
border: '2px solid', // for border
|
|
244
245
|
padding: '12px 15px', // for padding
|
|
246
|
+
errorColor: '#E40E00', // for error color
|
|
245
247
|
labelColor: '#3C393E', // for label color
|
|
246
248
|
labelWeight: 'normal', // for label font weight
|
|
247
249
|
labelDisplay: 'block', // for label display
|
|
@@ -329,25 +331,41 @@ module.exports = {
|
|
|
329
331
|
},
|
|
330
332
|
// default properties for <File /> component
|
|
331
333
|
File: {
|
|
334
|
+
or: 'կամ', // for file place text
|
|
332
335
|
weight: 400, // for file place font weight
|
|
333
336
|
size: '12px', // for file font size
|
|
334
|
-
radius: '6px',
|
|
337
|
+
radius: '6px', // for file place border radius
|
|
335
338
|
width: '440px', // for file width
|
|
336
339
|
height: '200px', // for file choose place height
|
|
337
340
|
color: '#3C393E', // for file place color
|
|
341
|
+
upload: 'Բեռնել', // for file place text
|
|
338
342
|
labelSize: '16px', // for file font size
|
|
339
343
|
border: '2px dashed', // for file choose place border
|
|
340
344
|
errorColor: '#ee0000', // for file error message color
|
|
341
345
|
labelColor: '#4A4A4D', // for file color
|
|
342
346
|
errorColor: '#ee0000', // for file place error color
|
|
343
347
|
borderColor: '#D1D1D1', // for file choose place border color
|
|
348
|
+
listItemHeight: '70px', // for file list item height
|
|
344
349
|
uploadColor: '#0DA574', // for file place upload text color
|
|
350
|
+
progressColor: '#4A4A4D', // for file progress bar color
|
|
351
|
+
progressFontSize: '16px', // for file progress bar font size
|
|
352
|
+
listItemErrorSize: '16px', // for file multiple mode error font size
|
|
345
353
|
backgroundColor: '#F8F8F8', // for file choose place background color
|
|
354
|
+
listItemErrorColor: 'black', // for file multiple mode error color
|
|
346
355
|
borderHoverColor: '#00236A', // for file border color, when hover is happening
|
|
356
|
+
fileAreaImageHeight: 'auto', // for file place choosen image preview height
|
|
357
|
+
listItemPadding: '14px 20px', // for file list item padding
|
|
358
|
+
fileSizeText: 'Առավելագույնը', // for file place file size text
|
|
359
|
+
fileAreaImageWidth: '27.8rem', // for file place choosen image preview width
|
|
347
360
|
labelRequiredColor: '#ee0000', // for file label required color
|
|
348
361
|
progressTrackColor: '#E5E8E8', // for file item progress track background color
|
|
349
362
|
extentionsRowMarginTop: '40px', // for file extentions row margin top
|
|
350
|
-
|
|
363
|
+
progressFailedColor: '#E40E00', // for file list item progress backfround color when file upload is failed
|
|
364
|
+
progressSuccessColor: '#069768', // for file list item progress background color when file upload is success
|
|
365
|
+
progressLoadingColor: '#051942', // for file list item progress background color when file upload is loading
|
|
351
366
|
listItemBackgroundColor: '#F6F8F8', // for file list item background color
|
|
367
|
+
putFileHere: 'Տեղադրել ֆայլը այստեղ', // for file place text
|
|
368
|
+
hiddenBackgroundColor: 'rgba(60, 57, 62, 0.4)', // for file place background color when hover on file place and there is a choosen file
|
|
369
|
+
listItemBackgroundErrorColor: 'rgba(255, 0, 0, 0.7)', // for file multiple mode error background color
|
|
352
370
|
}
|
|
353
371
|
};
|
|
Binary file
|
|
Binary file
|