@mirai/ui 1.1.0-f → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +109 -60
  2. package/build/components/Action/Action.js +1 -1
  3. package/build/components/Action/Action.js.map +1 -1
  4. package/build/components/Action/Action.module.css +4 -7
  5. package/build/components/Action/Action.stories.js +1 -1
  6. package/build/components/Action/Action.stories.js.map +1 -1
  7. package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +26 -40
  8. package/build/components/Button/Button.module.css +30 -33
  9. package/build/components/Button/Button.stories.js +9 -0
  10. package/build/components/Button/Button.stories.js.map +1 -1
  11. package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +21 -30
  12. package/build/components/Calendar/Calendar.Month.js +12 -8
  13. package/build/components/Calendar/Calendar.Month.js.map +1 -1
  14. package/build/components/Calendar/Calendar.Week.js +7 -10
  15. package/build/components/Calendar/Calendar.Week.js.map +1 -1
  16. package/build/components/Calendar/Calendar.js +10 -2
  17. package/build/components/Calendar/Calendar.js.map +1 -1
  18. package/build/components/Calendar/Calendar.module.css +8 -9
  19. package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +15768 -15800
  20. package/build/components/Form/Form.constants.js +1 -1
  21. package/build/components/Form/Form.constants.js.map +1 -1
  22. package/build/components/Form/Form.js +3 -1
  23. package/build/components/Form/Form.js.map +1 -1
  24. package/build/components/Form/Form.stories.js +6 -1
  25. package/build/components/Form/Form.stories.js.map +1 -1
  26. package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +9 -9
  27. package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +42 -42
  28. package/build/components/InputNumber/InputNumber.js +2 -1
  29. package/build/components/InputNumber/InputNumber.js.map +1 -1
  30. package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +138 -153
  31. package/build/components/InputOption/InputOption.js +8 -1
  32. package/build/components/InputOption/InputOption.js.map +1 -1
  33. package/build/components/InputOption/InputOption.module.css +13 -2
  34. package/build/components/InputOption/InputOption.stories.js +2 -1
  35. package/build/components/InputOption/InputOption.stories.js.map +1 -1
  36. package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +96 -90
  37. package/build/components/InputPhone/InputPhone.js +23 -20
  38. package/build/components/InputPhone/InputPhone.js.map +1 -1
  39. package/build/components/InputPhone/InputPhone.module.css +19 -6
  40. package/build/components/InputPhone/InputPhone.stories.js +3 -3
  41. package/build/components/InputPhone/InputPhone.stories.js.map +1 -1
  42. package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +410 -410
  43. package/build/components/InputPhone/helpers/index.js +11 -0
  44. package/build/components/InputPhone/helpers/index.js.map +1 -1
  45. package/build/components/InputPhone/helpers/sanitizePrefixes.js +24 -0
  46. package/build/components/InputPhone/helpers/sanitizePrefixes.js.map +1 -0
  47. package/build/components/InputSelect/InputSelect.js +3 -5
  48. package/build/components/InputSelect/InputSelect.js.map +1 -1
  49. package/build/components/InputSelect/InputSelect.stories.js +1 -0
  50. package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
  51. package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +136 -136
  52. package/build/components/InputSelect/partials/InputSelect.Expand.js +23 -0
  53. package/build/components/InputSelect/partials/InputSelect.Expand.js.map +1 -0
  54. package/build/components/InputSelect/partials/index.js +17 -0
  55. package/build/components/InputSelect/partials/index.js.map +1 -0
  56. package/build/components/InputText/InputText.js +6 -4
  57. package/build/components/InputText/InputText.js.map +1 -1
  58. package/build/components/InputText/InputText.module.css +18 -6
  59. package/build/components/InputText/InputText.stories.js +7 -2
  60. package/build/components/InputText/InputText.stories.js.map +1 -1
  61. package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +142 -143
  62. package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +72 -70
  63. package/build/components/Modal/Modal.js +15 -8
  64. package/build/components/Modal/Modal.js.map +1 -1
  65. package/build/components/Modal/Modal.module.css +30 -14
  66. package/build/components/Modal/Modal.stories.js +1 -0
  67. package/build/components/Modal/Modal.stories.js.map +1 -1
  68. package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +92 -98
  69. package/build/components/Notification/Notification.js +20 -12
  70. package/build/components/Notification/Notification.js.map +1 -1
  71. package/build/components/Notification/Notification.module.css +44 -58
  72. package/build/components/Notification/Notification.stories.js +15 -2
  73. package/build/components/Notification/Notification.stories.js.map +1 -1
  74. package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +600 -254
  75. package/build/components/Progress/Progress.js +2 -0
  76. package/build/components/Progress/Progress.js.map +1 -1
  77. package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +18 -18
  78. package/build/components/Slider/Slider.constants.js +3 -1
  79. package/build/components/Slider/Slider.constants.js.map +1 -1
  80. package/build/components/Slider/Slider.js +67 -66
  81. package/build/components/Slider/Slider.js.map +1 -1
  82. package/build/components/Slider/Slider.module.css +55 -52
  83. package/build/components/Slider/Slider.stories.js +9 -6
  84. package/build/components/Slider/Slider.stories.js.map +1 -1
  85. package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +714 -333
  86. package/build/components/Table/Table.ColumnFilter.js +17 -14
  87. package/build/components/Table/Table.ColumnFilter.js.map +1 -1
  88. package/build/components/Table/Table.Row.js +2 -1
  89. package/build/components/Table/Table.Row.js.map +1 -1
  90. package/build/components/Table/Table.constants.js +3 -1
  91. package/build/components/Table/Table.constants.js.map +1 -1
  92. package/build/components/Table/Table.js +54 -17
  93. package/build/components/Table/Table.js.map +1 -1
  94. package/build/components/Table/Table.module.css +12 -6
  95. package/build/components/Table/Table.stories.js +39 -19
  96. package/build/components/Table/Table.stories.js.map +1 -1
  97. package/build/components/Table/Table.stories.module.css +4 -5
  98. package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +221 -240
  99. package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +1725 -1085
  100. package/build/components/Table/helpers/exists.js +2 -3
  101. package/build/components/Table/helpers/exists.js.map +1 -1
  102. package/build/components/Table/helpers/select.js +24 -16
  103. package/build/components/Table/helpers/select.js.map +1 -1
  104. package/build/components/Tooltip/Tooltip.js +29 -6
  105. package/build/components/Tooltip/Tooltip.js.map +1 -1
  106. package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +51 -44
  107. package/build/components/index.js +11 -0
  108. package/build/components/index.js.map +1 -1
  109. package/build/helpers/getInputPhoneErrors.js +3 -2
  110. package/build/helpers/getInputPhoneErrors.js.map +1 -1
  111. package/build/hooks/useDevice.js +1 -1
  112. package/build/hooks/useDevice.js.map +1 -1
  113. package/build/primitives/Checkbox/Checkbox.js +4 -3
  114. package/build/primitives/Checkbox/Checkbox.js.map +1 -1
  115. package/build/primitives/Checkbox/Checkbox.module.css +42 -6
  116. package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +47 -16
  117. package/build/primitives/Icon/Icon.constants.js +43 -21
  118. package/build/primitives/Icon/Icon.constants.js.map +1 -1
  119. package/build/primitives/Icon/Icon.js +15 -5
  120. package/build/primitives/Icon/Icon.js.map +1 -1
  121. package/build/primitives/Icon/Icon.module.css +32 -19
  122. package/build/primitives/Icon/Icon.stories.js +5 -0
  123. package/build/primitives/Icon/Icon.stories.js.map +1 -1
  124. package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +291 -100
  125. package/build/primitives/Input/Input.js +9 -3
  126. package/build/primitives/Input/Input.js.map +1 -1
  127. package/build/primitives/Input/Input.stories.js +2 -0
  128. package/build/primitives/Input/Input.stories.js.map +1 -1
  129. package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +22 -0
  130. package/build/primitives/Layer/Layer.js +11 -5
  131. package/build/primitives/Layer/Layer.js.map +1 -1
  132. package/build/primitives/Layer/Layer.module.css +4 -0
  133. package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +78 -42
  134. package/build/primitives/Layer/helpers/index.js +11 -0
  135. package/build/primitives/Layer/helpers/index.js.map +1 -1
  136. package/build/primitives/Layer/helpers/isComponentFixed.js +32 -0
  137. package/build/primitives/Layer/helpers/isComponentFixed.js.map +1 -0
  138. package/build/primitives/Pressable/Pressable.constants.js +1 -1
  139. package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
  140. package/build/primitives/Pressable/Pressable.js +3 -7
  141. package/build/primitives/Pressable/Pressable.js.map +1 -1
  142. package/build/primitives/Pressable/Pressable.module.css +0 -1
  143. package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +10 -14
  144. package/build/primitives/Primitive/Primitive.js +2 -2
  145. package/build/primitives/Primitive/Primitive.js.map +1 -1
  146. package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +7 -7
  147. package/build/primitives/Primitive/helpers/index.js +0 -11
  148. package/build/primitives/Primitive/helpers/index.js.map +1 -1
  149. package/build/primitives/Radio/Radio.js +1 -1
  150. package/build/primitives/Radio/Radio.js.map +1 -1
  151. package/build/primitives/Radio/Radio.module.css +18 -2
  152. package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +21 -21
  153. package/build/primitives/ScrollView/ScrollView.js +1 -1
  154. package/build/primitives/ScrollView/ScrollView.js.map +1 -1
  155. package/build/primitives/ScrollView/ScrollView.module.css +1 -0
  156. package/build/primitives/ScrollView/ScrollView.stories.js +5 -6
  157. package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
  158. package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +20 -20
  159. package/build/primitives/Select/Select.js +13 -6
  160. package/build/primitives/Select/Select.js.map +1 -1
  161. package/build/primitives/Select/Select.stories.js +1 -0
  162. package/build/primitives/Select/Select.stories.js.map +1 -1
  163. package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +36 -0
  164. package/build/primitives/Switch/Switch.js +5 -3
  165. package/build/primitives/Switch/Switch.js.map +1 -1
  166. package/build/primitives/Switch/Switch.module.css +36 -8
  167. package/build/primitives/Switch/Switch.stories.js +1 -0
  168. package/build/primitives/Switch/Switch.stories.js.map +1 -1
  169. package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +88 -25
  170. package/build/primitives/Text/Text.js +12 -5
  171. package/build/primitives/Text/Text.js.map +1 -1
  172. package/build/primitives/Text/Text.module.css +29 -14
  173. package/build/primitives/Text/Text.stories.js +4 -0
  174. package/build/primitives/Text/Text.stories.js.map +1 -1
  175. package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +78 -38
  176. package/build/primitives/View/View.js +1 -1
  177. package/build/primitives/View/View.js.map +1 -1
  178. package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +10 -10
  179. package/build/theme/default.theme.css +54 -53
  180. package/build/theme/theme.constants.js +3 -1
  181. package/build/theme/theme.constants.js.map +1 -1
  182. package/build/theme/theme.js +34 -11
  183. package/build/theme/theme.js.map +1 -1
  184. package/package.json +4 -5
  185. package/build/primitives/Primitive/helpers/getTag.js +0 -33
  186. package/build/primitives/Primitive/helpers/getTag.js.map +0 -1
