@uxf/ui 10.0.0-beta.8 → 10.0.0-beta.80

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 (370) hide show
  1. package/_file-input-base/file-input-base.js +15 -1
  2. package/_file-input-base/index.d.ts +1 -1
  3. package/_input-with-popover/input-with-popover.d.ts +4 -3
  4. package/_input-with-popover/input-with-popover.js +26 -26
  5. package/_select-base/_select-base.d.ts +2 -2
  6. package/_select-base/_select-base.js +4 -3
  7. package/_select-base/index.d.ts +1 -1
  8. package/alert-bubble/alert-bubble.d.ts +8 -0
  9. package/alert-bubble/alert-bubble.js +22 -0
  10. package/alert-bubble/alert-bubble.spec.d.ts +1 -0
  11. package/alert-bubble/alert-bubble.spec.js +9 -0
  12. package/alert-bubble/alert-bubble.stories.d.ts +7 -0
  13. package/alert-bubble/alert-bubble.stories.js +50 -0
  14. package/alert-bubble/index.d.ts +3 -0
  15. package/alert-bubble/index.js +5 -0
  16. package/alert-bubble/theme.d.ts +16 -0
  17. package/alert-bubble/theme.js +2 -0
  18. package/avatar/README.md +8 -0
  19. package/avatar/avatar.stories.js +1 -1
  20. package/avatar/index.d.ts +1 -1
  21. package/avatar-file-input/README.md +1 -0
  22. package/avatar-file-input/avatar-file-input.d.ts +3 -0
  23. package/avatar-file-input/avatar-file-input.js +12 -6
  24. package/avatar-file-input/avatar-file-input.stories.js +5 -5
  25. package/avatar-file-input/index.d.ts +1 -1
  26. package/avatar-file-input/theme.d.ts +5 -0
  27. package/avatar-file-input/theme.js +2 -0
  28. package/badge/README.md +1 -0
  29. package/badge/badge.d.ts +1 -1
  30. package/badge/badge.stories.js +1 -1
  31. package/badge/index.d.ts +1 -1
  32. package/button/README.md +68 -0
  33. package/button/button.stories.js +0 -1
  34. package/button/index.d.ts +1 -1
  35. package/button/theme.d.ts +1 -0
  36. package/button-group/README.md +1 -0
  37. package/button-group/button-group.js +1 -1
  38. package/button-group/button-group.stories.js +1 -1
  39. package/button-group/index.d.ts +1 -1
  40. package/button-list/README.md +1 -0
  41. package/button-list/button-list.d.ts +1 -1
  42. package/button-list/button-list.js +22 -22
  43. package/button-list/index.d.ts +1 -1
  44. package/calendar/README.md +1 -0
  45. package/calendar/calendar-day-cell.d.ts +4 -1
  46. package/calendar/calendar-day-cell.js +18 -18
  47. package/{date-picker/date-picker-navigation.d.ts → calendar/calendar-navigation.d.ts} +2 -3
  48. package/{date-picker/date-picker-navigation.js → calendar/calendar-navigation.js} +6 -6
  49. package/calendar/calendar-provider.js +2 -2
  50. package/calendar/calendar.d.ts +5 -0
  51. package/calendar/calendar.js +6 -9
  52. package/calendar/calendar.stories.js +1 -1
  53. package/calendar/index.d.ts +4 -1
  54. package/calendar/index.js +5 -15
  55. package/checkbox/README.md +1 -0
  56. package/checkbox/checkbox.stories.js +1 -1
  57. package/checkbox/index.d.ts +1 -1
  58. package/checkbox-button/README.md +1 -0
  59. package/checkbox-button/checkbox-button.js +2 -2
  60. package/checkbox-button/checkbox-button.stories.js +1 -1
  61. package/checkbox-button/index.d.ts +1 -1
  62. package/checkbox-input/README.md +1 -0
  63. package/checkbox-input/checkbox-input.d.ts +1 -1
  64. package/checkbox-input/checkbox-input.stories.js +1 -1
  65. package/checkbox-input/index.d.ts +1 -1
  66. package/chip/README.md +1 -0
  67. package/chip/chip.d.ts +1 -1
  68. package/chip/chip.js +7 -5
  69. package/chip/chip.stories.js +37 -28
  70. package/chip/index.d.ts +2 -2
  71. package/color-radio/README.md +8 -0
  72. package/color-radio/color-radio.js +1 -1
  73. package/color-radio/index.d.ts +1 -1
  74. package/color-radio-group/README.md +9 -0
  75. package/color-radio-group/color-radio-group.js +3 -3
  76. package/color-radio-group/color-radio-group.stories.js +1 -1
  77. package/color-radio-group/index.d.ts +1 -1
  78. package/combobox/README.md +12 -0
  79. package/combobox/combobox.d.ts +1 -1
  80. package/combobox/combobox.stories.d.ts +2 -1
  81. package/combobox/combobox.stories.js +7 -3
  82. package/combobox/index.d.ts +1 -1
  83. package/config/icons-config.d.ts +1 -1
  84. package/config/icons-config.js +1 -1
  85. package/config/icons.d.ts +13 -3
  86. package/config/icons.js +3 -1
  87. package/content/types.d.ts +1 -1
  88. package/context/provider.js +1 -1
  89. package/css/alert-bubble.css +100 -0
  90. package/css/avatar-file-input.css +54 -20
  91. package/css/avatar.css +4 -4
  92. package/css/badge.css +5 -5
  93. package/css/button-group.css +1 -1
  94. package/css/button-list.css +2 -2
  95. package/css/button.css +78 -32
  96. package/css/calendar.css +115 -51
  97. package/css/checkbox-button.css +10 -10
  98. package/css/checkbox.css +9 -9
  99. package/css/chip.css +217 -318
  100. package/css/color-radio-group.css +1 -1
  101. package/css/color-radio.css +3 -3
  102. package/css/component-structure-analyzer.css +12 -12
  103. package/css/date-picker.css +10 -3
  104. package/css/date-range-picker.css +21 -0
  105. package/css/datetime-picker.css +2 -2
  106. package/css/dialog.css +55 -0
  107. package/css/dropdown.css +11 -3
  108. package/css/dropzone.css +6 -6
  109. package/css/error-message.css +1 -1
  110. package/css/file-input.css +2 -2
  111. package/css/flash-messages.css +133 -9
  112. package/css/icon.css +1 -1
  113. package/css/image-gallery.css +8 -8
  114. package/css/input-with-popover.css +1 -1
  115. package/css/input.css +10 -10
  116. package/css/layout.css +4 -4
  117. package/css/list-item.css +2 -2
  118. package/css/message.css +92 -0
  119. package/css/modal.css +10 -54
  120. package/css/multi-combobox.css +12 -12
  121. package/css/pagination.css +14 -14
  122. package/css/paper.css +1 -1
  123. package/css/radio-group.css +3 -3
  124. package/css/radio.css +7 -7
  125. package/css/raster-image.css +1 -1
  126. package/css/select-base.css +1 -1
  127. package/css/tabs.css +16 -16
  128. package/css/text-link.css +4 -4
  129. package/css/textarea.css +68 -76
  130. package/css/time-picker.css +12 -16
  131. package/css/toggle.css +3 -3
  132. package/css/tooltip.css +2 -2
  133. package/date-picker/README.md +9 -0
  134. package/date-picker/date-picker-content.d.ts +5 -2
  135. package/date-picker/date-picker-content.js +4 -3
  136. package/date-picker/date-picker-decade.js +10 -10
  137. package/date-picker/date-picker-month.js +6 -6
  138. package/date-picker/date-picker-year.js +2 -2
  139. package/date-picker/date-picker.d.ts +4 -1
  140. package/date-picker/date-picker.js +4 -2
  141. package/date-picker/index.d.ts +1 -1
  142. package/date-picker-input/README.md +11 -0
  143. package/date-picker-input/date-picker-input.d.ts +2 -0
  144. package/date-picker-input/date-picker-input.js +5 -3
  145. package/date-picker-input/date-picker-input.stories.js +1 -1
  146. package/date-picker-input/index.d.ts +1 -1
  147. package/date-picker-input/index.js +3 -3
  148. package/date-range-picker/README.md +1 -0
  149. package/date-range-picker/date-range-picker-content.d.ts +5 -0
  150. package/date-range-picker/date-range-picker-content.js +56 -0
  151. package/date-range-picker/date-range-picker-decade.d.ts +6 -0
  152. package/date-range-picker/date-range-picker-decade.js +72 -0
  153. package/date-range-picker/date-range-picker-month.d.ts +8 -0
  154. package/date-range-picker/date-range-picker-month.js +69 -0
  155. package/date-range-picker/date-range-picker-year.d.ts +7 -0
  156. package/date-range-picker/date-range-picker-year.js +80 -0
  157. package/date-range-picker/date-range-picker.d.ts +11 -0
  158. package/date-range-picker/date-range-picker.js +51 -0
  159. package/date-range-picker/date-range-picker.spec.d.ts +1 -0
  160. package/date-range-picker/date-range-picker.spec.js +9 -0
  161. package/date-range-picker/date-range-picker.stories.d.ts +7 -0
  162. package/date-range-picker/date-range-picker.stories.js +43 -0
  163. package/date-range-picker/index.d.ts +3 -0
  164. package/date-range-picker/index.js +5 -0
  165. package/date-range-picker/types.d.ts +5 -0
  166. package/date-range-picker/types.js +2 -0
  167. package/date-range-picker-input/README.md +1 -0
  168. package/date-range-picker-input/date-range-picker-input.d.ts +17 -0
  169. package/date-range-picker-input/date-range-picker-input.js +62 -0
  170. package/date-range-picker-input/date-range-picker-input.spec.d.ts +1 -0
  171. package/date-range-picker-input/date-range-picker-input.spec.js +9 -0
  172. package/date-range-picker-input/date-range-picker-input.stories.d.ts +10 -0
  173. package/date-range-picker-input/date-range-picker-input.stories.js +53 -0
  174. package/date-range-picker-input/index.d.ts +2 -0
  175. package/date-range-picker-input/index.js +5 -0
  176. package/datetime-picker/README.md +13 -0
  177. package/datetime-picker/datetime-picker.d.ts +3 -1
  178. package/datetime-picker/datetime-picker.js +5 -5
  179. package/datetime-picker/index.d.ts +1 -1
  180. package/datetime-picker/index.js +2 -2
  181. package/datetime-picker-input/README.md +1 -0
  182. package/datetime-picker-input/datetime-picker-input.d.ts +2 -0
  183. package/datetime-picker-input/datetime-picker-input.js +5 -3
  184. package/datetime-picker-input/datetime-picker-input.stories.js +1 -1
  185. package/datetime-picker-input/index.d.ts +1 -1
  186. package/datetime-picker-input/index.js +2 -2
  187. package/dialog/dialog.d.ts +9 -0
  188. package/{modal/modal-dialog.js → dialog/dialog.js} +8 -9
  189. package/dialog/dialog.spec.d.ts +1 -0
  190. package/dialog/dialog.spec.js +9 -0
  191. package/dialog/dialog.stories.d.ts +7 -0
  192. package/dialog/dialog.stories.js +47 -0
  193. package/dialog/index.d.ts +2 -0
  194. package/dialog/index.js +5 -0
  195. package/dropdown/README.md +1 -0
  196. package/dropdown/dropdown.stories.js +2 -2
  197. package/dropdown/index.d.ts +1 -1
  198. package/dropzone/README.md +8 -0
  199. package/dropzone/dropzone-input.js +10 -6
  200. package/dropzone/dropzone.stories.js +7 -7
  201. package/error-message/README.md +7 -0
  202. package/error-message/error-message.stories.js +1 -1
  203. package/file-input/README.md +11 -0
  204. package/file-input/file-input.d.ts +3 -0
  205. package/file-input/file-input.js +10 -22
  206. package/file-input/file-input.stories.js +5 -5
  207. package/file-input/index.d.ts +1 -1
  208. package/flash-messages/README.md +23 -0
  209. package/flash-messages/flash-message.d.ts +1 -1
  210. package/flash-messages/flash-message.js +1 -1
  211. package/flash-messages/flash-messages.js +52 -18
  212. package/flash-messages/flash-messages.stories.js +12 -0
  213. package/flash-messages/index.d.ts +2 -2
  214. package/flash-messages/index.js +4 -4
  215. package/form-component/README.md +7 -0
  216. package/form-component/index.d.ts +1 -1
  217. package/hooks/use-dropdown.d.ts +16 -8
  218. package/icon/README.md +11 -0
  219. package/icon/icon.stories.js +1 -1
  220. package/icon/index.d.ts +1 -1
  221. package/image-gallery/components/close-button.d.ts +2 -1
  222. package/image-gallery/components/close-button.js +2 -3
  223. package/image-gallery/components/gallery.d.ts +4 -1
  224. package/image-gallery/components/gallery.js +6 -5
  225. package/image-gallery/components/next-button.d.ts +7 -0
  226. package/image-gallery/components/next-button.js +14 -0
  227. package/image-gallery/components/prev-button.d.ts +7 -0
  228. package/image-gallery/components/prev-button.js +14 -0
  229. package/image-gallery/image-gallery.d.ts +4 -1
  230. package/image-gallery/image-gallery.js +2 -2
  231. package/image-gallery/image-gallery.stories.js +5 -1
  232. package/image-gallery/image.d.ts +1 -1
  233. package/image-gallery/image.js +1 -1
  234. package/image-gallery/use-image.js +1 -1
  235. package/input/README.md +8 -0
  236. package/input/input-element.d.ts +1 -0
  237. package/input/input-element.js +1 -1
  238. package/input/input.d.ts +2 -2
  239. package/input/input.js +3 -3
  240. package/input/input.stories.js +3 -3
  241. package/label/README.md +7 -0
  242. package/label/index.d.ts +1 -1
  243. package/label/label.stories.js +1 -1
  244. package/layout/index.d.ts +1 -1
  245. package/layout/layout.js +28 -28
  246. package/list-item/README.md +7 -0
  247. package/list-item/index.d.ts +1 -1
  248. package/list-item/list-item.stories.js +1 -1
  249. package/loader/README.md +7 -0
  250. package/loader/index.d.ts +1 -1
  251. package/message/README.md +1 -0
  252. package/message/index.d.ts +3 -0
  253. package/message/index.js +7 -0
  254. package/message/message-content.d.ts +17 -0
  255. package/message/message-content.js +41 -0
  256. package/message/message-service.d.ts +13 -0
  257. package/message/message-service.js +29 -0
  258. package/message/message.d.ts +20 -0
  259. package/message/message.js +47 -0
  260. package/message/message.spec.d.ts +1 -0
  261. package/message/message.spec.js +9 -0
  262. package/message/message.stories.d.ts +7 -0
  263. package/message/message.stories.js +82 -0
  264. package/message/theme.d.ts +12 -0
  265. package/message/theme.js +2 -0
  266. package/modal/README.md +24 -0
  267. package/modal/index.d.ts +3 -2
  268. package/modal/index.js +3 -3
  269. package/modal/modal.d.ts +5 -4
  270. package/modal/modal.js +9 -9
  271. package/modal/modal.stories.js +12 -0
  272. package/modal/theme.d.ts +3 -0
  273. package/multi-combobox/README.md +10 -0
  274. package/multi-combobox/_multi-combobox-base.js +28 -22
  275. package/multi-combobox/multi-combobox.js +1 -1
  276. package/multi-combobox/multi-combobox.stories.js +7 -4
  277. package/multi-combobox/types.d.ts +5 -1
  278. package/multi-select/README.md +11 -0
  279. package/multi-select/_multi-select-base.js +21 -21
  280. package/multi-select/index.d.ts +1 -1
  281. package/multi-select/multi-select.js +1 -1
  282. package/multi-select/multi-select.stories.js +6 -3
  283. package/multi-select/types.d.ts +1 -1
  284. package/package.json +17 -10
  285. package/pagination/README.md +31 -0
  286. package/pagination/index.d.ts +1 -1
  287. package/pagination/pagination.d.ts +1 -1
  288. package/pagination/pagination.js +2 -2
  289. package/pagination/pagination.stories.d.ts +0 -3
  290. package/pagination/pagination.stories.js +14 -30
  291. package/paper/README.md +7 -0
  292. package/paper/index.d.ts +1 -1
  293. package/paper/paper.stories.js +1 -1
  294. package/radio/README.md +7 -0
  295. package/radio/index.d.ts +1 -1
  296. package/radio/radio.stories.js +1 -1
  297. package/radio-group/README.md +8 -0
  298. package/radio-group/index.d.ts +2 -2
  299. package/radio-group/radio-group.d.ts +3 -3
  300. package/radio-group/radio-group.js +2 -2
  301. package/radio-group/radio-group.stories.js +5 -5
  302. package/raster-image/README.md +7 -0
  303. package/raster-image/index.d.ts +1 -1
  304. package/raster-image/raster-image.js +1 -1
  305. package/scripts/generate-tw-tokens.js +40 -32
  306. package/select/README.md +11 -0
  307. package/select/index.d.ts +1 -1
  308. package/select/select.d.ts +1 -1
  309. package/select/select.js +1 -1
  310. package/select/select.stories.d.ts +2 -1
  311. package/select/select.stories.js +9 -3
  312. package/tabs/README.md +7 -0
  313. package/tabs/index.d.ts +1 -1
  314. package/text-input/README.md +10 -0
  315. package/text-input/index.d.ts +1 -1
  316. package/text-input/text-input.d.ts +1 -0
  317. package/text-input/text-input.js +2 -2
  318. package/text-link/README.md +19 -0
  319. package/text-link/index.d.ts +1 -1
  320. package/text-link/text-link.d.ts +1 -1
  321. package/textarea/README.md +9 -0
  322. package/textarea/index.d.ts +1 -1
  323. package/textarea/textarea.js +5 -5
  324. package/textarea/textarea.stories.js +1 -1
  325. package/time-picker/README.md +8 -0
  326. package/time-picker/index.d.ts +1 -1
  327. package/time-picker/time-picker-hour.js +6 -6
  328. package/time-picker/time-picker-hours.js +2 -2
  329. package/time-picker/time-picker-minute.js +6 -6
  330. package/time-picker/time-picker-minutes.js +2 -2
  331. package/time-picker/time-picker.d.ts +2 -1
  332. package/time-picker/time-picker.js +7 -6
  333. package/time-picker-input/README.md +9 -0
  334. package/time-picker-input/index.d.ts +1 -1
  335. package/time-picker-input/index.js +3 -3
  336. package/time-picker-input/time-picker-input.js +6 -4
  337. package/time-picker-input/time-picker-input.stories.js +1 -1
  338. package/toggle/README.md +7 -0
  339. package/toggle/index.d.ts +1 -1
  340. package/toggle/toggle.js +8 -8
  341. package/toggle/toggle.stories.js +1 -1
  342. package/tooltip/README.md +7 -0
  343. package/tooltip/index.d.ts +2 -2
  344. package/tooltip/tooltip.js +27 -25
  345. package/tooltip/tooltip.stories.js +1 -1
  346. package/tooltip/use-tooltip.d.ts +19 -11
  347. package/tooltip/use-tooltip.js +15 -15
  348. package/tw-tokens/tw-colors.d.ts +283 -282
  349. package/tw-tokens/tw-colors.js +283 -282
  350. package/tw-tokens/tw-line-height.d.ts +8 -8
  351. package/tw-tokens/tw-line-height.js +8 -8
  352. package/tw-tokens/tw-spacing.d.ts +34 -34
  353. package/tw-tokens/tw-spacing.js +34 -34
  354. package/tw-tokens/tw-z-index.d.ts +7 -7
  355. package/tw-tokens/tw-z-index.js +7 -7
  356. package/types/index.d.ts +1 -1
  357. package/types/index.js +1 -1
  358. package/typography/README.md +7 -0
  359. package/utils/action.d.ts +2 -1
  360. package/utils/action.js +2 -2
  361. package/utils/icons-config.js +13 -3
  362. package/utils/mocks/{uploadFIle.mock.js → upload-file.mock.js} +1 -1
  363. package/utils/snap-test.js +1 -1
  364. package/utils/storybook-config.d.ts +12 -2
  365. package/utils/storybook-config.js +9 -1
  366. package/utils/tailwind-config.js +10 -1
  367. package/image-gallery/components/arrow-button.d.ts +0 -7
  368. package/image-gallery/components/arrow-button.js +0 -14
  369. package/modal/modal-dialog.d.ts +0 -11
  370. /package/utils/mocks/{uploadFIle.mock.d.ts → upload-file.mock.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  .uxf-color-radio-group {
2
2
  &__option {
3
- @apply rounded-full outline-none focus-visible:ring-offset-2 focus-visible:ring-2 is-disabled:pointer-events-none;
3
+ @apply is-disabled:pointer-events-none rounded-full outline-none focus-visible:ring-2 focus-visible:ring-offset-2;
4
4
 
5
5
  :root .light & {
6
6
  @apply focus-visible:ring-[color:var(--option-color)] focus-visible:ring-offset-white;
@@ -1,12 +1,12 @@
1
1
  .uxf-color-radio {
2
- @apply relative shrink-0 inline-flex items-center justify-center rounded-full h-7 w-7 bg-[color:var(--bg-color)];
2
+ @apply relative inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[color:var(--bg-color)];
3
3
 
4
4
  &__color-label {
5
5
  @apply sr-only;
6
6
  }
7
7
 
8
8
  &__inner {
9
- @apply w-4 h-4 text-white opacity-0 transition-opacity;
9
+ @apply h-4 w-4 text-white opacity-0 transition-opacity;
10
10
  }
11
11
 
12
12
  &__inner--dark {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  &.is-disabled {
23
- @apply after:absolute after:inset-0 after:rounded-inherit pointer-events-none;
23
+ @apply after:rounded-inherit pointer-events-none after:absolute after:inset-0;
24
24
 
25
25
  :root .light & {
26
26
  @apply after:bg-white/50;
@@ -2,30 +2,30 @@
2
2
  padding-bottom: 32px;
3
3
 
4
4
  * {
5
- padding: 32px !important;
6
- border: 2px solid black !important;
7
- position: relative !important;
8
- color: lightgray !important;
9
5
  background-color: white !important;
6
+ border: 2px solid black !important;
10
7
  border-radius: initial !important;
11
- margin: 4px !important;
8
+ color: lightgray !important;
12
9
  font-family: monospace;
13
10
  font-size: 12px;
14
- min-width: 200px;
15
11
  height: auto !important;
16
- top: initial !important;
17
12
  left: initial !important;
13
+ margin: 4px !important;
14
+ min-width: 200px;
15
+ padding: 32px !important;
16
+ position: relative !important;
18
17
  right: initial !important;
18
+ top: initial !important;
19
19
 
20
20
  &::before {
21
- position: absolute;
22
- left: 4px;
23
- top: 2px;
21
+ color: black;
24
22
  content: attr(class);
25
23
  font-size: 12px;
26
- line-height: 14px;
27
- color: black;
28
24
  font-weight: 500;
25
+ left: 4px;
26
+ line-height: 14px;
27
+ position: absolute;
28
+ top: 2px;
29
29
  }
30
30
  }
31
31
  }
@@ -1,8 +1,16 @@
1
1
  .uxf-date-picker {
2
- @apply w-[296px] sm:w-[340px] mx-auto;
2
+ margin: 0 auto;
3
+ width: 296px;
4
+
5
+ @screen sm {
6
+ width: 340px;
7
+ }
3
8
 
4
9
  &__navigation {
5
- @apply flex items-center justify-between mb-4;
10
+ align-items: center;
11
+ display: flex;
12
+ justify-content: space-between;
13
+ margin-bottom: theme("spacing.4");
6
14
 
7
15
  &-title {
8
16
  font-size: 14px;
@@ -16,7 +24,6 @@
16
24
  :root .dark & {
17
25
  @apply text-darkMedium is-hoverable:text-darkHigh;
18
26
  }
19
-
20
27
  }
21
28
  }
22
29
  }
@@ -0,0 +1,21 @@
1
+ .uxf-date-range-picker {
2
+ margin: 0 auto;
3
+
4
+ &__months {
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: theme("spacing.6");
8
+
9
+ @screen sm {
10
+ flex-direction: row;
11
+ }
12
+ }
13
+
14
+ &__month {
15
+ width: 296px;
16
+
17
+ @screen sm {
18
+ width: 340px;
19
+ }
20
+ }
21
+ }
@@ -1,10 +1,10 @@
1
1
  .uxf-datetime-picker {
2
2
  &__tabs {
3
- @apply mx-auto w-fit mb-4;
3
+ @apply mx-auto mb-4 w-fit;
4
4
  }
5
5
 
6
6
  &__tab {
7
- @apply py-0 text-body2 px-3;
7
+ @apply text-body2 px-3 py-0;
8
8
 
9
9
  height: theme("inputSize.xs");
10
10
  }
package/css/dialog.css ADDED
@@ -0,0 +1,55 @@
1
+ .uxf-dialog {
2
+ --panel-max-w: unset;
3
+ --panel-border-radius: theme("borderRadius.2xl");
4
+
5
+ position: relative;
6
+ z-index: theme("zIndex.modal");
7
+
8
+ &__backdrop {
9
+ background-color: rgb(0 0 0 / 75%);
10
+ inset: 0;
11
+ position: fixed;
12
+ }
13
+
14
+ &__wrapper {
15
+ inset: 0;
16
+ overflow-y: auto;
17
+ position: fixed;
18
+ }
19
+
20
+ &__body {
21
+ align-items: flex-end;
22
+ display: flex;
23
+ justify-content: center;
24
+ min-height: 100%;
25
+ padding-top: theme("spacing.8");
26
+
27
+ @screen sm {
28
+ align-items: center;
29
+ padding: theme("spacing.4");
30
+ }
31
+ }
32
+
33
+ &__panel {
34
+ border-top-left-radius: var(--panel-border-radius);
35
+ border-top-right-radius: var(--panel-border-radius);
36
+ max-width: var(--panel-max-w);
37
+ overflow: hidden;
38
+ position: relative;
39
+ width: 100%;
40
+
41
+ :root .light & {
42
+ background-color: theme("colors.white");
43
+ color: theme("colors.black");
44
+ }
45
+
46
+ :root .dark & {
47
+ background-color: theme("colors.gray.900");
48
+ color: theme("colors.white");
49
+ }
50
+
51
+ @screen sm {
52
+ border-radius: var(--panel-border-radius);
53
+ }
54
+ }
55
+ }
package/css/dropdown.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .uxf-dropdown {
2
- @apply absolute z-dropdown w-full overflow-y-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black
2
+ @apply z-dropdown absolute w-full overflow-y-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black
3
3
  ring-opacity-5 sm:text-sm;
4
4
 
5
5
  outline: none;
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  &__item {
24
- @apply relative cursor-default select-none py-2 px-4 transition-colors;
24
+ @apply relative cursor-default select-none px-4 py-2 transition-colors;
25
25
 
26
26
  &.is-selected {
27
27
  @apply font-bold;
@@ -37,6 +37,10 @@
37
37
  &.is-active {
38
38
  @apply bg-primary text-white;
39
39
  }
40
+
41
+ &.is-disabled {
42
+ @apply text-gray-300;
43
+ }
40
44
  }
41
45
 
42
46
  :root .dark & {
@@ -49,6 +53,10 @@
49
53
  &.is-active {
50
54
  @apply bg-primary;
51
55
  }
56
+
57
+ &.is-disabled {
58
+ @apply text-gray-600;
59
+ }
52
60
  }
53
61
  }
54
62
 
@@ -65,6 +73,6 @@
65
73
  }
66
74
 
67
75
  &__empty-wrapper {
68
- @apply py-2 px-4 text-gray-800;
76
+ @apply px-4 py-2 text-gray-800;
69
77
  }
70
78
  }
package/css/dropzone.css CHANGED
@@ -6,8 +6,8 @@
6
6
  }
7
7
 
8
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];
9
+ @apply rounded-inherit border-lightBorder text-lightLow flex cursor-pointer flex-col items-center justify-center space-y-2
10
+ border-2 border-dashed p-4 text-[14px];
11
11
 
12
12
  &__icon {
13
13
  @apply h-6;
@@ -31,8 +31,8 @@
31
31
  }
32
32
 
33
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;
34
+ @apply flex w-full items-center justify-between space-x-6 overflow-auto border px-4 py-3
35
+ shadow-sm sm:rounded-md sm:px-6;
36
36
 
37
37
  :root .light & {
38
38
  @apply border-lightBorder text-lightMedium;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  &__block {
56
- @apply flex items-center space-x-4 min-w-0;
56
+ @apply flex min-w-0 items-center space-x-4;
57
57
 
58
58
  &:nth-child(2) {
59
59
  @apply shrink-0;
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  &__file-size {
75
- @apply whitespace-nowrap shrink-0;
75
+ @apply shrink-0 whitespace-nowrap;
76
76
  }
77
77
 
78
78
  &__remove-button {
@@ -1,3 +1,3 @@
1
1
  .uxf-error-message {
2
- @apply block text-error mt-1 text-right;
2
+ @apply text-error mt-1 block text-right;
3
3
  }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  &__label {
7
- @apply cursor-pointer flex overflow-auto;
7
+ @apply flex cursor-pointer overflow-auto;
8
8
 
9
9
  &.is-loading {
10
10
  @apply cursor-not-allowed;
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  &__wrapper {
61
- @apply flex items-center justify-between border px-3 rounded-r-md w-full min-w-0;
61
+ @apply flex w-full min-w-0 items-center justify-between rounded-r-md border px-3;
62
62
 
63
63
  :root .light & {
64
64
  @apply border-gray-200;
@@ -1,28 +1,152 @@
1
1
  .uxf-flash-messages {
2
- @apply pointer-events-none fixed inset-0 z-flashMessage flex items-end p-6;
2
+ @apply space-y-4;
3
3
 
4
- &__list-wrapper {
5
- @apply flex w-full max-w-sm flex-col items-center space-y-4 sm:items-end ml-auto;
4
+ bottom: 0;
5
+ display: flex;
6
+ flex-direction: column;
7
+ height: 100vh;
8
+ justify-content: flex-end;
9
+ max-width: 24rem;
10
+ overflow-x: hidden;
11
+ overflow-y: auto;
12
+ padding: theme("spacing.6") theme("spacing.1") theme("spacing.6") theme("spacing.6");
13
+ pointer-events: none;
14
+ position: fixed;
15
+ right: 0;
16
+ z-index: theme("zIndex.flashMessage");
17
+
18
+ &__permanent,
19
+ &__dismissable {
20
+ display: flex;
21
+ flex-direction: column-reverse;
22
+ overflow-x: hidden;
23
+ overflow-y: scroll;
24
+ padding-right: theme("spacing.3");
25
+ pointer-events: auto;
26
+
27
+ &::-webkit-scrollbar {
28
+ background-color: transparent;
29
+ width: theme("width.2");
30
+ }
31
+
32
+ &::-webkit-scrollbar-thumb {
33
+ background-color: theme("colors.gray.400");
34
+ border-radius: theme("borderRadius.2xl");
35
+ }
36
+ }
37
+
38
+ &__dismissable {
39
+ padding-top: theme("spacing.11");
40
+
41
+ &:hover {
42
+ padding-top: 0;
43
+ }
44
+ }
45
+
46
+ &__permanent {
47
+ flex-shrink: 0;
48
+ max-height: 50%;
49
+ }
50
+
51
+ &__divider {
52
+ width: calc(100% - 1.5rem);
53
+ }
54
+ }
55
+
56
+ .uxf-flash-message-wrapper {
57
+ @apply transition-all;
58
+
59
+ transition-duration: 300ms;
60
+
61
+ &--enter-from {
62
+ opacity: 0;
63
+ transform: translateX(5rem);
64
+ }
65
+
66
+ &--enter-to {
67
+ opacity: 100;
68
+ transform: translateX(0);
69
+ }
70
+
71
+ &:not(:first-of-type) {
72
+ margin-top: theme("spacing.4");
73
+
74
+ .uxf-flash-messages__dismissable & {
75
+ margin-top: -2.75rem;
76
+ }
77
+ }
78
+
79
+ .uxf-flash-messages__dismissable & {
80
+ &:nth-last-child(n + 5) {
81
+ display: none;
82
+ }
83
+
84
+ &:nth-last-child(4) {
85
+ opacity: 0.6;
86
+ transform: scale(0.85);
87
+ }
88
+
89
+ &:nth-last-child(3) {
90
+ opacity: 0.7;
91
+ transform: scale(0.9);
92
+ }
93
+
94
+ &:nth-last-child(2) {
95
+ opacity: 0.8;
96
+ transform: scale(0.95);
97
+ }
98
+ }
99
+
100
+ .uxf-flash-messages__dismissable:hover & {
101
+ display: block;
102
+ opacity: 1;
103
+ transform: scale(1);
104
+
105
+ &:not(:first-of-type) {
106
+ margin-top: theme("spacing.4");
107
+ }
6
108
  }
7
109
  }
8
110
 
9
111
  .uxf-flash-message {
10
- @apply pointer-events-auto rounded-lg transition px-5 py-4 shadow backdrop-blur text-sm min-w-[15rem]
11
- is-hoverable:cursor-pointer;
112
+ --flash-message-bg-color: transparent;
113
+ --flash-message-bg-color-hover: transparent;
114
+ --flash-message-color: white;
115
+
116
+ @apply transition;
117
+
118
+ background-color: var(--flash-message-bg-color);
119
+ border-radius: theme("borderRadius.lg");
120
+ color: var(--flash-message-color);
121
+ font-size: 0.875rem;
122
+ line-height: 1.25rem;
123
+ min-width: 15rem;
124
+ padding: theme("spacing.4") theme("spacing.5");
125
+ pointer-events: auto;
126
+
127
+ &:hover,
128
+ &:active {
129
+ background-color: var(--flash-message-bg-color-hover);
130
+ cursor: pointer;
131
+ }
12
132
 
13
133
  &--success {
14
- @apply bg-success is-hoverable:bg-success-700 text-white;
134
+ --flash-message-bg-color: theme("colors.success.DEFAULT");
135
+ --flash-message-bg-color-hover: theme("colors.success.700");
15
136
  }
16
137
 
17
138
  &--error {
18
- @apply bg-error is-hoverable:bg-error-700 text-white;
139
+ --flash-message-bg-color: theme("colors.error.DEFAULT");
140
+ --flash-message-bg-color-hover: theme("colors.error.700");
19
141
  }
20
142
 
21
143
  &--warning {
22
- @apply bg-warning is-hoverable:bg-warning-700 text-white;
144
+ --flash-message-bg-color: theme("colors.warning.DEFAULT");
145
+ --flash-message-bg-color-hover: theme("colors.warning.700");
23
146
  }
24
147
 
25
148
  &--info {
26
- @apply bg-gray-500 is-hoverable:bg-gray-700 text-white;
149
+ --flash-message-bg-color: theme("colors.gray.500");
150
+ --flash-message-bg-color-hover: theme("colors.gray.700");
27
151
  }
28
152
  }
package/css/icon.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .uxf-icon {
2
- @apply shrink-0 h-[var(--i-h)] w-[var(--i-w)];
2
+ @apply h-[var(--i-h)] w-[var(--i-w)] shrink-0;
3
3
 
4
4
  & > use {
5
5
  @apply pointer-events-none;
@@ -1,20 +1,20 @@
1
1
  .uxf-image-gallery {
2
- @apply fixed inset-0 z-imageGallery flex flex-col;
2
+ @apply z-imageGallery fixed inset-0 flex flex-col;
3
3
 
4
4
  &__content {
5
- @apply mx-auto grow max-h-[calc(100%-128px)];
5
+ @apply mx-auto max-h-[calc(100%-128px)] grow;
6
6
  }
7
7
 
8
8
  &__inner {
9
- @apply container flex items-center justify-center h-full;
9
+ @apply container flex h-full items-center justify-center;
10
10
  }
11
11
 
12
12
  &__image {
13
- @apply h-full w-full object-contain z-1;
13
+ @apply z-1 w-full object-contain;
14
14
  }
15
15
 
16
16
  &__buttons {
17
- @apply pointer-events-none container absolute inset-0 flex items-center justify-between p-2 z-10;
17
+ @apply container pointer-events-none absolute inset-0 z-10 flex items-center justify-between p-2;
18
18
  }
19
19
 
20
20
  &__button {
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &__dots {
29
- @apply mx-auto flex items-center space-x-2 p-4 z-1 h-[64px];
29
+ @apply z-1 mx-auto flex h-[64px] items-center space-x-2 p-4;
30
30
  }
31
31
 
32
32
  &__dot {
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  &__close-button-wrapper {
41
- @apply flex justify-end z-1;
41
+ @apply z-1 ml-auto w-auto;
42
42
  }
43
43
 
44
44
  &__close-button {
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  &__custom-content {
57
- @apply absolute right-0 bottom-0 bg-gray-600 text-white;
57
+ @apply absolute bottom-0 right-0 bg-gray-600 text-white;
58
58
  }
59
59
 
60
60
  &__backdrop {
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  &__trigger-element {
29
- @apply w-5 h-5 rounded-sm;
29
+ @apply h-5 w-5 rounded-sm;
30
30
 
31
31
  align-items: center;
32
32
  display: inline-flex;
package/css/input.css CHANGED
@@ -93,7 +93,7 @@
93
93
  justify-content: center;
94
94
 
95
95
  &-inner {
96
- @apply w-3.5 h-3.5 rounded-full;
96
+ @apply h-3.5 w-3.5 rounded-full;
97
97
 
98
98
  align-items: center;
99
99
  display: flex;
@@ -109,7 +109,7 @@
109
109
  }
110
110
 
111
111
  &-icon {
112
- @apply w-2 h-2;
112
+ @apply h-2 w-2;
113
113
 
114
114
  :root .light & {
115
115
  @apply text-white;
@@ -215,11 +215,11 @@
215
215
  &.is-focused {
216
216
  .uxf-input__wrapper {
217
217
  :root .light & {
218
- @apply ring-error border-error;
218
+ @apply border-error ring-error;
219
219
  }
220
220
 
221
221
  :root .dark & {
222
- @apply ring-error border-error;
222
+ @apply border-error ring-error;
223
223
  }
224
224
  }
225
225
  }
@@ -234,11 +234,11 @@
234
234
 
235
235
  .uxf-input__element {
236
236
  :root .light & {
237
- @apply border-gray-200 text-error placeholder:text-error;
237
+ @apply text-error placeholder:text-error border-gray-200;
238
238
  }
239
239
 
240
240
  :root .dark & {
241
- @apply border-gray-700 text-error placeholder:text-error;
241
+ @apply text-error placeholder:text-error border-gray-700;
242
242
  }
243
243
  }
244
244
  }
@@ -254,16 +254,16 @@
254
254
 
255
255
  :root .dark & {
256
256
  -webkit-text-fill-color: theme("colors.gray.300");
257
- -webkit-box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
258
- box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
259
257
  background-color: theme("colors.gray.800");
258
+ -webkit-box-shadow: inset 0 0 0 1000px theme("colors.gray.800"); /* stylelint-disable-line property-no-vendor-prefix */
259
+ box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
260
260
  caret-color: white;
261
261
  }
262
262
 
263
263
  :root .light & {
264
- -webkit-box-shadow: inset 0 0 0 1000px theme("colors.white");
265
- box-shadow: inset 0 0 0 1000px theme("colors.white");
266
264
  background-color: theme("colors.white");
265
+ -webkit-box-shadow: inset 0 0 0 1000px theme("colors.white"); /* stylelint-disable-line property-no-vendor-prefix */
266
+ box-shadow: inset 0 0 0 1000px theme("colors.white");
267
267
  }
268
268
  }
269
269
  }
package/css/layout.css CHANGED
@@ -4,15 +4,15 @@ body {
4
4
 
5
5
  .uxf-layout {
6
6
  &__content {
7
- @apply flex flex-1 flex-col md:pl-64 pt-14;
7
+ @apply flex flex-1 flex-col pt-14 md:pl-64;
8
8
  }
9
9
  }
10
10
 
11
11
  .uxf-app-bar {
12
- @apply fixed w-full top-0 left-0 flex items-center bg-primary-600 h-14;
12
+ @apply bg-primary-600 fixed left-0 top-0 flex h-14 w-full items-center;
13
13
 
14
14
  &__left-container {
15
- @apply flex items-center grow;
15
+ @apply flex grow items-center;
16
16
  }
17
17
 
18
18
  &__menu-button {
@@ -25,7 +25,7 @@ body {
25
25
  }
26
26
 
27
27
  .uxf-sidebar {
28
- @apply hidden md:fixed md:inset-y-0 md:flex md:w-64 md:flex-col bg-white;
28
+ @apply hidden bg-white md:fixed md:inset-y-0 md:flex md:w-64 md:flex-col;
29
29
 
30
30
  &__content {
31
31
  @apply flex flex-grow flex-col overflow-y-auto border-r border-r-gray-200 pt-14;
package/css/list-item.css CHANGED
@@ -1,6 +1,6 @@
1
1
  .uxf-list-item {
2
- @apply flex justify-between grow py-4 px-5 min-h-[64px] space-x-3 transition-opacity is-hoverable:opacity-75
3
- outline-none relative before:absolute before:inset-0 before:rounded-lg focus-visible:before:border-2;
2
+ @apply is-hoverable:opacity-75 relative flex min-h-[64px] grow justify-between space-x-3 px-5 py-4
3
+ outline-none transition-opacity before:absolute before:inset-0 before:rounded-lg focus-visible:before:border-2;
4
4
 
5
5
  &__inner {
6
6
  @apply w-full;