@uxf/ui 1.0.0-beta.99 → 10.0.0-beta.4

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 (577) hide show
  1. package/README.md +4 -0
  2. package/_file-input-base/file-input-base.d.ts +12 -0
  3. package/_file-input-base/file-input-base.js +32 -0
  4. package/_file-input-base/index.d.ts +2 -0
  5. package/_file-input-base/index.js +5 -0
  6. package/_input-with-popover/index.d.ts +2 -0
  7. package/_input-with-popover/index.js +5 -0
  8. package/_input-with-popover/input-with-popover.d.ts +27 -0
  9. package/_input-with-popover/input-with-popover.js +89 -0
  10. package/_private-utils/get-provider-config.js +1 -0
  11. package/_select-base/_select-base.d.ts +53 -0
  12. package/_select-base/_select-base.js +94 -0
  13. package/_select-base/index.d.ts +2 -0
  14. package/_select-base/index.js +5 -0
  15. package/avatar/avatar.js +25 -5
  16. package/avatar/avatar.spec.js +2 -2
  17. package/avatar/avatar.stories.d.ts +1 -1
  18. package/avatar/index.d.ts +2 -1
  19. package/avatar/index.js +3 -15
  20. package/avatar-file-input/avatar-file-input.d.ts +5 -30
  21. package/avatar-file-input/avatar-file-input.js +12 -34
  22. package/avatar-file-input/avatar-file-input.spec.d.ts +1 -0
  23. package/avatar-file-input/avatar-file-input.spec.js +9 -0
  24. package/avatar-file-input/avatar-file-input.stories.d.ts +1 -1
  25. package/avatar-file-input/avatar-file-input.stories.js +44 -18
  26. package/avatar-file-input/index.d.ts +2 -1
  27. package/avatar-file-input/index.js +3 -15
  28. package/badge/badge.d.ts +1 -1
  29. package/badge/badge.js +25 -5
  30. package/badge/badge.spec.d.ts +1 -0
  31. package/badge/badge.spec.js +9 -0
  32. package/badge/badge.stories.d.ts +1 -1
  33. package/badge/index.d.ts +3 -1
  34. package/badge/index.js +3 -15
  35. package/badge/theme.d.ts +1 -0
  36. package/button/button.d.ts +3 -3
  37. package/button/button.js +26 -8
  38. package/button/button.spec.d.ts +1 -0
  39. package/button/button.spec.js +9 -0
  40. package/button/button.stories.d.ts +2 -6
  41. package/button/button.stories.js +19 -17
  42. package/button/index.d.ts +3 -1
  43. package/button/index.js +3 -15
  44. package/button/theme.d.ts +3 -0
  45. package/button-group/button-group.d.ts +6 -0
  46. package/button-group/button-group.js +13 -0
  47. package/button-group/button-group.spec.d.ts +1 -0
  48. package/button-group/button-group.spec.js +9 -0
  49. package/button-group/button-group.stories.d.ts +7 -0
  50. package/button-group/button-group.stories.js +40 -0
  51. package/button-group/index.d.ts +2 -0
  52. package/button-group/index.js +5 -0
  53. package/button-list/button-list.d.ts +21 -0
  54. package/button-list/button-list.js +77 -0
  55. package/button-list/button-list.spec.d.ts +1 -0
  56. package/button-list/button-list.spec.js +9 -0
  57. package/button-list/button-list.stories.d.ts +7 -0
  58. package/button-list/button-list.stories.js +55 -0
  59. package/button-list/index.d.ts +2 -0
  60. package/button-list/index.js +5 -0
  61. package/calendar/calendar-day-cell.d.ts +7 -0
  62. package/{date-picker-input/date-picker-day.js → calendar/calendar-day-cell.js} +8 -9
  63. package/calendar/calendar-provider.d.ts +6 -0
  64. package/{date-picker-input/date-picker-provider.js → calendar/calendar-provider.js} +9 -9
  65. package/calendar/calendar.d.ts +7 -0
  66. package/calendar/calendar.js +53 -0
  67. package/calendar/calendar.stories.d.ts +10 -0
  68. package/calendar/calendar.stories.js +49 -0
  69. package/calendar/index.d.ts +1 -0
  70. package/{form-control → calendar}/index.js +1 -1
  71. package/checkbox/checkbox.d.ts +6 -7
  72. package/checkbox/checkbox.js +48 -13
  73. package/checkbox/checkbox.spec.js +2 -4
  74. package/checkbox/checkbox.stories.d.ts +2 -2
  75. package/checkbox/checkbox.stories.js +8 -6
  76. package/checkbox/index.d.ts +3 -1
  77. package/checkbox/index.js +3 -15
  78. package/{checkbox-visual → checkbox}/theme.d.ts +1 -0
  79. package/checkbox-button/checkbox-button.d.ts +3 -2
  80. package/checkbox-button/checkbox-button.js +26 -6
  81. package/checkbox-button/checkbox-button.spec.js +2 -3
  82. package/checkbox-button/checkbox-button.stories.d.ts +1 -1
  83. package/checkbox-button/checkbox-button.stories.js +8 -18
  84. package/checkbox-button/index.d.ts +2 -1
  85. package/checkbox-button/index.js +3 -15
  86. package/checkbox-input/checkbox-input.d.ts +12 -0
  87. package/checkbox-input/checkbox-input.js +37 -0
  88. package/checkbox-input/checkbox-input.spec.d.ts +1 -0
  89. package/checkbox-input/checkbox-input.spec.js +9 -0
  90. package/{checkbox-visual/checkbox-visual.stories.d.ts → checkbox-input/checkbox-input.stories.d.ts} +2 -2
  91. package/{checkbox-visual/checkbox-visual.stories.js → checkbox-input/checkbox-input.stories.js} +9 -7
  92. package/checkbox-input/index.d.ts +2 -0
  93. package/checkbox-input/index.js +5 -0
  94. package/chip/chip.d.ts +8 -5
  95. package/chip/chip.js +31 -10
  96. package/chip/chip.stories.d.ts +2 -6
  97. package/chip/chip.stories.js +28 -11
  98. package/chip/theme.d.ts +12 -4
  99. package/color-radio/color-radio.d.ts +12 -0
  100. package/color-radio/color-radio.js +65 -0
  101. package/color-radio/color-radio.spec.d.ts +1 -0
  102. package/color-radio/color-radio.spec.js +9 -0
  103. package/color-radio/color-radio.stories.d.ts +7 -0
  104. package/color-radio/color-radio.stories.js +31 -0
  105. package/color-radio/index.d.ts +2 -0
  106. package/color-radio/index.js +5 -0
  107. package/color-radio-group/color-radio-group.d.ts +3 -2
  108. package/color-radio-group/color-radio-group.js +12 -10
  109. package/color-radio-group/color-radio-group.spec.d.ts +1 -0
  110. package/color-radio-group/color-radio-group.spec.js +9 -0
  111. package/color-radio-group/color-radio-group.stories.d.ts +1 -1
  112. package/color-radio-group/color-radio-group.stories.js +4 -2
  113. package/color-radio-group/index.d.ts +2 -1
  114. package/color-radio-group/index.js +3 -15
  115. package/color-scheme/index.d.ts +1 -0
  116. package/color-scheme/index.js +3 -1
  117. package/color-scheme/use-color-scheme.d.ts +1 -0
  118. package/color-scheme/use-color-scheme.js +19 -0
  119. package/combobox/combobox.d.ts +19 -20
  120. package/combobox/combobox.js +19 -31
  121. package/combobox/combobox.spec.d.ts +1 -0
  122. package/combobox/combobox.spec.js +10 -0
  123. package/combobox/combobox.stories.d.ts +7 -4
  124. package/combobox/combobox.stories.js +25 -12
  125. package/combobox/index.d.ts +2 -1
  126. package/combobox/index.js +3 -15
  127. package/config/icons-config.d.ts +1 -1
  128. package/config/icons-config.js +1 -1
  129. package/config/icons.d.ts +41 -1
  130. package/config/icons.js +8 -0
  131. package/content/types.d.ts +3 -3
  132. package/context/context.d.ts +2 -1
  133. package/context/provider.d.ts +1 -1
  134. package/context/provider.js +3 -0
  135. package/context/use-component-context.d.ts +1 -1
  136. package/css/avatar-file-input.css +80 -5
  137. package/css/badge.css +1 -1
  138. package/css/button-group.css +22 -0
  139. package/css/button-list.css +61 -0
  140. package/css/button.css +141 -27
  141. package/css/calendar.css +215 -0
  142. package/css/checkbox-button.css +8 -8
  143. package/css/checkbox-input.css +24 -0
  144. package/css/checkbox.css +33 -60
  145. package/css/chip.css +499 -79
  146. package/css/color-radio-group.css +1 -1
  147. package/css/color-radio.css +17 -5
  148. package/css/date-picker.css +13 -81
  149. package/css/datetime-picker.css +11 -0
  150. package/css/dropdown.css +53 -7
  151. package/css/dropzone.css +85 -0
  152. package/css/error-message.css +1 -1
  153. package/css/file-input.css +80 -0
  154. package/css/flash-messages.css +6 -6
  155. package/css/{form-control.css → form-component.css} +1 -1
  156. package/css/image-gallery.css +59 -0
  157. package/css/input-with-popover.css +35 -0
  158. package/css/input.css +89 -24
  159. package/css/list-item.css +2 -2
  160. package/css/loader.css +13 -1
  161. package/css/modal.css +65 -0
  162. package/css/multi-combobox.css +49 -11
  163. package/css/multi-select.css +27 -0
  164. package/css/pagination.css +70 -5
  165. package/css/radio-group.css +42 -33
  166. package/css/radio.css +9 -13
  167. package/css/select-base.css +50 -0
  168. package/css/tabs.css +8 -8
  169. package/css/text-link.css +2 -2
  170. package/css/textarea.css +17 -10
  171. package/css/time-picker.css +8 -3
  172. package/css/toggle.css +5 -5
  173. package/css/tooltip.css +7 -0
  174. package/date-picker/date-picker-content.d.ts +2 -0
  175. package/{date-picker-input/date-picker.js → date-picker/date-picker-content.js} +5 -3
  176. package/{date-picker-input → date-picker}/date-picker-decade.js +12 -10
  177. package/{date-picker-input → date-picker}/date-picker-month.js +21 -15
  178. package/date-picker/date-picker-navigation.d.ts +9 -0
  179. package/date-picker/date-picker-navigation.js +19 -0
  180. package/{date-picker-input → date-picker}/date-picker-year.js +16 -11
  181. package/date-picker/date-picker.d.ts +10 -0
  182. package/date-picker/date-picker.js +27 -0
  183. package/date-picker/date-picker.spec.d.ts +1 -0
  184. package/date-picker/date-picker.spec.js +9 -0
  185. package/date-picker/date-picker.stories.d.ts +7 -0
  186. package/date-picker/date-picker.stories.js +43 -0
  187. package/date-picker/index.d.ts +3 -0
  188. package/date-picker/index.js +5 -0
  189. package/date-picker/types.d.ts +1 -0
  190. package/date-picker-input/date-picker-input.d.ts +9 -18
  191. package/date-picker-input/date-picker-input.js +54 -59
  192. package/date-picker-input/date-picker-input.spec.d.ts +1 -0
  193. package/date-picker-input/date-picker-input.spec.js +9 -0
  194. package/date-picker-input/date-picker-input.stories.d.ts +1 -8
  195. package/date-picker-input/date-picker-input.stories.js +9 -14
  196. package/date-picker-input/index.d.ts +2 -3
  197. package/date-picker-input/index.js +6 -17
  198. package/datetime-picker/datetime-picker.d.ts +13 -0
  199. package/datetime-picker/datetime-picker.js +94 -0
  200. package/datetime-picker/datetime-picker.spec.d.ts +1 -0
  201. package/datetime-picker/datetime-picker.spec.js +9 -0
  202. package/datetime-picker/datetime-picker.stories.d.ts +7 -0
  203. package/datetime-picker/datetime-picker.stories.js +43 -0
  204. package/datetime-picker/index.d.ts +2 -0
  205. package/datetime-picker/index.js +7 -0
  206. package/datetime-picker-input/datetime-picker-input.d.ts +12 -0
  207. package/datetime-picker-input/datetime-picker-input.js +81 -0
  208. package/datetime-picker-input/datetime-picker-input.spec.d.ts +1 -0
  209. package/datetime-picker-input/datetime-picker-input.spec.js +9 -0
  210. package/datetime-picker-input/datetime-picker-input.stories.d.ts +7 -0
  211. package/datetime-picker-input/datetime-picker-input.stories.js +49 -0
  212. package/datetime-picker-input/index.d.ts +2 -0
  213. package/datetime-picker-input/index.js +7 -0
  214. package/dropdown/dropdown.d.ts +4 -4
  215. package/dropdown/dropdown.js +27 -6
  216. package/dropdown/dropdown.spec.d.ts +1 -0
  217. package/dropdown/dropdown.spec.js +9 -0
  218. package/dropdown/dropdown.stories.d.ts +2 -2
  219. package/dropdown/index.d.ts +2 -1
  220. package/dropdown/index.js +3 -15
  221. package/dropzone/dropzone-input.d.ts +19 -0
  222. package/dropzone/dropzone-input.js +121 -0
  223. package/dropzone/dropzone-list.d.ts +10 -0
  224. package/dropzone/dropzone-list.js +92 -0
  225. package/dropzone/dropzone.spec.d.ts +1 -0
  226. package/dropzone/dropzone.spec.js +9 -0
  227. package/dropzone/dropzone.stories.d.ts +10 -0
  228. package/dropzone/dropzone.stories.js +63 -0
  229. package/dropzone/index.d.ts +6 -0
  230. package/dropzone/index.js +6 -0
  231. package/dropzone/types.d.ts +10 -0
  232. package/dropzone/types.js +2 -0
  233. package/error-message/error-message.d.ts +3 -4
  234. package/error-message/error-message.js +3 -2
  235. package/error-message/error-message.spec.d.ts +1 -0
  236. package/error-message/error-message.spec.js +9 -0
  237. package/error-message/error-message.stories.d.ts +3 -4
  238. package/error-message/index.d.ts +1 -1
  239. package/error-message/index.js +3 -15
  240. package/file-input/file-input.d.ts +12 -0
  241. package/file-input/file-input.js +75 -0
  242. package/file-input/file-input.spec.d.ts +1 -0
  243. package/file-input/file-input.spec.js +9 -0
  244. package/file-input/file-input.stories.d.ts +7 -0
  245. package/file-input/file-input.stories.js +50 -0
  246. package/file-input/index.d.ts +2 -0
  247. package/file-input/index.js +5 -0
  248. package/flash-messages/flash-message.d.ts +1 -1
  249. package/flash-messages/flash-message.js +1 -0
  250. package/flash-messages/flash-messages.js +1 -1
  251. package/flash-messages/flash-messages.spec.d.ts +1 -0
  252. package/flash-messages/flash-messages.spec.js +9 -0
  253. package/flash-messages/flash-messages.stories.d.ts +1 -1
  254. package/flash-messages/flash-messages.stories.js +12 -7
  255. package/flash-messages/index.d.ts +3 -0
  256. package/flash-messages/index.js +8 -0
  257. package/{form-control/form-control.d.ts → form-component/form-component.d.ts} +2 -2
  258. package/form-component/form-component.js +41 -0
  259. package/form-component/form-component.spec.d.ts +1 -0
  260. package/form-component/form-component.spec.js +9 -0
  261. package/{form-control/form-control.stories.d.ts → form-component/form-component.stories.d.ts} +2 -2
  262. package/form-component/form-component.stories.js +25 -0
  263. package/form-component/index.d.ts +2 -0
  264. package/form-component/index.js +5 -0
  265. package/hooks/use-async-loading.d.ts +4 -0
  266. package/hooks/use-async-loading.js +32 -0
  267. package/hooks/use-dropdown.d.ts +32 -2
  268. package/hooks/use-dropdown.js +4 -6
  269. package/hooks/use-input-submit.d.ts +1 -1
  270. package/icon/icon.d.ts +3 -3
  271. package/icon/icon.js +25 -5
  272. package/icon/icon.spec.d.ts +1 -0
  273. package/icon/icon.spec.js +10 -0
  274. package/icon/icon.stories.d.ts +6 -10
  275. package/icon/icon.stories.js +2 -2
  276. package/icon/index.d.ts +2 -1
  277. package/icon/index.js +3 -15
  278. package/icon/types.d.ts +1 -1
  279. package/image-gallery/components/arrow-button.d.ts +7 -0
  280. package/image-gallery/components/{previous-button.js → arrow-button.js} +7 -5
  281. package/image-gallery/components/close-button.d.ts +4 -3
  282. package/image-gallery/components/close-button.js +9 -5
  283. package/image-gallery/components/dot.d.ts +3 -3
  284. package/image-gallery/components/dot.js +6 -4
  285. package/image-gallery/components/gallery.d.ts +4 -3
  286. package/image-gallery/components/gallery.js +20 -20
  287. package/image-gallery/context.d.ts +1 -1
  288. package/image-gallery/image-gallery.d.ts +4 -4
  289. package/image-gallery/image-gallery.js +7 -8
  290. package/image-gallery/image-gallery.spec.d.ts +1 -0
  291. package/image-gallery/image-gallery.spec.js +9 -0
  292. package/image-gallery/image-gallery.stories.d.ts +5 -4
  293. package/image-gallery/image-gallery.stories.js +21 -10
  294. package/image-gallery/image.d.ts +2 -3
  295. package/image-gallery/image.js +8 -4
  296. package/image-gallery/index.d.ts +6 -4
  297. package/image-gallery/index.js +6 -24
  298. package/image-gallery/types.d.ts +4 -2
  299. package/image-gallery/use-image.js +3 -2
  300. package/input/index.d.ts +9 -8
  301. package/input/index.js +4 -2
  302. package/input/input-element.d.ts +2 -1
  303. package/input/input-element.js +28 -6
  304. package/input/input-left-addon.d.ts +3 -7
  305. package/input/input-left-addon.js +6 -4
  306. package/input/input-left-element.d.ts +3 -7
  307. package/input/input-left-element.js +3 -3
  308. package/input/input-remove-button.d.ts +5 -0
  309. package/input/input-remove-button.js +29 -0
  310. package/input/input-right-addon.d.ts +2 -5
  311. package/input/input-right-addon.js +6 -4
  312. package/input/input-right-element.d.ts +3 -7
  313. package/input/input-right-element.js +3 -3
  314. package/input/input.d.ts +11 -1
  315. package/input/input.js +23 -23
  316. package/input/input.spec.d.ts +1 -0
  317. package/input/input.spec.js +10 -0
  318. package/input/input.stories.d.ts +10 -9
  319. package/input/input.stories.js +13 -10
  320. package/input/theme.d.ts +2 -0
  321. package/label/index.d.ts +2 -1
  322. package/label/index.js +3 -15
  323. package/label/label.js +28 -6
  324. package/label/label.spec.d.ts +1 -0
  325. package/label/label.spec.js +9 -0
  326. package/label/label.stories.d.ts +1 -1
  327. package/layout/index.d.ts +2 -1
  328. package/layout/index.js +3 -15
  329. package/layout/layout.js +5 -4
  330. package/layout/layout.spec.d.ts +1 -0
  331. package/layout/layout.spec.js +9 -0
  332. package/layout/layout.stories.d.ts +1 -1
  333. package/list-item/index.d.ts +2 -1
  334. package/list-item/index.js +3 -15
  335. package/list-item/list-item.js +25 -5
  336. package/list-item/list-item.spec.d.ts +1 -0
  337. package/list-item/list-item.spec.js +9 -0
  338. package/list-item/list-item.stories.d.ts +1 -1
  339. package/list-item/list-item.stories.js +7 -5
  340. package/loader/index.d.ts +2 -0
  341. package/loader/index.js +5 -0
  342. package/loader/loader.d.ts +5 -2
  343. package/loader/loader.js +27 -6
  344. package/loader/loader.spec.d.ts +1 -0
  345. package/loader/loader.spec.js +9 -0
  346. package/loader/loader.stories.d.ts +2 -2
  347. package/loader/loader.stories.js +4 -3
  348. package/modal/index.d.ts +3 -0
  349. package/modal/index.js +9 -0
  350. package/modal/modal-dialog.d.ts +11 -0
  351. package/modal/modal-dialog.js +38 -0
  352. package/modal/modal-service.d.ts +5 -0
  353. package/modal/modal-service.js +21 -0
  354. package/modal/modal.d.ts +14 -0
  355. package/modal/modal.js +51 -0
  356. package/modal/modal.spec.d.ts +1 -0
  357. package/modal/modal.spec.js +9 -0
  358. package/modal/modal.stories.d.ts +7 -0
  359. package/modal/modal.stories.js +50 -0
  360. package/modal/theme.d.ts +5 -0
  361. package/modal/theme.js +2 -0
  362. package/multi-combobox/_multi-combobox-base.d.ts +8 -0
  363. package/multi-combobox/_multi-combobox-base.js +112 -0
  364. package/multi-combobox/index.d.ts +2 -0
  365. package/multi-combobox/index.js +5 -0
  366. package/multi-combobox/multi-combobox.d.ts +3 -0
  367. package/multi-combobox/multi-combobox.js +67 -0
  368. package/multi-combobox/multi-combobox.spec.d.ts +1 -0
  369. package/multi-combobox/multi-combobox.spec.js +10 -0
  370. package/multi-combobox/multi-combobox.stories.d.ts +10 -0
  371. package/multi-combobox/multi-combobox.stories.js +86 -0
  372. package/multi-combobox/types.d.ts +36 -0
  373. package/multi-combobox/types.js +2 -0
  374. package/multi-select/_multi-select-base.d.ts +8 -0
  375. package/multi-select/_multi-select-base.js +77 -0
  376. package/multi-select/index.d.ts +2 -0
  377. package/multi-select/index.js +5 -0
  378. package/multi-select/multi-select.d.ts +3 -0
  379. package/multi-select/multi-select.js +55 -0
  380. package/multi-select/multi-select.spec.d.ts +1 -0
  381. package/multi-select/multi-select.spec.js +9 -0
  382. package/multi-select/multi-select.stories.d.ts +9 -0
  383. package/{mutli-combobox/multi-combobox.stories.js → multi-select/multi-select.stories.js} +17 -22
  384. package/multi-select/types.d.ts +31 -0
  385. package/multi-select/types.js +2 -0
  386. package/package.json +12 -11
  387. package/pagination/index.d.ts +2 -0
  388. package/pagination/index.js +5 -0
  389. package/pagination/pagination.d.ts +3 -0
  390. package/pagination/pagination.js +11 -6
  391. package/pagination/pagination.spec.d.ts +1 -0
  392. package/pagination/pagination.spec.js +9 -0
  393. package/pagination/pagination.stories.d.ts +4 -1
  394. package/pagination/pagination.stories.js +23 -3
  395. package/pagination/theme.d.ts +7 -0
  396. package/pagination/theme.js +2 -0
  397. package/paper/index.d.ts +2 -0
  398. package/paper/index.js +5 -0
  399. package/paper/paper.d.ts +2 -2
  400. package/paper/paper.js +25 -5
  401. package/paper/paper.spec.d.ts +1 -0
  402. package/paper/paper.spec.js +9 -0
  403. package/paper/paper.stories.d.ts +2 -2
  404. package/radio/index.d.ts +3 -1
  405. package/radio/index.js +3 -15
  406. package/radio/radio.d.ts +9 -6
  407. package/radio/radio.js +45 -9
  408. package/radio/radio.spec.js +2 -3
  409. package/radio/radio.stories.d.ts +2 -2
  410. package/radio/radio.stories.js +12 -12
  411. package/radio/theme.d.ts +1 -0
  412. package/radio-group/index.d.ts +3 -1
  413. package/radio-group/index.js +3 -15
  414. package/radio-group/radio-group.d.ts +3 -4
  415. package/radio-group/radio-group.js +10 -8
  416. package/radio-group/radio-group.spec.js +2 -17
  417. package/radio-group/radio-group.stories.d.ts +1 -1
  418. package/radio-group/radio-group.stories.js +7 -4
  419. package/radio-group/theme.d.ts +2 -0
  420. package/raster-image/index.d.ts +2 -1
  421. package/raster-image/index.js +3 -15
  422. package/raster-image/raster-image.d.ts +3 -3
  423. package/raster-image/raster-image.js +2 -1
  424. package/raster-image/raster-image.spec.d.ts +1 -0
  425. package/raster-image/raster-image.spec.js +9 -0
  426. package/raster-image/raster-image.stories.d.ts +2 -25
  427. package/select/index.d.ts +2 -1
  428. package/select/index.js +3 -15
  429. package/select/select.d.ts +16 -17
  430. package/select/select.js +16 -52
  431. package/select/select.spec.d.ts +1 -0
  432. package/select/select.spec.js +9 -0
  433. package/select/select.stories.d.ts +6 -4
  434. package/select/select.stories.js +24 -27
  435. package/select/theme.d.ts +5 -0
  436. package/select/theme.js +2 -0
  437. package/tabs/index.d.ts +2 -1
  438. package/tabs/index.js +3 -15
  439. package/tabs/tabs.d.ts +2 -1
  440. package/tabs/tabs.js +4 -3
  441. package/tabs/tabs.spec.d.ts +1 -0
  442. package/tabs/tabs.spec.js +9 -0
  443. package/tabs/tabs.stories.d.ts +1 -1
  444. package/text-input/index.d.ts +2 -1
  445. package/text-input/index.js +3 -15
  446. package/text-input/text-input.d.ts +2 -2
  447. package/text-input/text-input.js +12 -19
  448. package/text-input/text-input.spec.js +2 -2
  449. package/text-input/text-input.stories.d.ts +2 -2
  450. package/text-input/text-input.stories.js +23 -7
  451. package/text-link/index.d.ts +2 -1
  452. package/text-link/index.js +3 -15
  453. package/text-link/text-link.d.ts +3 -0
  454. package/text-link/text-link.js +27 -7
  455. package/text-link/text-link.spec.d.ts +1 -0
  456. package/text-link/text-link.spec.js +9 -0
  457. package/text-link/text-link.stories.d.ts +1 -1
  458. package/text-link/text-link.stories.js +4 -2
  459. package/text-link/theme.d.ts +3 -0
  460. package/text-link/theme.js +2 -0
  461. package/textarea/index.d.ts +2 -1
  462. package/textarea/index.js +3 -15
  463. package/textarea/textarea.js +11 -19
  464. package/textarea/textarea.spec.d.ts +1 -0
  465. package/textarea/textarea.spec.js +9 -0
  466. package/textarea/textarea.stories.d.ts +1 -1
  467. package/textarea/textarea.stories.js +4 -2
  468. package/time-picker/index.d.ts +2 -0
  469. package/time-picker/index.js +5 -0
  470. package/{time-picker-input → time-picker}/time-picker-hour.js +2 -0
  471. package/{time-picker-input → time-picker}/time-picker-hours.js +1 -0
  472. package/time-picker/time-picker-input.spec.d.ts +1 -0
  473. package/time-picker/time-picker-input.spec.js +9 -0
  474. package/time-picker/time-picker-input.stories.d.ts +7 -0
  475. package/time-picker/time-picker-input.stories.js +43 -0
  476. package/{time-picker-input → time-picker}/time-picker-minute.js +2 -0
  477. package/{time-picker-input → time-picker}/time-picker-minutes.js +1 -0
  478. package/{time-picker-input → time-picker}/time-picker.d.ts +1 -1
  479. package/{time-picker-input → time-picker}/time-picker.js +2 -1
  480. package/time-picker-input/index.d.ts +2 -2
  481. package/time-picker-input/index.js +6 -16
  482. package/time-picker-input/time-picker-input.d.ts +7 -19
  483. package/time-picker-input/time-picker-input.js +51 -62
  484. package/time-picker-input/time-picker-input.spec.d.ts +1 -0
  485. package/time-picker-input/time-picker-input.spec.js +9 -0
  486. package/time-picker-input/time-picker-input.stories.d.ts +1 -1
  487. package/time-picker-input/time-picker-input.stories.js +9 -6
  488. package/toggle/index.d.ts +3 -1
  489. package/toggle/index.js +3 -15
  490. package/toggle/theme.d.ts +1 -0
  491. package/toggle/toggle.d.ts +6 -6
  492. package/toggle/toggle.js +26 -6
  493. package/toggle/toggle.spec.d.ts +1 -0
  494. package/toggle/toggle.spec.js +9 -0
  495. package/toggle/toggle.stories.d.ts +1 -1
  496. package/toggle/toggle.stories.js +6 -12
  497. package/tooltip/index.d.ts +4 -0
  498. package/tooltip/index.js +7 -0
  499. package/tooltip/tooltip.d.ts +9 -0
  500. package/tooltip/tooltip.js +70 -0
  501. package/tooltip/tooltip.spec.d.ts +1 -0
  502. package/tooltip/tooltip.spec.js +9 -0
  503. package/tooltip/tooltip.stories.d.ts +7 -0
  504. package/tooltip/tooltip.stories.js +19 -0
  505. package/tooltip/use-tooltip.d.ts +43 -0
  506. package/tooltip/use-tooltip.js +36 -0
  507. package/tw-tokens/tw-box-shadow.d.ts +1 -1
  508. package/tw-tokens/tw-colors.d.ts +27 -1
  509. package/tw-tokens/tw-colors.js +26 -0
  510. package/tw-tokens/tw-containers.d.ts +1 -1
  511. package/tw-tokens/tw-font-size.d.ts +1 -1
  512. package/tw-tokens/tw-font-weight.d.ts +1 -1
  513. package/tw-tokens/tw-line-height.d.ts +1 -1
  514. package/tw-tokens/tw-screens.d.ts +1 -1
  515. package/tw-tokens/tw-spacing.d.ts +1 -1
  516. package/tw-tokens/tw-z-index.d.ts +1 -1
  517. package/types/color.d.ts +2 -2
  518. package/types/file-response.d.ts +12 -0
  519. package/types/file-response.js +2 -0
  520. package/types/form-control-props.d.ts +10 -6
  521. package/types/index.d.ts +1 -0
  522. package/types/index.js +1 -0
  523. package/typography/typography.spec.js +2 -14
  524. package/typography/typography.stories.d.ts +2 -2
  525. package/utils/component-structure-analyzer.d.ts +2 -2
  526. package/utils/files/get-file-url.d.ts +2 -0
  527. package/utils/files/get-file-url.js +7 -0
  528. package/utils/icons-config.js +40 -0
  529. package/utils/mocks/uploadFIle.mock.d.ts +2 -0
  530. package/utils/mocks/uploadFIle.mock.js +46 -0
  531. package/utils/snap-test.js +5 -0
  532. package/utils/storybook-config.d.ts +2 -2
  533. package/utils/storybook-config.js +1 -1
  534. package/utils/tailwind-config.js +17 -74
  535. package/utils/tailwind-plugins/container.js +39 -0
  536. package/utils/tailwind-plugins/variants.js +15 -0
  537. package/utils/tailwind-theme-defaults.js +20 -0
  538. package/checkbox-visual/checkbox-visual.d.ts +0 -10
  539. package/checkbox-visual/checkbox-visual.js +0 -17
  540. package/checkbox-visual/index.d.ts +0 -1
  541. package/checkbox-visual/index.js +0 -17
  542. package/color-radio-group/color-radio.d.ts +0 -7
  543. package/color-radio-group/color-radio.js +0 -22
  544. package/css/button.old.css +0 -231
  545. package/css/chip.old.css +0 -37
  546. package/css/combobox.css +0 -108
  547. package/css/combobox.old.css +0 -102
  548. package/css/date-picker-input.css +0 -135
  549. package/css/dropdown.old.css +0 -24
  550. package/css/input.old.css +0 -193
  551. package/css/select.css +0 -72
  552. package/css/select.old.css +0 -66
  553. package/css/time-picker-input.css +0 -138
  554. package/date-picker-input/date-picker-day.d.ts +0 -8
  555. package/date-picker-input/date-picker-provider.d.ts +0 -8
  556. package/date-picker-input/date-picker.d.ts +0 -3
  557. package/date-picker-input/types.d.ts +0 -5
  558. package/form-control/form-control.js +0 -19
  559. package/form-control/form-control.stories.js +0 -25
  560. package/form-control/index.d.ts +0 -1
  561. package/image-gallery/components/next-button.d.ts +0 -6
  562. package/image-gallery/components/next-button.js +0 -12
  563. package/image-gallery/components/previous-button.d.ts +0 -6
  564. package/mutli-combobox/index.d.ts +0 -1
  565. package/mutli-combobox/index.js +0 -17
  566. package/mutli-combobox/multi-combobox.d.ts +0 -27
  567. package/mutli-combobox/multi-combobox.js +0 -94
  568. package/mutli-combobox/multi-combobox.stories.d.ts +0 -10
  569. /package/{checkbox-visual → checkbox}/theme.js +0 -0
  570. /package/{date-picker-input → date-picker}/date-picker-decade.d.ts +0 -0
  571. /package/{date-picker-input → date-picker}/date-picker-month.d.ts +0 -0
  572. /package/{date-picker-input → date-picker}/date-picker-year.d.ts +0 -0
  573. /package/{date-picker-input → date-picker}/types.js +0 -0
  574. /package/{time-picker-input → time-picker}/time-picker-hour.d.ts +0 -0
  575. /package/{time-picker-input → time-picker}/time-picker-hours.d.ts +0 -0
  576. /package/{time-picker-input → time-picker}/time-picker-minute.d.ts +0 -0
  577. /package/{time-picker-input → time-picker}/time-picker-minutes.d.ts +0 -0