@@ -2,13 +2,13 @@
2
2
 
3
3
  exports[`component:<InputSelect> inherit:className 1`] = `
4
4
  <DocumentFragment>
5
- <ui_view
5
+ <div
6
6
  class="view inputContainer mirai"
7
7
  >
8
- <ui_view
8
+ <div
9
9
  class="view row inputBorder"
10
10
  >
11
- <ui_view
11
+ <div
12
12
  class="view wide content"
13
13
  >
14
14
  <select
@@ -41,9 +41,9 @@ exports[`component:<InputSelect> inherit:className 1`] = `
41
41
  five
42
42
  </option>
43
43
  </select>
44
- </ui_view>
45
- <ui_icon
46
- class="icon h3 icon select"
44
+ </div>
45
+ <span
46
+ class="icon headline-3 icon expand"
47
47
  >
48
48
  <svg
49
49
  fill="currentColor"
@@ -60,29 +60,29 @@ exports[`component:<InputSelect> inherit:className 1`] = `
60
60
  opacity=".87"
61
61
  />
62
62
  <path
63
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
63
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
64
64
  />
65
65
  </svg>
66
- </ui_icon>
67
- </ui_view>
68
- </ui_view>
66
+ </span>
67
+ </div>
68
+ </div>
69
69
  </DocumentFragment>
70
70
  `;
