@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
package/css/button.css CHANGED
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  &--full-width {
20
- @apply w-full flex flex-row justify-center;
20
+ @apply flex w-full flex-row justify-center;
21
21
  }
22
22
 
23
23
  &.is-disabled {
@@ -54,9 +54,9 @@
54
54
  }
55
55
 
56
56
  &--size-xs {
57
- height: theme("inputSize.xs");
57
+ @apply rounded px-2.5 text-xs;
58
58
 
59
- @apply px-2.5 text-xs rounded;
59
+ height: theme("inputSize.xs");
60
60
 
61
61
  &.is-loading::after {
62
62
  height: 14px;
@@ -64,9 +64,9 @@
64
64
  }
65
65
 
66
66
  &.uxf-button--icon-button {
67
- width: theme("inputSize.xs");
68
-
69
67
  @apply p-0;
68
+
69
+ width: theme("inputSize.xs");
70
70
  }
71
71
 
72
72
  .uxf-icon {
@@ -75,19 +75,19 @@
75
75
  }
76
76
 
77
77
  &--size-sm {
78
- height: theme("inputSize.sm");
79
-
80
78
  @apply px-3 text-sm leading-4;
81
79
 
80
+ height: theme("inputSize.sm");
81
+
82
82
  &.is-loading::after {
83
83
  height: 16px;
84
84
  width: 16px;
85
85
  }
86
86
 
87
87
  &.uxf-button--icon-button {
88
- width: theme("inputSize.sm");
89
-
90
88
  @apply p-0;
89
+
90
+ width: theme("inputSize.sm");
91
91
  }
92
92
 
93
93
  .uxf-icon {
@@ -96,10 +96,10 @@
96
96
  }
97
97
 
98
98
  &--size-default {
99
- height: theme("inputSize.default");
100
-
101
99
  @apply px-4 text-sm;
102
100
 
101
+ height: theme("inputSize.default");
102
+
103
103
  &.uxf-button--icon-button {
104
104
  width: theme("inputSize.default");
105
105
 
@@ -108,10 +108,10 @@
108
108
  }
109
109
 
110
110
  &--size-lg {
111
- height: theme("inputSize.lg");
112
-
113
111
  @apply px-4 text-base;
114
112
 
113
+ height: theme("inputSize.lg");
114
+
115
115
  &.uxf-button--icon-button {
116
116
  width: theme("inputSize.lg");
117
117
 
@@ -120,14 +120,14 @@
120
120
  }
121
121
 
122
122
  &--size-xl {
123
- height: theme("inputSize.xl");
124
-
125
123
  @apply px-6 text-base;
126
124
 
127
- &.uxf-button--icon-button {
128
- width: theme("inputSize.xl");
125
+ height: theme("inputSize.xl");
129
126
 
127
+ &.uxf-button--icon-button {
130
128
  @apply p-0;
129
+
130
+ width: theme("inputSize.xl");
131
131
  }
132
132
  }
133
133
 
@@ -146,11 +146,11 @@
146
146
  @apply focus-visible:ring-primary;
147
147
 
148
148
  :root .light & {
149
- @apply text-primary border-primary is-hoverable:border-primary-700 is-hoverable:text-primary-700;
149
+ @apply border-primary text-primary is-hoverable:border-primary-700 is-hoverable:text-primary-700;
150
150
  }
151
151
 
152
152
  :root .dark & {
153
- @apply text-primary border-primary is-hoverable:border-primary-300 is-hoverable:text-primary-300;
153
+ @apply border-primary text-primary is-hoverable:border-primary-300 is-hoverable:text-primary-300;
154
154
  }
155
155
  }
156
156
 
@@ -158,11 +158,23 @@
158
158
  @apply focus-visible:ring-success;
159
159
 
160
160
  :root .light & {
161
- @apply text-success border-success is-hoverable:border-success-700 is-hoverable:text-success-700;
161
+ @apply border-success text-success is-hoverable:border-success-700 is-hoverable:text-success-700;
162
162
  }
163
163
 
164
164
  :root .dark & {
165
- @apply text-success border-success is-hoverable:border-success-300 is-hoverable:text-success-300;
165
+ @apply border-success text-success is-hoverable:border-success-300 is-hoverable:text-success-300;
166
+ }
167
+ }
168
+
169
+ &.uxf-button--color-warning {
170
+ @apply focus-visible:ring-warning;
171
+
172
+ :root .light & {
173
+ @apply border-warning text-warning is-hoverable:border-warning-700 is-hoverable:text-warning-700;
174
+ }
175
+
176
+ :root .dark & {
177
+ @apply border-warning text-warning is-hoverable:border-warning-300 is-hoverable:text-warning-300;
166
178
  }
167
179
  }
168
180
 
@@ -170,21 +182,21 @@
170
182
  @apply focus-visible:ring-error;
171
183
 
172
184
  :root .light & {
173
- @apply text-error border-error is-hoverable:border-error-700 is-hoverable:text-error-700;
185
+ @apply border-error text-error is-hoverable:border-error-700 is-hoverable:text-error-700;
174
186
  }
175
187
 
176
188
  :root .dark & {
177
- @apply text-error border-error is-hoverable:border-error-300 is-hoverable:text-error-300;
189
+ @apply border-error text-error is-hoverable:border-error-300 is-hoverable:text-error-300;
178
190
  }
179
191
  }
180
192
 
181
193
  &.is-disabled {
182
194
  :root .light & {
183
- @apply border-gray-300 bg-gray-300 text-lightLow;
195
+ @apply text-lightLow border-gray-300 bg-gray-300;
184
196
  }
185
197
 
186
198
  :root .dark & {
187
- @apply border-gray-700 bg-gray-700 text-darkLow;
199
+ @apply text-darkLow border-gray-700 bg-gray-700;
188
200
  }
189
201
  }
190
202
  }
@@ -209,7 +221,7 @@
209
221
 
210
222
  &.is-disabled {
211
223
  :root .light & {
212
- @apply bg-gray-300 text-lightLow;
224
+ @apply text-lightLow bg-gray-300;
213
225
  }
214
226
 
215
227
  :root .dark & {
@@ -231,7 +243,7 @@
231
243
 
232
244
  &.is-disabled {
233
245
  :root .light & {
234
- @apply bg-gray-300 text-lightLow;
246
+ @apply text-lightLow bg-gray-300;
235
247
  }
236
248
 
237
249
  :root .dark & {
@@ -253,7 +265,29 @@
253
265
 
254
266
  &.is-disabled {
255
267
  :root .light & {
256
- @apply bg-gray-300 text-lightLow;
268
+ @apply text-lightLow bg-gray-300;
269
+ }
270
+
271
+ :root .dark & {
272
+ @apply bg-gray-600 text-gray-400;
273
+ }
274
+ }
275
+ }
276
+
277
+ &.uxf-button--color-warning {
278
+ @apply focus-visible:ring-warning;
279
+
280
+ :root .light & {
281
+ @apply bg-warning is-hoverable:bg-warning-700;
282
+ }
283
+
284
+ :root .dark & {
285
+ @apply bg-warning is-hoverable:bg-warning-400;
286
+ }
287
+
288
+ &.is-disabled {
289
+ :root .light & {
290
+ @apply text-lightLow bg-gray-300;
257
291
  }
258
292
 
259
293
  :root .dark & {
@@ -264,14 +298,14 @@
264
298
  }
265
299
 
266
300
  &--variant-white {
267
- @apply border focus-visible:ring-primary;
301
+ @apply focus-visible:ring-primary border;
268
302
 
269
303
  :root .light & {
270
- @apply border-lightBorder bg-white is-hoverable:bg-gray-100 text-lightMedium;
304
+ @apply border-lightBorder text-lightMedium is-hoverable:bg-gray-100 bg-white;
271
305
  }
272
306
 
273
307
  :root .dark & {
274
- @apply border-darkBorder text-darkMedium bg-lightHigh is-hoverable:bg-gray-800 is-hoverable:text-darkHigh;
308
+ @apply border-darkBorder bg-lightHigh text-darkMedium is-hoverable:bg-gray-800 is-hoverable:text-darkHigh;
275
309
  }
276
310
 
277
311
  &.is-disabled {
@@ -280,7 +314,7 @@
280
314
  }
281
315
 
282
316
  :root .dark & {
283
- @apply text-darkLow border-darkBorder;
317
+ @apply border-darkBorder text-darkLow;
284
318
  }
285
319
  }
286
320
  }
@@ -322,6 +356,18 @@
322
356
  }
323
357
  }
324
358
 
359
+ &.uxf-button--color-warning {
360
+ @apply text-warning;
361
+
362
+ :root .light & {
363
+ @apply is-hoverable:text-warning-700;
364
+ }
365
+
366
+ :root .dark & {
367
+ @apply is-hoverable:text-warning-300;
368
+ }
369
+ }
370
+
325
371
  &.is-disabled {
326
372
  :root .light & {
327
373
  @apply text-lightLow;
package/css/calendar.css CHANGED
@@ -1,6 +1,12 @@
1
1
  .uxf-calendar {
2
- &__cell-day {
2
+ &__cell {
3
+ --bg-color: unset;
4
+ --color: unset;
5
+ --compensated-radii: calc(theme("borderRadius.md") - theme("spacing.px"));
6
+
3
7
  align-items: center;
8
+ background-color: var(--bg-color);
9
+ color: var(--color);
4
10
  display: flex;
5
11
  font-size: 14px;
6
12
  font-weight: theme("fontWeight.medium");
@@ -12,22 +18,22 @@
12
18
  text-align: center;
13
19
 
14
20
  :root .light & {
15
- background-color: theme("backgroundColor.white");
16
- color: theme("colors.lightMedium");
21
+ --bg-color: theme("backgroundColor.white");
22
+ --color: theme("colors.lightMedium");
17
23
  }
18
24
 
19
25
  :root .dark & {
20
- background-color: theme("backgroundColor.gray.900");
21
- color: theme("colors.darkMedium");
26
+ --bg-color: theme("backgroundColor.gray.900");
27
+ --color: theme("colors.darkMedium");
22
28
  }
23
29
 
24
30
  &:hover {
25
31
  :root .light & {
26
- background-color: theme("backgroundColor.gray.50");
32
+ --bg-color: theme("backgroundColor.gray.50");
27
33
  }
28
34
 
29
35
  :root .dark & {
30
- background-color: theme("backgroundColor.gray.950");
36
+ --bg-color: theme("backgroundColor.gray.950");
31
37
  }
32
38
  }
33
39
 
@@ -41,60 +47,63 @@
41
47
  }
42
48
  }
43
49
 
44
- &.is-disabled{
50
+ &.is-disabled {
45
51
  cursor: auto;
46
52
 
47
53
  :root .light & {
48
- background-color: theme("backgroundColor.gray.100");
54
+ --bg-color: theme("backgroundColor.gray.100");
49
55
  }
50
56
 
51
57
  :root .dark & {
52
- background-color: theme("backgroundColor.gray.800");
58
+ --bg-color: theme("backgroundColor.gray.800");
53
59
  }
54
60
  }
55
61
 
56
- --compensated-radii: calc(theme("borderRadius.md") - theme("spacing.px"));
57
-
58
62
  &:first-child {
59
63
  border-top-left-radius: var(--compensated-radii);
60
64
  }
61
65
 
62
- &:nth-child(7) {
63
- border-top-right-radius: var(--compensated-radii);
64
- }
65
-
66
- &:nth-last-child(7) {
67
- border-bottom-left-radius: var(--compensated-radii);
68
- }
69
-
70
66
  &:last-child {
71
67
  border-bottom-right-radius: var(--compensated-radii);
72
68
  }
73
69
 
74
70
  &--selected {
75
- :root .light & {
76
- background-color: theme("backgroundColor.primary.500");
77
- color: theme("colors.white");
78
- }
79
-
71
+ :root .light &,
80
72
  :root .dark & {
81
- background-color: theme("backgroundColor.primary.500");
82
- color: theme("colors.white");
73
+ --bg-color: theme("backgroundColor.primary.500");
74
+ --color: theme("colors.white");
83
75
  }
84
76
 
85
77
  &:hover {
86
- :root .light & {
87
- background-color: theme("backgroundColor.primary.500");
88
- }
89
-
78
+ :root .light &,
90
79
  :root .dark & {
91
- background-color: theme("backgroundColor.primary.500");
80
+ --bg-color: theme("backgroundColor.primary.500");
92
81
  }
93
82
  }
94
83
  }
95
84
 
85
+ &--inside-range {
86
+ background-color: theme("backgroundColor.primary.100");
87
+ color: theme("colors.lightMedium");
88
+
89
+ :root .dark & {
90
+ background-color: theme("backgroundColor.primary.900");
91
+ color: theme("colors.darkMedium");
92
+ }
93
+ }
94
+
95
+ &--is-hovered {
96
+ background-color: theme("backgroundColor.primary.100");
97
+ color: theme("colors.lightMedium");
98
+
99
+ :root .dark & {
100
+ background-color: theme("backgroundColor.primary.900");
101
+ color: theme("colors.darkMedium");
102
+ }
103
+ }
104
+
96
105
  &--today {
97
- .uxf-calendar__cell-day__inner {
106
+ .uxf-calendar__cell__inner {
98
107
  align-items: center;
99
108
  border-radius: 999px;
100
109
  display: inline-flex;
@@ -104,47 +113,67 @@
104
113
  width: 32px;
105
114
 
106
115
  :root .light & {
107
- background-color: theme("backgroundColor.lightHigh");
108
- color: theme("colors.white");
116
+ --bg-color: theme("backgroundColor.lightHigh");
117
+ --color: theme("colors.white");
109
118
  }
110
119
 
111
120
  :root .dark & {
121
+ --bg-color: theme("backgroundColor.transparent");
122
+ --color: theme("colors.white");
123
+
124
+ border: 2px solid theme("colors.darkMedium");
125
+ }
126
+ }
127
+
128
+ &.uxf-calendar__cell--selected {
129
+ .uxf-calendar__cell__inner {
112
130
  background-color: theme("backgroundColor.transparent");
113
131
  border: 2px solid theme("colors.darkMedium");
114
132
  color: theme("colors.white");
115
133
  }
116
134
  }
117
135
 
118
- &.uxf-calendar__cell-day--selected {
119
- .uxf-calendar__cell-day__inner {
120
- background-color: theme("backgroundColor.transparent");
136
+ &.uxf-calendar__cell--inside-range {
137
+ .uxf-calendar__cell__inner {
138
+ background-color: theme("backgroundColor.lightHigh");
139
+ border: 2px solid theme("colors.lightHigh");
140
+ border-radius: 999px;
121
141
  color: theme("colors.white");
122
- border: 2px solid theme("colors.darkMedium");
142
+
143
+ :root .dark & {
144
+ background-color: theme("backgroundColor.transparent");
145
+ border: 2px solid theme("colors.darkMedium");
146
+ color: theme("colors.white");
147
+ }
123
148
  }
124
149
  }
125
150
  }
126
151
 
127
152
  &--not-current-month {
128
153
  :root .light & {
129
- background-color: theme("backgroundColor.gray.100");
130
- color: theme("colors.lightLow");
154
+ --bg-color: theme("backgroundColor.gray.100");
155
+ --color: theme("colors.lightLow");
131
156
  }
132
157
 
133
158
  :root .dark & {
134
- background-color: theme("backgroundColor.gray.800");
135
- color: theme("colors.darkLow");
159
+ --bg-color: theme("backgroundColor.gray.800");
160
+ --color: theme("colors.darkLow");
136
161
  }
137
162
  }
138
163
  }
139
164
 
140
- &__cell-month,
141
- &__cell-year {
142
- --compensated-radii: calc(theme("borderRadius.md") - theme("spacing.px"));
165
+ &__cell-day {
166
+ &:nth-child(7) {
167
+ border-top-right-radius: var(--compensated-radii);
168
+ }
143
169
 
144
- &:first-child {
145
- border-top-left-radius: var(--compensated-radii);
170
+ &:nth-last-child(7) {
171
+ border-bottom-left-radius: var(--compensated-radii);
146
172
  }
173
+ }
147
174
 
175
+ &__cell-month,
176
+ &__cell-year {
148
177
  &:nth-child(3) {
149
178
  border-top-right-radius: var(--compensated-radii);
150
179
  }
@@ -152,9 +181,16 @@
152
181
  &:nth-last-child(3) {
153
182
  border-bottom-left-radius: var(--compensated-radii);
154
183
  }
184
+ }
155
185
 
156
- &:last-child {
157
- border-bottom-right-radius: var(--compensated-radii);
186
+ &__cell-hour,
187
+ &__cell-minute {
188
+ &:nth-child(6) {
189
+ border-top-right-radius: var(--compensated-radii);
190
+ }
191
+
192
+ &:nth-last-child(6) {
193
+ border-bottom-left-radius: var(--compensated-radii);
158
194
  }
159
195
  }
160
196
 
@@ -188,7 +224,9 @@
188
224
 
189
225
  &__days,
190
226
  &__year,
191
- &__decade {
227
+ &__decade,
228
+ &__hours,
229
+ &__minutes {
192
230
  border-radius: 6px;
193
231
  display: grid;
194
232
  gap: 1px;
@@ -212,4 +250,30 @@
212
250
  &__decade {
213
251
  grid-template-columns: repeat(3, minmax(0, 1fr));
214
252
  }
253
+
254
+ &__hours,
255
+ &__minutes {
256
+ grid-template-columns: repeat(6, minmax(0, 1fr));
257
+ }
258
+ }
259
+
260
+ .uxf-calendar-navigation {
261
+ align-items: center;
262
+ display: flex;
263
+ justify-content: space-between;
264
+ margin-bottom: theme("spacing.4");
265
+
266
+ &__title {
267
+ font-size: 14px;
268
+ font-weight: theme("fontWeight.medium");
269
+ text-align: center;
270
+
271
+ :root .light & {
272
+ @apply text-lightMedium is-hoverable:text-lightHigh;
273
+ }
274
+
275
+ :root .dark & {
276
+ @apply text-darkMedium is-hoverable:text-darkHigh;
277
+ }
278
+ }
215
279
  }
@@ -1,15 +1,15 @@
1
1
  .uxf-checkbox-button {
2
- @apply shrink-0 inline-flex items-center justify-between rounded-lg py-3 px-4 space-x-4 transition outline-none
3
- relative before:absolute before:inset-0 before:border before:rounded-lg before:border-transparent
4
- before:transition focus-visible:ring-offset-2 focus-visible:ring-2;
2
+ @apply relative inline-flex shrink-0 items-center justify-between space-x-4 rounded-lg px-4 py-3 outline-none
3
+ transition before:absolute before:inset-0 before:rounded-lg before:border before:border-transparent
4
+ before:transition focus-visible:ring-2 focus-visible:ring-offset-2;
5
5
 
6
6
  &__icon {
7
- @apply w-5 h-5 p-1 bg-white text-transparent rounded relative before:absolute before:inset-0 before:border
8
- before:rounded before:transition;
7
+ @apply relative h-5 w-5 rounded bg-white p-1 text-transparent before:absolute before:inset-0 before:rounded
8
+ before:border before:transition;
9
9
  }
10
10
 
11
11
  :root .light & {
12
- @apply bg-gray-200 focus-visible:ring-primary;
12
+ @apply focus-visible:ring-primary bg-gray-200;
13
13
 
14
14
  .uxf-checkbox-button__icon {
15
15
  @apply before:border-gray-600;
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  &.is-disabled {
35
- @apply bg-gray-100 pointer-events-none;
35
+ @apply pointer-events-none bg-gray-100;
36
36
 
37
37
  .uxf-checkbox-button__icon {
38
38
  @apply before:border-gray-300;
@@ -57,7 +57,7 @@
57
57
  }
58
58
 
59
59
  :root .dark & {
60
- @apply bg-gray-800 focus-visible:ring-primary focus-visible:ring-offset-gray-900;
60
+ @apply focus-visible:ring-primary bg-gray-800 focus-visible:ring-offset-gray-900;
61
61
 
62
62
  .uxf-checkbox-button__icon {
63
63
  @apply before:border-transparent;
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  &.is-selected {
71
- @apply text-white bg-primary;
71
+ @apply bg-primary text-white;
72
72
 
73
73
  .uxf-checkbox-button__icon {
74
74
  @apply text-primary before:border-transparent;
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  &.is-disabled {
83
- @apply bg-gray-800 pointer-events-none;
83
+ @apply pointer-events-none bg-gray-800;
84
84
 
85
85
  &.is-selected {
86
86
  @apply bg-gray-600;
package/css/checkbox.css CHANGED
@@ -1,7 +1,7 @@
1
1
  .uxf-checkbox {
2
- @apply relative shrink-0 flex items-center justify-center rounded transition outline-none border
3
- focus-visible:before:border-2 focus-visible:before:absolute
4
- focus-visible:before:inset-[-5px] focus-visible:before:rounded-lg;
2
+ @apply relative flex shrink-0 items-center justify-center rounded border outline-none transition
3
+ focus-visible:before:absolute focus-visible:before:inset-[-5px]
4
+ focus-visible:before:rounded-lg focus-visible:before:border-2;
5
5
 
6
6
  &__inner {
7
7
  @apply hidden;
@@ -11,7 +11,7 @@
11
11
  @apply h-4 w-4;
12
12
 
13
13
  .uxf-checkbox__inner {
14
- @apply w-2.5 h-2.5;
14
+ @apply h-2.5 w-2.5;
15
15
  }
16
16
  }
17
17
 
@@ -19,7 +19,7 @@
19
19
  @apply h-6 w-6;
20
20
 
21
21
  .uxf-checkbox__inner {
22
- @apply w-4 h-4;
22
+ @apply h-4 w-4;
23
23
  }
24
24
  }
25
25
 
@@ -35,10 +35,10 @@
35
35
  }
36
36
 
37
37
  :root .light & {
38
- @apply bg-white border-gray-400 focus-visible:before:border-primary;
38
+ @apply focus-visible:before:border-primary border-gray-400 bg-white;
39
39
 
40
40
  &.is-selected {
41
- @apply bg-primary border-transparent is-hoverable:bg-primary-700;
41
+ @apply bg-primary is-hoverable:bg-primary-700 border-transparent;
42
42
 
43
43
  .uxf-checkbox__inner {
44
44
  @apply text-white;
@@ -77,10 +77,10 @@
77
77
  }
78
78
 
79
79
  :root .dark & {
80
- @apply bg-gray-900 border-gray-400 focus-visible:before:border-primary;
80
+ @apply focus-visible:before:border-primary border-gray-400 bg-gray-900;
81
81
 
82
82
  &.is-selected {
83
- @apply bg-primary border-transparent is-hoverable:bg-primary-300;
83
+ @apply bg-primary is-hoverable:bg-primary-300 border-transparent;
84
84
 
85
85
  .uxf-checkbox__inner {
86
86
  @apply text-white;