@@ -1,90 +1,22 @@
1
1
  .uxf-date-picker {
2
- &__month-select,
3
- &__year-select,
4
- &__decade-select {
5
- @apply flex items-center justify-between px-4 w-[320px] sm:w-[360px];
6
- }
7
-
8
- &__month-calendar,
9
- &__year-calendar,
10
- &__decade-calendar {
11
- @apply grid place-items-center w-full px-4 pt-4 text-center;
12
- }
13
-
14
- &__month-calendar {
15
- @apply grid-cols-7 gap-0.5;
16
- }
17
-
18
- &__year-calendar {
19
- @apply grid-cols-3 sm:grid-cols-4 gap-2;
20
- }
21
-
22
- &__decade-calendar {
23
- @apply grid-cols-3 gap-2;
24
- }
25
-
26
- &__weekday-label {
27
- @apply uppercase pb-2;
28
- }
29
-
30
- &__decade-label {
31
- @apply font-semibold;
32
- }
33
-
34
- &__cell {
35
- @apply p-1 transition relative rounded-full outline-none before:absolute before:pointer-events-none
36
- before:rounded-full before:-inset-1 focus-visible:before:border-2;
37
-
38
- &__day {
39
- @apply w-9 h-9;
40
- }
41
-
42
- &__month {
43
- @apply w-full;
44
- }
2
+ @apply w-[296px] sm:w-[340px] mx-auto;
45
3
 
46
- &__year {
47
- @apply w-full;
48
- }
49
- }
4
+ &__navigation {
5
+ @apply flex items-center justify-between mb-4;
50
6
 
51
- :root .light & {
52
- @apply text-gray-900;
7
+ &-title {
8
+ font-size: 14px;
9
+ font-weight: theme("fontWeight.medium");
10
+ text-align: center;
53
11
 
54
- .uxf-date-picker__cell {
55
- @apply hover:bg-gray-200 focus-visible:before:border-primary-500;
56
- }
12
+ :root .light & {
13
+ @apply text-lightMedium is-hoverable:text-lightHigh;
14
+ }
57
15
 
58
- .uxf-date-picker__cell__day--today {
59
- @apply bg-primary-200 hover:bg-primary-300;
60
- }
61
-
62
- .uxf-date-picker__cell__day--selected {
63
- @apply bg-primary-500 text-white hover:bg-primary-500;
64
- }
65
-
66
- .uxf-date-picker__cell__day--not-current-month {
67
- @apply text-gray-400;
68
- }
69
- }
70
-
71
- :root .dark & {
72
- @apply bg-gray-900 text-white;
73
-
74
- .uxf-date-picker__cell {
75
- @apply hover:bg-gray-700 focus-visible:before:border-primary-500;
76
- }
77
-
78
- .uxf-date-picker__cell__day--today {
79
- @apply bg-primary-400/50 hover:bg-primary-400/60;
80
- }
81
-
82
- .uxf-date-picker__cell__day--selected {
83
- @apply bg-primary-500 text-white hover:bg-primary-500;
84
- }
16
+ :root .dark & {
17
+ @apply text-darkMedium is-hoverable:text-darkHigh;
18
+ }
85
19
 
86
- .uxf-date-picker__cell__day--not-current-month {
87
- @apply text-gray-600;
88
20
  }
89
21
  }
90
22
  }
@@ -0,0 +1,11 @@
1
+ .uxf-datetime-picker {
2
+ &__tabs {
3
+ @apply mx-auto w-fit mb-4;
4
+ }
5
+
6
+ &__tab {
7
+ @apply py-0 text-body2 px-3;
8
+
9
+ height: theme("inputSize.xs");
10
+ }
11
+ }
package/css/dropdown.css CHANGED
@@ -1,24 +1,70 @@
1
1
  .uxf-dropdown {
2
- @apply absolute z-10 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black
3
- ring-opacity-5 focus:outline-none sm:text-sm;
2
+ @apply absolute z-dropdown w-full overflow-y-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black
3
+ ring-opacity-5 sm:text-sm;
4
+
5
+ outline: none;
6
+
7
+ :root .light & {
8
+ @apply bg-white text-gray-800;
9
+ }
10
+
11
+ :root .dark & {
12
+ @apply bg-gray-800 text-white;
13
+ }
4
14
 
5
15
  &--bottom {
6
16
  @apply mt-1;
7
17
  }
8
18
 
9
19
  &--top {
10
- @apply -translate-y-1;
20
+ @apply -mt-1;
11
21
  }
12
22
 
13
23
  &__item {
14
- @apply relative cursor-default select-none py-2 px-4 text-gray-800;
24
+ @apply relative cursor-default select-none py-2 px-4 transition-colors;
15
25
 
16
- &.is-active {
17
- @apply bg-primary-500 text-white;
26
+ &.is-selected {
27
+ @apply font-bold;
28
+ }
29
+
30
+ :root .light & {
31
+ @apply text-gray-800;
32
+
33
+ &.is-selected {
34
+ @apply bg-primary-100 font-bold;
35
+ }
36
+
37
+ &.is-active {
38
+ @apply bg-primary text-white;
39
+ }
40
+ }
41
+
42
+ :root .dark & {
43
+ @apply text-white;
44
+
45
+ &.is-selected {
46
+ @apply bg-primary-900;
47
+ }
48
+
49
+ &.is-active {
50
+ @apply bg-primary;
51
+ }
18
52
  }
19
53
  }
20
54
 
21
55
  &__items {
22
- @apply absolute flex flex-col border border-black bg-white;
56
+ @apply absolute flex flex-col border border-black;
57
+
58
+ :root .light & {
59
+ @apply bg-white;
60
+ }
61
+
62
+ :root .dark & {
63
+ @apply bg-gray-800;
64
+ }
65
+ }
66
+
67
+ &__empty-wrapper {
68
+ @apply py-2 px-4 text-gray-800;
23
69
  }
24
70
  }
@@ -0,0 +1,85 @@
1
+ .uxf-dropzone {
2
+ @apply rounded-lg focus:outline-none;
3
+
4
+ &__input {
5
+ @apply sr-only;
6
+ }
7
+
8
+ &__label {
9
+ @apply flex flex-col space-y-2 items-center justify-center p-4 border-2 border-lightBorder border-dashed
10
+ rounded-inherit cursor-pointer text-lightLow text-[14px];
11
+
12
+ &__icon {
13
+ @apply h-6;
14
+ }
15
+
16
+ &.is-invalid {
17
+ @apply border-error;
18
+ }
19
+
20
+ &.is-disabled {
21
+ @apply bg-lightBorder/50 cursor-not-allowed;
22
+ }
23
+ }
24
+ }
25
+
26
+ .uxf-dropzone-list {
27
+ @apply space-y-2;
28
+
29
+ &__item-wrapper {
30
+ @apply flex flex-col items-start justify-start space-y-1;
31
+ }
32
+
33
+ &__item {
34
+ @apply overflow-auto border px-4 py-3 shadow-sm sm:rounded-md sm:px-6 flex w-full
35
+ items-center justify-between space-x-6;
36
+
37
+ :root .light & {
38
+ @apply border-lightBorder text-lightMedium;
39
+ }
40
+
41
+ :root .dark & {
42
+ @apply border-gray-700 bg-gray-800 text-gray-200;
43
+ }
44
+
45
+ &.is-invalid {
46
+ :root .light & {
47
+ @apply border-error text-error;
48
+ }
49
+
50
+ :root .dark & {
51
+ @apply border-error text-error;
52
+ }
53
+ }
54
+
55
+ &__block {
56
+ @apply flex items-center space-x-4 min-w-0;
57
+
58
+ &:nth-child(2) {
59
+ @apply shrink-0;
60
+ }
61
+
62
+ &__icon {
63
+ @apply h-6;
64
+ }
65
+
66
+ &__file-name {
67
+ @apply truncate;
68
+ }
69
+
70
+ &__file-name-link {
71
+ @apply truncate hover:underline hover:underline-offset-2;
72
+ }
73
+
74
+ &__file-size {
75
+ @apply whitespace-nowrap shrink-0;
76
+ }
77
+
78
+ &__remove-button {
79
+ &__icon {
80
+ @apply h-4;
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
@@ -1,3 +1,3 @@
1
1
  .uxf-error-message {
2
- @apply block text-error-600 mt-1 text-right;
2
+ @apply block text-error mt-1 text-right;
3
3
  }
@@ -0,0 +1,80 @@
1
+ .uxf-file-input {
2
+ &__input {
3
+ @apply sr-only;
4
+ }
5
+
6
+ &__label {
7
+ @apply cursor-pointer flex overflow-auto;
8
+
9
+ &.is-loading {
10
+ @apply cursor-not-allowed;
11
+ }
12
+
13
+ &.is-focused {
14
+ @apply ring-2 ring-offset-2;
15
+
16
+ :root .light & {
17
+ @apply ring-primary;
18
+ }
19
+
20
+ :root .dark & {
21
+ @apply ring-primary;
22
+ }
23
+ }
24
+
25
+ &.is-invalid {
26
+ .uxf-file-input__label__button,
27
+ .uxf-file-input__label__wrapper {
28
+ :root .light & {
29
+ @apply border-error text-error;
30
+ }
31
+
32
+ :root .dark & {
33
+ @apply border-error text-error;
34
+ }
35
+ }
36
+ }
37
+
38
+ &__button {
39
+ @apply px-3;
40
+
41
+ :root .light & {
42
+ @apply border-gray-200 bg-gray-100;
43
+ }
44
+
45
+ :root .dark & {
46
+ @apply border-gray-700 bg-gray-800;
47
+ }
48
+
49
+ &:hover {
50
+ :root .light & {
51
+ @apply bg-gray-200;
52
+ }
53
+
54
+ :root .dark & {
55
+ @apply bg-gray-700;
56
+ }
57
+ }
58
+ }
59
+
60
+ &__wrapper {
61
+ @apply flex items-center justify-between border px-3 rounded-r-md w-full min-w-0;
62
+
63
+ :root .light & {
64
+ @apply border-gray-200;
65
+ }
66
+
67
+ :root .dark & {
68
+ @apply border-gray-700;
69
+ }
70
+
71
+ &__file-name {
72
+ @apply truncate;
73
+ }
74
+
75
+ &__file-name-link {
76
+ @apply truncate hover:underline hover:underline-offset-2;
77
+ }
78
+ }
79
+ }
80
+ }
@@ -1,25 +1,25 @@
1
1
  .uxf-flash-messages {
2
- @apply pointer-events-none fixed inset-0 z-50 flex items-end p-6;
2
+ @apply pointer-events-none fixed inset-0 z-flashMessage flex items-end p-6;
3
3
 
4
4
  &__list-wrapper {
5
- @apply flex w-full max-w-sm flex-col items-center space-y-4 sm:items-end sm:justify-end;
5
+ @apply flex w-full max-w-sm flex-col items-center space-y-4 sm:items-end ml-auto;
6
6
  }
7
7
  }
8
8
 
9
9
  .uxf-flash-message {
10
- @apply pointer-events-auto rounded-2xl transition px-3 py-4 text-center shadow backdrop-blur
10
+ @apply pointer-events-auto rounded-lg transition px-5 py-4 shadow backdrop-blur text-sm min-w-[15rem]
11
11
  is-hoverable:cursor-pointer;
12
12
 
13
13
  &--success {
14
- @apply bg-success-500 is-hoverable:bg-success-700 text-white;
14
+ @apply bg-success is-hoverable:bg-success-700 text-white;
15
15
  }
16
16
 
17
17
  &--error {
18
- @apply bg-error-500 is-hoverable:bg-error-700 text-white;
18
+ @apply bg-error is-hoverable:bg-error-700 text-white;
19
19
  }
20
20
 
21
21
  &--warning {
22
- @apply bg-warning-500 is-hoverable:bg-warning-700 text-white;
22
+ @apply bg-warning is-hoverable:bg-warning-700 text-white;
23
23
  }
24
24
 
25
25
  &--info {
@@ -2,6 +2,6 @@
2
2
  @apply mt-1 text-xs text-gray-500;
3
3
 
4
4
  &.is-invalid {
5
- @apply text-error-600;
5
+ @apply text-error;
6
6
  }
7
7
  }
@@ -0,0 +1,59 @@
1
+ .uxf-image-gallery {
2
+ @apply fixed inset-0 top-0 bottom-0 z-50 flex flex-col bg-black bg-opacity-75 transition-opacity;
3
+
4
+ &__content {
5
+ @apply container mx-auto flex h-full flex-1 flex-col;
6
+ }
7
+
8
+ &__inner {
9
+ @apply relative flex flex-1 items-center justify-center;
10
+ }
11
+
12
+ &__image {
13
+ @apply absolute left-0 right-0 top-0 h-full w-full object-contain;
14
+ }
15
+
16
+ &__buttons {
17
+ @apply pointer-events-none absolute inset-0 flex items-center justify-between p-2;
18
+ }
19
+
20
+ &__button {
21
+ @apply pointer-events-auto rounded-full bg-black bg-opacity-50 p-3;
22
+
23
+ &-icon {
24
+ @apply h-8 w-8 text-white;
25
+ }
26
+ }
27
+
28
+ &__dots {
29
+ @apply mx-auto flex space-x-2 p-4;
30
+ }
31
+
32
+ &__dot {
33
+ @apply h-2 w-2 rounded-full bg-white;
34
+
35
+ &--active {
36
+ @apply bg-gray-500;
37
+ }
38
+ }
39
+
40
+ &__close-button-wrapper {
41
+ @apply flex justify-end;
42
+ }
43
+
44
+ &__close-button {
45
+ @apply bg-black bg-opacity-50 p-5;
46
+
47
+ &-icon {
48
+ @apply h-6 w-6 text-white;
49
+ }
50
+
51
+ &-text {
52
+ @apply sr-only;
53
+ }
54
+ }
55
+
56
+ &__custom-content {
57
+ @apply absolute right-0 bottom-0 bg-gray-600 text-white;
58
+ }
59
+ }
@@ -0,0 +1,35 @@
1
+ .uxf-input-with-popover {
2
+ &__panel {
3
+ @apply z-dropdown max-w-md rounded-md p-3 shadow-lg ring-1 ring-black ring-opacity-5;
4
+
5
+ overflow-y: auto;
6
+
7
+ &:focus {
8
+ outline: none;
9
+ }
10
+
11
+ :root .light & {
12
+ @apply bg-white text-gray-800;
13
+ }
14
+
15
+ :root .dark & {
16
+ @apply bg-gray-800 text-white;
17
+ }
18
+
19
+ &--bottom {
20
+ @apply mt-1;
21
+ }
22
+
23
+ &--top {
24
+ @apply -mt-1;
25
+ }
26
+ }
27
+
28
+ &__trigger-element {
29
+ @apply w-5 h-5 rounded-sm;
30
+
31
+ align-items: center;
32
+ display: inline-flex;
33
+ justify-content: center;
34
+ }
35
+ }