71
71
 
72
72
  exports[`component:<InputSelect> prop:caption 1`] = `
73
73
  <DocumentFragment>
74
- <ui_view
74
+ <div
75
75
  class="view inputContainer"
76
76
  >
77
- <ui_view
77
+ <div
78
78
  class="view row inputBorder"
79
79
  >
80
- <ui_text
80
+ <span
81
81
  class="text action lighten caption"
82
82
  >
83
83
  caption
84
- </ui_text>
85
- <ui_view
84
+ </span>
85
+ <div
86
86
  class="view wide content"
87
87
  >
88
88
  <select
@@ -115,9 +115,9 @@ exports[`component:<InputSelect> prop:caption 1`] = `
115
115
  five
116
116
  </option>
117
117
  </select>
118
- </ui_view>
119
- <ui_icon
120
- class="icon h3 icon select"
118
+ </div>
119
+ <span
120
+ class="icon headline-3 icon expand"
121
121
  >
122
122
  <svg
123
123
  fill="currentColor"
@@ -134,24 +134,24 @@ exports[`component:<InputSelect> prop:caption 1`] = `
134
134
  opacity=".87"
135
135
  />
136
136
  <path
137
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
137
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
138
138
  />
139
139
  </svg>
140
- </ui_icon>
141
- </ui_view>
142
- </ui_view>
140
+ </span>
141
+ </div>
142
+ </div>
143
143
  </DocumentFragment>
144
144
  `;
145
145
 
146
146
  exports[`component:<InputSelect> prop:disabled 1`] = `
147
147
  <DocumentFragment>
148
- <ui_view
148
+ <div
149
149
  class="view inputContainer"
150
150
  >
151
- <ui_view
151
+ <div
152
152
  class="view row inputBorder disabled"
153
153
  >
154
- <ui_view
154
+ <div
155
155
  class="view wide content"
156
156
  >
157
157
  <select
@@ -185,21 +185,21 @@ exports[`component:<InputSelect> prop:disabled 1`] = `
185
185
  five
186
186
  </option>
187
187
  </select>
188
- </ui_view>
189
- </ui_view>
190
- </ui_view>
188
+ </div>
189
+ </div>
190
+ </div>
191
191
  </DocumentFragment>
192
192
  `;
193
193
 
194
194
  exports[`component:<InputSelect> prop:error 1`] = `
195
195
  <DocumentFragment>
196
- <ui_view
196
+ <div
197
197
  class="view inputContainer"
198
198
  >
199
- <ui_view
199
+ <div
200
200
  class="view row inputBorder"
201
201
  >
202
- <ui_view
202
+ <div
203
203
  class="view wide content"
204
204
  >
205
205
  <select
@@ -232,9 +232,9 @@ exports[`component:<InputSelect> prop:error 1`] = `
232
232
  five
233
233
  </option>
234
234
  </select>
235
- </ui_view>
236
- <ui_icon
237
- class="icon h3 icon select"
235
+ </div>
236
+ <span
237
+ class="icon headline-3 icon expand"
238
238
  >
239
239
  <svg
240
240
  fill="currentColor"
@@ -251,24 +251,24 @@ exports[`component:<InputSelect> prop:error 1`] = `
251
251
  opacity=".87"
252
252
  />
253
253
  <path
254
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
254
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
255
255
  />
256
256
  </svg>
257
- </ui_icon>
258
- </ui_view>
259
- </ui_view>
257
+ </span>
258
+ </div>
259
+ </div>
260
260
  </DocumentFragment>
261
261
  `;
262
262
 
263
263
  exports[`component:<InputSelect> prop:hint 1`] = `
264
264
  <DocumentFragment>
265
- <ui_view
265
+ <div
266
266
  class="view inputContainer"
267
267
  >
268
- <ui_view
268
+ <div
269
269
  class="view row inputBorder"
270
270
  >
271
- <ui_view
271
+ <div
272
272
  class="view wide content"
273
273
  >
274
274
  <select
@@ -301,9 +301,9 @@ exports[`component:<InputSelect> prop:hint 1`] = `
301
301
  five
302
302
  </option>
303
303
  </select>
304
- </ui_view>
305
- <ui_icon
306
- class="icon h3 icon select"
304
+ </div>
305
+ <span
306
+ class="icon headline-3 icon expand"
307
307
  >
308
308
  <svg
309
309
  fill="currentColor"
@@ -320,36 +320,36 @@ exports[`component:<InputSelect> prop:hint 1`] = `
320
320
  opacity=".87"
321
321
  />
322
322
  <path
323
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
323
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
324
324
  />
325
325
  </svg>
326
- </ui_icon>
327
- </ui_view>
328
- <ui_text
326
+ </span>
327
+ </div>
328
+ <span
329
329
  class="text small text hint"
330
330
  >
331
331
  hint
332
- </ui_text>
333
- </ui_view>
332
+ </span>
333
+ </div>
334
334
  </DocumentFragment>
335
335
  `;
336
336
 
337
337
  exports[`component:<InputSelect> prop:label 1`] = `
338
338
  <DocumentFragment>
339
- <ui_view
339
+ <div
340
340
  class="view inputContainer"
341
341
  >
342
- <ui_view
342
+ <div
343
343
  class="view row inputBorder"
344
344
  >
345
- <ui_view
345
+ <div
346
346
  class="view wide content"
347
347
  >
348
- <ui_text
348
+ <span
349
349
  class="text paragraph text label"
350
350
  >
351
351
  label
352
- </ui_text>
352
+ </span>
353
353
  <select
354
354
  class="select empty input withLabel empty"
355
355
  name="name"
@@ -380,9 +380,9 @@ exports[`component:<InputSelect> prop:label 1`] = `
380
380
  five
381
381
  </option>
382
382
  </select>
383
- </ui_view>
384
- <ui_icon
385
- class="icon h3 icon select"
383
+ </div>
384
+ <span
385
+ class="icon headline-3 icon expand"
386
386
  >
387
387
  <svg
388
388
  fill="currentColor"
@@ -399,27 +399,27 @@ exports[`component:<InputSelect> prop:label 1`] = `
399
399
  opacity=".87"
400
400
  />
401
401
  <path
402
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
402
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
403
403
  />
404
404
  </svg>
405
- </ui_icon>
406
- </ui_view>
407
- </ui_view>
405
+ </span>
406
+ </div>
407
+ </div>
408
408
  </DocumentFragment>
409
409
  `;
410
410
 
411
411
  exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] = `
412
412
  <DocumentFragment>
413
- <ui_view
413
+ <div
414
414
  class="view inputContainer"
415
415
  >
416
- <ui_view
416
+ <div
417
417
  class="view row inputBorder"
418
418
  >
419
- <ui_view
419
+ <div
420
420
  class="view wide content"
421
421
  >
422
- <ui_text
422
+ <span
423
423
  class="text paragraph text label"
424
424
  >
425
425
  label
@@ -428,7 +428,7 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
428
428
  >
429
429
  *
430
430
  </span>
431
- </ui_text>
431
+ </span>
432
432
  <select
433
433
  class="select empty input withLabel empty"
434
434
  name="name"
@@ -460,9 +460,9 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
460
460
  five
461
461
  </option>
462
462
  </select>
463
- </ui_view>
464
- <ui_icon
465
- class="icon h3 icon select"
463
+ </div>
464
+ <span
465
+ class="icon headline-3 icon expand"
466
466
  >
467
467
  <svg
468
468
  fill="currentColor"
@@ -479,31 +479,31 @@ exports[`component:<InputSelect> prop:required & prop:showRequired (true) 1`] =
479
479
  opacity=".87"
480
480
  />
481
481
  <path
482
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
482
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
483
483
  />
484
484
  </svg>
485
- </ui_icon>
486
- </ui_view>
487
- </ui_view>
485
+ </span>
486
+ </div>
487
+ </div>
488
488
  </DocumentFragment>
489
489
  `;
490
490
 
491
491
  exports[`component:<InputSelect> prop:required 1`] = `
492
492
  <DocumentFragment>
493
- <ui_view
493
+ <div
494
494
  class="view inputContainer"
495
495
  >
496
- <ui_view
496
+ <div
497
497
  class="view row inputBorder"
498
498
  >
499
- <ui_view
499
+ <div
500
500
  class="view wide content"
501
501
  >
502
- <ui_text
502
+ <span
503
503
  class="text paragraph text label"
504
504
  >
505
505
  label
506
- </ui_text>
506
+ </span>
507
507
  <select
508
508
  class="select empty input withLabel empty"
509
509
  name="name"
@@ -535,9 +535,9 @@ exports[`component:<InputSelect> prop:required 1`] = `
535
535
  five
536
536
  </option>
537
537
  </select>
538
- </ui_view>
539
- <ui_icon
540
- class="icon h3 icon select"
538
+ </div>
539
+ <span
540
+ class="icon headline-3 icon expand"
541
541
  >
542
542
  <svg
543
543
  fill="currentColor"
@@ -554,24 +554,24 @@ exports[`component:<InputSelect> prop:required 1`] = `
554
554
  opacity=".87"
555
555
  />
556
556
  <path
557
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
557
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
558
558
  />
559
559
  </svg>
560
- </ui_icon>
561
- </ui_view>
562
- </ui_view>
560
+ </span>
561
+ </div>
562
+ </div>
563
563
  </DocumentFragment>
564
564
  `;
565
565
 
566
566
  exports[`component:<InputSelect> prop:success 1`] = `
567
567
  <DocumentFragment>
568
- <ui_view
568
+ <div
569
569
  class="view inputContainer"
570
570
  >
571
- <ui_view
571
+ <div
572
572
  class="view row inputBorder disabled"
573
573
  >
574
- <ui_view
574
+ <div
575
575
  class="view wide content"
576
576
  >
577
577
  <select
@@ -605,21 +605,21 @@ exports[`component:<InputSelect> prop:success 1`] = `
605
605
  five
606
606
  </option>
607
607
  </select>
608
- </ui_view>
609
- </ui_view>
610
- </ui_view>
608
+ </div>
609
+ </div>
610
+ </div>
611
611
  </DocumentFragment>
612
612
  `;
613
613
 
614
614
  exports[`component:<InputSelect> prop:value 1`] = `
615
615
  <DocumentFragment>
616
- <ui_view
616
+ <div
617
617
  class="view inputContainer"
618
618
  >
619
- <ui_view
619
+ <div
620
620
  class="view row inputBorder"
621
621
  >
622
- <ui_view
622
+ <div
623
623
  class="view wide content"
624
624
  >
625
625
  <select
@@ -652,9 +652,9 @@ exports[`component:<InputSelect> prop:value 1`] = `
652
652
  five
653
653
  </option>
654
654
  </select>
655
- </ui_view>
656
- <ui_icon
657
- class="icon h3 icon select"
655
+ </div>
656
+ <span
657
+ class="icon headline-3 icon expand"
658
658
  >
659
659
  <svg
660
660
  fill="currentColor"
@@ -671,24 +671,24 @@ exports[`component:<InputSelect> prop:value 1`] = `
671
671
  opacity=".87"
672
672
  />
673
673
  <path
674
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
674
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
675
675
  />
676
676
  </svg>
677
- </ui_icon>
678
- </ui_view>
679
- </ui_view>
677
+ </span>
678
+ </div>
679
+ </div>
680
680
  </DocumentFragment>
681
681
  `;
682
682
 
683
683
  exports[`component:<InputSelect> prop:warning 1`] = `
684
684
  <DocumentFragment>
685
- <ui_view
685
+ <div
686
686
  class="view inputContainer"
687
687
  >
688
- <ui_view
688
+ <div
689
689
  class="view row inputBorder"
690
690
  >
691
- <ui_view
691
+ <div
692
692
  class="view wide content"
693
693
  >
694
694
  <select
@@ -721,9 +721,9 @@ exports[`component:<InputSelect> prop:warning 1`] = `
721
721
  five
722
722
  </option>
723
723
  </select>
724
- </ui_view>
725
- <ui_icon
726
- class="icon h3 icon select"
724
+ </div>
725
+ <span
726
+ class="icon headline-3 icon expand"
727
727
  >
728
728
  <svg
729
729
  fill="currentColor"
@@ -740,12 +740,12 @@ exports[`component:<InputSelect> prop:warning 1`] = `
740
740
  opacity=".87"
741
741
  />
742
742
  <path
743
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
743
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
744
744
  />
745
745
  </svg>
746
- </ui_icon>
747
- <ui_icon
748
- class="icon h3 icon warning"
746
+ </span>
747
+ <span
748
+ class="icon headline-3 icon warning"
749
749
  >
750
750
  <svg
751
751
  fill="currentColor"
@@ -757,24 +757,24 @@ exports[`component:<InputSelect> prop:warning 1`] = `
757
757
  xmlns="http://www.w3.org/2000/svg"
758
758
  >
759
759
  <path
760
- d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
760
+ d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
761
761
  />
762
762
  </svg>
763
- </ui_icon>
764
- </ui_view>
765
- </ui_view>
763
+ </span>
764
+ </div>
765
+ </div>
766
766
  </DocumentFragment>
767
767
  `;
768
768
 
769
769
  exports[`component:<InputSelect> renders 1`] = `
770
770
  <DocumentFragment>
771
- <ui_view
771
+ <div
772
772
  class="view inputContainer"
773
773
  >
774
- <ui_view
774
+ <div
775
775
  class="view row inputBorder"
776
776
  >
777
- <ui_view
777
+ <div
778
778
  class="view wide content"
779
779
  >
780
780
  <select
@@ -807,9 +807,9 @@ exports[`component:<InputSelect> renders 1`] = `
807
807
  five
808
808
  </option>
809
809
  </select>
810
- </ui_view>
811
- <ui_icon
812
- class="icon h3 icon select"
810
+ </div>
811
+ <span
812
+ class="icon headline-3 icon expand"
813
813
  >
814
814
  <svg
815
815
  fill="currentColor"
@@ -826,24 +826,24 @@ exports[`component:<InputSelect> renders 1`] = `
826
826
  opacity=".87"
827
827
  />
828
828
  <path
829
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
829
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
830
830
  />
831
831
  </svg>
832
- </ui_icon>
833
- </ui_view>
834
- </ui_view>
832
+ </span>
833
+ </div>
834
+ </div>
835
835
  </DocumentFragment>
836
836
  `;
837
837
 
838
838
  exports[`component:<InputSelect> testId 1`] = `
839
839
  <DocumentFragment>
840
- <ui_view
840
+ <div
841
841
  class="view inputContainer"
842
842
  >
843
- <ui_view
843
+ <div
844
844
  class="view row inputBorder"
845
845
  >
846
- <ui_view
846
+ <div
847
847
  class="view wide content"
848
848
  >
849
849
  <select
@@ -877,9 +877,9 @@ exports[`component:<InputSelect> testId 1`] = `
877
877
  five
878
878
  </option>
879
879
  </select>
880
- </ui_view>
881
- <ui_icon
882
- class="icon h3 icon select"
880
+ </div>
881
+ <span
882
+ class="icon headline-3 icon expand"
883
883
  >
884
884
  <svg
885
885
  fill="currentColor"
@@ -896,11 +896,11 @@ exports[`component:<InputSelect> testId 1`] = `
896
896
  opacity=".87"
897
897
  />
898
898
  <path
899
- d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
899
+ d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
900
900
  />
901
901
  </svg>
902
- </ui_icon>
903
- </ui_view>
904
- </ui_view>
902
+ </span>
903
+ </div>
904
+ </div>
905
905
  </DocumentFragment>
906
906
  `;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Expand = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _helpers = require("../../../helpers");
9
+ var _primitives = require("../../../primitives");
10
+ var _theme = require("../../../theme");
11
+ var _InputTextModule = _interopRequireDefault(require("../../InputText/InputText.module.css"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ var Expand = function Expand() {
14
+ var defaultDirection = _theme.Theme.getDirection() === _theme.DIRECTION_TYPE.LEFT;
15
+ return /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
16
+ value: _primitives.ICON.EXPAND_MORE,
17
+ className: (0, _helpers.styles)(_InputTextModule.default.icon, _InputTextModule.default.expand, !defaultDirection && _InputTextModule.default.reverse)
18
+ });
19
+ };
20
+ exports.Expand = Expand;
21
+ Expand.displayName = 'Component:InputSelect.Expand';
22
+ Expand.propTypes = {};
23
+ //# sourceMappingURL=InputSelect.Expand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputSelect.Expand.js","names":["Expand","defaultDirection","Theme","getDirection","DIRECTION_TYPE","LEFT","ICON","EXPAND_MORE","styles","style","icon","expand","reverse","displayName","propTypes"],"sources":["../../../../src/components/InputSelect/partials/InputSelect.Expand.jsx"],"sourcesContent":["import React from 'react';\n\nimport { styles } from '../../../helpers';\nimport { Icon, ICON } from '../../../primitives';\nimport { DIRECTION_TYPE, Theme } from '../../../theme';\nimport style from '../../InputText/InputText.module.css';\n\nconst Expand = () => {\n const defaultDirection = Theme.getDirection() === DIRECTION_TYPE.LEFT;\n\n return (\n <Icon value={ICON.EXPAND_MORE} className={styles(style.icon, style.expand, !defaultDirection && style.reverse)} />\n );\n};\n\nExpand.displayName = 'Component:InputSelect.Expand';\n\nExpand.propTypes = {};\n\nexport { Expand };\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AAAyD;AAEzD,IAAMA,MAAM,GAAG,SAATA,MAAM,GAAS;EACnB,IAAMC,gBAAgB,GAAGC,YAAK,CAACC,YAAY,EAAE,KAAKC,qBAAc,CAACC,IAAI;EAErE,oBACE,6BAAC,gBAAI;IAAC,KAAK,EAAEC,gBAAI,CAACC,WAAY;IAAC,SAAS,EAAE,IAAAC,eAAM,EAACC,wBAAK,CAACC,IAAI,EAAED,wBAAK,CAACE,MAAM,EAAE,CAACV,gBAAgB,IAAIQ,wBAAK,CAACG,OAAO;EAAE,EAAG;AAEtH,CAAC;AAAC;AAEFZ,MAAM,CAACa,WAAW,GAAG,8BAA8B;AAEnDb,MAAM,CAACc,SAAS,GAAG,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _InputSelect = require("./InputSelect.Expand");
7
+ Object.keys(_InputSelect).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _InputSelect[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _InputSelect[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/InputSelect/partials/index.js"],"sourcesContent":["export * from './InputSelect.Expand';\n"],"mappings":";;;;;AAAA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}